Home
last modified time | relevance | path

Searched refs:sgls (Results 1 – 13 of 13) sorted by relevance

/linux/drivers/hid/intel-thc-hid/intel-thc/
H A Dintel-thc-dma.c196 for_each_sg(config->sgls[ind], sg, config->sgls_nent[ind], j) { in thc_copy_one_sgl_to_prd()
234 memset(config->sgls, 0, sizeof(config->sgls)); in setup_dma_buffers()
250 config->sgls[i] = sgl_alloc(buf_sz, GFP_KERNEL, &nent); in setup_dma_buffers()
251 if (!config->sgls[i] || nent > PRD_ENTRIES_NUM) { in setup_dma_buffers()
256 count = dma_map_sg(dev->dev, config->sgls[i], nent, dir); in setup_dma_buffers()
300 if (!config->sgls[i] || !config->sgls_nent[i]) in release_dma_buffers()
303 dma_unmap_sg(dev->dev, config->sgls[i], in release_dma_buffers()
307 sgl_free(config->sgls[i]); in release_dma_buffers()
308 config->sgls[i] = NULL; in release_dma_buffers()
578 if (!read_config->prd_tbls || !read_config->sgls[prd_table_index]) { in read_dma_buffer()
[all …]
H A Dintel-thc-dma.h110 struct scatterlist *sgls[PRD_TABLES_NUM]; member
/linux/drivers/nvme/target/
H A Dpci-epf.c999 struct nvme_sgl_desc *sgls; in nvmet_pci_epf_get_sgl_segment() local
1015 sgls = buf; in nvmet_pci_epf_get_sgl_segment()
1017 if (sgls[nr_descs - 1].type == (NVME_SGL_FMT_SEG_DESC << 4) || in nvmet_pci_epf_get_sgl_segment()
1018 sgls[nr_descs - 1].type == (NVME_SGL_FMT_LAST_SEG_DESC << 4)) { in nvmet_pci_epf_get_sgl_segment()
1024 *desc = sgls[nr_descs - 1]; in nvmet_pci_epf_get_sgl_segment()
1033 return sgls; in nvmet_pci_epf_get_sgl_segment()
1041 struct nvme_sgl_desc *sgls = NULL; in nvmet_pci_epf_iod_parse_sgl_segments() local
1056 sgls = nvmet_pci_epf_get_sgl_segment(ctrl, &seg, &nr_sgls); in nvmet_pci_epf_iod_parse_sgl_segments()
1057 if (!sgls) { in nvmet_pci_epf_iod_parse_sgl_segments()
1074 if (sgls[i].type != (NVME_SGL_FMT_DATA_DESC << 4)) { in nvmet_pci_epf_iod_parse_sgl_segments()
[all …]
H A Ddiscovery.c290 id->sgls = cpu_to_le32(1 << 0); /* we always support SGLs */ in nvmet_execute_disc_identify()
292 id->sgls |= cpu_to_le32(1 << 2); in nvmet_execute_disc_identify()
294 id->sgls |= cpu_to_le32(1 << 20); in nvmet_execute_disc_identify()
H A Dpassthru.c140 id->sgls = cpu_to_le32(1 << 0); /* we always support SGLs */ in nvmet_passthru_override_id_ctrl()
142 id->sgls |= cpu_to_le32(1 << 2); in nvmet_passthru_override_id_ctrl()
144 id->sgls |= cpu_to_le32(1 << 20); in nvmet_passthru_override_id_ctrl()
H A Dadmin-cmd.c749 id->sgls = cpu_to_le32(NVME_CTRL_SGLS_BYTE_ALIGNED); in nvmet_execute_identify_ctrl()
751 id->sgls |= cpu_to_le32(NVME_CTRL_SGLS_KSDBDS); in nvmet_execute_identify_ctrl()
753 id->sgls |= cpu_to_le32(NVME_CTRL_SGLS_SAOS); in nvmet_execute_identify_ctrl()
/linux/drivers/misc/genwqe/
H A Dcard_dev.c846 if (req->sgls[i].sgl != NULL) in ddcb_cmd_cleanup()
847 genwqe_free_sync_sgl(cd, &req->sgls[i]); in ddcb_cmd_cleanup()
958 rc = genwqe_alloc_sync_sgl(cd, &req->sgls[i], in ddcb_cmd_fixups()
964 genwqe_setup_sgl(cd, &req->sgls[i], in ddcb_cmd_fixups()
968 cpu_to_be64(req->sgls[i].sgl_dma_addr); in ddcb_cmd_fixups()
H A Dcard_base.h387 struct genwqe_sgl sgls[DDCB_FIXUPS]; member
/linux/drivers/scsi/elx/efct/
H A Defct_hw.c610 struct efc_dma **sgls = NULL; in efct_hw_init_prereg_io() local
614 sgls = kmalloc_objs(*sgls, sgls_per_request); in efct_hw_init_prereg_io()
615 if (!sgls) in efct_hw_init_prereg_io()
623 kfree(sgls); in efct_hw_init_prereg_io()
641 sgls[n] = hw->io[idx + n]->sgl; in efct_hw_init_prereg_io()
645 hw->io[idx]->indicator, n, sgls, NULL, &req)) { in efct_hw_init_prereg_io()
667 kfree(sgls); in efct_hw_init_prereg_io()
/linux/drivers/infiniband/core/
H A Duverbs_cmd.c2032 const struct ib_sge __user *sgls; in ib_uverbs_post_send() local
2043 sgls = uverbs_request_next_ptr(&iter, in ib_uverbs_post_send()
2046 if (IS_ERR(sgls)) in ib_uverbs_post_send()
2047 return PTR_ERR(sgls); in ib_uverbs_post_send()
2177 if (copy_from_user(next->sg_list, sgls + sg_ind, in ib_uverbs_post_send()
2228 const struct ib_sge __user *sgls; in ib_uverbs_unmarshall_recv() local
2237 sgls = uverbs_request_next_ptr(iter, size_mul(sge_count, in ib_uverbs_unmarshall_recv()
2239 if (IS_ERR(sgls)) in ib_uverbs_unmarshall_recv()
2240 return ERR_CAST(sgls); in ib_uverbs_unmarshall_recv()
2291 if (copy_from_user(next->sg_list, sgls + sg_ind, in ib_uverbs_unmarshall_recv()
/linux/drivers/nvme/host/
H A Drdma.c1022 if (!(ctrl->ctrl.sgls & NVME_CTRL_SGLS_KSDBDS)) { in nvme_rdma_setup_ctrl()
1054 if (ctrl->ctrl.sgls & NVME_CTRL_SGLS_SAOS) in nvme_rdma_setup_ctrl()
H A Dcore.c3597 ctrl->sgls = le32_to_cpu(id->sgls); in nvme_init_identify()
/linux/include/linux/
H A Dnvme.h380 __le32 sgls; member