Home
last modified time | relevance | path

Searched refs:max_xfer_size (Results 1 – 14 of 14) sorted by relevance

/freebsd/sbin/nvmecontrol/
H A Dfirmware.c160 uint64_t max_xfer_size; in update_firmware()
168 if (ioctl(fd, NVME_GET_MAX_XFER_SIZE, &max_xfer_size) < 0) in update_firmware()
171 max_xfer_size = MIN(max_xfer_size, (uint64_t)fwug << 12); in update_firmware()
173 if ((chunk = aligned_alloc(PAGE_SIZE, max_xfer_size)) == NULL) in update_firmware()
174 errx(EX_OSERR, "unable to malloc %zd bytes", (size_t)max_xfer_size); in update_firmware()
177 size = (resid >= max_xfer_size) ? max_xfer_size : resid; in update_firmware()
159 uint64_t max_xfer_size; update_firmware() local
/freebsd/sbin/nvmecontrol/modules/wdc/
H A Dwdc.c165 uint64_t max_xfer_size; in wdc_do_dump_e6() local
187 if (ioctl(fd, NVME_GET_MAX_XFER_SIZE, &max_xfer_size) < 0) in wdc_do_dump_e6()
189 buf = aligned_alloc(PAGE_SIZE, max_xfer_size); in wdc_do_dump_e6()
193 len = max_xfer_size; in wdc_do_dump_e6()
197 resid = MIN(len, max_xfer_size); in wdc_do_dump_e6()
324 uint64_t max_xfer_size; in wdc_do_dump_dui() local
336 if (ioctl(fd, NVME_GET_MAX_XFER_SIZE, &max_xfer_size) < 0) in wdc_do_dump_dui()
338 buf = aligned_alloc(PAGE_SIZE, max_xfer_size); in wdc_do_dump_dui()
345 resid = MIN(log_len, max_xfer_size); in wdc_do_dump_dui()
/freebsd/sys/dev/nvme/
H A Dnvme_ctrlr.c477 ctrlr->max_xfer_size = min(ctrlr->max_xfer_size, in nvme_ctrlr_identify()
1267 if (pt->len > ctrlr->max_xfer_size) { in nvme_ctrlr_passthrough_cmd()
1270 ctrlr->max_xfer_size); in nvme_ctrlr_passthrough_cmd()
1355 if (npc->data_len > ctrlr->max_xfer_size) { in nvme_ctrlr_linux_passthru_cmd()
1358 npc->data_len, ctrlr->max_xfer_size); in nvme_ctrlr_linux_passthru_cmd()
1444 *(uint64_t *)arg = ctrlr->max_xfer_size; in nvme_ctrlr_ioctl()
1565 ctrlr->max_xfer_size = MIN(maxphys, (ctrlr->page_size / 8 * ctrlr->page_size)); in nvme_ctrlr_construct()
H A Dnvme_qpair.c747 BUS_SPACE_MAXADDR, NULL, NULL, ctrlr->max_xfer_size, in nvme_qpair_construct()
748 howmany(ctrlr->max_xfer_size, ctrlr->page_size) + 1, in nvme_qpair_construct()
770 howmany(ctrlr->max_xfer_size, ctrlr->page_size); in nvme_qpair_construct()
H A Dnvme_sim.c189 cpi->maxio = ctrlr->max_xfer_size; in nvme_sim_action()
H A Dnvme_private.h259 uint32_t max_xfer_size; member
H A Dnvme_ns.c187 return ns->ctrlr->max_xfer_size; in nvme_ns_get_max_io_xfer_size()
/freebsd/sys/dev/nvmf/host/
H A Dnvmf.c537 sc->max_xfer_size = maxphys; in nvmf_attach()
539 sc->max_xfer_size = ulmin(sc->max_xfer_size, in nvmf_attach()
1000 if (pt->len > sc->max_xfer_size) in nvmf_passthrough_cmd()
1130 *(uint64_t *)arg = sc->max_xfer_size; in nvmf_ioctl()
H A Dnvmf_var.h51 u_long max_xfer_size; member
H A Dnvmf_sim.c197 cpi->maxio = sc->max_xfer_size; in nvmf_sim_action()
/freebsd/contrib/libarchive/libarchive/
H A Darchive_read_disk_posix.c175 long max_xfer_size; member
636 if (cf->max_xfer_size != -1) in setup_suitable_read_buffer()
637 asize = cf->max_xfer_size + xfer_align; in setup_suitable_read_buffer()
1487 t->current_filesystem->max_xfer_size = in get_xfer_size()
1496 t->current_filesystem->max_xfer_size = in get_xfer_size()
1525 fs->max_xfer_size = -1; in set_statvfs_transfer_size()
1541 fs->max_xfer_size = -1; in set_statfs_transfer_size()
1985 t->current_filesystem->max_xfer_size = -1; in setup_current_filesystem()
/freebsd/sys/dev/ioat/
H A Dioat.c544 ioat->max_xfer_size = 1 << xfercap; in ioat3_attach()
616 ioat->max_xfer_size, 1, ioat->max_xfer_size, 0, NULL, NULL, in ioat3_attach()
1038 return (ioat->max_xfer_size); in ioat_get_max_io_size()
1150 KASSERT(size <= ioat->max_xfer_size, ("%s: size too big (%u > %u)", in ioat_op_generic()
1151 __func__, (unsigned)size, ioat->max_xfer_size)); in ioat_op_generic()
1946 &ioat->max_xfer_size, 0, "HW maximum transfer size"); in ioat_setup_sysctl()
H A Dioat_internal.h450 uint32_t max_xfer_size; member
/freebsd/sys/dev/ocs_fc/
H A Docs_node.c240 uint64_t max_xfer_size; in ocs_node_create_pool() local
253 max_xfer_size = (max_sge * (uint64_t)num_sgl); in ocs_node_create_pool()
255 max_xfer_size = 65536; in ocs_node_create_pool()
258 if (max_xfer_size > 65536) in ocs_node_create_pool()
259 max_xfer_size = 65536; in ocs_node_create_pool()
272 node->max_wr_xfer_size = max_xfer_size; in ocs_node_create_pool()