/linux-6.3-rc2/drivers/scsi/mvsas/ |
A D | mv_sas.c | 360 if (tei->n_elem) in mvs_task_prep_smp() 505 if (tei->n_elem) in mvs_task_prep_ata() 620 if (tei->n_elem) in mvs_task_prep_ssp() 701 u32 tag = 0xdeadbeef, n_elem = 0; in mvs_task_prep() local 754 n_elem = dma_map_sg(mvi->dev, in mvs_task_prep() 758 if (!n_elem) { in mvs_task_prep() 764 n_elem = task->num_scatter; in mvs_task_prep() 779 slot->n_elem = n_elem; in mvs_task_prep() 791 tei.n_elem = n_elem; in mvs_task_prep() 835 if (n_elem) in mvs_task_prep() [all …]
|
A D | mv_sas.h | 312 u32 n_elem; member 421 int n_elem; member
|
/linux-6.3-rc2/drivers/scsi/pm8001/ |
A D | pm8001_sas.c | 430 u32 n_elem = 0; in pm8001_queue_command() local 478 n_elem = dma_map_sg(pm8001_ha->dev, task->scatter, in pm8001_queue_command() 480 if (!n_elem) { in pm8001_queue_command() 486 n_elem = task->num_scatter; in pm8001_queue_command() 490 ccb->n_elem = n_elem; in pm8001_queue_command() 497 if (!sas_protocol_ata(task_proto) && n_elem) in pm8001_queue_command() 527 if (!sas_protocol_ata(task->task_proto) && ccb->n_elem) in pm8001_ccb_task_free()
|
A D | pm8001_sas.h | 287 u32 n_elem; member 752 ccb->n_elem = 0; in pm8001_ccb_alloc()
|
/linux-6.3-rc2/drivers/scsi/hisi_sas/ |
A D | hisi_sas_main.c | 222 if (slot->n_elem) { in hisi_sas_slot_task_free() 277 struct sas_task *task, int n_elem) in hisi_sas_dma_unmap() argument 293 struct sas_task *task, int *n_elem) in hisi_sas_dma_map() argument 299 *n_elem = task->num_scatter; in hisi_sas_dma_map() 304 *n_elem = dma_map_sg(dev, task->scatter, in hisi_sas_dma_map() 306 if (!*n_elem) { in hisi_sas_dma_map() 313 if (!*n_elem) { in hisi_sas_dma_map() 325 if (*n_elem > HISI_SAS_SGE_PAGE_CNT) { in hisi_sas_dma_map() 327 *n_elem); in hisi_sas_dma_map() 459 int n_elem = 0, n_elem_dif = 0; in hisi_sas_queue_command() local [all …]
|
A D | hisi_sas_v1_hw.c | 893 int n_elem) in prep_prd_sge_v1_hw() argument 899 for_each_sg(scatter, sg, n_elem, i) { in prep_prd_sge_v1_hw() 910 hdr->sg_len = cpu_to_le32(n_elem << CMD_HDR_DATA_SGL_LEN_OFF); in prep_prd_sge_v1_hw() 1013 slot->n_elem); in prep_ssp_v1_hw()
|
A D | hisi_sas_v3_hw.c | 1116 int n_elem) in prep_prd_sge_v3_hw() argument 1122 for_each_sg(scatter, sg, n_elem, i) { in prep_prd_sge_v3_hw() 1133 hdr->sg_len |= cpu_to_le32(n_elem << CMD_HDR_DATA_SGL_LEN_OFF); in prep_prd_sge_v3_hw() 1140 int n_elem) in prep_prd_sge_dif_v3_hw() argument 1148 for_each_sg(scatter, sg, n_elem, i) { in prep_prd_sge_dif_v3_hw() 1161 hdr->sg_len |= cpu_to_le32(n_elem << CMD_HDR_DIF_SGL_LEN_OFF); in prep_prd_sge_dif_v3_hw() 1286 slot->n_elem); in prep_ssp_v3_hw() 1457 slot->n_elem); in prep_ata_v3_hw()
|
A D | hisi_sas.h | 238 u64 n_elem; member
|
A D | hisi_sas_v2_hw.c | 1676 int n_elem) in prep_prd_sge_v2_hw() argument 1682 for_each_sg(scatter, sg, n_elem, i) { in prep_prd_sge_v2_hw() 1693 hdr->sg_len = cpu_to_le32(n_elem << CMD_HDR_DATA_SGL_LEN_OFF); in prep_prd_sge_v2_hw() 1790 slot->n_elem); in prep_ssp_v2_hw() 2555 slot->n_elem); in prep_ata_v2_hw()
|
/linux-6.3-rc2/drivers/mmc/host/ |
A D | mmci_stm32_sdmmc.c | 120 int n_elem; in _sdmmc_idma_prep_data() local 122 n_elem = dma_map_sg(mmc_dev(host->mmc), in _sdmmc_idma_prep_data() 127 if (!n_elem) { in _sdmmc_idma_prep_data()
|
/linux-6.3-rc2/drivers/ata/ |
A D | libata-core.c | 1539 ata_sg_init(qc, sgl, n_elem); in ata_exec_internal_sg() 1655 unsigned int n_elem = 0; in ata_exec_internal() local 1661 n_elem++; in ata_exec_internal() 4530 unsigned int n_elem) in ata_sg_init() argument 4533 qc->n_elem = n_elem; in ata_sg_init() 4556 if (qc->n_elem) in ata_sg_clean() 4579 unsigned int n_elem; in ata_sg_setup() local 4581 n_elem = dma_map_sg(ap->dev, qc->sg, qc->n_elem, qc->dma_dir); in ata_sg_setup() 4582 if (n_elem < 1) in ata_sg_setup() 4585 qc->orig_n_elem = qc->n_elem; in ata_sg_setup() [all …]
|
A D | pata_pxa.c | 57 tx = dmaengine_prep_slave_sg(pd->dma_chan, qc->sg, qc->n_elem, dir, in pxa_qc_prep()
|
A D | acard-ahci.c | 191 for_each_sg(qc->sg, sg, qc->n_elem, si) { in acard_ahci_fill_sg()
|
A D | libahci.c | 1655 for_each_sg(qc->sg, sg, qc->n_elem, si) { in ahci_fill_sg() 1686 unsigned int n_elem; in ahci_qc_prep() local 1700 n_elem = 0; in ahci_qc_prep() 1702 n_elem = ahci_fill_sg(qc, cmd_tbl); in ahci_qc_prep() 1707 opts = cmd_fis_len | n_elem << 16 | (qc->dev->link->pmp << 12); in ahci_qc_prep()
|
A D | sata_dwc_460ex.c | 348 desc = dmaengine_prep_slave_sg(hsdevp->chan, qc->sg, qc->n_elem, in dma_dwc_xfer_setup() 359 qc->sg, qc->n_elem, &hsdev->dmadr); in dma_dwc_xfer_setup()
|
A D | pata_icside.c | 243 set_dma_sg(state->dma, qc->sg, qc->n_elem); in pata_icside_bmdma_setup()
|
A D | sata_qstor.c | 244 for_each_sg(qc->sg, sg, qc->n_elem, si) { in qs_fill_sg()
|
A D | pdc_adma.c | 266 for_each_sg(qc->sg, sg, qc->n_elem, si) { in adma_fill_sg()
|
A D | sata_sil.c | 301 for_each_sg(qc->sg, sg, qc->n_elem, si) { in sil_fill_sg()
|
A D | sata_nv.c | 1299 if (idx == qc->n_elem - 1) in nv_adma_fill_aprd() 1317 for_each_sg(qc->sg, sg, qc->n_elem, si) { in nv_adma_fill_sg() 1972 for_each_sg(qc->sg, sg, qc->n_elem, si) { in nv_swncq_fill_sg()
|
A D | sata_inic162x.c | 470 for_each_sg(qc->sg, sg, qc->n_elem, si) { in inic_fill_sg()
|
A D | pata_ep93xx.c | 712 txd = dmaengine_prep_slave_sg(channel, qc->sg, qc->n_elem, qc->dma_dir, in ep93xx_pata_dma_start()
|
/linux-6.3-rc2/drivers/iio/imu/ |
A D | adis16480.c | 1103 static bool adis16480_validate_crc(const u16 *buf, const u8 n_elem, const u32 crc) in adis16480_validate_crc() argument 1109 for (j = 0; j < n_elem; j++) in adis16480_validate_crc() 1112 crc_calc = crc32(~0, crc_buf, n_elem * 2); in adis16480_validate_crc()
|
/linux-6.3-rc2/drivers/scsi/libsas/ |
A D | sas_ata.c | 191 task->num_scatter = qc->n_elem; in sas_ata_qc_issue() 196 for_each_sg(qc->sg, sg, qc->n_elem, si) in sas_ata_qc_issue()
|
/linux-6.3-rc2/include/linux/ |
A D | libata.h | 595 unsigned int n_elem; member 1125 unsigned int n_elem); 1810 qc->n_elem = 0; in ata_qc_reinit()
|