/netbsd-6-1-5-RELEASE/sys/arch/prep/stand/boot/ |
H A D | com.c | 78 #define divrnd(n, q) (((n)*2/(q)+1)/2) /* divide and round off */ macro 84 x = divrnd((COM_FREQ / 16), speed); 87 err = divrnd((COM_FREQ / 16) * 1000, speed * x) - 1000; 94 #undef divrnd macro
|
/netbsd-6-1-5-RELEASE/sys/arch/rs6000/stand/boot/ |
H A D | com.c | 80 #define divrnd(n, q) (((n)*2/(q)+1)/2) /* divide and round off */ macro 86 x = divrnd((COM_FREQ / 16), speed); 89 err = divrnd((quad_t)(COM_FREQ / 16) * 1000, speed * x) - 1000; 96 #undef divrnd macro
|
/netbsd-6-1-5-RELEASE/sys/arch/bebox/stand/boot/ |
H A D | com.c | 78 #define divrnd(n, q) (((n)*2/(q)+1)/2) /* divide and round off */ macro 84 x = divrnd((COM_FREQ / 16), speed); 87 err = divrnd((COM_FREQ / 16) * 1000, speed * x) - 1000; 94 #undef divrnd macro
|
/netbsd-6-1-5-RELEASE/sys/arch/cobalt/stand/boot/ |
H A D | com.c | 77 #define divrnd(n, q) (((n)*2/(q)+1)/2) /* divide and round off */ macro 84 x = divrnd((frequency / 16), speed); 87 err = divrnd(((quad_t)frequency) * 1000 / 16, speed * x) - 1000; 94 #undef divrnd macro
|
/netbsd-6-1-5-RELEASE/sys/arch/mmeye/stand/boot/ |
H A D | com.c | 116 #define divrnd(n, q) (((n)*2/(q)+1)/2) /* divide and round off */ macro 123 x = divrnd((frequency / 16), speed); 126 err = divrnd(((quad_t)frequency) * 1000 / 16, speed * x) - 1000; 133 #undef divrnd macro
|
H A D | scif.c | 54 #define divrnd(n, q) (((n)*2/(q)+1)/2) /* divide and round off */ macro 65 SHREG_SCBRR2 = divrnd(BOOT_PCLOCK, 32 * speed) - 1;
|
/netbsd-6-1-5-RELEASE/sys/arch/evbarm/stand/board/ |
H A D | ns16550.c | 66 #define divrnd(n, q) (((n)*2/(q)+1)/2) /* divide and round off */ macro 72 x = divrnd((NS16550_FREQ / 16), speed); 75 err = divrnd((((quad_t)NS16550_FREQ) / 16) * 1000, speed * x) - 1000; 81 #undef divrnd macro
|
H A D | sscom.c | 103 #define divrnd(n, q) (((n)*2/(q)+1)/2) /* divide and round off */ macro 110 x = divrnd(pclk / 16, speed); 113 err = divrnd(((quad_t)pclk) * 1000 / 16, speed * x) - 1000; 120 #undef divrnd macro
|
/netbsd-6-1-5-RELEASE/sys/arch/i386/stand/lib/ |
H A D | comio_direct.c | 85 #define divrnd(n, q) (((n)*2/(q)+1)/2) /* divide and round off */ macro 86 #define RATE_9600 divrnd((COM_FREQ / 16), 9600) 98 x = divrnd((COM_FREQ / 16), speed); 101 err = divrnd((COM_FREQ / 16) * 1000, speed * x) - 1000; 196 speed = divrnd((COM_FREQ / 16), rate);
|
/netbsd-6-1-5-RELEASE/sys/arch/landisk/stand/boot/ |
H A D | scifcons.c | 131 #define divrnd(n, q) (((n)*2/(q)+1)/2) /* divide and round off */ macro 155 scif_brr_write(divrnd(PCLOCK, 32 * bps) - 1);
|
/netbsd-6-1-5-RELEASE/external/gpl3/gdb/dist/gdb/ |
H A D | ser-go32.c | 720 #define divrnd(n, q) (((n) * 2 / (q) + 1) / 2) /* Divide and round off. */ 721 x = divrnd (COMTICK, rate); 725 err = divrnd (1000 * COMTICK, x * rate) - 1000; 730 #undef divrnd 716 #define divrnd macro 726 #undef divrnd macro
|
/netbsd-6-1-5-RELEASE/sys/arch/ofppc/ofppc/ |
H A D | machdep.c | 274 #define divrnd(n, q) (((n)*2/(q)+1)/2) macro 336 speed = divrnd((comfreq / 16), rate);
|
/netbsd-6-1-5-RELEASE/sys/arch/mips/sibyte/dev/ |
H A D | sbjcn.c | 364 #define divrnd(n, q) (((n)*2/(q)+1)/2) /* divide and round off */ macro 369 *brcp = divrnd(frequency / 20, speed) - 1; 373 x = divrnd(frequency / 20, speed); 376 err = divrnd(((quad_t)frequency) * 1000 / 20, speed * x) - 1000; 384 #undef divrnd macro
|
H A D | sbscn.c | 398 #define divrnd(n, q) (((n)*2/(q)+1)/2) /* divide and round off */ macro 403 *brcp = divrnd(frequency / 20, speed) - 1; 407 x = divrnd(frequency / 20, speed); 410 err = divrnd(((quad_t)frequency) * 1000 / 20, speed * x) - 1000; 418 #undef divrnd macro
|
/netbsd-6-1-5-RELEASE/sys/arch/x68k/dev/ |
H A D | com.c | 206 #define divrnd(n, q) (((n)*2/(q)+1)/2) /* divide and round off */ macro 214 x = divrnd((COM_FREQ / 16), speed); 217 err = divrnd((COM_FREQ / 16) * 1000, speed * x) - 1000; 224 #undef divrnd macro
|
/netbsd-6-1-5-RELEASE/sys/arch/atari/dev/ |
H A D | ser.c | 1302 #define divrnd(n, q) (((n)*2/(q)+1)/2) /* divide and round off */ macro 1310 x = divrnd((SER_FREQ / div), speed); 1326 err = divrnd((SER_FREQ / div) * 1000, speed * x) - 1000; 1346 #undef divrnd macro
|
/netbsd-6-1-5-RELEASE/sys/arch/sh3/dev/ |
H A D | scif.c | 278 #define divrnd(n, q) (((n)*2/(q)+1)/2) /* divide and round off */ macro 333 scif_brr_write(divrnd(sh_clock_get_pclock(), 32 * bps) - 1); 623 scif_brr_write(divrnd(sh_clock_get_pclock(), 32 * ospeed) -1);
|
H A D | sci.c | 230 #define divrnd(n, q) (((n)*2/(q)+1)/2) /* divide and round off */ macro 285 SHREG_SCBRR = divrnd(sh_clock_get_pclock(), 32 * bps) - 1;
|
/netbsd-6-1-5-RELEASE/sys/arch/arm/s3c2xx0/ |
H A D | sscom.c | 306 #define divrnd(n, q) (((n)*2/(q)+1)/2) /* divide and round off */ macro 312 x = divrnd(frequency / 16, speed); 315 err = divrnd(((quad_t)frequency) * 1000 / 16, speed * x) - 1000; 322 #undef divrnd macro
|
/netbsd-6-1-5-RELEASE/sys/dev/ic/ |
H A D | com.c | 271 #define divrnd(n, q) (((n)*2/(q)+1)/2) /* divide and round off */ macro 286 x = divrnd(frequency / divisor, speed); 289 err = divrnd(((quad_t)frequency) * 1000 / divisor, speed * x) - 1000; 296 #undef divrnd macro
|
/netbsd-6-1-5-RELEASE/sys/arch/evbarm/dev/ |
H A D | plcom.c | 302 #define divrnd(n, q) (((n)*2/(q)+1)/2) /* divide and round off */ macro 312 x = divrnd(frequency / 16, speed); 315 err = divrnd(((quad_t)frequency) * 1000 / 16, speed * x) - 1000; 322 #undef divrnd macro
|
/netbsd-6-1-5-RELEASE/sys/arch/arm/imx/ |
H A D | imxuart.c | 545 #define divrnd(n, q) (((n)*2/(q)+1)/2) /* divide and round off */ macro 566 err = divrnd(((uint64_t)imxuart_freq) * 1000 / imxuart_freqdiv, 579 #undef divrnd macro
|