/src/usr.sbin/iostat/ |
iostat.c | 97 static int todo = 0; variable in typeref:typename:int 139 #define LAYOUT_TTY (((todo & SHOW_TOTALS) \ 171 #define LAYOUT_DRIVE_1 (LAYOUT_DRIVE_1_XSIZE + ((todo & SHOW_TOTALS) ? \ 173 ((todo&SHOW_UPDATES)? 2*LAYOUT_DRIVE_1_INCR+2 :0)) \ 175 #define LAYOUT_DRIVE_2 (((todo & SHOW_TOTALS) ? (LAYOUT_DRIVE_2_VOLUME + \ 177 ((todo&SHOW_UPDATES)? 2*LAYOUT_DRIVE_2_INCR+2 : 0))\ 180 #define LAYOUT_DRIVE_3 (((todo & SHOW_TOTALS) ? (LAYOUT_DRIVE_2_VOLUME + \ 182 ((todo&SHOW_UPDATES)? 2*LAYOUT_DRIVE_2_INCR+1 : 0))\ 187 /* TODO: X & Y stats layouts */ 224 todo |= SHOW_CPU [all...] |
/src/tests/lib/libc/sys/ |
t_pipe.c | 79 ssize_t sz, todo, done; local in function:ATF_TC_BODY 92 todo = 2 * 1024 * 1024; 93 REQUIRE_LIBC(f = malloc(todo), NULL); 126 printf("Expected: %#zx\n", (size_t)todo); 128 exit(done != todo); 141 /* We write exactly 'todo' bytes. The very first write(2) 145 while(todo > 0 && ((sz = write(pp[1], f, todo)) > 0)) 146 todo -= sz;
|
/src/sys/kern/ |
kern_physio.c | 114 size_t todo = bp->b_bufsize; local in function:physio_done 120 KASSERT(bp->b_bcount <= todo); 125 vunmapbuf(bp, todo); 126 uvm_vsunlock(bp->b_proc->p_vmspace, bp->b_data, todo); 130 if (__predict_false(done != todo)) { 158 ps->ps_resid += todo - done; 176 size_t todo = bp->b_bufsize; local in function:physio_biodone 180 KASSERT(bp->b_bcount <= todo); 182 if (done == todo) 269 size_t todo; local in function:physio [all...] |
sys_memfd.c | 147 vsize_t todo; local in function:memfd_read 164 todo = MIN(uio->uio_resid, mfd->mfd_size - *offp); 165 error = ubc_uiomove(mfd->mfd_uobj, uio, todo, UVM_ADV_SEQUENTIAL, 184 vsize_t todo; local in function:memfd_write 200 todo = uio->uio_resid; 210 todo = mfd->mfd_size - *offp; 218 error = ubc_uiomove(mfd->mfd_uobj, uio, todo, UVM_ADV_SEQUENTIAL,
|
/src/usr.sbin/sysinst/ |
txtwalk.h | 52 const char *todo; /* What to do ... */ member in struct:lookfor
|
txtwalk.c | 150 switch (item->todo[0]) { 152 p = item->todo;
|
/src/sys/arch/atari/stand/ahdilabel/ |
writedtab.c | 45 int pid, i, j, todo; local in function:ahdi_writedisktab 58 todo = ptable->nparts; 60 while (todo) { 93 todo--;
|
/src/sys/external/bsd/drm2/linux/ |
linux_irq_work.c | 62 SIMPLEQ_HEAD(, irq_work) todo = SIMPLEQ_HEAD_INITIALIZER(todo); 68 SIMPLEQ_CONCAT(&todo, &iwc->iwc_todo); 72 SIMPLEQ_FOREACH_SAFE(iw, &todo, iw_entry, next) {
|
/src/usr.sbin/mdsetimage/ |
mdsetimage.c | 186 ssize_t todo; local in function:main 203 todo = (left_to_copy > CHUNKSIZE) ? CHUNKSIZE : left_to_copy; 204 if ((rv = read(rfd, buf, todo)) != todo) { 210 if ((rv = write(wfd, buf, todo)) != todo) { 216 left_to_copy -= todo;
|
/src/tests/lib/libc/locale/ |
t_io.c | 142 size_t todo = MIN((size_t)len, ib->buflen - ib->off); local in function:readfn 144 memcpy(buf, ib->buf + ib->off, todo); 145 ib->off += todo; 146 return todo;
|
/src/sys/arch/sun3/sun3/ |
machdep.c | 530 int psize, todo, chunk; local in function:dumpsys 568 todo = dumpsize; /* pages */ 623 if (chunk > todo) 624 chunk = todo; 626 if ((todo & 0xf) == 0) 627 printf_nolog("\r%4d", todo); 634 --todo; 640 if ((todo & 0xf) == 0) 641 printf_nolog("\r%4d", todo); 651 } while (--todo > 0) [all...] |
/src/usr.bin/vmstat/ |
vmstat.c | 338 int c, todo, verbose, wide; local in function:main 346 reps = todo = verbose = wide = 0; 355 todo |= POOLCACHESTAT; 358 todo |= EVCNTSTAT; 361 todo |= FORKSTAT; 367 todo |= HASHSTAT; 370 todo |= INTRSTAT; 373 todo |= HISTLIST; 376 todo |= HASHLIST; 382 todo |= MEMSTAT [all...] |
/src/sys/netipsec/ |
ipsec_mbuf.c | 213 int todo, len, done, alloc; local in function:m_makespace 219 todo = remain; 220 while (todo > 0) { 221 if (todo > MHLEN) { 235 len = uimin(todo, len); 239 todo -= len;
|
/src/sys/arch/sun3/sun3x/ |
machdep.c | 518 int psize, todo, seg, segsz; local in function:dumpsys 554 todo = dumpsize; /* pages */ 593 while (todo && (segsz > 0)) { 596 if ((todo & 0xf) == 0) 597 printf_nolog("\r%4d", todo); 611 todo--;
|
/src/sys/uvm/ |
uvm_bio.c | 740 ubc_uiomove(struct uvm_object *uobj, struct uio *uio, vsize_t todo, int advice, 748 KASSERT(todo <= uio->uio_resid); 767 return ubc_uiomove_direct(uobj, uio, todo, advice, flags); 773 while (todo > 0) { 774 vsize_t bytelen = todo; 793 todo -= bytelen; 980 ubc_uiomove_direct(struct uvm_object *uobj, struct uio *uio, vsize_t todo, int advice, 988 KASSERT(todo <= uio->uio_resid); 994 while (todo > 0) { 995 vsize_t bytelen = todo; [all...] |
uvm_pdpolicy_clockpro.c | 454 int todo; local in function:nonresident_rotate 456 todo = target - cycle; 457 if (todo >= BUCKETSIZE * 2) { 458 todo = (todo % BUCKETSIZE) + BUCKETSIZE; 461 while (todo > 0) { 471 todo--; 1379 clockpro_dropswap(pageq_t *q, int *todo) 1387 if (*todo <= 0) { 1418 (*todo)-- 1429 int todo = swap_shortage; local in function:uvmpdpol_balancequeue [all...] |
uvm_pglist.c | 527 int todo; local in function:uvm_pglistalloc_s_ps 550 todo = num; 587 if (--todo == 0) { 608 printf("got %d pgs\n", num - todo); 610 return (num - todo); /* number of pages allocated */
|
/src/sys/arch/sun2/sun2/ |
machdep.c | 617 int psize, todo, chunk; local in function:dumpsys 655 todo = dumpsize; /* pages */ 705 if (chunk > todo) 706 chunk = todo; 708 if ((todo & 0xf) == 0) 709 printf_nolog("\r%4d", todo); 716 --todo; 722 if ((todo & 0xf) == 0) 723 printf_nolog("\r%4d", todo); 733 } while (--todo > 0) [all...] |
/src/sys/external/bsd/drm2/dist/drm/ |
drm_dp_aux_dev.c | 166 ssize_t todo = min(iov_iter_count(to), sizeof(buf)); local in function:auxdev_read_iter 173 res = drm_dp_dpcd_read(aux_dev->aux, pos, buf, todo); 209 ssize_t todo = min(iov_iter_count(from), sizeof(buf)); local in function:auxdev_write_iter 216 if (!copy_from_iter_full(buf, todo, from)) { 221 res = drm_dp_dpcd_write(aux_dev->aux, pos, buf, todo);
|
/src/sys/dev/ |
fss.c | 989 int error, todo, offset, len; local in function:fss_read_cluster 1039 todo = sc->sc_clresid; 1040 memset((char *)scp->fc_data + todo, 0, FSS_CLSIZE(sc) - todo); 1042 todo = FSS_CLSIZE(sc); 1045 mbp->b_bufsize = todo; 1047 mbp->b_resid = mbp->b_bcount = todo; 1051 while (todo > 0) { 1052 len = todo; 1055 if (btodb(FSS_CLTOB(sc, cl)) == dblk && len == todo) 1159 int error, i, todo, len, crotor, is_read; local in function:fss_bs_thread [all...] |
/src/sys/arch/evbppc/explora/dev/ |
le_elb.c | 226 int todo = len; local in function:le_copytodesc 237 todo /= sizeof(uint32_t); 238 while (todo-- > 0)
|
/src/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/engine/fifo/ |
nouveau_nvkm_engine_fifo_gf100.c | 181 u64 mask, todo; local in function:gf100_fifo_recover_work 188 for (todo = mask; engn = __ffs64(todo), todo; todo &= ~BIT_ULL(engn)) 192 for (todo = mask; engn = __ffs64(todo), todo; todo &= ~BIT_ULL(engn)) {
|
nouveau_nvkm_engine_fifo_gk104.c | 286 u32 engm, runm, todo; local in function:gk104_fifo_recover_work 298 for (todo = engm; todo && (engn = __ffs64(todo), 1); todo &= ~BIT(engn)) { 305 for (todo = runm; todo && (runl = __ffs(todo), 1); todo &= ~BIT(runl))
|
/src/sys/dev/ic/ |
tpm.c | 377 uint8_t todo; local in function:tpm_waitfor 383 todo = bits; 388 if (todo & TPM_STS_VALID) { 391 todo &= ~TPM_STS_VALID; 394 if ((rv = tpm_poll(sc, todo, to, chan)) != 0) 397 if ((todo & sc->sc_status) != todo) {
|
/src/sbin/restore/ |
dirs.c | 229 treescan(const char *pname, ino_t ino, long (*todo)(const char *, ino_t, int)) 242 (void) (*todo)(pname, ino, LEAF); 248 if ((*todo)(pname, ino, NODE) == FAIL) 279 treescan(locname, dp->d_ino, todo);
|