/freebsd-current/sys/dev/cfi/ |
H A D | cfi_disk.c | 184 if (bp->bio_offset > sc->sc_size) { 192 while (resid > 0 && bp->bio_offset < sc->sc_size) { 193 *dp++ = cfi_read_raw(sc, bp->bio_offset); 194 bp->bio_offset += 1, resid -= 1; 198 while (resid > 0 && bp->bio_offset < sc->sc_size) { 199 *dp++ = cfi_read_raw(sc, bp->bio_offset); 200 bp->bio_offset += 2, resid -= 2; 204 while (resid > 0 && bp->bio_offset < sc->sc_size) { 205 *dp++ = cfi_read_raw(sc, bp->bio_offset); 206 bp->bio_offset [all...] |
/freebsd-current/sys/dev/firewire/ |
H A D | fwmem.c | 368 if (iolen == 4 && (bp->bio_offset & 3) == 0) 371 bp->bio_offset >> 32, bp->bio_offset & 0xffffffff, 376 bp->bio_offset >> 32, bp->bio_offset & 0xffffffff, 379 if (iolen == 4 && (bp->bio_offset & 3) == 0) 382 bp->bio_offset >> 32, bp->bio_offset & 0xffffffff, 387 bp->bio_offset >> 32, bp->bio_offset [all...] |
/freebsd-current/sys/geom/ |
H A D | geom_io.c | 213 bp2->bio_offset = bp->bio_offset; 249 bp2->bio_offset = bp->bio_offset; 383 bp->bio_offset = cp->provider->mediasize; 444 if (bp->bio_offset % pp->sectorsize) 450 if (bp->bio_offset < 0) 452 if (bp->bio_offset > pp->mediasize) 456 excess = bp->bio_offset + bp->bio_length; 534 KASSERT(bp->bio_offset [all...] |
H A D | geom_slice.c | 179 if (bp2->bio_offset + bp2->bio_length > gsl->length) 180 bp2->bio_length = gsl->length - bp2->bio_offset; 182 bp2->bio_offset += gsl->offset; 233 if (bp->bio_offset > gsl->length) { 241 t = bp->bio_offset + gsl->offset; 279 if (bp2->bio_offset + bp2->bio_length > gsl->length) 280 bp2->bio_length = gsl->length - bp2->bio_offset; 282 bp2->bio_offset += gsl->offset;
|
H A D | geom_ccd.c | 479 bn = bp->bio_offset / cs->sc_secsize; 646 cbp->bio_offset = dbtob(cbn + cboff + cs->sc_offset); 662 cbp->bio_offset = cb[0]->bio_offset;
|
/freebsd-current/sys/kern/ |
H A D | subr_disk.c | 81 * the distance of the requested position (bio->bio_offset) from the 84 * (uoff_t)(bio_offset - last_offset) 97 * bioq->last_offset = bio->bio_offset + bio->bio_length; 104 * with a sorted sequence of requests with bio_offset >= last_offset, 106 * 0 <= bio_offset < bioq->last_offset 128 * bioq->last_offset = bio->bio_offset so that 168 head->last_offset = bp->bio_offset + bp->bio_length; 192 head->last_offset = bp->bio_offset; 206 head->last_offset = bp->bio_offset; 236 return ((uoff_t)(bp->bio_offset [all...] |
/freebsd-current/sys/geom/cache/ |
H A D | g_cache.c | 179 KASSERT(OFF2BNO(bp->bio_offset, sc) <= dp->d_bno, ("wrong entry")); 180 KASSERT(OFF2BNO(bp->bio_offset + bp->bio_length - 1, sc) >= 184 off = MAX(bp->bio_offset, off1); 185 len = MIN(bp->bio_offset + bp->bio_length, off1 + sc->sc_bsize) - off; 191 bp->bio_data + (off - bp->bio_offset), len); 267 OFF2BNO(bp->bio_offset + bp->bio_completed, sc)); 295 dp->d_bno = OFF2BNO(bp->bio_offset + bp->bio_completed, sc); 306 cbp->bio_offset = BNO2OFF(dp->d_bno, sc); 320 bno = OFF2BNO(bp->bio_offset, sc); 321 lim = OFF2BNO(bp->bio_offset [all...] |
/freebsd-current/sys/geom/eli/ |
H A D | g_eli_integrity.c | 227 dstoff = bp->bio_offset; 342 cbp->bio_offset = (bp->bio_offset / bp->bio_to->sectorsize) * sc->sc_bytes_per_sector; 354 cbp2->bio_offset = cbp->bio_offset + maxphys; 398 cbp->bio_offset = (bp->bio_offset / bp->bio_to->sectorsize) * sc->sc_bytes_per_sector; 422 cbp2->bio_offset = cbp->bio_offset + maxphys; 476 dstoff = (bp->bio_offset / b [all...] |
/freebsd-current/sys/geom/vinum/ |
H A D | geom_vinum_plex.c | 64 boff = bp->bio_offset; 273 cbp->bio_offset = real_off + s->drive_offset; 580 bp->bio_offset = offset; 622 err = gv_sync_request(from, to, bp->bio_offset, bp->bio_length, 630 if (bp->bio_offset + bp->bio_length >= from->size) { 641 offset = bp->bio_offset + bp->bio_length; 695 bp->bio_offset = offset; 729 err = gv_grow_request(p, bp->bio_offset, bp->bio_length, 741 if (bp->bio_offset + bp->bio_length >= origsize) { 759 offset = bp->bio_offset [all...] |
/freebsd-current/sys/geom/journal/ |
H A D | g_journal.c | 706 bp->bio_offset = cp->provider->mediasize - cp->provider->sectorsize; 780 bp->bio_offset = start; 796 g_journal_insert((head), (bp)->bio_offset, \ 797 (bp)->bio_offset + (bp)->bio_length, (bp)->bio_joffset, \ 820 cstart = cbp->bio_offset; 821 cend = cbp->bio_offset + cbp->bio_length; 878 cbp->bio_offset = nstart; 975 cbp->bio_offset = nend; 1008 (intmax_t)cbp->bio_offset, 1043 if (pbp->bio_offset [all...] |
/freebsd-current/sys/dev/nvme/ |
H A D | nvme_ns_cmd.c | 64 lba = bp->bio_offset / nvme_ns_get_sector_size(ns); 104 lba = bp->bio_offset / nvme_ns_get_sector_size(ns);
|
H A D | nvme_ns.c | 375 *num_bios = nvme_get_num_segments(bp->bio_offset, bp->bio_bcount, 383 cur_offset = bp->bio_offset; 393 child->bio_offset = cur_offset; 457 num_bios = nvme_get_num_segments(bp->bio_offset, 484 htole64(bp->bio_offset/nvme_ns_get_sector_size(ns));
|
/freebsd-current/sys/dev/nvdimm/ |
H A D | nvdimm_spa.c | 302 trunc_page(bp->bio_offset) + PAGE_SIZE * i, mattr); 306 pmap_copy_pages(ma, bp->bio_offset & PAGE_MASK, bp->bio_ma, 310 bp->bio_offset & PAGE_MASK, bp->bio_length); 366 bp->bio_offset; 371 auio.uio_offset = bp->bio_offset; 391 auio.uio_offset = bp->bio_offset;
|
/freebsd-current/sys/geom/union/ |
H A D | g_union.c | 700 bp->bio_offset = 0; 707 bp->bio_offset += len2rd; 738 bp->bio_offset += len2wt; 813 wip->wip_start = bp->bio_offset + sc->sc_offset; 831 cbp->bio_offset = bp->bio_offset + sc->sc_offset; 949 cbp->bio_offset = wip->wip_start; 1032 cbp->bio_offset += offset; 1082 KASSERT(bp->bio_offset % sc->sc_sectorsize == 0, 1086 start = bp->bio_offset / s [all...] |
/freebsd-current/sys/powerpc/powernv/ |
H A D | opal_flash.c | 302 bp->bio_error = opalflash_erase(sc, bp->bio_offset, 306 bp->bio_error = opalflash_read(sc, bp->bio_offset, 310 bp->bio_error = opalflash_write(sc, bp->bio_offset,
|
/freebsd-current/sys/geom/raid/ |
H A D | tr_raid0.c | 215 nstripe = bp->bio_offset / strip_size; 217 start = bp->bio_offset % strip_size; 231 cbp->bio_offset = offset + start;
|
H A D | tr_raid1.c | 256 bp->bio_offset = sd->sd_rebuild_pos; 266 bp->bio_offset, bp->bio_length, NULL, bp); 499 bp->bio_offset + bp->bio_length > sd->sd_rebuild_pos)) 507 if (G_RAID_SUBDISK_POS(sd) == bp->bio_offset) 511 if (ABS(G_RAID_SUBDISK_POS(sd) - bp->bio_offset) < 568 if (bp->bio_offset >= sd->sd_rebuild_pos) 734 bp->bio_offset, bp->bio_length); 816 cbp->bio_offset, cbp->bio_length, pbp, cbp); 878 g_raid_unlock_range(sd->sd_volume, bp->bio_offset,
|
H A D | tr_raid1e.c | 472 bp->bio_offset = offset + start + 702 V2P(vol, bp->bio_offset, &no, &offset, &start); 719 cbp->bio_offset = offset + start; 772 V2P(vol, bp->bio_offset, &no, &offset, &start); 794 cbp->bio_offset = offset + start; 923 bp->bio_offset = nsd->sd_rebuild_pos; 1021 P2V(vol, sd->sd_pos, bp->bio_offset, &virtual, ©); 1034 cbp->bio_offset = offset + start; 1073 P2V(vol, sd->sd_pos, bp->bio_offset, &virtual, ©); 1085 cbp->bio_offset [all...] |
H A D | tr_raid5.c | 228 nstripe = bp->bio_offset / strip_size; 230 start = bp->bio_offset % strip_size; 278 cbp->bio_offset = offset + start;
|
H A D | tr_concat.c | 228 offset = bp->bio_offset; 251 cbp->bio_offset = offset;
|
/freebsd-current/sys/sys/ |
H A D | bio.h | 92 off_t bio_offset; /* Offset into file. */ member in struct:bio
|
/freebsd-current/sys/geom/uzip/ |
H A D | g_uzip.c | 178 ofs = bp->bio_offset + bp->bio_completed; 218 (bp)->bio_offset, (pp)->sectorsize) 238 ofs = bp->bio_offset + bp->bio_completed; 290 bp2->bio_offset = TOFF_2_BOFF(sc, pp, start_blk); 303 "bp2->bio_offset = %jd\n", __func__, gp->name, 304 (intmax_t)bp2->bio_length, (intmax_t)bp2->bio_offset)); 315 (intmax_t)bp2->bio_length, (intmax_t)bp2->bio_offset)); 375 ofs = bp2->bio_offset + bp2->bio_completed; 467 (intmax_t)bp->bio_offset, (intmax_t)bp->bio_length, bp->bio_data));
|
/freebsd-current/sys/dev/nvmf/host/ |
H A D | nvmf_ns.c | 171 lba = bio->bio_offset / ns->lba_size; 176 lba = bio->bio_offset / ns->lba_size; 188 lba = bio->bio_offset / ns->lba_size;
|
/freebsd-current/sys/dev/ofw/ |
H A D | ofw_disk.c | 81 r = OF_seek(sc->ofwd_instance, bp->bio_offset);
|
/freebsd-current/sys/geom/stripe/ |
H A D | g_stripe.c | 277 g_stripe_copy(sc, bp->bio_data, bp->bio_caller1, bp->bio_offset, 326 cbp->bio_offset = offset; 378 cbp->bio_offset = offset; 405 cbp->bio_offset, cbp->bio_length, 0); 455 cbp->bio_offset = offset; 486 cbp->bio_offset = offset; 612 /* nstripe = bp->bio_offset / stripesize; */ 613 nstripe = bp->bio_offset >> (off_t)sc->sc_stripebits; 617 /* start = bp->bio_offset % stripesize; */ 618 start = bp->bio_offset [all...] |