/netbsd/sys/arch/emips/ebus/ |
H A D | icap_ebus.c | 234 bp->b_resid = bp->b_bcount; in icapstrategy() 284 if ((bp->b_resid == 0) || bp->b_error) { in icapstart() 300 sc->sc_count = bp->b_resid; in icapstart() 400 if (count > bp->b_resid) in icap_ebus_intr() 401 count = bp->b_resid; in icap_ebus_intr() 402 bp->b_resid -= count; in icap_ebus_intr()
|
/netbsd/sys/arch/usermode/dev/ |
H A D | ld_thunkbus.c | 188 bp->b_resid = bp->b_bcount; in ld_thunkbus_ldstart() 223 bp->b_resid = 0; in ld_thunkbus_complete() 226 bp->b_resid = bp->b_bcount; in ld_thunkbus_complete() 289 bp->b_resid = 0; in ld_thunkbus_complete() 293 bp->b_resid = bp->b_bcount; in ld_thunkbus_complete()
|
/netbsd/sys/arch/amiga/dev/ |
H A D | z3rambd.c | 138 bp->b_resid = bp->b_bcount; in z3rambd_altmem_strategy() 150 memcpy((char *)bp->b_data, addr, bp->b_resid); in z3rambd_altmem_strategy() 152 memcpy(addr, (char *)bp->b_data, bp->b_resid); in z3rambd_altmem_strategy()
|
/netbsd/sys/dev/flash/ |
H A D | flash_io.c | 83 last = (bp->b_rawblkno * DEV_BSIZE + bp->b_resid - 1) in flash_io_getblock() 90 bp->b_rawblkno * DEV_BSIZE + bp->b_resid - 1); in flash_io_getblock() 219 memcpy(fio->fio_data + offset, bp->b_data, bp->b_resid); in flash_io_cache_write() 320 error = fio->fio_if->read(fio->fio_dev, offset, bp->b_resid, in flash_io_read() 354 bp->b_resid = 0; in flash_io_done()
|
/netbsd/sys/sys/ |
H A D | buf.h | 127 int b_resid; /* b: remaining I/O. */ member 171 #define b_cylinder b_resid /* Cylinder number for disksort(). */ 236 (bp)->b_resid = 0; \
|
/netbsd/sys/dev/ |
H A D | md.c | 440 bp->b_resid = bp->b_bcount; in mdstrategy() 447 xfer = bp->b_resid; in mdstrategy() 457 bp->b_resid -= xfer; in mdstrategy() 461 bp->b_resid = bp->b_bcount; in mdstrategy() 691 bp->b_resid = bp->b_bcount; in md_server_loop() 699 xfer = bp->b_resid; in md_server_loop() 710 bp->b_resid -= xfer; in md_server_loop()
|
H A D | fss.c | 316 bp->b_resid = bp->b_bcount; in fss_strategy() 1047 mbp->b_resid = mbp->b_bcount = todo; in fss_read_cluster() 1069 if (error == 0 && mbp->b_resid != 0) in fss_read_cluster() 1211 bp->b_resid = resid; in fss_bs_thread() 1261 bp->b_resid = bp->b_bcount; in fss_bs_thread() 1279 bp->b_resid = 0; in fss_bs_thread() 1289 nbp->b_resid = nbp->b_bcount = bp->b_bcount; in fss_bs_thread() 1300 if (error == 0 && nbp->b_resid != 0) in fss_bs_thread() 1303 bp->b_resid = bp->b_bcount; in fss_bs_thread() 1358 bp->b_resid = bp->b_bcount; in fss_bs_thread()
|
H A D | vnd.c | 577 bp->b_resid = bp->b_bcount; in vndstrategy() 829 bp->b_resid = resid; in handle_with_rdwr() 888 bp->b_resid = bp->b_bcount; in handle_with_strategy() 889 for (offset = 0, resid = bp->b_resid; /* true */; in handle_with_strategy() 990 disk_unbusy(&vnd->sc_dkdev, bp->b_bcount - bp->b_resid, in vndiodone() 999 obp->b_resid = bp->b_resid; in vndiodone() 2008 bp->b_resid = bp->b_bcount; in compstrategy() 2010 while (bp->b_resid > 0) { in compstrategy() 2065 if (length_in_buffer > bp->b_resid) in compstrategy() 2066 length_in_buffer = bp->b_resid; in compstrategy() [all …]
|
/netbsd/sys/kern/ |
H A D | kern_physio.c | 115 size_t done = bp->b_bcount - bp->b_resid; in physio_done() 121 KASSERT(bp->b_resid <= bp->b_bcount); in physio_done() 177 size_t done = bp->b_bcount - bp->b_resid; in physio_biodone() 181 KASSERT(bp->b_resid <= bp->b_bcount); in physio_biodone()
|
/netbsd/sys/dev/spi/ |
H A D | spiflash.c | 314 bp->b_resid = bp->b_bcount; in spiflash_strategy() 359 bp->b_resid = 0; in spiflash_process_done() 360 cnt += bp->b_bcount - bp->b_resid; in spiflash_process_done() 376 int cnt = bp->b_resid; in spiflash_process_read() 388 bp->b_resid -= cnt; in spiflash_process_read() 436 int resid = bp->b_resid; in spiflash_process_write()
|
/netbsd/sys/dev/ofw/ |
H A D | ofdisk.c | 295 bp->b_resid = 0; in ofdisk_strategy() 304 bp->b_resid = bp->b_bcount; in ofdisk_strategy() 323 bp->b_resid = bp->b_bcount; in ofdisk_strategy() 325 bp->b_resid = bp->b_bcount - read; in ofdisk_strategy() 327 disk_unbusy(&of->sc_dk, bp->b_bcount - bp->b_resid, in ofdisk_strategy()
|
/netbsd/sys/dev/sdmmc/ |
H A D | ld_sdmmc.c | 215 bp->b_resid = bp->b_bcount; in ld_sdmmc_task_cancel() 428 bp->b_resid = bp->b_bcount; in ld_sdmmc_restart() 459 bp->b_resid = bp->b_bcount; in ld_sdmmc_dobio() 481 bp->b_resid = bp->b_bcount; in ld_sdmmc_dobio() 492 bp->b_resid = bp->b_bcount; in ld_sdmmc_dobio() 494 bp->b_resid = 0; in ld_sdmmc_dobio()
|
/netbsd/sys/ufs/mfs/ |
H A D | mfs_vnops.c | 157 bp->b_resid = 0; in mfs_strategy() 168 bp->b_resid = 0; in mfs_strategy() 192 bp->b_resid = 0; in mfs_doio()
|
/netbsd/sys/arch/vax/vax/ |
H A D | ctu.c | 215 bp->b_resid = bp->b_bcount; in ctustrategy() 244 bp->b_resid = bp->b_bcount; in ctustart() 329 bp->b_resid = 0; in cturintr() 393 bp->b_resid = 0; in cturintr()
|
/netbsd/sys/dev/scsipi/ |
H A D | st.c | 1163 bp->b_resid = bp->b_bcount; in ststrategy() 1378 bp->b_resid = xs->resid; in stdone() 1384 if (bp->b_resid > bp->b_bcount || bp->b_resid < 0) in stdone() 2202 bp->b_resid = xs->resid; in st_interpret_sense() 2209 bp->b_resid = xs->resid; in st_interpret_sense() 2217 bp->b_resid = 0; in st_interpret_sense() 2224 bp->b_resid = xs->resid; in st_interpret_sense() 2234 bp->b_resid = xs->resid; in st_interpret_sense() 2267 bp->b_resid = xs->resid; in st_interpret_sense() 2334 bp->b_resid = xs->resid; in st_interpret_sense() [all …]
|
/netbsd/sys/arch/dreamcast/dev/ |
H A D | gdrom.c | 529 bp->b_resid = bp->b_bcount; in gdromstrategy() 558 bp->b_resid = resid; in gdrom_start() 560 bp->b_resid = bp->b_bcount; in gdrom_start() 566 disk_unbusy(&sc->sc_dk, bp->b_bcount - bp->b_resid, in gdrom_start()
|
/netbsd/sys/nfs/ |
H A D | nfs_bio.c | 191 n = MIN(uio->uio_resid, MAXPATHLEN - bp->b_resid); in nfs_bioread() 259 if (bp->b_bcount == bp->b_resid || in nfs_bioread() 262 KASSERT(bp->b_bcount != bp->b_resid || in nfs_bioread() 277 bp->b_resid); in nfs_bioread() 321 if (uio->uio_resid < (bp->b_bcount - bp->b_resid - on)) { in nfs_bioread() 325 n = bp->b_bcount - bp->b_resid - on; in nfs_bioread() 357 if ((on + n) < bp->b_bcount - bp->b_resid) { in nfs_bioread() 1223 bp->b_resid = uiop->uio_resid; in nfs_doio()
|
/netbsd/sys/fs/puffs/ |
H A D | puffs_subr.c | 107 bp->b_resid = read_msg->pvnr_resid; in puffs_parkdone_asyncbioread() 132 bp->b_resid = write_msg->pvnr_resid; in puffs_parkdone_asyncbiowrite()
|
/netbsd/sys/dev/ata/ |
H A D | ld_ataraid.c | 356 bp->b_resid = bp->b_bcount; in ld_ataraid_start_span() 409 bp->b_resid = bp->b_bcount; in ld_ataraid_start_raid0() 568 bp->b_resid -= count; in ld_ataraid_iodone_raid0() 569 if (bp->b_resid < 0) in ld_ataraid_iodone_raid0() 571 if (bp->b_resid == 0) in ld_ataraid_iodone_raid0()
|
/netbsd/sys/arch/x68k/dev/ |
H A D | bmd.c | 298 bp->b_resid = bp->b_bcount; in bmdstrategy() 309 resid = bp->b_resid; in bmdstrategy() 336 bp->b_resid -= pg_resid; in bmdstrategy()
|
/netbsd/sys/fs/udf/ |
H A D | udf_strat_direct.c | 283 buf->b_resid, buf->b_bcount, buf->b_bufsize)); in udf_queue_buf_direct() 293 buf->b_resid, buf->b_bcount, buf->b_bufsize)); in udf_queue_buf_direct() 306 buf, buf->b_udf_c_type, buf->b_resid, buf->b_bcount, in udf_queue_buf_direct()
|
/netbsd/sys/dev/pci/ |
H A D | ld_amr.c | 188 bp->b_resid = bp->b_bcount; in ld_amr_handler() 190 bp->b_resid = 0; in ld_amr_handler()
|
/netbsd/sys/dev/ic/ |
H A D | ld_cac.c | 212 bp->b_resid = bp->b_bcount; in ld_cac_done() 214 bp->b_resid = 0; in ld_cac_done()
|
/netbsd/sys/arch/dreamcast/dev/maple/ |
H A D | mmemcard.c | 336 bp->b_resid = bp->b_bcount; in mmemdetach() 341 bp->b_resid = bp->b_bcount; in mmemdetach() 747 bp->b_resid = bp->b_bcount - (cnt * sc->sc_bsize); in mmemstrategy() 761 done: bp->b_resid = bp->b_bcount; in mmemstrategy() 783 sc->sc_cnt = howmany(bp->b_bcount - bp->b_resid, sc->sc_bsize); in mmemstart() 884 bp->b_resid = bp->b_bcount - bcnt; in mmemdone()
|
/netbsd/sys/dev/qbus/ |
H A D | ts.c | 377 bp->b_resid = cmd; in tscommand() 417 switch ((int)bp->b_resid) { in tsstart() 448 (int)bp->b_resid); in tsstart() 815 bp->b_resid = sc->sc_vts->status.rbpcr; in tsintr() 1004 if (spaceop && bp->b_resid) { in tsioctl()
|