Home
last modified time | relevance | path

Searched refs:io_offset (Results 1 – 25 of 39) sorted by relevance

12

/freebsd/sys/dev/bhnd/nvram/
H A Dbhnd_nvram_data_btxt.c79 size_t io_offset);
449 size_t io_offset, io_size, str_size; in bhnd_nvram_btxt_init() local
458 io_offset = 0; in bhnd_nvram_btxt_init()
482 while (io_offset < io_size) { in bhnd_nvram_btxt_init()
486 if ((error = bhnd_nvram_btxt_seek_next(btxt->data, &io_offset))) in bhnd_nvram_btxt_init()
490 error = bhnd_nvram_btxt_entry_len(btxt->data, io_offset, in bhnd_nvram_btxt_init()
497 BHND_NV_ASSERT(io_offset == io_size, in bhnd_nvram_btxt_init()
504 error = bhnd_nvram_io_read_ptr(btxt->data, io_offset, &envp, in bhnd_nvram_btxt_init()
519 error = bhnd_nvram_io_write(btxt->data, io_offset+name_len, in bhnd_nvram_btxt_init()
528 io_offset += line_len; in bhnd_nvram_btxt_init()
[all …]
H A Dbhnd_nvram_data_tlv.c108 size_t io_offset);
464 size_t io_offset; in bhnd_nvram_tlv_next() local
471 io_offset = 0x0; in bhnd_nvram_tlv_next()
472 env = bhnd_nvram_tlv_next_env(tlv, &io_offset, cookiep); in bhnd_nvram_tlv_next()
475 io_offset = bhnd_nvram_tlv_to_offset(tlv, *cookiep); in bhnd_nvram_tlv_next()
476 env = bhnd_nvram_tlv_next_env(tlv, &io_offset, NULL); in bhnd_nvram_tlv_next()
481 env = bhnd_nvram_tlv_next_env(tlv, &io_offset, cookiep); in bhnd_nvram_tlv_next()
645 size_t io_offset, io_size; in bhnd_nvram_tlv_next_record() local
650 io_offset = *next; in bhnd_nvram_tlv_next_record()
655 *offset = io_offset; in bhnd_nvram_tlv_next_record()
[all …]
H A Dbhnd_nvram_data_bcm.c562 size_t io_offset, io_size; in bhnd_nvram_bcm_init() local
640 io_offset = sizeof(hdr); in bhnd_nvram_bcm_init()
641 while (io_offset < io_size) { in bhnd_nvram_bcm_init()
648 envp = (char *) (p + io_offset); in bhnd_nvram_bcm_init()
649 envp_len = strnlen(envp, io_size - io_offset); in bhnd_nvram_bcm_init()
654 io_offset, error); in bhnd_nvram_bcm_init()
703 io_offset += envp_len; in bhnd_nvram_bcm_init()
704 if (io_offset == io_size) { in bhnd_nvram_bcm_init()
706 io_offset); in bhnd_nvram_bcm_init()
710 if (*(p + io_offset) != '\0') { in bhnd_nvram_bcm_init()
[all …]
/freebsd/sys/contrib/openzfs/module/zfs/
H A Dvdev_queue.c237 int cmp = TREE_CMP(z1->io_offset, z2->io_offset); in vdev_queue_offset_compare()
255 int ocmp = TREE_CMP(z1->io_offset, z2->io_offset); in vdev_queue_to_compare()
608 #define IO_SPAN(fio, lio) ((lio)->io_offset + (lio)->io_size - (fio)->io_offset)
775 aio = zio_vdev_delegated_io(first->io_vd, first->io_offset, in vdev_queue_aggregate()
781 next_offset = first->io_offset; in vdev_queue_aggregate()
789 if (dio->io_offset != next_offset) { in vdev_queue_aggregate()
792 ASSERT3U(dio->io_offset, >, next_offset); in vdev_queue_aggregate()
794 dio->io_offset - next_offset, B_TRUE); in vdev_queue_aggregate()
821 next_offset = dio->io_offset + dio->io_size; in vdev_queue_aggregate()
864 if (zio->io_offset < vq->vq_last_offset) { in vdev_queue_io_to_issue()
[all …]
H A Dvdev_draid.c957 vdev_draid_map_alloc_row(zio_t *zio, raidz_row_t **rrp, uint64_t io_offset, in vdev_draid_map_alloc_row() argument
965 uint64_t group = vdev_draid_offset_to_group(vd, io_offset); in vdev_draid_map_alloc_row()
972 if (io_offset + io_asize > start_offset) { in vdev_draid_map_alloc_row()
974 start_offset - io_offset); in vdev_draid_map_alloc_row()
986 vdev_draid_group_to_offset(vd, group) == io_offset); in vdev_draid_map_alloc_row()
991 io_offset, &perm, &groupstart); in vdev_draid_map_alloc_row()
1033 rr->rr_offset = io_offset; in vdev_draid_map_alloc_row()
1110 uint64_t io_offset = zio->io_offset; in vdev_draid_map_alloc() local
1114 size = vdev_draid_map_alloc_row(zio, &rr[0], io_offset, in vdev_draid_map_alloc()
1119 io_offset += vdev_draid_asize(vd, size, 0); in vdev_draid_map_alloc()
[all …]
H A Dzio_inject.c240 if (zio->io_vd == vd && zio->io_offset == off) in zio_match_dva()
310 uint64_t offset = zio->io_offset; in zio_handle_label_injection()
373 uint64_t offset = zio->io_offset; in zio_handle_device_injection_impl()
H A Dzio_checksum.c345 uint64_t offset = zio->io_offset; in zio_checksum_compute()
543 uint64_t offset = zio->io_offset; in zio_checksum_error()
H A Dvdev_mirror.c376 mc->mc_offset = zio->io_offset; in vdev_mirror_map_init()
491 p = (zio->io_offset >> vdev_mirror_shift) % mm->mm_preferred_cnt; in vdev_mirror_preferred_child_randomize()
H A Dvdev_raidz_math.c473 bench_zio->io_offset = 0; in benchmark_raidz()
H A Dzfs_fm.c367 search.re_io_offset = zio->io_offset; in zfs_ereport_is_duplicate()
679 DATA_TYPE_UINT64, zio->io_offset, in zfs_ereport_start()
/freebsd/tools/tools/usbtest/
H A Dusb_msc_test.c347 uint32_t io_offset; in do_io_test() local
365 switch (p->io_offset) { in do_io_test()
367 io_offset = usb_ts_rand_noise(); in do_io_test()
370 io_offset = 0; in do_io_test()
439 io_offset %= lba_max; in do_io_test()
441 temp = (lba_max - io_offset); in do_io_test()
447 retval = do_read_10(io_offset, io_size * block_size, in do_io_test()
448 buffer + (io_offset * block_size), lun); in do_io_test()
451 if (bcmp(buffer + (io_offset * block_size), in do_io_test()
452 reference + (io_offset * block_size), in do_io_test()
[all …]
H A Dusb_msc_test.h102 uint8_t io_offset; member
/freebsd/sys/contrib/openzfs/module/os/linux/zfs/
H A Dvdev_disk.c236 (u_longlong_t)zio->io_offset, (u_longlong_t)zio->io_size, in vdev_disk_error()
682 vbio->vbio_offset = zio->io_offset; in vbio_alloc()
913 if (zio->io_offset + zio->io_size > bdev_capacity(bdev)) { in vdev_disk_io_rw()
916 (u_longlong_t)zio->io_offset, in vdev_disk_io_rw()
1084 uint64_t io_offset = zio->io_offset; in vdev_classic_physio() local
1100 if (io_offset + io_size > bdev_capacity(bdev)) { in vdev_classic_physio()
1103 (u_longlong_t)io_offset, in vdev_classic_physio()
1132 bio_offset = io_offset; in vdev_classic_physio()
1312 sector_t sector = zio->io_offset >> 9; in vdev_disk_io_trim()
H A Dvdev_file.c210 off = zio->io_offset; in vdev_file_io_strategy()
281 zio->io_offset, zio->io_size); in vdev_file_io_start()
/freebsd/sys/cam/ctl/
H A Dctl_backend_block.c221 uint64_t io_offset; member
681 xuio.uio_offset = beio->io_offset; in ctl_be_block_dispatch_file()
900 if (beio->io_offset == -1) { in ctl_be_block_unmap_file()
920 off = beio->io_offset; in ctl_be_block_unmap_file()
985 xuio.uio_offset = beio->io_offset; in ctl_be_block_dispatch_zvol()
1211 if (beio->io_offset == -1) { in ctl_be_block_unmap_dev()
1226 beio->io_offset, beio->io_len, TRUE); in ctl_be_block_unmap_dev()
1254 cur_offset = beio->io_offset; in ctl_be_block_dispatch_dev()
1375 beio->io_offset = lbalen->lba * cbe_lun->blocksize; in ctl_be_block_cw_dispatch_sync()
1434 beio->io_offset = lbalen->lba * cbe_lun->blocksize; in ctl_be_block_cw_dispatch_ws()
[all …]
/freebsd/sys/contrib/openzfs/module/os/freebsd/zfs/
H A Dvdev_file.c221 off = zio->io_offset; in vdev_file_io_strategy()
265 zio->io_offset, zio->io_size); in vdev_file_io_start()
H A Dvdev_geom.c1194 bp->bio_offset = zio->io_offset; in vdev_geom_io_start()
1229 bp->bio_offset = zio->io_offset; in vdev_geom_io_start()
/freebsd/sys/contrib/openzfs/cmd/raidz_test/
H A Draidz_test.c317 opts->zio_golden->io_offset = zio_test->io_offset = opts->rto_offset; in init_raidz_golden_map()
375 (*zio)->io_offset = 0; in init_raidz_map()
H A Draidz_bench.c49 zio_bench.io_offset = 0; in bench_init_raidz_map()
/freebsd/sys/contrib/openzfs/include/os/linux/zfs/sys/
H A Dtrace_common.h66 __entry->zio_offset = zio->io_offset; \
/freebsd/sys/dev/bhnd/bhndb/
H A Dbhndb.c1776 bus_size_t io_offset; \
1784 offset, _io_size, &io_offset, &stolen, &restore); \
1808 v = bus_read_ ## _name (io_res, io_offset); \
1821 bus_write_ ## _name (io_res, io_offset, value); \
1833 bus_ ## _op ## _ ## _size (io_res, io_offset, \
1873 bus_barrier(io_res, io_offset + offset, length, flags); in bhndb_bus_barrier()
/freebsd/usr.sbin/camdd/
H A Dcamdd.c2389 off_t io_offset; local
2429 io_offset = buf->lba * dev->sector_size;
2475 buf->len, io_offset);
2479 db_len, io_offset);
2482 data->fill_len, io_offset);
2485 data->sg_count, io_offset);
2539 (uintmax_t)io_offset);
2544 (uintmax_t)io_offset);
2551 (uintmax_t)io_offset);
/freebsd/sys/contrib/openzfs/include/os/linux/spl/sys/
H A Duio.h161 uio->uio_loffset = io_offset(bio, rq); in zfs_uio_bvec_init()
/freebsd/sys/contrib/openzfs/include/os/linux/kernel/linux/
H A Dblkdev_compat.h596 io_offset(struct bio *bio, struct request *rq) in io_offset() function
/freebsd/sys/dev/nvmf/
H A Dnvmf_tcp.c615 struct nvmf_io_request *io, u_int io_offset) in mbuf_copyto_io() argument
627 memdesc_copyback(&io->io_mem, io_offset, todo, mtodo(m, skip)); in mbuf_copyto_io()
629 io_offset += todo; in mbuf_copyto_io()

12