/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/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/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/usr.sbin/sysinst/ |
txtwalk.h | 52 const char *todo; /* What to do ... */ member in struct:lookfor
|
/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/kern/ |
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,
|
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...] |
/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/ |
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/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/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/sys/uvm/ |
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 */
|
uvm_page.c | 2076 size_t todo; local in function:uvm_direct_process 2096 todo = MIN(len, PAGE_SIZE - pgoff); 2098 error = pmap_direct_process(pa, pgoff, todo, process, arg); 2103 len -= todo;
|
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...] |
/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/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/ |
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...] |
cgd.c | 1593 size_t todo; local in function:cgd_cipher 1606 for (; len > 0; len -= todo) { 1607 todo = MIN(len, secsize); 1640 cipher(sc->sc_cdata.cf_priv, dst, src, todo, blkno_buf, dir); 1642 dst += todo; 1643 src += todo;
|
/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/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/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/sys/ufs/ffs/ |
ffs_alloc.c | 1619 long todo; local in function:ffs_blkfree_td 1623 todo = uimin(td->size, 1631 ffs_blkfree_cg(fs, td->devvp, td->bno, todo); 1633 td->bno += ffs_numfrags(fs, todo); 1634 td->size -= todo;
|
/src/sys/dev/ieee1394/ |
firewire.c | 1886 int node, err, i, todo, todo2, trys; local in function:fw_explore 1889 todo = 0; 1915 nodes[todo++] = node; 1918 for (trys = 0; todo > 0 && trys < 3; trys++) { 1920 for (i = 0; i < todo; i++) { 1928 todo = todo2;
|
/src/sys/arch/sparc64/sparc64/ |
machdep.c | 694 uint64_t todo; local in function:dumpsys 738 for (todo = 0, j = 0; j < phys_installed_size; j++) 739 todo += phys_installed[j].size; 752 if ((todo % (1024*1024)) == 0) 755 todo / (1024*1024)); 765 todo -= n; 1236 uvm_vsunlock(p->p_vmspace, bp->b_data, todo);
|