Home
last modified time | relevance | path

Searched refs:n_elem (Results 1 – 25 of 31) sorted by relevance

12

/linux/drivers/scsi/mvsas/
H A Dmv_sas.c316 u32 flags = (tei->n_elem << MCH_PRD_LEN_SHIFT); in mvs_task_prep_smp()
360 if (tei->n_elem) in mvs_task_prep_smp()
365 i = MVS_CHIP_DISP->prd_size() * tei->n_elem; in mvs_task_prep_smp()
396 MVS_CHIP_DISP->make_prd(task->scatter, tei->n_elem, buf_prd); in mvs_task_prep_smp()
461 flags = (tei->n_elem << MCH_PRD_LEN_SHIFT); in mvs_task_prep_ata()
505 if (tei->n_elem) in mvs_task_prep_ata()
544 MVS_CHIP_DISP->make_prd(task->scatter, tei->n_elem, buf_prd); in mvs_task_prep_ata()
548 TRASH_BUCKET_SIZE, tei->n_elem, buf_prd); in mvs_task_prep_ata()
590 hdr->flags = cpu_to_le32(flags | (tei->n_elem << MCH_PRD_LEN_SHIFT)); in mvs_task_prep_ssp()
616 if (tei->n_elem) in mvs_task_prep_ssp()
[all …]
H A Dmv_sas.h312 u32 n_elem; member
421 int n_elem; member
/linux/drivers/scsi/hisi_sas/
H A Dhisi_sas_main.c222 if (slot->n_elem) { in hisi_sas_slot_task_free()
281 struct sas_task *task, int n_elem) in hisi_sas_dma_unmap() argument
285 if (!sas_protocol_ata(task->task_proto) && n_elem) { in hisi_sas_dma_unmap()
297 struct sas_task *task, int *n_elem) in hisi_sas_dma_map() argument
303 *n_elem = task->num_scatter; in hisi_sas_dma_map()
308 *n_elem = dma_map_sg(dev, task->scatter, in hisi_sas_dma_map()
310 if (!*n_elem) { in hisi_sas_dma_map()
315 *n_elem = dma_map_sg(dev, &task->smp_task.smp_req, in hisi_sas_dma_map()
317 if (!*n_elem) { in hisi_sas_dma_map()
329 if (*n_elem > HISI_SAS_SGE_PAGE_CNT) { in hisi_sas_dma_map()
[all …]
H A Dhisi_sas_v1_hw.c893 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()
H A Dhisi_sas_v3_hw.c1146 int n_elem) in prep_prd_sge_v3_hw() argument
1152 for_each_sg(scatter, sg, n_elem, i) { in prep_prd_sge_v3_hw()
1163 hdr->sg_len |= cpu_to_le32(n_elem << CMD_HDR_DATA_SGL_LEN_OFF); in prep_prd_sge_v3_hw()
1170 int n_elem) in prep_prd_sge_dif_v3_hw() argument
1178 for_each_sg(scatter, sg, n_elem, i) { in prep_prd_sge_dif_v3_hw()
1191 hdr->sg_len |= cpu_to_le32(n_elem << CMD_HDR_DIF_SGL_LEN_OFF); in prep_prd_sge_dif_v3_hw()
1316 slot->n_elem); in prep_ssp_v3_hw()
1487 slot->n_elem); in prep_ata_v3_hw()
H A Dhisi_sas_v2_hw.c1676 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()
2565 slot->n_elem); in prep_ata_v2_hw()
H A Dhisi_sas.h238 u64 n_elem; member
/linux/drivers/scsi/pm8001/
H A Dpm8001_sas.c483 u32 n_elem = 0; in pm8001_queue_command() local
531 n_elem = dma_map_sg(pm8001_ha->dev, task->scatter, in pm8001_queue_command()
533 if (!n_elem) { in pm8001_queue_command()
539 n_elem = task->num_scatter; in pm8001_queue_command()
543 ccb->n_elem = n_elem; in pm8001_queue_command()
550 if (!sas_protocol_ata(task_proto) && n_elem) in pm8001_queue_command()
580 if (!sas_protocol_ata(task->task_proto) && ccb->n_elem) in pm8001_ccb_task_free()
H A Dpm8001_sas.h286 u32 n_elem; member
748 ccb->n_elem = 0; in pm8001_ccb_alloc()
/linux/drivers/mmc/host/
H A Dmmci_stm32_sdmmc.c145 int n_elem; in _sdmmc_idma_prep_data() local
147 n_elem = dma_map_sg(mmc_dev(host->mmc), in _sdmmc_idma_prep_data()
152 if (!n_elem) { in _sdmmc_idma_prep_data()
/linux/drivers/ata/
H A Dlibata-core.c4600 unsigned int n_elem) in ata_sg_init() argument
4603 qc->n_elem = n_elem; in ata_sg_init()
4626 if (qc->n_elem) in ata_sg_clean()
4649 unsigned int n_elem; in ata_sg_setup() local
4651 n_elem = dma_map_sg(ap->dev, qc->sg, qc->n_elem, qc->dma_dir); in ata_sg_setup()
4652 if (n_elem < 1) in ata_sg_setup()
4655 qc->orig_n_elem = qc->n_elem; in ata_sg_setup()
4656 qc->n_elem = n_elem; in ata_sg_setup()
4958 if (ata_is_data(prot) && (!qc->sg || !qc->n_elem || !qc->nbytes)) in ata_qc_issue()
H A Dlibahci.c1660 for_each_sg(qc->sg, sg, qc->n_elem, si) { in ahci_fill_sg()
1691 unsigned int n_elem; in ahci_qc_prep() local
1705 n_elem = 0; in ahci_qc_prep()
1707 n_elem = ahci_fill_sg(qc, cmd_tbl); in ahci_qc_prep()
1712 opts = cmd_fis_len | n_elem << 16 | (qc->dev->link->pmp << 12); in ahci_qc_prep()
H A Dsata_qstor.c244 for_each_sg(qc->sg, sg, qc->n_elem, si) { in qs_fill_sg()
H A Dpata_icside.c243 set_dma_sg(state->dma, qc->sg, qc->n_elem); in pata_icside_bmdma_setup()
H A Dpdc_adma.c266 for_each_sg(qc->sg, sg, qc->n_elem, si) { in adma_fill_sg()
H A Dsata_sil.c301 for_each_sg(qc->sg, sg, qc->n_elem, si) { in sil_fill_sg()
H A Dsata_nv.c1302 if (idx == qc->n_elem - 1) in nv_adma_fill_aprd()
1320 for_each_sg(qc->sg, sg, qc->n_elem, si) { in nv_adma_fill_sg()
1976 for_each_sg(qc->sg, sg, qc->n_elem, si) { in nv_swncq_fill_sg()
H A Dsata_inic162x.c470 for_each_sg(qc->sg, sg, qc->n_elem, si) { in inic_fill_sg()
H A Dpata_ep93xx.c708 txd = dmaengine_prep_slave_sg(channel, qc->sg, qc->n_elem, qc->dma_dir, in ep93xx_pata_dma_start()
H A Dpata_mpc52xx.c459 for_each_sg(qc->sg, sg, qc->n_elem, si) { in mpc52xx_ata_build_dmatable()
H A Dsata_sil24.c775 for_each_sg(qc->sg, sg, qc->n_elem, si) { in sil24_fill_sg()
H A Dpata_macio.c545 for_each_sg(qc->sg, sg, qc->n_elem, si) { in pata_macio_qc_prep()
/linux/drivers/iio/imu/
H A Dadis16480.c1378 static bool adis16480_validate_crc(const u16 *buf, const u8 n_elem, const u32 crc) in adis16480_validate_crc() argument
1384 for (j = 0; j < n_elem; j++) in adis16480_validate_crc()
1387 crc_calc = crc32(~0, crc_buf, n_elem * 2); in adis16480_validate_crc()
/linux/drivers/scsi/libsas/
H A Dsas_ata.c191 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/include/linux/
H A Dlibata.h646 unsigned int n_elem; member
1184 unsigned int n_elem);
1885 qc->n_elem = 0; in ata_qc_reinit()

12