Home
last modified time | relevance | path

Searched refs:sgls (Results 1 – 9 of 9) 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()
249 config->sgls[i] = sgl_alloc(buf_sz, GFP_KERNEL, &nent); in setup_dma_buffers()
250 if (!config->sgls[i] || nent > PRD_ENTRIES_NUM) { in setup_dma_buffers()
255 count = dma_map_sg(dev->dev, config->sgls[i], nent, dir); in setup_dma_buffers()
298 if (!config->sgls[i] || !config->sgls_nent[i]) in release_dma_buffers()
301 dma_unmap_sg(dev->dev, config->sgls[i], in release_dma_buffers()
305 sgl_free(config->sgls[i]); in release_dma_buffers()
306 config->sgls[i] = NULL; in release_dma_buffers()
585 sg = read_config->sgls[prd_table_index]; in read_dma_buffer()
[all …]
H A Dintel-thc-dma.h109 struct scatterlist *sgls[PRD_TABLES_NUM]; member
/linux/drivers/nvme/target/
H A Dpci-epf.c1000 struct nvme_sgl_desc *sgls; in nvmet_pci_epf_get_sgl_segment() local
1016 sgls = buf; in nvmet_pci_epf_get_sgl_segment()
1018 if (sgls[nr_descs - 1].type == (NVME_SGL_FMT_SEG_DESC << 4) || in nvmet_pci_epf_get_sgl_segment()
1019 sgls[nr_descs - 1].type == (NVME_SGL_FMT_LAST_SEG_DESC << 4)) { in nvmet_pci_epf_get_sgl_segment()
1025 *desc = sgls[nr_descs - 1]; in nvmet_pci_epf_get_sgl_segment()
1034 return sgls; in nvmet_pci_epf_get_sgl_segment()
1042 struct nvme_sgl_desc *sgls = NULL; in nvmet_pci_epf_iod_parse_sgl_segments() local
1057 sgls = nvmet_pci_epf_get_sgl_segment(ctrl, &seg, &nr_sgls); in nvmet_pci_epf_iod_parse_sgl_segments()
1058 if (!sgls) { in nvmet_pci_epf_iod_parse_sgl_segments()
1075 if (sgls[i].type != (NVME_SGL_FMT_DATA_DESC << 4)) { in nvmet_pci_epf_iod_parse_sgl_segments()
[all …]
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.c750 id->sgls = cpu_to_le32(NVME_CTRL_SGLS_BYTE_ALIGNED); in nvmet_execute_identify_ctrl()
752 id->sgls |= cpu_to_le32(NVME_CTRL_SGLS_KSDBDS); in nvmet_execute_identify_ctrl()
754 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_array(sgls_per_request, sizeof(*sgls), GFP_KERNEL); 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/include/linux/
H A Dnvme.h380 __le32 sgls; member