/src/games/trek/ |
rest.c | 64 int percent; local in function:rest 70 percent = 100 * t / Now.time + 0.5; 71 if (percent >= 70) { 73 percent);
|
impulse.c | 56 int percent; local in function:impulse 69 percent = 100 * power / Ship.energy + 0.5; 70 if (percent >= 85) { 73 percent); 79 percent = 100 * time / Now.time + 0.5; 80 if (percent >= 85) { 82 percent);
|
srscan.c | 73 int percent; local in function:srscan 141 percent = 100.0 * Ship.shield / Param.shield; 142 printf("shields %s, %d%%", s, percent);
|
warp.c | 85 int percent; local in function:warp 103 percent = 100 * power / Ship.energy + 0.5; 104 if (percent >= 85) { 107 percent); 117 percent = 100 * time / Now.time + 0.5; 118 if (percent >= 85) { 120 percent); 156 percent = ranf(100); 157 if (percent < 70) { 159 if (percent < 35 || !Game.snap) [all...] |
/src/usr.bin/make/unit-tests/ |
dep-percent.mk | 1 # $NetBSD: dep-percent.mk,v 1.1 2020/10/23 19:54:35 rillig Exp $ 8 all: dep-percent.o 13 dep-percent.c:
|
/src/sys/external/bsd/drm2/dist/drm/nouveau/include/nvkm/subdev/bios/ |
boost.h | 22 u8 percent; member in struct:nvbios_boostS
|
/src/sys/arch/x68k/usr.bin/bellctrl/ |
bellctrl.c | 50 int percent; local in function:main 65 percent = DEFAULT; 69 set_bell_vol(percent); 71 set_bell_pitch(percent); 73 set_bell_dur(percent); 90 percent = 0; 91 set_bell_vol(percent); 98 percent = atoi(arg); 100 set_bell_vol(percent); 173 set_bell_vol(int percent) [all...] |
/src/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/subdev/therm/ |
nouveau_nvkm_subdev_therm_fantog.c | 39 u32 percent; member in struct:nvkm_fantog 44 nvkm_fantog_update(struct nvkm_fantog *fan, int percent) 54 if (percent < 0) 55 percent = fan->percent; 56 fan->percent = percent; 61 if (percent != (duty * 100)) { 62 u64 next_change = (percent * fan->period_us) / 100; 82 return fan->percent; [all...] |
priv.h | 49 int percent; member in struct:nvkm_fan 52 int (*set)(struct nvkm_therm *, int percent); 71 int nvkm_therm_fan_set(struct nvkm_therm *, bool now, int percent); 73 int nvkm_therm_fan_user_set(struct nvkm_therm *, int percent);
|
/src/sys/arch/hpcarm/dev/ |
j720pwr.c | 86 int percent; member in struct:__anon2110032d0108 264 *pval = battery_table[i].percent + 265 ((battery_table[i - 1].percent - 266 battery_table[i].percent) * tmp) / 100;
|
/src/sys/external/bsd/drm2/dist/drm/amd/powerplay/hwmgr/ |
amdgpu_vega10_thermal.c | 77 uint32_t percent = 0; local in function:vega10_fan_ctrl_get_fan_speed_percent 87 percent = current_rpm * 100 / 91 *speed = percent > 100 ? 100 : percent; 130 * mode the fan control mode, 0 default, 1 by percent, 5, by RPM 251 * Set Fan Speed in percent.
|
amdgpu_vega20_thermal.c | 127 uint32_t current_rpm, percent = 0; local in function:vega20_fan_ctrl_get_fan_speed_percent 134 percent = current_rpm * 100 / pp_table->FanMaximumRpm; 136 *speed = percent > 100 ? 100 : percent;
|
/src/sys/dev/acpi/ |
acpi_cpu_tstate.c | 283 * There must be an entry with the percent 659 acpicpu_tstate_get(struct cpu_info *ci, uint32_t *percent) 686 *percent = sc->sc_tstate_current; 697 rv = acpicpu_md_tstate_get(sc, percent); 725 *percent = ts->ts_percent; 734 sc->sc_tstate_current = *percent; 744 *percent = sc->sc_tstate_current = ACPICPU_T_STATE_UNKNOWN; 751 acpicpu_tstate_set(struct cpu_info *ci, uint32_t percent) 755 xc = xc_broadcast(0, acpicpu_tstate_set_xcall, &percent, NULL); 765 uint32_t i, percent, val local in function:acpicpu_tstate_set_xcall [all...] |
/src/games/rogue/ |
object.c | 396 short percent; local in function:gr_what_is 399 percent = get_rand(1, 91); 401 if (percent <= 30) { 403 } else if (percent <= 60) { 405 } else if (percent <= 64) { 407 } else if (percent <= 74) { 409 } else if (percent <= 83) { 411 } else if (percent <= 88) { 422 short percent; local in function:gr_scroll 424 percent = get_rand(0, 91) 460 short percent; local in function:gr_potion 529 short percent; local in function:gr_weapon 570 short percent; local in function:gr_armor [all...] |
/src/sbin/bioctl/ |
bioctl.c | 238 char size[64], percent[16], seconds[20]; local in function:bio_show_volumes 252 percent[0] = '\0'; 255 snprintf(percent, sizeof(percent), 332 rtype, stripe, percent, seconds);
|
/src/sys/arch/zaurus/dev/ |
zapm.c | 513 int percent; member in struct:battery_threshold 785 return bthr[0].percent; 787 return (bthr[i].percent + 790 (bthr[i-1].percent - bthr[i].percent) / 100);
|
/src/games/fortune/fortune/ |
fortune.c | 92 int percent; member in struct:fd 389 int i, percent; local in function:form_file_list 401 percent = NO_PROB; 405 percent = 0; 407 percent = percent * 10 + *sp - '0'; 408 if (percent > 100) { 422 percent = NO_PROB; 435 if (!add_file(percent, sp, NULL, &File_list, &File_tail, NULL)) 446 add_file(int percent, const char *file, const char *dir 861 int percent, num_noprob, frac; local in function:init_prob [all...] |
/src/sys/external/bsd/drm2/dist/drm/amd/powerplay/ |
amdgpu_arcturus_ppt.c | 1051 uint32_t percent, current_rpm; local in function:arcturus_get_fan_speed_percent 1061 percent = current_rpm * 100 / pptable->FanMaximumRpm; 1062 *speed = percent > 100 ? 100 : percent;
|
amdgpu_navi10_ppt.c | 1227 uint32_t percent = 0; local in function:navi10_get_fan_speed_percent 1235 percent = current_rpm * 100 / pptable->FanMaximumRpm; 1236 *speed = percent > 100 ? 100 : percent;
|
amdgpu_vega20_ppt.c | 2890 uint32_t current_rpm = 0, percent = 0; local in function:vega20_get_fan_speed_percent 2897 percent = current_rpm * 100 / pptable->FanMaximumRpm; 2898 *speed = percent > 100 ? 100 : percent;
|
/src/sys/fs/nfs/server/ |
nfs_nfsdsubs.c | 1842 int rem, len, error = 0, pubtype = 0, outlen = 0, percent = 0; local in function:nfsrv_parsename 1938 * percent == 1 -> indicates "get first hex digit" 1939 * percent == 2 -> indicates "get second hex digit" 1941 if (percent > 0) { 1948 if (percent == 1) { 1950 percent = 2; 1953 percent = 0; 1968 percent = 1;
|
/src/sys/dev/pci/ |
mpii.c | 126 short percent; member in struct:mpii_device 2098 dev->percent = evs->percent; 3488 int percent; local in function:mpii_ioctl_vol 3499 percent = dev->percent; 3534 bv->bv_percent = percent;
|
mpiireg.h | 1610 u_int8_t percent; member in struct:mpii_evt_ir_status
|
/src/usr.bin/make/ |
var.c | 1482 const char *percent; local in function:ModifyWord_SysVSubst 1496 percent = args->lhsPercent ? strchr(rhs.str, '%') : NULL; 1498 if (percent != NULL) 1499 SepBuf_AddRange(buf, rhs.str, percent); 1500 if (percent != NULL || !args->lhsPercent) 1504 SepBuf_AddStr(buf, percent != NULL ? percent + 1 : rhs.str);
|