/src/sys/arch/atari/stand/ahdilabel/ |
magic.c | 42 u_int nsec; local in function:check_magic 45 nsec = (BBMINSIZE + (DEV_BSIZE - 1)) / DEV_BSIZE; 46 bblk = disk_read(fd, offset, nsec);
|
write.c | 316 u_int nsec; local in function:invalidate_netbsd_label 318 nsec = (BBMINSIZE + (DEV_BSIZE - 1)) / DEV_BSIZE; 320 if ((bb = disk_read (fd, nbdsec, nsec)) == NULL) { 332 if (!disk_write (fd, nbdsec, nsec, bb)) {
|
/src/sys/arch/atari/stand/tostools/libtos/ |
bsdlabel.c | 48 u_int nsec; local in function:bsd_getlabel 51 nsec = (BBMINSIZE + (dd->bsize - 1)) / dd->bsize; 52 bblk = disk_read(dd, offset, nsec);
|
/src/sys/arch/i386/stand/efiboot/ |
efidisk_ll.c | 146 int nsec; local in function:readsects 167 while ((nsec = do_read(d, dblk, maxsecs, trbuf)) < 0) { 181 ra_end = dblk + nsec; 186 nsec = ra_end - dblk; 190 if (nsec > num) 191 nsec = num; 194 nsec * d->secsize); 196 buf += nsec * d->secsize; 197 num -= nsec; 198 dblk += nsec; [all...] |
/src/sys/arch/alpha/alpha/ |
qemu.c | 81 /* convert request from usec to nsec */ 82 const unsigned long nsec = usec * 1000; local in function:qemu_delay 83 KASSERT(nsec > usec); 86 const unsigned long finished = base + nsec; 110 qemu_set_alarm_relative(unsigned long nsec) 113 register unsigned long a1 __asm("$17") = nsec;
|
/src/sys/arch/hp300/stand/mkboot/ |
mkboot.c | 116 uint32_t count, nsec; local in function:main 175 nsec = hp300_btolifs(count); 179 lifd[0].dir_length = htobe32(nsec); 188 lseek(to, HP300_LIF_FILESTART + hp300_lifstob(nsec), SEEK_SET); 190 nsec = hp300_btolifs(count); 194 lifd[1].dir_length = htobe32(nsec); 205 + nsec), SEEK_SET); 207 nsec = hp300_btolifs(count); 211 lifd[2].dir_length = htobe32(nsec);
|
/src/sys/dev/goldfish/ |
gfrtc.c | 67 const uint64_t nsec = gfrtc_get_time(sc); local in function:gfrtc_gettime 69 tv->tv_sec = nsec / 1000000000; 70 tv->tv_usec = (nsec - tv->tv_sec * 1000000000) / 1000; 80 const uint64_t nsec = (tv->tv_sec * 1000000 + tv->tv_usec) * 1000; local in function:gfrtc_settime 81 const uint32_t hi = (uint32_t)(nsec >> 32); 82 const uint32_t lo = (uint32_t)nsec; 123 /* Delay for this many nsec. */
|
/src/sys/arch/atari/stand/tostools/aptck/ |
disklbl.c | 91 u_int nsec; local in function:bsd_label 94 nsec = (BBMINSIZE + (dd->bsize - 1)) / dd->bsize; 95 bblk = disk_read(dd, offset, nsec);
|
/src/sys/arch/i386/stand/lib/ |
biosdisk_ll.c | 213 int cyl, head, sec, nsec, spc, dblk32; local in function:do_read 220 nsec = d->sec - sec; 222 if (nsec > num) 223 nsec = num; 225 if (biosdisk_read(d->dev, cyl, head, sec, nsec, buf)) { 230 return nsec; 245 int nsec; local in function:readsects 266 while ((nsec = do_read(d, dblk, maxsecs, trbuf)) < 0) { 280 ra_end = dblk + nsec; 285 nsec = ra_end - dblk [all...] |
/src/sbin/dmesg/ |
dmesg.c | 79 fmtydhmsf(char *b, size_t l, intmax_t t, long nsec, int ht) 119 if (nsec) 120 nsec = (nsec + 500000) / 1000000; /* now milliseconds */ 122 if (nsec && ht == 2) { 123 while (prec > 0 && (nsec % 10) == 0) 124 --prec, nsec /= 10; 126 if (nsec || ht > 2) 127 APPENDS(s, prec, nsec); 134 pnsec(long nsec, long fsec, int scale 158 long nsec, fsec; local in function:main [all...] |
/src/sys/arch/atari/stand/edahdi/ |
edahdi.c | 337 u_int nsec; local in function:bsd_label 340 nsec = (BBMINSIZE + (DEV_BSIZE - 1)) / DEV_BSIZE; 341 bblk = disk_read(fd, offset, nsec);
|
/src/sys/arch/vax/boot/boot/ |
if_ni.c | 451 satime_t nsec = getsecs(); local in function:ni_get 456 ((getsecs() - nsec) < timeout)) 459 if ((getsecs() - nsec) >= timeout)
|
/src/sys/rump/librump/rumpkern/ |
intr.c | 101 long nsec; local in function:doclock 105 error = rumpuser_clock_gettime(RUMPUSER_CLOCK_ABSMONO, &sec, &nsec); 110 curclock.tv_nsec = nsec;
|
rump.c | 225 long nsec; local in function:rump_init_callback 270 rumpuser_clock_gettime(RUMPUSER_CLOCK_RELWALL, &sec, &nsec); 272 bts.tv_nsec = nsec;
|
emul.c | 143 uint64_t sec, nsec; local in function:kpause 149 nsec = (timeo % hz) * (1000000000 / hz); 150 rv = rumpuser_clock_sleep(RUMPUSER_CLOCK_RELWALL, sec, nsec); 220 long nsec, nsec_ini, nsec_now; local in function:rump_delay 227 nsec = (us % 1000) * 1000000; 230 nsec = (us % 1000000) * 1000; 236 tmp.tv_nsec = nsec;
|
/src/sys/lib/libsa/ |
dosfs.c | 519 u_int nsec, lsec, xdn, chk, sec, ent, x; local in function:lookup 537 nsec = !clus ? entsec(fs->dirents) : fs->spc; 549 for (sec = 0; sec < nsec; sec++) { 795 ioget(struct open_file *fd, u_int lsec, void *buf, u_int nsec) 804 secbyt(nsec), buf, &rsize);
|
/src/sbin/fsdb/ |
fsdb.c | 1614 int32_t nsec; local in function:dotime 1618 nsec = strtoul(++p, &val, 0); 1619 if (val == p || *val != '\0' || nsec >= 1000000000 || nsec < 0) { 1624 nsec = 0; 1627 warnx("date format: YYYYMMDDHHMMSS[.nsec]"); 1658 *rnsec = iswap32(nsec); 1665 int32_t nsec; local in function:CMDFUNC 1669 if (dotime(argv[1], &rsec, &nsec)) 1672 DIP_SET(curinode, mtimensec, nsec); 1681 int32_t nsec; local in function:CMDFUNC 1697 int32_t nsec; local in function:CMDFUNC 1713 int32_t nsec; local in function:CMDFUNC [all...] |