/drivers/scsi/mvsas/ |
D | mv_sas.c | 315 u32 flags = (tei->n_elem << MCH_PRD_LEN_SHIFT); in mvs_task_prep_smp() 359 if (tei->n_elem) in mvs_task_prep_smp() 364 i = MVS_CHIP_DISP->prd_size() * tei->n_elem; in mvs_task_prep_smp() 395 MVS_CHIP_DISP->make_prd(task->scatter, tei->n_elem, buf_prd); in mvs_task_prep_smp() 460 flags = (tei->n_elem << MCH_PRD_LEN_SHIFT); in mvs_task_prep_ata() 504 if (tei->n_elem) in mvs_task_prep_ata() 543 MVS_CHIP_DISP->make_prd(task->scatter, tei->n_elem, buf_prd); in mvs_task_prep_ata() 547 TRASH_BUCKET_SIZE, tei->n_elem, buf_prd); in mvs_task_prep_ata() 593 hdr->flags = cpu_to_le32(flags | (tei->n_elem << MCH_PRD_LEN_SHIFT)); in mvs_task_prep_ssp() 619 if (tei->n_elem) in mvs_task_prep_ssp() [all …]
|
D | mv_sas.h | 312 u32 n_elem; member 422 int n_elem; member
|
/drivers/scsi/pm8001/ |
D | pm8001_sas.c | 389 u32 tag = 0xdeadbeef, rc = 0, n_elem = 0; in pm8001_task_exec() local 440 n_elem = dma_map_sg(pm8001_ha->dev, in pm8001_task_exec() 444 if (!n_elem) { in pm8001_task_exec() 450 n_elem = t->num_scatter; in pm8001_task_exec() 454 ccb->n_elem = n_elem; in pm8001_task_exec() 501 if (n_elem) in pm8001_task_exec() 533 if (ccb->n_elem) in pm8001_ccb_task_free() 830 ccb->n_elem = 0; in pm8001_exec_internal_task_abort()
|
D | pm8001_sas.h | 285 u32 n_elem; member
|
D | pm80xx_hwi.c | 1817 ccb->n_elem = 0; in pm80xx_send_abort_all() 1882 ccb->n_elem = 0; in pm80xx_send_read_log() 4443 ccb->n_elem, ccb->buf_prd); in pm80xx_chip_ssp_io_req() 4501 pm8001_chip_make_sg(task->scatter, ccb->n_elem, in pm80xx_chip_ssp_io_req() 4618 ccb->n_elem, ccb->buf_prd); in pm80xx_chip_sata_req() 4685 ccb->n_elem, ccb->buf_prd); in pm80xx_chip_sata_req()
|
/drivers/scsi/hisi_sas/ |
D | hisi_sas_main.c | 232 if (slot->n_elem) in hisi_sas_slot_task_free() 284 struct sas_task *task, int n_elem, in hisi_sas_dma_unmap() argument 291 if (n_elem) in hisi_sas_dma_unmap() 304 struct sas_task *task, int *n_elem, in hisi_sas_dma_map() argument 311 *n_elem = task->num_scatter; in hisi_sas_dma_map() 316 *n_elem = dma_map_sg(dev, task->scatter, in hisi_sas_dma_map() 318 if (!*n_elem) { in hisi_sas_dma_map() 337 if (*n_elem > HISI_SAS_SGE_PAGE_CNT) { in hisi_sas_dma_map() 339 *n_elem); in hisi_sas_dma_map() 347 hisi_sas_dma_unmap(hisi_hba, task, *n_elem, in hisi_sas_dma_map() [all …]
|
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()
|
D | hisi_sas_v3_hw.c | 1101 int n_elem) in prep_prd_sge_v3_hw() argument 1107 for_each_sg(scatter, sg, n_elem, i) { in prep_prd_sge_v3_hw() 1118 hdr->sg_len |= cpu_to_le32(n_elem << CMD_HDR_DATA_SGL_LEN_OFF); in prep_prd_sge_v3_hw() 1125 int n_elem) in prep_prd_sge_dif_v3_hw() argument 1133 for_each_sg(scatter, sg, n_elem, i) { in prep_prd_sge_dif_v3_hw() 1146 hdr->sg_len |= cpu_to_le32(n_elem << CMD_HDR_DIF_SGL_LEN_OFF); in prep_prd_sge_dif_v3_hw() 1271 slot->n_elem); in prep_ssp_v3_hw() 1442 slot->n_elem); in prep_ata_v3_hw()
|
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() 2564 slot->n_elem); in prep_ata_v2_hw()
|
D | hisi_sas.h | 244 u64 n_elem; member
|
/drivers/ata/ |
D | libata-core.c | 1497 unsigned int n_elem, unsigned long timeout) in ata_exec_internal_sg() argument 1556 for_each_sg(sgl, sg, n_elem, i) in ata_exec_internal_sg() 1559 ata_sg_init(qc, sgl, n_elem); in ata_exec_internal_sg() 1676 unsigned int n_elem = 0; in ata_exec_internal() local 1682 n_elem++; in ata_exec_internal() 1685 return ata_exec_internal_sg(dev, tf, cdb, dma_dir, psg, n_elem, in ata_exec_internal() 4463 unsigned int n_elem) in ata_sg_init() argument 4466 qc->n_elem = n_elem; in ata_sg_init() 4489 VPRINTK("unmapping %u sg elements\n", qc->n_elem); in ata_sg_clean() 4491 if (qc->n_elem) in ata_sg_clean() [all …]
|
D | pata_pxa.c | 57 tx = dmaengine_prep_slave_sg(pd->dma_chan, qc->sg, qc->n_elem, dir, in pxa_qc_prep()
|
D | libata.h | 62 unsigned int n_elem, unsigned long timeout);
|
D | libahci.c | 1621 for_each_sg(qc->sg, sg, qc->n_elem, si) { in ahci_fill_sg() 1652 unsigned int n_elem; in ahci_qc_prep() local 1666 n_elem = 0; in ahci_qc_prep() 1668 n_elem = ahci_fill_sg(qc, cmd_tbl); in ahci_qc_prep() 1673 opts = cmd_fis_len | n_elem << 16 | (qc->dev->link->pmp << 12); in ahci_qc_prep()
|
D | acard-ahci.c | 193 for_each_sg(qc->sg, sg, qc->n_elem, si) { in acard_ahci_fill_sg()
|
D | sata_dwc_460ex.c | 392 desc = dmaengine_prep_slave_sg(hsdevp->chan, qc->sg, qc->n_elem, in dma_dwc_xfer_setup() 403 qc->sg, qc->n_elem, &hsdev->dmadr); in dma_dwc_xfer_setup()
|
D | pata_icside.c | 243 set_dma_sg(state->dma, qc->sg, qc->n_elem); in pata_icside_bmdma_setup()
|
D | pdc_adma.c | 266 for_each_sg(qc->sg, sg, qc->n_elem, si) { in adma_fill_sg()
|
D | sata_qstor.c | 244 for_each_sg(qc->sg, sg, qc->n_elem, si) { in qs_fill_sg()
|
D | sata_sil.c | 301 for_each_sg(qc->sg, sg, qc->n_elem, si) { in sil_fill_sg()
|
D | sata_nv.c | 1305 if (idx == qc->n_elem - 1) in nv_adma_fill_aprd() 1325 for_each_sg(qc->sg, sg, qc->n_elem, si) { in nv_adma_fill_sg() 1987 for_each_sg(qc->sg, sg, qc->n_elem, si) { in nv_swncq_fill_sg()
|
D | sata_inic162x.c | 470 for_each_sg(qc->sg, sg, qc->n_elem, si) { in inic_fill_sg()
|
/drivers/mmc/host/ |
D | mmci_stm32_sdmmc.c | 87 int n_elem; in _sdmmc_idma_prep_data() local 89 n_elem = dma_map_sg(mmc_dev(host->mmc), in _sdmmc_idma_prep_data() 94 if (!n_elem) { in _sdmmc_idma_prep_data()
|
/drivers/iio/imu/ |
D | adis16480.c | 1101 static bool adis16480_validate_crc(const u16 *buf, const u8 n_elem, const u32 crc) in adis16480_validate_crc() argument 1107 for (j = 0; j < n_elem; j++) in adis16480_validate_crc() 1110 crc_calc = crc32(~0, crc_buf, n_elem * 2); in adis16480_validate_crc()
|
/drivers/scsi/libsas/ |
D | sas_ata.c | 198 task->num_scatter = qc->n_elem; in sas_ata_qc_issue() 203 for_each_sg(qc->sg, sg, qc->n_elem, si) in sas_ata_qc_issue()
|