| /netbsd/src/external/gpl3/gcc/dist/gcc/ |
| D | expmed.h | 126 bool speed; member 248 expmed_op_cheap_ptr (struct expmed_op_cheap *eoc, bool speed, in expmed_op_cheap_ptr() argument 252 return &eoc->cheap[speed][idx]; in expmed_op_cheap_ptr() 259 expmed_op_cost_ptr (struct expmed_op_costs *costs, bool speed, in expmed_op_cost_ptr() argument 263 return &costs->cost[speed][idx]; in expmed_op_cost_ptr() 269 sdiv_pow2_cheap_ptr (bool speed, machine_mode mode) in sdiv_pow2_cheap_ptr() argument 272 speed, mode); in sdiv_pow2_cheap_ptr() 279 set_sdiv_pow2_cheap (bool speed, machine_mode mode, bool cheap_p) in set_sdiv_pow2_cheap() argument 281 *sdiv_pow2_cheap_ptr (speed, mode) = cheap_p; in set_sdiv_pow2_cheap() 288 sdiv_pow2_cheap (bool speed, machine_mode mode) in sdiv_pow2_cheap() argument [all …]
|
| D | expmed.cc | 133 scalar_int_mode from_mode, bool speed) in init_expmed_one_conv() argument 156 set_convert_cost (to_mode, from_mode, speed, in init_expmed_one_conv() 157 set_src_cost (which, to_mode, speed)); in init_expmed_one_conv() 164 machine_mode mode, int speed) in init_expmed_one_mode() argument 188 set_add_cost (speed, mode, set_src_cost (all->plus, mode, speed)); in init_expmed_one_mode() 189 set_neg_cost (speed, mode, set_src_cost (all->neg, mode, speed)); in init_expmed_one_mode() 190 set_mul_cost (speed, mode, set_src_cost (all->mult, mode, speed)); in init_expmed_one_mode() 191 set_sdiv_cost (speed, mode, set_src_cost (all->sdiv, mode, speed)); in init_expmed_one_mode() 192 set_udiv_cost (speed, mode, set_src_cost (all->udiv, mode, speed)); in init_expmed_one_mode() 194 set_sdiv_pow2_cheap (speed, mode, (set_src_cost (all->sdiv_32, mode, speed) in init_expmed_one_mode() [all …]
|
| D | cfgloopanal.cc | 345 int speed; in init_set_costs() local 369 for (speed = 0; speed < 2; speed++) in init_set_costs() 371 crtl->maybe_hot_insn_p = speed; in init_set_costs() 385 target_reg_cost [speed] = seq_cost (seq, speed); in init_set_costs() 392 target_spill_cost [speed] = seq_cost (seq, speed); in init_set_costs() 404 estimate_reg_pressure_cost (unsigned n_new, unsigned n_old, bool speed, in estimate_reg_pressure_cost() argument 424 cost = target_reg_cost [speed] * n_new; in estimate_reg_pressure_cost() 428 cost = target_spill_cost [speed] * n_new; in estimate_reg_pressure_cost()
|
| /netbsd/src/sys/arch/i386/stand/lib/ |
| D | comio_direct.c | 90 comspeed(long speed) in comspeed() argument 94 if (speed <= 0) in comspeed() 95 speed = 9600; in comspeed() 96 x = divrnd((COM_FREQ / 16), speed); in comspeed() 99 err = divrnd((COM_FREQ / 16) * 1000, speed * x) - 1000; in comspeed() 181 cominit_d(int combase, int speed) in cominit_d() argument 189 if (speed == 0) { in cominit_d() 194 speed = divrnd((COM_FREQ / 16), rate); in cominit_d() 195 err = speed - (speed + 150)/300 * 300; in cominit_d() 196 speed -= err; in cominit_d() [all …]
|
| /netbsd/src/sys/arch/powerpc/oea/ |
| D | cpu_speedctl.c | 117 int speed, nspeed = -1, mhz; in sysctl_cpuspeed_temp() local 119 speed = (scom_read(SCOM_PSR) >> 56) & 3; in sysctl_cpuspeed_temp() 120 if (speed > 1) speed = 1; in sysctl_cpuspeed_temp() 121 mhz = scom_speeds[speed]; in sysctl_cpuspeed_temp() 136 if (nspeed != speed) { in sysctl_cpuspeed_temp() 152 uint64_t speed; in sysctl_cpuspeed_cur() local 155 speed = (scom_read(SCOM_PSR) >> 56) & 3; in sysctl_cpuspeed_cur() 156 if (speed > 1) speed = 1; in sysctl_cpuspeed_cur() 158 mhz = scom_speeds[speed]; in sysctl_cpuspeed_cur()
|
| /netbsd/src/sys/arch/mmeye/stand/boot/ |
| D | com.c | 114 comspeed(long speed) in comspeed() argument 121 if (speed <= 0) in comspeed() 123 x = divrnd((frequency / 16), speed); in comspeed() 126 err = divrnd(((quad_t)frequency) * 1000 / 16, speed * x) - 1000; in comspeed() 137 com_init(int addr, int speed) in com_init() argument 144 speed = comspeed(speed); in com_init() 145 CSR_WRITE(com_port, com_dlbl, speed); in com_init() 146 CSR_WRITE(com_port, com_dlbh, speed >> 8); in com_init()
|
| /netbsd/src/usr.sbin/btattach/ |
| D | btattach.c | 63 .speed = B115200, 70 .speed = B115200, 77 .speed = B115200, 84 .speed = B57600, 92 .speed = B115200, 105 .speed = B57600, 113 .speed = B9600, 121 .speed = B57600, 129 .speed = B57600, 136 .speed = B115200, [all …]
|
| D | init_bcm43xx.c | 92 init_bcm43xx(int fd, unsigned int speed) in init_bcm43xx() argument 144 if (speed >= 3000000) in init_bcm43xx() 152 rate[2] = speed; in init_bcm43xx() 153 rate[3] = speed >> 8; in init_bcm43xx() 154 rate[4] = speed >> 16; in init_bcm43xx() 155 rate[5] = speed >> 24; in init_bcm43xx()
|
| /netbsd/src/games/hals_end/ |
| D | hals_end.c | 12 int speed; variable 32 int sayingspeed = (100000 + (90000 * emotion)) / speed; in say() 33 int worddelay = 50000 / speed; in say() 70 int sdelay = (100000 + (50000 * emotion)) / speed; in stutter() 102 int mdelay = (150000 * fear) / speed; in mumble() 127 emotion = fear = speed = 1; in main() 132 speed <<= 1; in main()
|
| /netbsd/src/sys/dev/mii/ |
| D | ciphy.c | 140 uint16_t reg, speed, gig; in ciphy_service() local 179 speed = BMCR_S1000; in ciphy_service() 182 speed = BMCR_S100; in ciphy_service() 185 speed = BMCR_S10; in ciphy_service() 188 speed |= BMCR_FDX; in ciphy_service() 194 PHY_WRITE(sc, MII_BMCR, speed); in ciphy_service() 202 speed | BMCR_AUTOEN | BMCR_STARTNEG); in ciphy_service() 390 uint16_t model, status, speed; in ciphy_fixup() local 396 speed = status & CIPHY_AUXCSR_SPEED; in ciphy_fixup() 414 if ((speed == CIPHY_SPEED10 || speed == CIPHY_SPEED100) && in ciphy_fixup() [all …]
|
| /netbsd/src/usr.bin/tset/ |
| D | map.c | 64 int speed; /* Baud rate to compare against. */ member 140 mapp->speed = baudrate(p); in add_mapping() 178 (void)printf("\nspeed: %d\n", mapp->speed); in add_mapping() 202 match = (ospeed == mapp->speed); in mapped() 205 match = (ospeed >= mapp->speed); in mapped() 208 match = (ospeed > mapp->speed); in mapped() 211 match = (ospeed <= mapp->speed); in mapped() 214 match = (ospeed < mapp->speed); in mapped()
|
| /netbsd/src/sys/dev/ir/ |
| D | irframe_tty.c | 589 sc->sc_params.speed = 0; in irframet_open() 883 __func__, tp, p->speed, p->ebofs, p->maxsize)); in irframet_set_params() 885 if (p->speed != sc->sc_params.speed) { in irframet_set_params() 888 irt_dongles[sc->sc_dongle].setspeed(tp, p->speed); in irframet_set_params() 890 sc->sc_params.speed = p->speed; in irframet_set_params() 948 irt_setspeed(struct tty *tp, u_int speed) in irt_setspeed() argument 953 tt.c_ispeed = tt.c_ospeed = speed; in irt_setspeed() 984 irts_none(struct tty *tp, u_int speed) in irts_none() argument 986 irt_setspeed(tp, speed); in irts_none() 1004 irts_tekram(struct tty *tp, u_int speed) in irts_tekram() argument [all …]
|
| /netbsd/src/sys/compat/common/ |
| D | tty_43.c | 130 int speed; in compat_43_ttioctl() local 133 speed = ttspeedtab(tp->t_ospeed, compatspeeds); in compat_43_ttioctl() 134 sg->sg_ospeed = (speed == -1) ? MAX_SPEED : speed; in compat_43_ttioctl() 138 speed = ttspeedtab(tp->t_ispeed, compatspeeds); in compat_43_ttioctl() 139 sg->sg_ispeed = (speed == -1) ? MAX_SPEED : speed; in compat_43_ttioctl() 152 int speed; in compat_43_ttioctl() local 156 if ((speed = sg->sg_ispeed) > MAX_SPEED || speed < 0) in compat_43_ttioctl() 157 term.c_ispeed = speed; in compat_43_ttioctl() 159 term.c_ispeed = compatspcodes[speed]; in compat_43_ttioctl() 160 if ((speed = sg->sg_ospeed) > MAX_SPEED || speed < 0) in compat_43_ttioctl() [all …]
|
| /netbsd/src/external/lgpl3/gmp/dist/tune/ |
| D | README | 84 running the speed program repeatedly then set a GMP_CPU_FREQUENCY 145 speed. When this happens the program is likely to give somewhat different 154 The "speed" program can be used for measuring and comparing various 157 make speed 159 (Or on DOS systems "make speed.exe".) 167 ./speed -s 10-5000 -t 10 -f 1.05 -P foo mpn_mul_n 173 ./speed -s 1-40 -c -d mpn_add_n mpn_lshift.1 206 when a cycle counter is supplemented by getrusage() etc. The speed program 225 Here are some ideas for things that can be done with the speed program. 231 "overhead" printed by the speed program each time in its intro is the "noop" [all …]
|
| /netbsd/src/sys/arch/zaurus/stand/zboot/ |
| D | unixcons.c | 49 consinit(int dev, int speed) in consinit() argument 78 bi_cons.speed = -1; in consinit() 87 if (linux_cfsetspeed(&termios, speed) < 0) { in consinit() 88 speed = 9600; in consinit() 89 if (linux_cfsetspeed(&termios, speed) < 0) in consinit() 98 bi_cons.speed = speed; in consinit()
|
| /netbsd/src/sys/arch/bebox/stand/boot/ |
| D | ns16550.c | 43 NS16550_init(int addr, int speed) in NS16550_init() argument 50 speed = comspeed(speed); in NS16550_init() 51 com_port->dll = speed; in NS16550_init() 52 com_port->dlm = speed >> 8; in NS16550_init()
|
| D | com.c | 76 comspeed(long speed) in comspeed() argument 82 if (speed <= 0) in comspeed() 84 x = divrnd((COM_FREQ / 16), speed); in comspeed() 87 err = divrnd((COM_FREQ / 16) * 1000, speed * x) - 1000; in comspeed()
|
| /netbsd/src/sys/arch/prep/stand/boot/ |
| D | ns16550.c | 43 NS16550_init(int addr, int speed) in NS16550_init() argument 50 speed = comspeed(speed); in NS16550_init() 51 com_port->dll = speed; in NS16550_init() 52 com_port->dlm = speed >> 8; in NS16550_init()
|
| D | com.c | 76 comspeed(long speed) in comspeed() argument 82 if (speed <= 0) in comspeed() 84 x = divrnd((COM_FREQ / 16), speed); in comspeed() 87 err = divrnd((COM_FREQ / 16) * 1000, speed * x) - 1000; in comspeed()
|
| /netbsd/src/sys/arch/rs6000/stand/boot/ |
| D | ns16550.c | 43 NS16550_init(int addr, int speed) in NS16550_init() argument 50 speed = comspeed(speed); in NS16550_init() 51 com_port->dll = speed; in NS16550_init() 52 com_port->dlm = (speed >> 8) & 0xff; in NS16550_init()
|
| D | com.c | 78 comspeed(long speed) in comspeed() argument 84 if (speed <= 0) in comspeed() 86 x = divrnd((COM_FREQ / 16), speed); in comspeed() 89 err = divrnd((quad_t)(COM_FREQ / 16) * 1000, speed * x) - 1000; in comspeed()
|
| /netbsd/src/sys/arch/mvmeppc/mvmeppc/ |
| D | platform_160x.c | 92 char speed[4], *cp; in p160x_match() local 111 speed[3] = '\0'; in p160x_match() 112 strncpy(speed, bid.speed_mpu, sizeof(bid.speed_mpu)); in p160x_match() 113 bootinfo.bi_mpuspeed = strtoul(speed, NULL, 10) * 1000000; in p160x_match() 114 strncpy(speed, bid.speed_bus, sizeof(bid.speed_bus)); in p160x_match() 115 bootinfo.bi_busspeed = strtoul(speed, NULL, 10) * 1000000; in p160x_match()
|
| /netbsd/src/sys/arch/cobalt/stand/boot/ |
| D | ns16550.c | 46 com_init(int addr, int speed) in com_init() argument 53 speed = comspeed(speed); in com_init() 54 CSR_WRITE(com_port, com_dlbl, speed); in com_init() 55 CSR_WRITE(com_port, com_dlbh, speed >> 8); in com_init()
|
| D | com.c | 75 comspeed(long speed) in comspeed() argument 82 if (speed <= 0) in comspeed() 84 x = divrnd((frequency / 16), speed); in comspeed() 87 err = divrnd(((quad_t)frequency) * 1000 / 16, speed * x) - 1000; in comspeed()
|
| /netbsd/src/sys/dev/scsipi/ |
| D | scsi_base.c | 141 int period, freq, speed, mbs; in scsi_print_xfer_mode() local 166 speed = freq; in scsi_print_xfer_mode() 168 speed *= 4; in scsi_print_xfer_mode() 171 speed *= 2; in scsi_print_xfer_mode() 172 mbs = speed / 1000; in scsi_print_xfer_mode() 175 speed % 1000); in scsi_print_xfer_mode() 177 aprint_normal(" (%dKB/s)", speed % 1000); in scsi_print_xfer_mode()
|