Home
last modified time | relevance | path

Searched refs:bio_offset (Results 1 – 25 of 59) sorted by relevance

123

/freebsd/sys/dev/cfi/
H A Dcfi_disk.c184 if (bp->bio_offset > sc->sc_size) { in cfi_disk_read()
192 while (resid > 0 && bp->bio_offset < sc->sc_size) { in cfi_disk_read()
193 *dp++ = cfi_read_raw(sc, bp->bio_offset); in cfi_disk_read()
194 bp->bio_offset += 1, resid -= 1; in cfi_disk_read()
198 while (resid > 0 && bp->bio_offset < sc->sc_size) { in cfi_disk_read()
199 *dp++ = cfi_read_raw(sc, bp->bio_offset); in cfi_disk_read()
200 bp->bio_offset += 2, resid -= 2; in cfi_disk_read()
204 while (resid > 0 && bp->bio_offset < sc->sc_size) { in cfi_disk_read()
205 *dp++ = cfi_read_raw(sc, bp->bio_offset); in cfi_disk_read()
206 bp->bio_offset += 4, resid -= 4; in cfi_disk_read()
[all …]
/freebsd/sys/dev/firewire/
H A Dfwmem.c368 if (iolen == 4 && (bp->bio_offset & 3) == 0) in fwmem_strategy()
371 bp->bio_offset >> 32, bp->bio_offset & 0xffffffff, in fwmem_strategy()
376 bp->bio_offset >> 32, bp->bio_offset & 0xffffffff, in fwmem_strategy()
379 if (iolen == 4 && (bp->bio_offset & 3) == 0) in fwmem_strategy()
382 bp->bio_offset >> 32, bp->bio_offset & 0xffffffff, in fwmem_strategy()
387 bp->bio_offset >> 32, bp->bio_offset & 0xffffffff, in fwmem_strategy()
/freebsd/sys/geom/
H A Dgeom_io.c213 bp2->bio_offset = bp->bio_offset; in g_clone_bio()
249 bp2->bio_offset = bp->bio_offset; in g_duplicate_bio()
383 bp->bio_offset = cp->provider->mediasize; in g_io_flush()
444 if (bp->bio_offset % pp->sectorsize) in g_io_check()
450 if (bp->bio_offset < 0) in g_io_check()
452 if (bp->bio_offset > pp->mediasize) in g_io_check()
456 excess = bp->bio_offset + bp->bio_length; in g_io_check()
534 KASSERT(bp->bio_offset % cp->provider->sectorsize == 0, in g_io_request()
536 bp->bio_offset, cp->provider->sectorsize)); in g_io_request()
647 (intmax_t)bp->bio_offset, (intmax_t)bp->bio_length); in g_io_deliver()
[all …]
H A Dgeom_slice.c179 if (bp2->bio_offset + bp2->bio_length > gsl->length) in g_slice_finish_hot()
180 bp2->bio_length = gsl->length - bp2->bio_offset; in g_slice_finish_hot()
182 bp2->bio_offset += gsl->offset; in g_slice_finish_hot()
233 if (bp->bio_offset > gsl->length) { in g_slice_start()
241 t = bp->bio_offset + gsl->offset; in g_slice_start()
279 if (bp2->bio_offset + bp2->bio_length > gsl->length) in g_slice_start()
280 bp2->bio_length = gsl->length - bp2->bio_offset; in g_slice_start()
282 bp2->bio_offset += gsl->offset; in g_slice_start()
H A Dgeom_ccd.c479 bn = bp->bio_offset / cs->sc_secsize; in g_ccd_start()
646 cbp->bio_offset = dbtob(cbn + cboff + cs->sc_offset); in ccdbuffer()
662 cbp->bio_offset = cb[0]->bio_offset; in ccdbuffer()
/freebsd/sys/geom/eli/
H A Dg_eli_integrity.c227 dstoff = bp->bio_offset; in g_eli_auth_read_done()
342 cbp->bio_offset = (bp->bio_offset / bp->bio_to->sectorsize) * sc->sc_bytes_per_sector; in g_eli_auth_write_done()
354 cbp2->bio_offset = cbp->bio_offset + maxphys; in g_eli_auth_write_done()
398 cbp->bio_offset = (bp->bio_offset / bp->bio_to->sectorsize) * sc->sc_bytes_per_sector; in g_eli_auth_read()
422 cbp2->bio_offset = cbp->bio_offset + maxphys; in g_eli_auth_read()
476 dstoff = (bp->bio_offset / bp->bio_to->sectorsize) * sc->sc_bytes_per_sector; in g_eli_auth_run()
/freebsd/sys/geom/cache/
H A Dg_cache.c179 KASSERT(OFF2BNO(bp->bio_offset, sc) <= dp->d_bno, ("wrong entry")); in g_cache_deliver()
180 KASSERT(OFF2BNO(bp->bio_offset + bp->bio_length - 1, sc) >= in g_cache_deliver()
184 off = MAX(bp->bio_offset, off1); in g_cache_deliver()
185 len = MIN(bp->bio_offset + bp->bio_length, off1 + sc->sc_bsize) - off; in g_cache_deliver()
191 bp->bio_data + (off - bp->bio_offset), len); in g_cache_deliver()
267 OFF2BNO(bp->bio_offset + bp->bio_completed, sc)); in g_cache_read()
295 dp->d_bno = OFF2BNO(bp->bio_offset + bp->bio_completed, sc); in g_cache_read()
306 cbp->bio_offset = BNO2OFF(dp->d_bno, sc); in g_cache_read()
320 bno = OFF2BNO(bp->bio_offset, sc); in g_cache_invalidate()
321 lim = OFF2BNO(bp->bio_offset + bp->bio_length - 1, sc); in g_cache_invalidate()
[all …]
/freebsd/sys/kern/
H A Dsubr_disk.c168 head->last_offset = bp->bio_offset + bp->bio_length; in bioq_remove()
192 head->last_offset = bp->bio_offset; in bioq_insert_head()
206 head->last_offset = bp->bio_offset; in bioq_insert_tail()
236 return ((uoff_t)(bp->bio_offset - head->last_offset)); in bioq_bio_key()
/freebsd/sys/geom/vinum/
H A Dgeom_vinum_plex.c64 boff = bp->bio_offset; in gv_plex_start()
273 cbp->bio_offset = real_off + s->drive_offset; in gv_plex_normal_request()
580 bp->bio_offset = offset; in gv_sync_request()
622 err = gv_sync_request(from, to, bp->bio_offset, bp->bio_length, in gv_sync_complete()
630 if (bp->bio_offset + bp->bio_length >= from->size) { in gv_sync_complete()
641 offset = bp->bio_offset + bp->bio_length; in gv_sync_complete()
695 bp->bio_offset = offset; in gv_grow_request()
729 err = gv_grow_request(p, bp->bio_offset, bp->bio_length, in gv_grow_complete()
741 if (bp->bio_offset + bp->bio_length >= origsize) { in gv_grow_complete()
759 offset = bp->bio_offset + bp->bio_length; in gv_grow_complete()
[all …]
/freebsd/sys/geom/journal/
H A Dg_journal.c706 bp->bio_offset = cp->provider->mediasize - cp->provider->sectorsize; in g_journal_metadata_update()
780 bp->bio_offset = start; in g_journal_new_bio()
796 g_journal_insert((head), (bp)->bio_offset, \
797 (bp)->bio_offset + (bp)->bio_length, (bp)->bio_joffset, \
820 cstart = cbp->bio_offset; in g_journal_insert()
821 cend = cbp->bio_offset + cbp->bio_length; in g_journal_insert()
878 cbp->bio_offset = nstart; in g_journal_insert()
975 cbp->bio_offset = nend; in g_journal_insert()
1008 (intmax_t)cbp->bio_offset, in g_journal_insert()
1043 if (pbp->bio_offset + pbp->bio_length != cbp->bio_offset) { in g_journal_optimize()
[all …]
/freebsd/sys/geom/raid/
H A Dtr_raid1.c256 bp->bio_offset = sd->sd_rebuild_pos; in g_raid_tr_raid1_rebuild_some()
266 bp->bio_offset, bp->bio_length, NULL, bp); in g_raid_tr_raid1_rebuild_some()
499 bp->bio_offset + bp->bio_length > sd->sd_rebuild_pos)) in g_raid_tr_raid1_select_read_disk()
507 if (G_RAID_SUBDISK_POS(sd) == bp->bio_offset) in g_raid_tr_raid1_select_read_disk()
511 if (ABS(G_RAID_SUBDISK_POS(sd) - bp->bio_offset) < in g_raid_tr_raid1_select_read_disk()
568 if (bp->bio_offset >= sd->sd_rebuild_pos) in g_raid_tr_iostart_raid1_write()
734 bp->bio_offset, bp->bio_length); in g_raid_tr_iodone_raid1()
816 cbp->bio_offset, cbp->bio_length, pbp, cbp); in g_raid_tr_iodone_raid1()
878 g_raid_unlock_range(sd->sd_volume, bp->bio_offset, in g_raid_tr_iodone_raid1()
H A Dtr_raid1e.c472 bp->bio_offset = offset + start + in g_raid_tr_raid1e_rebuild_some()
702 V2P(vol, bp->bio_offset, &no, &offset, &start); in g_raid_tr_iostart_raid1e_read()
719 cbp->bio_offset = offset + start; in g_raid_tr_iostart_raid1e_read()
772 V2P(vol, bp->bio_offset, &no, &offset, &start); in g_raid_tr_iostart_raid1e_write()
794 cbp->bio_offset = offset + start; in g_raid_tr_iostart_raid1e_write()
923 bp->bio_offset = nsd->sd_rebuild_pos; in g_raid_tr_iodone_raid1e()
1021 P2V(vol, sd->sd_pos, bp->bio_offset, &virtual, &copy); in g_raid_tr_iodone_raid1e()
1034 cbp->bio_offset = offset + start; in g_raid_tr_iodone_raid1e()
1073 P2V(vol, sd->sd_pos, bp->bio_offset, &virtual, &copy); in g_raid_tr_iodone_raid1e()
1085 cbp->bio_offset = offset + start; in g_raid_tr_iodone_raid1e()
[all …]
H A Dtr_raid0.c215 nstripe = bp->bio_offset / strip_size; in g_raid_tr_iostart_raid0()
217 start = bp->bio_offset % strip_size; in g_raid_tr_iostart_raid0()
231 cbp->bio_offset = offset + start; in g_raid_tr_iostart_raid0()
H A Dtr_raid5.c228 nstripe = bp->bio_offset / strip_size; in g_raid_tr_iostart_raid5_read()
230 start = bp->bio_offset % strip_size; in g_raid_tr_iostart_raid5_read()
278 cbp->bio_offset = offset + start; in g_raid_tr_iostart_raid5_read()
H A Dtr_concat.c228 offset = bp->bio_offset; in g_raid_tr_iostart_concat()
251 cbp->bio_offset = offset; in g_raid_tr_iostart_concat()
/freebsd/sys/dev/nvdimm/
H A Dnvdimm_spa.c302 trunc_page(bp->bio_offset) + PAGE_SIZE * i, mattr); in nvdimm_spa_g_all_unmapped()
306 pmap_copy_pages(ma, bp->bio_offset & PAGE_MASK, bp->bio_ma, in nvdimm_spa_g_all_unmapped()
310 bp->bio_offset & PAGE_MASK, bp->bio_length); in nvdimm_spa_g_all_unmapped()
366 bp->bio_offset; in nvdimm_spa_g_thread()
371 auio.uio_offset = bp->bio_offset; in nvdimm_spa_g_thread()
391 auio.uio_offset = bp->bio_offset; in nvdimm_spa_g_thread()
/freebsd/sys/geom/union/
H A Dg_union.c700 bp->bio_offset = 0; in g_union_ctl_commit()
707 bp->bio_offset += len2rd; in g_union_ctl_commit()
738 bp->bio_offset += len2wt; in g_union_ctl_commit()
813 wip->wip_start = bp->bio_offset + sc->sc_offset; in g_union_start()
831 cbp->bio_offset = bp->bio_offset + sc->sc_offset; in g_union_start()
949 cbp->bio_offset = wip->wip_start; in g_union_doio()
1032 cbp->bio_offset += offset; in g_union_doio()
1082 KASSERT(bp->bio_offset % sc->sc_sectorsize == 0, in g_union_setmap()
1086 start = bp->bio_offset / sc->sc_sectorsize; in g_union_setmap()
1118 KASSERT(bp->bio_offset % sc->sc_sectorsize == 0, in g_union_getmap()
[all …]
/freebsd/sys/dev/nvme/
H A Dnvme_ns.c388 *num_bios = nvme_get_num_segments(bp->bio_offset, bp->bio_bcount, in nvme_construct_child_bios()
396 cur_offset = bp->bio_offset; in nvme_construct_child_bios()
406 child->bio_offset = cur_offset; in nvme_construct_child_bios()
470 num_bios = nvme_get_num_segments(bp->bio_offset, in nvme_ns_bio_process()
497 htole64(bp->bio_offset/nvme_ns_get_sector_size(ns)); in nvme_ns_bio_process()
H A Dnvme_ns_cmd.c61 lba = bp->bio_offset / nvme_ns_get_sector_size(ns); in nvme_ns_cmd_read_bio()
99 lba = bp->bio_offset / nvme_ns_get_sector_size(ns); in nvme_ns_cmd_write_bio()
/freebsd/sys/powerpc/powernv/
H A Dopal_flash.c302 bp->bio_error = opalflash_erase(sc, bp->bio_offset, in opalflash_task()
306 bp->bio_error = opalflash_read(sc, bp->bio_offset, in opalflash_task()
310 bp->bio_error = opalflash_write(sc, bp->bio_offset, in opalflash_task()
/freebsd/sys/geom/uzip/
H A Dg_uzip.c178 ofs = bp->bio_offset + bp->bio_completed; in g_uzip_cached()
218 (bp)->bio_offset, (pp)->sectorsize)
238 ofs = bp->bio_offset + bp->bio_completed; in g_uzip_request()
290 bp2->bio_offset = TOFF_2_BOFF(sc, pp, start_blk); in g_uzip_request()
304 (intmax_t)bp2->bio_length, (intmax_t)bp2->bio_offset)); in g_uzip_request()
315 (intmax_t)bp2->bio_length, (intmax_t)bp2->bio_offset)); in g_uzip_request()
375 ofs = bp2->bio_offset + bp2->bio_completed; in g_uzip_do()
467 (intmax_t)bp->bio_offset, (intmax_t)bp->bio_length, bp->bio_data)); in g_uzip_start()
/freebsd/sys/geom/stripe/
H A Dg_stripe.c277 g_stripe_copy(sc, bp->bio_data, bp->bio_caller1, bp->bio_offset, in g_stripe_done()
326 cbp->bio_offset = offset; in g_stripe_start_fast()
378 cbp->bio_offset = offset; in g_stripe_start_fast()
405 cbp->bio_offset, cbp->bio_length, 0); in g_stripe_start_fast()
455 cbp->bio_offset = offset; in g_stripe_start_economic()
486 cbp->bio_offset = offset; in g_stripe_start_economic()
612 /* nstripe = bp->bio_offset / stripesize; */ in g_stripe_start()
613 nstripe = bp->bio_offset >> (off_t)sc->sc_stripebits; in g_stripe_start()
617 /* start = bp->bio_offset % stripesize; */ in g_stripe_start()
618 start = bp->bio_offset in g_stripe_start()
[all...]
/freebsd/sys/geom/mirror/
H A Dg_mirror.c1238 rstart = bp->bio_offset; in g_mirror_sync_collision()
1239 rend = bp->bio_offset + bp->bio_length; in g_mirror_sync_collision()
1247 sstart = sbp->bio_offset; in g_mirror_sync_collision()
1248 send = sbp->bio_offset + sbp->bio_length; in g_mirror_sync_collision()
1268 sstart = sbp->bio_offset; in g_mirror_regular_collision()
1269 send = sbp->bio_offset + sbp->bio_length; in g_mirror_regular_collision()
1271 rstart = bp->bio_offset; in g_mirror_regular_collision()
1272 rend = bp->bio_offset + bp->bio_length; in g_mirror_regular_collision()
1491 if (bp != NULL && bp->bio_offset < offset) in g_mirror_sync_request()
1492 offset = bp->bio_offset; in g_mirror_sync_request()
[all …]
/freebsd/sys/geom/linux_lvm/
H A Dg_linux_lvm.c175 b->bio_error, b->bio_offset, b->bio_length, in g_llvm_done()
229 offset = bp->bio_offset; /* virtual offset and length */ in g_llvm_start()
253 cb->bio_offset = offset + sg->sg_pvoffset; in g_llvm_start()
270 cb->bio_offset = in g_llvm_start()
290 pv->pv_name, cb->bio_offset); in g_llvm_start()
304 cb->bio_to->name, cb->bio_offset, cb->bio_length); in g_llvm_start()
/freebsd/sys/dev/nvmf/host/
H A Dnvmf_ns.c182 lba = bio->bio_offset / ns->lba_size; in nvmf_ns_submit_bio()
187 lba = bio->bio_offset / ns->lba_size; in nvmf_ns_submit_bio()
199 lba = bio->bio_offset / ns->lba_size; in nvmf_ns_submit_bio()

123