Searched refs:bio_offset (Results 1 - 25 of 65) sorted by relevance

123

/freebsd-12-stable/sys/dev/cfi/
H A Dcfi_disk.c187 if (bp->bio_offset > sc->sc_size) {
195 while (resid > 0 && bp->bio_offset < sc->sc_size) {
196 *dp++ = cfi_read_raw(sc, bp->bio_offset);
197 bp->bio_offset += 1, resid -= 1;
201 while (resid > 0 && bp->bio_offset < sc->sc_size) {
202 *dp++ = cfi_read_raw(sc, bp->bio_offset);
203 bp->bio_offset += 2, resid -= 2;
207 while (resid > 0 && bp->bio_offset < sc->sc_size) {
208 *dp++ = cfi_read_raw(sc, bp->bio_offset);
209 bp->bio_offset
[all...]
/freebsd-12-stable/sys/dev/firewire/
H A Dfwmem.c368 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-12-stable/sys/geom/
H A Dgeom_io.c216 bp2->bio_offset = bp->bio_offset;
255 bp2->bio_offset = bp->bio_offset;
353 bp->bio_offset = cp->provider->mediasize;
413 if (bp->bio_offset % pp->sectorsize)
419 if (bp->bio_offset < 0)
421 if (bp->bio_offset > pp->mediasize)
425 excess = bp->bio_offset + bp->bio_length;
563 KASSERT(bp->bio_offset
[all...]
H A Dgeom_slice.c185 if (bp2->bio_offset + bp2->bio_length > gsl->length)
186 bp2->bio_length = gsl->length - bp2->bio_offset;
188 bp2->bio_offset += gsl->offset;
239 if (bp->bio_offset > gsl->length) {
247 t = bp->bio_offset + gsl->offset;
285 if (bp2->bio_offset + bp2->bio_length > gsl->length)
286 bp2->bio_length = gsl->length - bp2->bio_offset;
288 bp2->bio_offset += gsl->offset;
H A Dgeom_ccd.c488 bn = bp->bio_offset / cs->sc_secsize;
655 cbp->bio_offset = dbtob(cbn + cboff + cs->sc_offset);
671 cbp->bio_offset = cb[0]->bio_offset;
/freebsd-12-stable/sys/geom/cache/
H A Dg_cache.c179 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-12-stable/sys/kern/
H A Dsubr_disk.c83 * the distance of the requested position (bio->bio_offset) from the
86 * (uoff_t)(bio_offset - last_offset)
99 * bioq->last_offset = bio->bio_offset + bio->bio_length;
106 * with a sorted sequence of requests with bio_offset >= last_offset,
108 * 0 <= bio_offset < bioq->last_offset
130 * bioq->last_offset = bio->bio_offset so that
170 head->last_offset = bp->bio_offset + bp->bio_length;
194 head->last_offset = bp->bio_offset;
207 head->last_offset = bp->bio_offset;
237 return ((uoff_t)(bp->bio_offset
[all...]
/freebsd-12-stable/sys/geom/eli/
H A Dg_eli_integrity.c199 coroff = bp->bio_offset +
309 cbp->bio_offset = (bp->bio_offset / bp->bio_to->sectorsize) * sc->sc_bytes_per_sector;
321 cbp2->bio_offset = cbp->bio_offset + MAXPHYS;
367 cbp->bio_offset = (bp->bio_offset / bp->bio_to->sectorsize) * sc->sc_bytes_per_sector;
380 cbp2->bio_offset = cbp->bio_offset + MAXPHYS;
433 dstoff = (bp->bio_offset / b
[all...]
/freebsd-12-stable/sys/geom/vinum/
H A Dgeom_vinum_plex.c66 boff = bp->bio_offset;
275 cbp->bio_offset = real_off + s->drive_offset;
585 bp->bio_offset = offset;
627 err = gv_sync_request(from, to, bp->bio_offset, bp->bio_length,
635 if (bp->bio_offset + bp->bio_length >= from->size) {
646 offset = bp->bio_offset + bp->bio_length;
700 bp->bio_offset = offset;
734 err = gv_grow_request(p, bp->bio_offset, bp->bio_length,
746 if (bp->bio_offset + bp->bio_length >= origsize) {
764 offset = bp->bio_offset
[all...]
/freebsd-12-stable/sys/geom/journal/
H A Dg_journal.c701 bp->bio_offset = cp->provider->mediasize - cp->provider->sectorsize;
774 bp->bio_offset = start;
790 g_journal_insert((head), (bp)->bio_offset, \
791 (bp)->bio_offset + (bp)->bio_length, (bp)->bio_joffset, \
814 cstart = cbp->bio_offset;
815 cend = cbp->bio_offset + cbp->bio_length;
872 cbp->bio_offset = nstart;
969 cbp->bio_offset = nend;
1002 (intmax_t)cbp->bio_offset,
1037 if (pbp->bio_offset
[all...]
/freebsd-12-stable/sys/dev/nand/
H A Dnand_geom.c327 bp->bio_offset & 0xffffffff,
331 bp->bio_offset & 0xffffffff,
337 bp->bio_offset & 0xffffffff,
341 bp->bio_offset & 0xffffffff,
349 "length %ld\n", chip->num, bp->bio_offset,
352 bp->bio_offset & 0xffffffff,
/freebsd-12-stable/sys/dev/nvme/
H A Dnvme_ns_cmd.c66 lba = bp->bio_offset / nvme_ns_get_sector_size(ns);
106 lba = bp->bio_offset / nvme_ns_get_sector_size(ns);
H A Dnvme_ns.c376 *num_bios = nvme_get_num_segments(bp->bio_offset, bp->bio_bcount,
384 cur_offset = bp->bio_offset;
394 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-12-stable/sys/geom/raid/
H A Dtr_concat.c231 offset = bp->bio_offset;
244 ("Request starts after volume end (%ju)", bp->bio_offset));
252 cbp->bio_offset = offset;
272 bp->bio_offset, bp->bio_length));
H A Dtr_raid0.c217 nstripe = bp->bio_offset / strip_size;
219 start = bp->bio_offset % strip_size;
233 cbp->bio_offset = offset + start;
H A Dtr_raid1.c258 bp->bio_offset = sd->sd_rebuild_pos;
268 bp->bio_offset, bp->bio_length, NULL, bp);
502 bp->bio_offset + bp->bio_length > sd->sd_rebuild_pos))
510 if (G_RAID_SUBDISK_POS(sd) == bp->bio_offset)
514 if (ABS(G_RAID_SUBDISK_POS(sd) - bp->bio_offset) <
571 if (bp->bio_offset >= sd->sd_rebuild_pos)
737 bp->bio_offset, bp->bio_length);
819 cbp->bio_offset, cbp->bio_length, pbp, cbp);
881 g_raid_unlock_range(sd->sd_volume, bp->bio_offset,
H A Dtr_raid1e.c474 bp->bio_offset = offset + start +
704 V2P(vol, bp->bio_offset, &no, &offset, &start);
721 cbp->bio_offset = offset + start;
774 V2P(vol, bp->bio_offset, &no, &offset, &start);
796 cbp->bio_offset = offset + start;
925 bp->bio_offset = nsd->sd_rebuild_pos;
1023 P2V(vol, sd->sd_pos, bp->bio_offset, &virtual, &copy);
1036 cbp->bio_offset = offset + start;
1075 P2V(vol, sd->sd_pos, bp->bio_offset, &virtual, &copy);
1087 cbp->bio_offset
[all...]
H A Dtr_raid5.c231 nstripe = bp->bio_offset / strip_size;
233 start = bp->bio_offset % strip_size;
281 cbp->bio_offset = offset + start;
/freebsd-12-stable/sys/dev/nvdimm/
H A Dnvdimm_spa.c280 trunc_page(bp->bio_offset) + PAGE_SIZE * i, mattr);
284 pmap_copy_pages(ma, bp->bio_offset & PAGE_MASK, bp->bio_ma,
288 bp->bio_offset & PAGE_MASK, bp->bio_length);
345 bp->bio_offset;
350 auio.uio_offset = bp->bio_offset;
370 auio.uio_offset = bp->bio_offset;
/freebsd-12-stable/sys/geom/sched/
H A Dgs_rr.c507 if (qp->q_lastoff > bp->bio_offset)
508 dist = qp->q_lastoff - bp->bio_offset;
510 dist = bp->bio_offset - qp->q_lastoff;
515 qp->q_lastoff = bp->bio_offset + bp->bio_length;
/freebsd-12-stable/sys/sys/
H A Dbio.h90 off_t bio_offset; /* Offset into file. */ member in struct:bio
/freebsd-12-stable/sys/geom/uzip/
H A Dg_uzip.c175 ofs = bp->bio_offset + bp->bio_completed;
215 (bp)->bio_offset, (pp)->sectorsize)
235 ofs = bp->bio_offset + bp->bio_completed;
287 bp2->bio_offset = TOFF_2_BOFF(sc, pp, start_blk);
300 "bp2->bio_offset = %jd\n", __func__, gp->name,
301 (intmax_t)bp2->bio_length, (intmax_t)bp2->bio_offset));
312 (intmax_t)bp2->bio_length, (intmax_t)bp2->bio_offset));
372 ofs = bp2->bio_offset + bp2->bio_completed;
464 (intmax_t)bp->bio_offset, (intmax_t)bp->bio_length, bp->bio_data));
/freebsd-12-stable/sys/dev/ofw/
H A Dofw_disk.c84 r = OF_seek(sc->ofwd_instance, bp->bio_offset);
/freebsd-12-stable/sys/geom/stripe/
H A Dg_stripe.c286 g_stripe_copy(sc, bp->bio_data, bp->bio_caller1, bp->bio_offset,
332 cbp->bio_offset = offset;
384 cbp->bio_offset = offset;
411 cbp->bio_offset, cbp->bio_length, 0);
461 cbp->bio_offset = offset;
492 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...]
/freebsd-12-stable/sys/geom/linux_lvm/
H A Dg_linux_lvm.c175 b->bio_error, b->bio_offset, b->bio_length,
225 offset = bp->bio_offset; /* virtual offset and length */
249 cb->bio_offset = offset + sg->sg_pvoffset;
266 cb->bio_offset =
286 pv->pv_name, cb->bio_offset);
300 cb->bio_to->name, cb->bio_offset, cb->bio_length);

Completed in 521 milliseconds

123