| /freebsd/sbin/nvmecontrol/ |
| H A D | firmware.c | 160 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 D | wdc.c | 167 uint64_t max_xfer_size; in wdc_do_dump_e6() local 189 if (ioctl(fd, NVME_GET_MAX_XFER_SIZE, &max_xfer_size) < 0) in wdc_do_dump_e6() 191 buf = aligned_alloc(PAGE_SIZE, max_xfer_size); in wdc_do_dump_e6() 195 len = max_xfer_size; in wdc_do_dump_e6() 199 resid = MIN(len, max_xfer_size); in wdc_do_dump_e6() 326 uint64_t max_xfer_size; in wdc_do_dump_dui() local 338 if (ioctl(fd, NVME_GET_MAX_XFER_SIZE, &max_xfer_size) < 0) in wdc_do_dump_dui() 340 buf = aligned_alloc(PAGE_SIZE, max_xfer_size); in wdc_do_dump_dui() 347 resid = MIN(log_len, max_xfer_size); in wdc_do_dump_dui()
|
| /freebsd/sys/dev/nvmf/host/ |
| H A D | nvmf.c | 550 sc->max_xfer_size = maxphys; in nvmf_attach() 552 sc->max_xfer_size = ulmin(sc->max_xfer_size, in nvmf_attach() 559 sc->max_xfer_size = ulmin(sc->max_xfer_size, in nvmf_attach() 1105 if (pt->len > sc->max_xfer_size) in nvmf_passthrough_cmd() 1235 *(uint64_t *)arg = sc->max_xfer_size; in nvmf_ioctl()
|
| H A D | nvmf_var.h | 51 u_long max_xfer_size; member
|
| H A D | nvmf_sim.c | 197 cpi->maxio = sc->max_xfer_size; in nvmf_sim_action()
|
| /freebsd/sys/dev/nvmf/ |
| H A D | nvmf_transport_internal.h | 32 uint64_t (*max_xfer_size)(struct nvmf_qpair *qp); member
|
| H A D | nvmf_transport.c | 194 return (qp->nq_ops->max_xfer_size(qp)); in nvmf_max_xfer_size()
|
| H A D | nvmf_tcp.c | 1888 .max_xfer_size = tcp_max_xfer_size,
|
| /freebsd/sys/dev/nvme/ |
| H A D | nvme_ctrlr.c | 482 ctrlr->max_xfer_size = min(ctrlr->max_xfer_size, in nvme_ctrlr_identify() 1429 if (pt->len > ctrlr->max_xfer_size) { in nvme_ctrlr_passthrough_cmd() 1432 pt->len, ctrlr->max_xfer_size); in nvme_ctrlr_passthrough_cmd() 1513 if (npc->data_len > ctrlr->max_xfer_size) { in nvme_ctrlr_linux_passthru_cmd() 1516 npc->data_len, ctrlr->max_xfer_size); in nvme_ctrlr_linux_passthru_cmd() 1592 *(uint64_t *)arg = ctrlr->max_xfer_size; in nvme_ctrlr_ioctl() 1718 ctrlr->max_xfer_size = MIN(maxphys, (ctrlr->page_size / 8 * ctrlr->page_size)); in nvme_ctrlr_construct()
|
| H A D | nvme_qpair.c | 543 BUS_SPACE_MAXADDR, NULL, NULL, ctrlr->max_xfer_size, in nvme_qpair_construct() 544 howmany(ctrlr->max_xfer_size, ctrlr->page_size) + 1, in nvme_qpair_construct() 566 howmany(ctrlr->max_xfer_size, ctrlr->page_size); in nvme_qpair_construct()
|
| H A D | nvme_sim.c | 194 cpi->maxio = ctrlr->max_xfer_size; in nvme_sim_action()
|
| H A D | nvme_private.h | 261 uint32_t max_xfer_size; member
|
| H A D | nvme_ns.c | 187 return ns->ctrlr->max_xfer_size; in nvme_ns_get_max_io_xfer_size()
|
| /freebsd/contrib/libarchive/libarchive/ |
| H A D | archive_read_disk_posix.c | 174 long max_xfer_size; member 631 if (cf->max_xfer_size != -1) in setup_suitable_read_buffer() 632 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() 1926 t->current_filesystem->max_xfer_size = -1; in setup_current_filesystem()
|
| /freebsd/sys/dev/ioat/ |
| H A D | ioat.c | 544 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 D | ioat_internal.h | 450 uint32_t max_xfer_size; member
|
| /freebsd/sys/dev/ocs_fc/ |
| H A D | ocs_node.c | 240 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()
|
| /freebsd/sys/dev/ufshci/ |
| H A D | ufshci_sim.c | 268 cpi->maxio = ctrlr->max_xfer_size; in ufshci_cam_action()
|
| H A D | ufshci_private.h | 373 uint32_t max_xfer_size; member
|
| H A D | ufshci_ctrlr.c | 373 ctrlr->max_xfer_size = ctrlr->page_size * UFSHCI_MAX_PRDT_ENTRY_COUNT; in ufshci_ctrlr_construct()
|
| H A D | ufshci_req_sdb.c | 89 payload_allocsz = num_entries * ctrlr->max_xfer_size; in ufshci_req_sdb_cmd_desc_construct()
|
| /freebsd/sys/dev/cxgbe/nvmf/ |
| H A D | nvmf_che.c | 3103 .max_xfer_size = che_max_xfer_size,
|