HomeSort by: relevance | last modified time | path
    Searched defs:resid (Results 1 - 25 of 168) sorted by relevancy

1 2 3 4 5 6 7

  /src/sys/lib/libsa/
read.c 74 size_t resid; local in function:read
88 btodb(f->f_offset), bcount, dest, &resid);
91 f->f_offset += resid;
92 return resid;
95 resid = bcount;
96 if ((errno = FS_READ(f->f_ops)(f, dest, bcount, &resid)))
98 return (ssize_t)(bcount - resid);
write.c 70 size_t resid; local in function:write
85 btodb(f->f_offset), bcount, dest, &resid);
88 f->f_offset += resid;
89 return resid;
92 resid = bcount;
93 if ((errno = FS_WRITE(f->f_ops)(f, dest, bcount, &resid)))
  /src/lib/libc/stdio/
fread.c 56 size_t resid; local in function:fread
78 if ((resid = count * size) == 0)
84 total = resid;
93 while (resid > 0) {
96 fp->_bf._size = (int)resid;
100 count = (total - resid) / size;
104 resid -= fp->_r;
121 while (resid > (size_t)(r = fp->_r)) {
126 resid -= r;
131 return (total - resid) / size
    [all...]
  /src/sys/kern/
subr_kobj_vfs.c 97 size_t resid; local in function:kobj_read_vfs
127 UIO_SYSSPACE, IO_NODELOCKED, curlwp->l_cred, &resid,
130 if (error == 0 && resid != 0) {
kern_module_vfs.c 158 size_t resid; local in function:module_load_plist_vfs
201 UIO_SYSSPACE, IO_NODELOCKED, curlwp->l_cred, &resid, curlwp);
203 if (error == 0 && resid != 0) {
  /src/sys/arch/powerpc/ibm4xx/
copyinstr.c 50 size_t resid; local in function:copyinstr
73 resid = len;
75 "mtctr %[resid];" /* Set up counter */
99 "mfctr %[resid];" /* Restore resid */
102 [resid] "+r" (resid)
108 *done = len - resid;
109 if (resid == 0 && (char)tmp != '\0')
copyoutstr.c 50 size_t resid; local in function:copyoutstr
73 resid = len;
75 "mtctr %[resid];" /* Set up counter */
100 "mfctr %[resid];" /* Restore resid */
103 [resid] "+r" (resid)
109 *done = len - resid;
110 if (resid == 0 && (char)tmp != '\0')
  /src/sys/arch/acorn32/stand/lib/
riscosfile.c 97 int resid; local in function:riscos_read
105 error = xosgbpb_read(rf->file, buf, size, &resid);
106 *residp = resid;
117 int resid; local in function:riscos_write
125 error = xosgbpb_write(rf->file, buf, size, &resid);
126 *residp = resid;
riscosdisk.c 120 size_t resid; local in function:rodisk_strategy
134 &rd->privword, &ndaddr, &nbuf, &resid)) != NULL)
139 &rd->privword, &ndaddr, &nbuf, &resid)) != NULL)
146 size, NULL, &rd->privword, &ndaddr, &nbuf, &resid)) !=
152 *rsize = size - resid;
  /src/sys/dev/fdt/
