Home
last modified time | relevance | path

Searched refs:io_size (Results 1 – 25 of 43) sorted by relevance

12

/freebsd/tools/regression/aio/aiop/
H A Daiop.c129 int io_size, nrun; in main() local
145 io_size = atoi(argv[2]); in main()
146 if (io_size <= 0) in main()
193 abuf[i] = calloc(1, io_size * sizeof(char)); in main()
198 offset = random() % (file_size / io_size); in main()
199 offset *= io_size; in main()
200 set_aio(aio + i, choose_aio(iowhat), fd, offset, io_size, abuf[i]); in main()
208 offset = random() % (file_size / io_size); in main()
209 offset *= io_size; in main()
210 set_aio(aio + n, choose_aio(iowhat), fd, offset, io_size, abuf[n]); in main()
[all …]
/freebsd/sys/dev/drm2/ttm/
H A Dttm_bo_vm.c395 size_t io_size;
428 io_size = bo->num_pages - kmap_offset;
429 io_size = (io_size << PAGE_SHIFT) - page_offset;
430 if (count < io_size)
431 io_size = count;
458 ret = copy_from_user(virtual, wbuf, io_size);
460 ret = copy_to_user(rbuf, virtual, io_size);
469 *f_pos += io_size;
471 return io_size;
485 size_t io_size;
[all …]
/freebsd/sys/dev/bhnd/nvram/
H A Dbhnd_nvram_data_btxt.c449 size_t io_offset, io_size, str_size; in bhnd_nvram_btxt_init() local
457 io_size = bhnd_nvram_io_getsize(btxt->data); in bhnd_nvram_btxt_init()
461 error = bhnd_nvram_io_read_ptr(btxt->data, 0x0, &ptr, io_size, NULL); in bhnd_nvram_btxt_init()
468 str_size = strnlen(ptr, io_size); in bhnd_nvram_btxt_init()
472 if (str_size < io_size && str_size + 1 < io_size) in bhnd_nvram_btxt_init()
476 io_size = str_size; in bhnd_nvram_btxt_init()
477 if ((error = bhnd_nvram_io_setsize(btxt->data, io_size))) in bhnd_nvram_btxt_init()
482 while (io_offset < io_size) { in bhnd_nvram_btxt_init()
497 BHND_NV_ASSERT(io_offset == io_size, in bhnd_nvram_btxt_init()
591 size_t io_offset, io_size; in bhnd_nvram_btxt_next() local
[all …]
H A Dbhnd_nvram_data_bcmraw.c81 size_t io_size; in bhnd_nvram_bcmraw_probe() local
84 io_size = bhnd_nvram_io_getsize(io); in bhnd_nvram_bcmraw_probe()
89 envp_len = bhnd_nv_ummin(sizeof(envp), io_size); in bhnd_nvram_bcmraw_probe()
122 if (io_size < envp_len) in bhnd_nvram_bcmraw_probe()
125 if ((error = bhnd_nvram_io_read(io, io_size-envp_len, envp, envp_len))) in bhnd_nvram_bcmraw_probe()
247 size_t io_size; in bhnd_nvram_bcmraw_init() local
252 io_size = bhnd_nvram_io_getsize(src); in bhnd_nvram_bcmraw_init()
257 if (io_size == SIZE_MAX) in bhnd_nvram_bcmraw_init()
260 capacity = io_size + 1 /* room for extra NUL */; in bhnd_nvram_bcmraw_init()
261 bcm->size = io_size; in bhnd_nvram_bcmraw_init()
[all...]
H A Dbhnd_nvram_data_bcm.c562 size_t io_offset, io_size; in bhnd_nvram_bcm_init() local
573 io_size = le32toh(hdr.size); in bhnd_nvram_bcm_init()
574 if (io_size < sizeof(hdr)) { in bhnd_nvram_bcm_init()
576 BHND_NV_LOG("corrupt header size: %zu\n", io_size); in bhnd_nvram_bcm_init()
580 if (io_size > bhnd_nvram_io_getsize(src)) { in bhnd_nvram_bcm_init()
582 io_size, bhnd_nvram_io_getsize(src)); in bhnd_nvram_bcm_init()
589 if (io_size == SIZE_MAX) in bhnd_nvram_bcm_init()
592 bcm->data = bhnd_nvram_iobuf_empty(io_size, io_size + 1); in bhnd_nvram_bcm_init()
598 error = bhnd_nvram_io_write_ptr(bcm->data, 0x0, &ptr, io_size, NULL); in bhnd_nvram_bcm_init()
603 if ((error = bhnd_nvram_io_read(src, 0x0, p, io_size))) in bhnd_nvram_bcm_init()
[all …]
H A Dbhnd_nvram_data_tlv.c645 size_t io_offset, io_size; in bhnd_nvram_tlv_next_record() local
651 io_size = bhnd_nvram_io_getsize(io); in bhnd_nvram_tlv_next_record()
695 if (parsed_len > io_size || io_size - parsed_len < io_offset) { in bhnd_nvram_tlv_next_record()
698 "size of %zu\n", parsed_len, io_size); in bhnd_nvram_tlv_next_record()
797 size_t io_offset, io_size; in bhnd_nvram_tlv_get_env() local
800 io_size = bhnd_nvram_io_getsize(tlv->data); in bhnd_nvram_tlv_get_env()
804 if (io_offset == io_size) in bhnd_nvram_tlv_get_env()
865 size_t io_size; in bhnd_nvram_tlv_to_offset() local
870 io_size = bhnd_nvram_io_getsize(tlv->data); in bhnd_nvram_tlv_to_offset()
872 error = bhnd_nvram_io_read_ptr(tlv->data, 0x0, &ptr, io_size, NULL); in bhnd_nvram_tlv_to_offset()
[all …]
/freebsd/tools/tools/usbtest/
H A Dusb_msc_test.c348 uint32_t io_size; in do_io_test() local
391 switch (p->io_size) { in do_io_test()
393 io_size = ((uint32_t)usb_ts_rand_noise()) & 65535U; in do_io_test()
396 io_size = (xfer_current_id & 65535U); in do_io_test()
399 io_size = 1; in do_io_test()
402 io_size = 2; in do_io_test()
405 io_size = 4; in do_io_test()
408 io_size = 8; in do_io_test()
411 io_size = 16; in do_io_test()
414 io_size = 32; in do_io_test()
[all …]
H A Dusb_msc_test.h100 uint8_t io_size; member
/freebsd/sys/contrib/openzfs/cmd/raidz_test/
H A Draidz_bench.c50 zio_bench.io_size = max_data_size; in bench_init_raidz_map()
83 zio_bench.io_size = 1ULL << ds; in run_gen_bench_impl()
98 iter_cnt /= zio_bench.io_size; in run_gen_bench_impl()
163 zio_bench.io_size = 1ULL << ds; in run_rec_bench_impl()
169 if (zio_bench.io_size / rto_opts.rto_dcols < in run_rec_bench_impl()
186 iter_cnt /= zio_bench.io_size; in run_rec_bench_impl()
H A Draidz_test.c288 abd_iterate_func(zio->io_abd, 0, zio->io_size, init_rand, NULL); in init_zio_abd()
295 raidz_free((*zio)->io_abd, (*zio)->io_size); in fini_raidz_map()
318 opts->zio_golden->io_size = zio_test->io_size = opts->rto_dsize; in init_raidz_golden_map()
376 (*zio)->io_size = alloc_dsize; in init_raidz_map()
/freebsd/sys/contrib/openzfs/module/os/linux/zfs/
H A Dabd_os.c1276 unsigned int io_size, size_t off) in abd_gang_bio_map_off() argument
1284 int size = MIN(io_size, cabd->abd_size - off); in abd_gang_bio_map_off()
1286 io_size -= (size - remainder); in abd_gang_bio_map_off()
1287 if (io_size == 0 || remainder > 0) in abd_gang_bio_map_off()
1288 return (io_size); in abd_gang_bio_map_off()
1291 ASSERT0(io_size); in abd_gang_bio_map_off()
1292 return (io_size); in abd_gang_bio_map_off()
1302 unsigned int io_size, size_t off) in abd_bio_map_off() argument
1306 ASSERT3U(io_size, <=, abd->abd_size - off); in abd_bio_map_off()
1308 return (bio_map(bio, ((char *)abd_to_buf(abd)) + off, io_size)); in abd_bio_map_off()
[all …]
H A Dvdev_disk.c236 (u_longlong_t)zio->io_offset, (u_longlong_t)zio->io_size, in vdev_disk_error()
913 if (zio->io_offset + zio->io_size > bdev_capacity(bdev)) { in vdev_disk_io_rw()
917 (u_longlong_t)zio->io_size, in vdev_disk_io_rw()
939 if (!vdev_disk_check_alignment(abd, zio->io_size, bdev)) { in vdev_disk_io_rw()
941 abd = abd_alloc_for_io(zio->io_size, in vdev_disk_io_rw()
946 abd_copy(abd, zio->io_abd, zio->io_size); in vdev_disk_io_rw()
955 VERIFY(vdev_disk_check_alignment(abd, zio->io_size, bdev)); in vdev_disk_io_rw()
964 vbio_submit(vbio, abd, zio->io_size); in vdev_disk_io_rw()
1083 size_t io_size = zio->io_size; in vdev_classic_physio() local
1100 if (io_offset + io_size > bdev_capacity(bdev)) { in vdev_classic_physio()
[all …]
/freebsd/sys/contrib/openzfs/module/zfs/
H A Dvdev_file.c220 size = zio->io_size; in vdev_file_io_strategy()
225 buf = abd_borrow_buf(zio->io_abd, zio->io_size); in vdev_file_io_strategy()
229 buf = abd_borrow_buf_copy(zio->io_abd, zio->io_size); in vdev_file_io_strategy()
258 zio->io_offset, zio->io_size); in vdev_file_io_deallocate()
288 ASSERT3U(zio->io_size, !=, 0); in vdev_file_io_start()
H A Dzio.c507 zt->zt_orig_size = zio->io_size; in zio_push_transform()
515 zio->io_size = size; in zio_push_transform()
532 zio->io_size = zt->zt_orig_size; in zio_pop_transforms()
547 ASSERT(zio->io_size > size); in zio_subblock()
558 zio->io_abd, data, zio->io_size, size, in zio_decompress()
608 zio->io_abd, abd, zio->io_size, lsize, in zio_decrypt()
1035 zio->io_orig_size = zio->io_size = psize; in zio_create()
1758 ASSERT3U(zio->io_orig_size, ==, zio->io_size); in zio_shrink()
1759 ASSERT3U(size, <=, zio->io_size); in zio_shrink()
1769 ASSERT3U(zio->io_size, ==, zio->io_lsize); in zio_shrink()
[all …]
H A Dvdev_draid.c686 IMPLY(abd_offset != 0, abd_off == zio->io_size); in vdev_draid_map_alloc_write()
749 IMPLY(abd_offset != 0, abd_off == zio->io_size); in vdev_draid_map_alloc_scrub()
778 IMPLY(abd_offset != 0, abd_off == zio->io_size); in vdev_draid_map_alloc_read()
963 uint64_t io_size = abd_size; in vdev_draid_map_alloc_row() local
964 uint64_t io_asize = vdev_draid_asize(vd, io_size, 0); in vdev_draid_map_alloc_row()
973 io_size = vdev_draid_asize_to_psize(vd, in vdev_draid_map_alloc_row()
983 IMPLY(abd_offset == 0 && io_size < zio->io_size, in vdev_draid_map_alloc_row()
1006 const uint64_t psize = io_size >> ashift; in vdev_draid_map_alloc_row()
1034 rr->rr_size = io_size; in vdev_draid_map_alloc_row()
1087 return (io_size); in vdev_draid_map_alloc_row()
[all …]
H A Dvdev_queue.c608 #define IO_SPAN(fio, lio) ((lio)->io_offset + (lio)->io_size - (fio)->io_offset)
798 (dio->io_size != abd_get_size(dio->io_abd))) { in vdev_queue_aggregate()
800 ASSERT3U(abd_get_size(dio->io_abd), >, dio->io_size); in vdev_queue_aggregate()
801 abd = abd_get_offset_size(dio->io_abd, 0, dio->io_size); in vdev_queue_aggregate()
809 abd_get_zeros(dio->io_size), B_TRUE); in vdev_queue_aggregate()
821 next_offset = dio->io_offset + dio->io_size; in vdev_queue_aggregate()
823 ASSERT3U(abd_get_size(aio->io_abd), ==, aio->io_size); in vdev_queue_aggregate()
901 vq->vq_last_offset = zio->io_offset + zio->io_size; in vdev_queue_io_to_issue()
H A Dvdev_mirror.c644 zio->io_size); in vdev_mirror_io_start()
647 zio->io_size, zio->io_type, in vdev_mirror_io_start()
688 mc->mc_vd, mc->mc_offset, zio->io_abd, zio->io_size, in vdev_mirror_io_start()
796 mc->mc_vd, mc->mc_offset, zio->io_abd, zio->io_size, in vdev_mirror_io_done()
867 abd_copy(zio->io_abd, best_abd, zio->io_size); in vdev_mirror_io_done()
927 zio->io_abd, zio->io_size, ZIO_TYPE_WRITE, in vdev_mirror_io_done()
H A Dvdev_raidz.c550 ASSERT3U(off, ==, zio->io_size); in vdev_raidz_map_alloc_write()
590 uint64_t s = zio->io_size >> ashift; in vdev_raidz_map_alloc()
643 rr->rr_size = zio->io_size; in vdev_raidz_map_alloc()
741 uint64_t size = zio->io_size; in vdev_raidz_map_alloc_expanded()
2557 zio->io_offset, zio->io_size, RL_READER); in vdev_raidz_io_start()
3860 ASSERT3U(vre->vre_outstanding_bytes, >=, zio->io_size); in raidz_reflow_write_done()
3861 vre->vre_outstanding_bytes -= zio->io_size; in raidz_reflow_write_done()
3865 zio->io_size; in raidz_reflow_write_done()
3889 if (zio->io_size > (1 << rra->rra_ashift)) in raidz_reflow_read_done()
H A Dvdev_indirect.c1318 vdev_indirect_remap(zio->io_vd, zio->io_offset, zio->io_size, in vdev_indirect_io_start()
1323 if (first->is_size == zio->io_size) { in vdev_indirect_io_start()
1343 zio->io_size, zio->io_type, zio->io_priority, 0, in vdev_indirect_io_start()
/freebsd/stand/libsa/
H A Ddosfs.c191 size_t io_size; in dos_read_fatblk() local
196 io_size = FATBLKSZ; in dos_read_fatblk()
199 if (offset_in_fat + io_size > max_offset_in_fat) in dos_read_fatblk()
200 io_size = ((size_t)(max_offset_in_fat - offset_in_fat)); in dos_read_fatblk()
202 if (io_size != 0) { in dos_read_fatblk()
204 fs->fatbuf, io_size); in dos_read_fatblk()
210 if (io_size < FATBLKSZ) in dos_read_fatblk()
211 memset(fs->fatbuf + io_size, 0, FATBLKSZ - io_size); in dos_read_fatblk()
/freebsd/sys/contrib/openzfs/module/os/freebsd/zfs/
H A Dvdev_geom.c1098 if (abd_iterate_func(zio->io_abd, 0, zio->io_size, in vdev_geom_check_unmapped()
1180 bp->bio_length = zio->io_size; in vdev_geom_io_start()
1197 abd_iterate_func(zio->io_abd, 0, zio->io_size, in vdev_geom_io_start()
1204 zio->io_size); in vdev_geom_io_start()
1207 zio->io_size); in vdev_geom_io_start()
1215 bp->bio_length = zio->io_size; in vdev_geom_io_start()
1252 zio->io_size); in vdev_geom_io_done()
1255 zio->io_size); in vdev_geom_io_done()
/freebsd/sys/contrib/openzfs/include/os/linux/zfs/sys/
H A Dtrace_common.h64 __entry->zio_size = zio->io_size; \
/freebsd/sys/dev/mps/
H A Dmps_sas.c2401 uint32_t io_size, column; in mpssas_direct_drive_io() local
2421 io_size = (cm->cm_length >> sc->DD_block_exponent); in mpssas_direct_drive_io()
2433 if ((virtLBA + (uint64_t)io_size - 1) <= in mpssas_direct_drive_io()
2446 if ((stripe_offset + io_size) <= sc->DD_stripe_size) { in mpssas_direct_drive_io()
2499 io_size = (cm->cm_length >> sc->DD_block_exponent); in mpssas_direct_drive_io()
2518 if ((virtLBA + (uint64_t)io_size - 1) <= in mpssas_direct_drive_io()
2532 if ((stripe_offset + io_size) <= in mpssas_direct_drive_io()
2578 io_size = (cm->cm_length >> sc->DD_block_exponent); in mpssas_direct_drive_io()
2596 if ((virtLBA + (uint64_t)io_size - 1) <= in mpssas_direct_drive_io()
2610 if ((stripe_offset + io_size) <= in mpssas_direct_drive_io()
/freebsd/sys/contrib/openzfs/include/os/linux/spl/sys/
H A Duio.h162 uio->uio_resid = io_size(bio, rq); in zfs_uio_bvec_init()
/freebsd/sys/contrib/openzfs/include/os/linux/kernel/linux/
H A Dblkdev_compat.h604 io_size(struct bio *bio, struct request *rq) in io_size() function

12