Home
last modified time | relevance | path

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

123

/trueos/sys/dev/cfi/
HDcfi_disk.c185 if (bp->bio_offset > sc->sc_size) { in cfi_disk_read()
193 while (resid > 0 && bp->bio_offset < sc->sc_size) { in cfi_disk_read()
194 *dp++ = cfi_read_raw(sc, bp->bio_offset); in cfi_disk_read()
195 bp->bio_offset += 1, resid -= 1; in cfi_disk_read()
199 while (resid > 0 && bp->bio_offset < sc->sc_size) { in cfi_disk_read()
200 *dp++ = cfi_read_raw(sc, bp->bio_offset); in cfi_disk_read()
201 bp->bio_offset += 2, resid -= 2; in cfi_disk_read()
205 while (resid > 0 && bp->bio_offset < sc->sc_size) { in cfi_disk_read()
206 *dp++ = cfi_read_raw(sc, bp->bio_offset); in cfi_disk_read()
207 bp->bio_offset += 4, resid -= 4; in cfi_disk_read()
[all …]
/trueos/sys/geom/
HDgeom_io.c204 bp2->bio_offset = bp->bio_offset; in g_clone_bio()
237 bp2->bio_offset = bp->bio_offset; in g_duplicate_bio()
301 bp->bio_offset = cp->provider->mediasize; in g_io_flush()
351 if (bp->bio_offset % pp->sectorsize) in g_io_check()
357 if (bp->bio_offset < 0) in g_io_check()
359 if (bp->bio_offset > pp->mediasize) in g_io_check()
363 excess = bp->bio_offset + bp->bio_length; in g_io_check()
495 KASSERT(bp->bio_offset % cp->provider->sectorsize == 0, in g_io_request()
497 bp->bio_offset, cp->provider->sectorsize)); in g_io_request()
622 (intmax_t)bp->bio_offset, (intmax_t)bp->bio_length); in g_io_deliver()
[all …]
HDgeom_slice.c166 if (bp2->bio_offset + bp2->bio_length > gsl->length) in g_slice_finish_hot()
167 bp2->bio_length = gsl->length - bp2->bio_offset; in g_slice_finish_hot()
169 bp2->bio_offset += gsl->offset; in g_slice_finish_hot()
220 if (bp->bio_offset > gsl->length) { in g_slice_start()
228 t = bp->bio_offset + gsl->offset; in g_slice_start()
266 if (bp2->bio_offset + bp2->bio_length > gsl->length) in g_slice_start()
267 bp2->bio_length = gsl->length - bp2->bio_offset; in g_slice_start()
269 bp2->bio_offset += gsl->offset; in g_slice_start()
HDgeom_aes.c148 o = bp->bio_offset - sc->sectorsize; in g_aes_read_done()
192 bp2->bio_offset += sc->sectorsize; in g_aes_start()
202 bp2->bio_offset += sc->sectorsize; in g_aes_start()
208 o = bp->bio_offset; in g_aes_start()
226 bp2->bio_offset += sc->sectorsize; in g_aes_start()
/trueos/sys/dev/firewire/
HDfwmem.c380 if (iolen == 4 && (bp->bio_offset & 3) == 0) in fwmem_strategy()
383 bp->bio_offset >> 32, bp->bio_offset & 0xffffffff, in fwmem_strategy()
388 bp->bio_offset >> 32, bp->bio_offset & 0xffffffff, in fwmem_strategy()
391 if (iolen == 4 && (bp->bio_offset & 3) == 0) in fwmem_strategy()
394 bp->bio_offset >> 32, bp->bio_offset & 0xffffffff, in fwmem_strategy()
399 bp->bio_offset >> 32, bp->bio_offset & 0xffffffff, in fwmem_strategy()
/trueos/sys/geom/sched/
HDsubr_disk.c120 head->last_offset = bp->bio_offset + bp->bio_length; in gs_bioq_remove()
141 head->last_offset = bp->bio_offset; in gs_bioq_insert_head()
151 head->last_offset = bp->bio_offset; in gs_bioq_insert_tail()
181 return ((uoff_t)(bp->bio_offset - head->last_offset)); in gs_bioq_bio_key()
HDgs_rr.c505 if (qp->q_lastoff > bp->bio_offset) in g_rr_update_seekdist()
506 dist = qp->q_lastoff - bp->bio_offset; in g_rr_update_seekdist()
508 dist = bp->bio_offset - qp->q_lastoff; in g_rr_update_seekdist()
513 qp->q_lastoff = bp->bio_offset + bp->bio_length; in g_rr_update_seekdist()
/trueos/sys/geom/eli/
HDg_eli_integrity.c198 coroff = bp->bio_offset + in g_eli_auth_read_done()
308 cbp->bio_offset = (bp->bio_offset / bp->bio_to->sectorsize) * sc->sc_bytes_per_sector; in g_eli_auth_write_done()
320 cbp2->bio_offset = cbp->bio_offset + MAXPHYS; in g_eli_auth_write_done()
368 cbp->bio_offset = (bp->bio_offset / bp->bio_to->sectorsize) * sc->sc_bytes_per_sector; in g_eli_auth_read()
381 cbp2->bio_offset = cbp->bio_offset + MAXPHYS; in g_eli_auth_read()
436 dstoff = (bp->bio_offset / bp->bio_to->sectorsize) * sc->sc_bytes_per_sector; in g_eli_auth_run()
/trueos/sys/geom/journal/
HDg_journal.c699 bp->bio_offset = cp->provider->mediasize - cp->provider->sectorsize; in g_journal_metadata_update()
772 bp->bio_offset = start; in g_journal_new_bio()
788 g_journal_insert((head), (bp)->bio_offset, \
789 (bp)->bio_offset + (bp)->bio_length, (bp)->bio_joffset, \
812 cstart = cbp->bio_offset; in g_journal_insert()
813 cend = cbp->bio_offset + cbp->bio_length; in g_journal_insert()
870 cbp->bio_offset = nstart; in g_journal_insert()
967 cbp->bio_offset = nend; in g_journal_insert()
1000 (intmax_t)cbp->bio_offset, in g_journal_insert()
1035 if (pbp->bio_offset + pbp->bio_length != cbp->bio_offset) { in g_journal_optimize()
[all …]
/trueos/sys/kern/
HDsubr_disk.c161 head->last_offset = bp->bio_offset + bp->bio_length; in bioq_remove()
182 head->last_offset = bp->bio_offset; in bioq_insert_head()
192 head->last_offset = bp->bio_offset; in bioq_insert_tail()
222 return ((uoff_t)(bp->bio_offset - head->last_offset)); in bioq_bio_key()
/trueos/sys/geom/cache/
HDg_cache.c177 KASSERT(OFF2BNO(bp->bio_offset, sc) <= dp->d_bno, ("wrong entry")); in g_cache_deliver()
178 KASSERT(OFF2BNO(bp->bio_offset + bp->bio_length - 1, sc) >= in g_cache_deliver()
182 off = MAX(bp->bio_offset, off1); in g_cache_deliver()
183 len = MIN(bp->bio_offset + bp->bio_length, off1 + sc->sc_bsize) - off; in g_cache_deliver()
189 bp->bio_data + (off - bp->bio_offset), len); in g_cache_deliver()
265 OFF2BNO(bp->bio_offset + bp->bio_completed, sc)); in g_cache_read()
293 dp->d_bno = OFF2BNO(bp->bio_offset + bp->bio_completed, sc); in g_cache_read()
304 cbp->bio_offset = BNO2OFF(dp->d_bno, sc); in g_cache_read()
318 bno = OFF2BNO(bp->bio_offset, sc); in g_cache_invalidate()
319 lim = OFF2BNO(bp->bio_offset + bp->bio_length - 1, sc); in g_cache_invalidate()
[all …]
/trueos/sys/geom/uncompress/
HDg_uncompress.c212 start_blk = bp2->bio_offset / sc->blksz; in g_uncompress_done()
222 (intmax_t)bp2->bio_offset, sc->blksz, bsize)); in g_uncompress_done()
227 uoff = i == start_blk ? bp2->bio_offset % sc->blksz : 0; in g_uncompress_done()
335 pp->name, (intmax_t)bp->bio_offset, (intmax_t)bp->bio_length)); in g_uncompress_start()
346 start_blk = bp->bio_offset / sc->blksz; in g_uncompress_start()
347 end_blk = howmany(bp->bio_offset + bp->bio_length, sc->blksz); in g_uncompress_start()
357 uoff = bp->bio_offset % sc->blksz; in g_uncompress_start()
386 bp2->bio_offset = rounddown(sc->offsets[start_blk], bsize); in g_uncompress_start()
389 bp2->bio_offset; in g_uncompress_start()
400 (intmax_t)bp->bio_offset, (intmax_t)bp->bio_length, in g_uncompress_start()
[all …]
/trueos/sys/geom/vinum/
HDgeom_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()
582 bp->bio_offset = offset; in gv_sync_request()
624 err = gv_sync_request(from, to, bp->bio_offset, bp->bio_length, in gv_sync_complete()
632 if (bp->bio_offset + bp->bio_length >= from->size) { in gv_sync_complete()
643 offset = bp->bio_offset + bp->bio_length; in gv_sync_complete()
697 bp->bio_offset = offset; in gv_grow_request()
731 err = gv_grow_request(p, bp->bio_offset, bp->bio_length, in gv_grow_complete()
743 if (bp->bio_offset + bp->bio_length >= origsize) { in gv_grow_complete()
761 offset = bp->bio_offset + bp->bio_length; in gv_grow_complete()
[all …]
/trueos/sys/dev/nand/
HDnand_geom.c325 bp->bio_offset & 0xffffffff, in nand_io_proc()
329 bp->bio_offset & 0xffffffff, in nand_io_proc()
335 bp->bio_offset & 0xffffffff, in nand_io_proc()
339 bp->bio_offset & 0xffffffff, in nand_io_proc()
347 "length %ld\n", chip->num, bp->bio_offset, in nand_io_proc()
350 bp->bio_offset & 0xffffffff, in nand_io_proc()
/trueos/sys/geom/uzip/
HDg_uzip.c134 ofs = bp->bio_offset + bp->bio_completed; in g_uzip_cached()
188 ofs = bp->bio_offset + bp->bio_completed; in g_uzip_request()
199 bp2->bio_offset = sc->offsets[start_blk] - in g_uzip_request()
202 bp2->bio_length = sc->offsets[end_blk] - bp2->bio_offset; in g_uzip_request()
220 (intmax_t)bp2->bio_length, (intmax_t)bp2->bio_offset)); in g_uzip_request()
263 ofs = bp2->bio_offset + bp2->bio_completed; in g_uzip_done()
334 __func__, gp->name, bp, bp->bio_cmd, (intmax_t)bp->bio_offset, in g_uzip_start()
/trueos/sys/geom/raid/
HDtr_raid1.c264 bp->bio_offset = sd->sd_rebuild_pos; in g_raid_tr_raid1_rebuild_some()
274 bp->bio_offset, bp->bio_length, NULL, bp); in g_raid_tr_raid1_rebuild_some()
508 bp->bio_offset + bp->bio_length > sd->sd_rebuild_pos)) in g_raid_tr_raid1_select_read_disk()
516 if (G_RAID_SUBDISK_POS(sd) == bp->bio_offset) in g_raid_tr_raid1_select_read_disk()
520 if (ABS(G_RAID_SUBDISK_POS(sd) - bp->bio_offset) < in g_raid_tr_raid1_select_read_disk()
577 if (bp->bio_offset >= sd->sd_rebuild_pos) in g_raid_tr_iostart_raid1_write()
743 bp->bio_offset, bp->bio_length); in g_raid_tr_iodone_raid1()
825 cbp->bio_offset, cbp->bio_length, pbp, cbp); in g_raid_tr_iodone_raid1()
887 g_raid_unlock_range(sd->sd_volume, bp->bio_offset, in g_raid_tr_iodone_raid1()
HDtr_concat.c229 offset = bp->bio_offset; in g_raid_tr_iostart_concat()
242 ("Request starts after volume end (%ju)", bp->bio_offset)); in g_raid_tr_iostart_concat()
250 cbp->bio_offset = offset; in g_raid_tr_iostart_concat()
270 bp->bio_offset, bp->bio_length)); in g_raid_tr_iostart_concat()
HDtr_raid1e.c480 bp->bio_offset = offset + start + in g_raid_tr_raid1e_rebuild_some()
710 V2P(vol, bp->bio_offset, &no, &offset, &start); in g_raid_tr_iostart_raid1e_read()
727 cbp->bio_offset = offset + start; in g_raid_tr_iostart_raid1e_read()
780 V2P(vol, bp->bio_offset, &no, &offset, &start); in g_raid_tr_iostart_raid1e_write()
802 cbp->bio_offset = offset + start; in g_raid_tr_iostart_raid1e_write()
931 bp->bio_offset = nsd->sd_rebuild_pos; in g_raid_tr_iodone_raid1e()
1029 P2V(vol, sd->sd_pos, bp->bio_offset, &virtual, &copy); in g_raid_tr_iodone_raid1e()
1042 cbp->bio_offset = offset + start; in g_raid_tr_iodone_raid1e()
1081 P2V(vol, sd->sd_pos, bp->bio_offset, &virtual, &copy); in g_raid_tr_iodone_raid1e()
1093 cbp->bio_offset = offset + start; in g_raid_tr_iodone_raid1e()
[all …]
HDtr_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()
HDtr_raid5.c229 nstripe = bp->bio_offset / strip_size; in g_raid_tr_iostart_raid5_read()
231 start = bp->bio_offset % strip_size; in g_raid_tr_iostart_raid5_read()
279 cbp->bio_offset = offset + start; in g_raid_tr_iostart_raid5_read()
/trueos/sys/dev/nvme/
HDnvme_ns.c344 *num_bios = nvme_get_num_segments(bp->bio_offset, bp->bio_bcount, in nvme_construct_child_bios()
352 cur_offset = bp->bio_offset; in nvme_construct_child_bios()
364 child->bio_offset = cur_offset; in nvme_construct_child_bios()
430 num_bios = nvme_get_num_segments(bp->bio_offset, in nvme_ns_bio_process()
453 bp->bio_offset/nvme_ns_get_sector_size(ns); in nvme_ns_bio_process()
HDnvme_ns_cmd.c74 lba = bp->bio_offset / nvme_ns_get_sector_size(ns); in nvme_ns_cmd_read_bio()
129 lba = bp->bio_offset / nvme_ns_get_sector_size(ns); in nvme_ns_cmd_write_bio()
/trueos/sys/geom/stripe/
HDg_stripe.c288 g_stripe_copy(sc, bp->bio_data, bp->bio_caller1, bp->bio_offset, in g_stripe_done()
334 cbp->bio_offset = offset; in g_stripe_start_fast()
386 cbp->bio_offset = offset; in g_stripe_start_fast()
413 cbp->bio_offset, cbp->bio_length, 0); in g_stripe_start_fast()
463 cbp->bio_offset = offset; in g_stripe_start_economic()
494 cbp->bio_offset = offset; in g_stripe_start_economic()
615 nstripe = bp->bio_offset >> (off_t)sc->sc_stripebits; in g_stripe_start()
620 start = bp->bio_offset & (stripesize - 1); in g_stripe_start()
/trueos/sys/geom/mirror/
HDg_mirror.c1173 rstart = bp->bio_offset; in g_mirror_sync_collision()
1174 rend = bp->bio_offset + bp->bio_length; in g_mirror_sync_collision()
1182 sstart = sbp->bio_offset; in g_mirror_sync_collision()
1183 send = sbp->bio_offset + sbp->bio_length; in g_mirror_sync_collision()
1203 sstart = sbp->bio_offset; in g_mirror_regular_collision()
1204 send = sbp->bio_offset + sbp->bio_length; in g_mirror_regular_collision()
1206 rstart = bp->bio_offset; in g_mirror_regular_collision()
1207 rend = bp->bio_offset + bp->bio_length; in g_mirror_regular_collision()
1383 bp->bio_offset = sync->ds_offset; in g_mirror_sync_request()
1384 bp->bio_length = MIN(MAXPHYS, sc->sc_mediasize - bp->bio_offset); in g_mirror_sync_request()
[all …]
/trueos/sys/dev/md/
HDmd.c549 secno = bp->bio_offset / sc->sectorsize; in mdstart_malloc()
656 bcopy(sc->pl_ptr + bp->bio_offset, bp->bio_data, in mdstart_preload()
661 bcopy(bp->bio_data, sc->pl_ptr + bp->bio_offset, in mdstart_preload()
724 auio.uio_offset = (vm_ooffset_t)bp->bio_offset; in mdstart_vnode()
728 end = bp->bio_offset + bp->bio_length; in mdstart_vnode()
763 auio.uio_offset = (vm_ooffset_t)bp->bio_offset; in mdstart_vnode()
824 offs = bp->bio_offset % PAGE_SIZE; in mdstart_swap()
825 lastp = (bp->bio_offset + bp->bio_length - 1) / PAGE_SIZE; in mdstart_swap()
826 lastend = (bp->bio_offset + bp->bio_length - 1) % PAGE_SIZE + 1; in mdstart_swap()
831 for (i = bp->bio_offset / PAGE_SIZE; i <= lastp; i++) { in mdstart_swap()

123