fdt_dai.c 92 int len, resid; local in function:fdtbus_dai_acquire_index
99 for (n = 0, resid = len; resid > 0; n++) {
111 resid -= (dai_cells + 1) * 4;
fdt_pwm.c 92 int len, resid; local in function:fdtbus_pwm_acquire_index
99 for (n = 0, resid = len; resid > 0; n++) {
111 resid -= (pwm_cells + 1) * 4;
fdt_iommu.c 120 int len, resid; local in function:fdtbus_iommu_map
127 for (n = 0, resid = len; resid > 0; n++) {
141 resid -= (cells + 1) * 4;
fdt_dma.c 89 int len, resid; local in function:fdtbus_dma_get_index
102 for (n = 0, resid = len; resid > 0; n++) {
121 resid -= (dma_cells + 1) * 4;
fdt_gpio.c 85 int len, resid; local in function:fdtbus_gpio_count
92 for (n = 0, resid = len; resid > 0; n++) {
97 resid -= (gpio_cells + 1) * 4;
118 int len, resid; local in function:fdtbus_gpio_acquire_index
125 for (n = 0, resid = len; resid > 0; n++) {
144 resid -= (gpio_cells + 1) * 4;
fdt_mbox.c 104 int len, resid; local in function:fdtbus_mbox_get_index
117 for (n = 0, resid = len; resid > 0; n++) {
137 resid -= (mbox_cells + 1) * 4;
fdt_phy.c 89 int len, resid; local in function:fdtbus_phy_get_index
102 for (n = 0, resid = len; resid > 0; n++) {
125 resid -= (phy_cells + 1) * 4;
fdt_reset.c 89 int len, resid; local in function:fdtbus_reset_get_index
102 for (n = 0, resid = len; resid > 0; n++) {
120 resid -= (reset_cells + 1) * 4;
  /src/sys/rump/librump/rumpkern/
accessors.c 93 size_t resid; local in function:rump_uio_free
95 resid = uio->uio_resid;
99 return resid;
  /src/sys/arch/ia64/stand/common/
misc.c 106 size_t chunk, resid; local in function:kern_bzero
109 resid = len;
110 while (resid > 0) {
111 chunk = min(sizeof(buf), resid);
113 resid -= chunk;
  /src/sys/arch/sun3/dev/
dma.c 310 int trans, resid; local in function:espdmaintr
354 resid = 0;
362 (resid = (NCR_READ_REG(nsc, NCR_FFLAG) & NCRFIFO_FF)) != 0) {
363 NCR_DMA(("%s: empty esp FIFO of %d ", __func__, resid));
371 resid += (NCR_READ_REG(nsc, NCR_TCL) |
376 if (resid == 0 && sc->sc_dmasize == 65536 &&
379 resid = 65536;
382 trans = sc->sc_dmasize - resid;
396 NCR_DMA(("%s: tcl=%d, tcm=%d, tch=%d; trans=%d, resid=%d\n",
402 trans, resid));
    [all...]
si_obio.c 440 int resid, ntrans, tmo, udc_cnt; local in function:si_obio_dma_stop
493 resid = si->fifo_count & 0xFFFF;
494 ntrans = sc->sc_reqlen - resid;
498 printf("%s: resid=0x%x ntrans=0x%x\n",
499 __func__, resid, ntrans);
505 printf("si: fifo count: 0x%x\n", resid);
531 if (((udc_cnt * 2) - resid) == 2) {
si_vme.c 448 int resid, ntrans; local in function:si_vme_dma_stop
486 * one byte and the resid needs to be incremented.
491 resid = si->fifo_count & 0xFFFF;
493 if ((resid > 0) && (resid < sc->sc_reqlen))
494 resid++;
495 ntrans = sc->sc_reqlen - resid;
499 printf("%s: resid=0x%x ntrans=0x%x\n",
500 __func__, resid, ntrans);
505 printf("si: fifo count: 0x%x\n", resid);
    [all...]
  /src/sbin/nvmectl/
wdc.c 115 size_t resid; local in function:wdc_do_dump
136 resid = len > NVME_MAX_XFER_SIZE ? NVME_MAX_XFER_SIZE : len;
137 wdc_get_data(fd, opcode, resid, offset, cmd, buf, resid);
152 if (resid > len)
153 resid = len;
156 if (write(fd2, buf, resid) != (ssize_t)resid)
158 offset += resid;
159 len -= resid;
    [all...]
  /src/sys/arch/next68k/stand/boot/
scsi.c 395 int resid, state; local in function:dma_done
405 resid = sr[NCR_TCM]<<8 | sr[NCR_TCL];
406 DPRINTF(("DMA state = 0x%x, remain = %d.\n", state, resid));
427 resid = (sr[NCR_TCM]<<8) + sr[NCR_TCL];
431 DPRINTF(("DMA done. remain = %d, state = 0x%x, fifo = 0x%x.\n", resid, state, sr[NCR_FFLAG] & NCRFIFO_FF));
433 if (resid != 0)
436 printf("WARNING: unexpected %d characters remain in DMA\n",resid);
450 sc->dma_len -= resid;
  /src/sys/arch/sh3/sh3/
coff_exec.c 224 size_t siz, resid; local in function:coff_find_section
231 &resid, NULL);
236 siz -= resid;
240 resid, siz));
357 size_t resid; local in function:exec_coff_prep_zmagic
368 &resid, NULL);
407 size_t siz, resid;
427 UIO_SYSSPACE, IO_NODELOCKED, l->l_cred, &resid, NULL);
433 siz -= resid;
436 sizeof(struct coff_filehdr), resid, siz))
    [all...]

Completed in 27 milliseconds

1 2 3 4 5 6 7