| /linux/drivers/scsi/mvsas/ |
| H A D | mv_sas.c | 306 u32 flags = (tei->n_elem << MCH_PRD_LEN_SHIFT); in mvs_task_prep_smp() 350 if (tei->n_elem) in mvs_task_prep_smp() 355 i = MVS_CHIP_DISP->prd_size() * tei->n_elem; in mvs_task_prep_smp() 386 MVS_CHIP_DISP->make_prd(task->scatter, tei->n_elem, buf_prd); in mvs_task_prep_smp() 451 flags = (tei->n_elem << MCH_PRD_LEN_SHIFT); in mvs_task_prep_ata() 495 if (tei->n_elem) in mvs_task_prep_ata() 534 MVS_CHIP_DISP->make_prd(task->scatter, tei->n_elem, buf_prd); in mvs_task_prep_ata() 538 TRASH_BUCKET_SIZE, tei->n_elem, buf_prd); in mvs_task_prep_ata() 580 hdr->flags = cpu_to_le32(flags | (tei->n_elem << MCH_PRD_LEN_SHIFT)); in mvs_task_prep_ssp() 606 if (tei->n_elem) in mvs_task_prep_ssp() [all …]
|
| H A D | mv_sas.h | 312 u32 n_elem; member 421 int n_elem; member
|
| /linux/drivers/scsi/pm8001/ |
| H A D | pm8001_sas.c | 493 u32 n_elem = 0; in pm8001_queue_command() local 541 n_elem = dma_map_sg(pm8001_ha->dev, task->scatter, in pm8001_queue_command() 543 if (!n_elem) { in pm8001_queue_command() 549 n_elem = task->num_scatter; in pm8001_queue_command() 553 ccb->n_elem = n_elem; in pm8001_queue_command() 560 if (!sas_protocol_ata(task_proto) && n_elem) in pm8001_queue_command() 590 if (!sas_protocol_ata(task->task_proto) && ccb->n_elem) in pm8001_ccb_task_free()
|
| /linux/drivers/scsi/hisi_sas/ |
| H A D | hisi_sas_main.c | 254 if (slot->n_elem) { in hisi_sas_slot_task_free() 313 struct sas_task *task, int n_elem) in hisi_sas_dma_unmap() argument 317 if (!sas_protocol_ata(task->task_proto) && n_elem) { in hisi_sas_dma_unmap() 329 struct sas_task *task, int *n_elem) in hisi_sas_dma_map() argument 335 *n_elem = task->num_scatter; in hisi_sas_dma_map() 340 *n_elem = dma_map_sg(dev, task->scatter, in hisi_sas_dma_map() 342 if (!*n_elem) { in hisi_sas_dma_map() 347 *n_elem = dma_map_sg(dev, &task->smp_task.smp_req, in hisi_sas_dma_map() 349 if (!*n_elem) { in hisi_sas_dma_map() 361 if (*n_elem > HISI_SAS_SGE_PAGE_CNT) { in hisi_sas_dma_map() [all …]
|
| H 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()
|
| H A D | hisi_sas_v3_hw.c | 1193 int n_elem) in prep_prd_sge_v3_hw() argument 1199 for_each_sg(scatter, sg, n_elem, i) { in prep_prd_sge_v3_hw() 1210 hdr->sg_len |= cpu_to_le32(n_elem << CMD_HDR_DATA_SGL_LEN_OFF); in prep_prd_sge_v3_hw() 1217 int n_elem) in prep_prd_sge_dif_v3_hw() argument 1225 for_each_sg(scatter, sg, n_elem, i) { in prep_prd_sge_dif_v3_hw() 1238 hdr->sg_len |= cpu_to_le32(n_elem << CMD_HDR_DIF_SGL_LEN_OFF); in prep_prd_sge_dif_v3_hw() 1363 slot->n_elem); in prep_ssp_v3_hw() 1542 slot->n_elem); in prep_ata_v3_hw()
|
| H A D | hisi_sas.h | 249 u64 n_elem; member
|
| /linux/drivers/mmc/host/ |
| H A D | mmci_stm32_sdmmc.c | 145 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/iio/imu/ |
| H A D | adis16550.c | 813 static u32 adis16550_validate_crc(__be32 *buffer, const u8 n_elem) in adis16550_validate_crc() argument 824 for (i = 0; i < n_elem; i++) in adis16550_validate_crc() 827 crc_calc = crc32(~0, crc_buf, n_elem * 4); in adis16550_validate_crc()
|
| H A D | adis16480.c | 1378 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/ata/ |
| H A D | libata-core.c | 4819 unsigned int n_elem) in ata_sg_init() argument 4822 qc->n_elem = n_elem; in ata_sg_init() 4845 if (qc->n_elem) in ata_sg_clean() 4868 unsigned int n_elem; in ata_sg_setup() local 4870 n_elem = dma_map_sg(ap->dev, qc->sg, qc->n_elem, qc->dma_dir); in ata_sg_setup() 4871 if (n_elem < 1) in ata_sg_setup() 4874 qc->orig_n_elem = qc->n_elem; in ata_sg_setup() 4875 qc->n_elem = n_elem; in ata_sg_setup() 5183 if (ata_is_data(prot) && (!qc->sg || !qc->n_elem || !qc->nbytes)) in ata_qc_issue()
|
| H A D | pata_pxa.c | 57 tx = dmaengine_prep_slave_sg(pd->dma_chan, qc->sg, qc->n_elem, dir, in pxa_qc_prep()
|
| H A D | libahci.c | 1665 for_each_sg(qc->sg, sg, qc->n_elem, si) { in ahci_fill_sg() 1696 unsigned int n_elem; in ahci_qc_prep() local 1710 n_elem = 0; in ahci_qc_prep() 1712 n_elem = ahci_fill_sg(qc, cmd_tbl); in ahci_qc_prep() 1717 opts = cmd_fis_len | n_elem << 16 | (qc->dev->link->pmp << 12); in ahci_qc_prep()
|
| H A D | sata_dwc_460ex.c | 347 desc = dmaengine_prep_slave_sg(hsdevp->chan, qc->sg, qc->n_elem, in dma_dwc_xfer_setup() 358 qc->sg, qc->n_elem, &hsdev->dmadr); in dma_dwc_xfer_setup()
|
| H A D | pata_icside.c | 243 set_dma_sg(state->dma, qc->sg, qc->n_elem); in pata_icside_bmdma_setup()
|
| H A D | pdc_adma.c | 266 for_each_sg(qc->sg, sg, qc->n_elem, si) { in adma_fill_sg()
|
| H A D | sata_qstor.c | 244 for_each_sg(qc->sg, sg, qc->n_elem, si) { in qs_fill_sg()
|
| H A D | sata_sil.c | 301 for_each_sg(qc->sg, sg, qc->n_elem, si) { in sil_fill_sg()
|
| H A D | sata_nv.c | 1302 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 D | sata_inic162x.c | 470 for_each_sg(qc->sg, sg, qc->n_elem, si) { in inic_fill_sg()
|
| H A D | pata_ep93xx.c | 708 txd = dmaengine_prep_slave_sg(channel, qc->sg, qc->n_elem, qc->dma_dir, in ep93xx_pata_dma_start()
|
| H A D | pata_mpc52xx.c | 459 for_each_sg(qc->sg, sg, qc->n_elem, si) { in mpc52xx_ata_build_dmatable()
|
| H A D | sata_rcar.c | 508 for_each_sg(qc->sg, sg, qc->n_elem, si) { in sata_rcar_bmdma_fill_sg()
|
| H A D | libata-sff.c | 2498 for_each_sg(qc->sg, sg, qc->n_elem, si) { in ata_bmdma_fill_sg() 2548 for_each_sg(qc->sg, sg, qc->n_elem, si) { in ata_bmdma_fill_sg_dumb()
|
| /linux/drivers/scsi/libsas/ |
| H 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()
|