| /Linux-v5.4/drivers/block/ |
| D | sx8.c | 256 int n_elem; member 712 int i, n_elem = 0, rc; in carm_queue_rq() local 716 crq->n_elem = 0; in carm_queue_rq() 727 n_elem = blk_rq_map_sg(q, rq, sg); in carm_queue_rq() 728 if (n_elem <= 0) in carm_queue_rq() 732 n_elem = dma_map_sg(&host->pdev->dev, sg, n_elem, carm_rq_dir(rq)); in carm_queue_rq() 733 if (n_elem <= 0) in carm_queue_rq() 737 if (host->hw_sg_used >= CARM_MAX_HOST_SG - n_elem) in carm_queue_rq() 740 crq->n_elem = n_elem; in carm_queue_rq() 741 host->hw_sg_used += n_elem; in carm_queue_rq() [all …]
|
| /Linux-v5.4/drivers/scsi/mvsas/ |
| D | mv_sas.c | 317 u32 flags = (tei->n_elem << MCH_PRD_LEN_SHIFT); in mvs_task_prep_smp() 361 if (tei->n_elem) in mvs_task_prep_smp() 366 i = MVS_CHIP_DISP->prd_size() * tei->n_elem; in mvs_task_prep_smp() 397 MVS_CHIP_DISP->make_prd(task->scatter, tei->n_elem, buf_prd); in mvs_task_prep_smp() 462 flags = (tei->n_elem << MCH_PRD_LEN_SHIFT); in mvs_task_prep_ata() 506 if (tei->n_elem) in mvs_task_prep_ata() 545 MVS_CHIP_DISP->make_prd(task->scatter, tei->n_elem, buf_prd); in mvs_task_prep_ata() 549 TRASH_BUCKET_SIZE, tei->n_elem, buf_prd); in mvs_task_prep_ata() 595 hdr->flags = cpu_to_le32(flags | (tei->n_elem << MCH_PRD_LEN_SHIFT)); in mvs_task_prep_ssp() 621 if (tei->n_elem) in mvs_task_prep_ssp() [all …]
|
| D | mv_sas.h | 312 u32 n_elem; member 422 int n_elem; member
|
| /Linux-v5.4/drivers/ata/ |
| D | acard-ahci.c | 193 for_each_sg(qc->sg, sg, qc->n_elem, si) { in acard_ahci_fill_sg() 221 unsigned int n_elem; in acard_ahci_qc_prep() local 235 n_elem = 0; in acard_ahci_qc_prep() 237 n_elem = acard_ahci_fill_sg(qc, cmd_tbl); in acard_ahci_qc_prep()
|
| D | libata-core.c | 1550 unsigned int n_elem, unsigned long timeout) in ata_exec_internal_sg() argument 1609 for_each_sg(sgl, sg, n_elem, i) in ata_exec_internal_sg() 1612 ata_sg_init(qc, sgl, n_elem); in ata_exec_internal_sg() 1729 unsigned int n_elem = 0; in ata_exec_internal() local 1735 n_elem++; in ata_exec_internal() 1738 return ata_exec_internal_sg(dev, tf, cdb, dma_dir, psg, n_elem, in ata_exec_internal() 4999 unsigned int n_elem) in ata_sg_init() argument 5002 qc->n_elem = n_elem; in ata_sg_init() 5025 VPRINTK("unmapping %u sg elements\n", qc->n_elem); in ata_sg_clean() 5027 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 | 56 unsigned int n_elem, unsigned long timeout);
|
| D | libahci.c | 1604 for_each_sg(qc->sg, sg, qc->n_elem, si) { in ahci_fill_sg() 1635 unsigned int n_elem; in ahci_qc_prep() local 1649 n_elem = 0; in ahci_qc_prep() 1651 n_elem = ahci_fill_sg(qc, cmd_tbl); in ahci_qc_prep() 1656 opts = cmd_fis_len | n_elem << 16 | (qc->dev->link->pmp << 12); in ahci_qc_prep()
|
| D | pata_icside.c | 238 set_dma_sg(state->dma, qc->sg, qc->n_elem); in pata_icside_bmdma_setup()
|
| D | sata_dwc_460ex.c | 388 desc = dmaengine_prep_slave_sg(hsdevp->chan, qc->sg, qc->n_elem, in dma_dwc_xfer_setup() 399 qc->sg, qc->n_elem, &hsdev->dmadr); in dma_dwc_xfer_setup()
|
| D | sata_qstor.c | 244 for_each_sg(qc->sg, sg, qc->n_elem, si) { in qs_fill_sg()
|
| D | pdc_adma.c | 266 for_each_sg(qc->sg, sg, qc->n_elem, si) { in adma_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 | 1299 if (idx == qc->n_elem - 1) in nv_adma_fill_aprd() 1319 for_each_sg(qc->sg, sg, qc->n_elem, si) { in nv_adma_fill_sg() 1977 for_each_sg(qc->sg, sg, qc->n_elem, si) { in nv_swncq_fill_sg()
|
| /Linux-v5.4/drivers/mmc/host/ |
| D | mmci_stm32_sdmmc.c | 61 int n_elem; in _sdmmc_idma_prep_data() local 63 n_elem = dma_map_sg(mmc_dev(host->mmc), in _sdmmc_idma_prep_data() 68 if (!n_elem) { in _sdmmc_idma_prep_data()
|
| /Linux-v5.4/drivers/scsi/pm8001/ |
| D | pm8001_sas.c | 387 u32 tag = 0xdeadbeef, rc, n_elem = 0; in pm8001_task_exec() local 437 n_elem = dma_map_sg(pm8001_ha->dev, in pm8001_task_exec() 441 if (!n_elem) { in pm8001_task_exec() 447 n_elem = t->num_scatter; in pm8001_task_exec() 451 ccb->n_elem = n_elem; in pm8001_task_exec() 497 if (n_elem) in pm8001_task_exec() 529 if (ccb->n_elem) in pm8001_ccb_task_free() 824 ccb->n_elem = 0; in pm8001_exec_internal_task_abort()
|
| D | pm8001_sas.h | 300 u32 n_elem; member
|
| /Linux-v5.4/net/rxrpc/ |
| D | key.c | 343 unsigned int toklen = *_toklen, n_elem, loop; in rxrpc_krb5_decode_tagged_array() local 353 n_elem = ntohl(*xdr++); in rxrpc_krb5_decode_tagged_array() 355 if (n_elem > max_n_elem) in rxrpc_krb5_decode_tagged_array() 357 *_n_elem = n_elem; in rxrpc_krb5_decode_tagged_array() 358 if (n_elem > 0) { in rxrpc_krb5_decode_tagged_array() 359 if (toklen <= (n_elem + 1) * 4) in rxrpc_krb5_decode_tagged_array() 362 _debug("n_elem %d", n_elem); in rxrpc_krb5_decode_tagged_array() 364 td = kcalloc(n_elem, sizeof(struct krb5_tagged_data), in rxrpc_krb5_decode_tagged_array() 370 for (loop = 0; loop < n_elem; loop++) { in rxrpc_krb5_decode_tagged_array()
|
| /Linux-v5.4/drivers/scsi/hisi_sas/ |
| D | hisi_sas_main.c | 239 if (slot->n_elem) in hisi_sas_slot_task_free() 287 struct sas_task *task, int n_elem, in hisi_sas_dma_unmap() argument 294 if (n_elem) in hisi_sas_dma_unmap() 307 struct sas_task *task, int *n_elem, in hisi_sas_dma_map() argument 314 *n_elem = task->num_scatter; in hisi_sas_dma_map() 319 *n_elem = dma_map_sg(dev, task->scatter, in hisi_sas_dma_map() 321 if (!*n_elem) { in hisi_sas_dma_map() 340 if (*n_elem > HISI_SAS_SGE_PAGE_CNT) { in hisi_sas_dma_map() 342 *n_elem); in hisi_sas_dma_map() 350 hisi_sas_dma_unmap(hisi_hba, task, *n_elem, in hisi_sas_dma_map() [all …]
|
| D | hisi_sas_v3_hw.c | 1052 int n_elem) in prep_prd_sge_v3_hw() argument 1058 for_each_sg(scatter, sg, n_elem, i) { in prep_prd_sge_v3_hw() 1069 hdr->sg_len |= cpu_to_le32(n_elem << CMD_HDR_DATA_SGL_LEN_OFF); in prep_prd_sge_v3_hw() 1076 int n_elem) in prep_prd_sge_dif_v3_hw() argument 1084 for_each_sg(scatter, sg, n_elem, i) { in prep_prd_sge_dif_v3_hw() 1097 hdr->sg_len |= cpu_to_le32(n_elem << CMD_HDR_DIF_SGL_LEN_OFF); in prep_prd_sge_dif_v3_hw() 1222 slot->n_elem); in prep_ssp_v3_hw() 1394 slot->n_elem); in prep_ata_v3_hw()
|
| D | hisi_sas_v1_hw.c | 891 int n_elem) in prep_prd_sge_v1_hw() argument 897 for_each_sg(scatter, sg, n_elem, i) { in prep_prd_sge_v1_hw() 908 hdr->sg_len = cpu_to_le32(n_elem << CMD_HDR_DATA_SGL_LEN_OFF); in prep_prd_sge_v1_hw() 1011 slot->n_elem); in prep_ssp_v1_hw()
|
| D | hisi_sas.h | 219 u64 n_elem; member
|
| D | hisi_sas_v2_hw.c | 1671 int n_elem) in prep_prd_sge_v2_hw() argument 1677 for_each_sg(scatter, sg, n_elem, i) { in prep_prd_sge_v2_hw() 1688 hdr->sg_len = cpu_to_le32(n_elem << CMD_HDR_DATA_SGL_LEN_OFF); in prep_prd_sge_v2_hw() 1785 slot->n_elem); in prep_ssp_v2_hw() 2554 slot->n_elem); in prep_ata_v2_hw()
|
| /Linux-v5.4/drivers/scsi/libsas/ |
| D | sas_ata.c | 202 task->num_scatter = qc->n_elem; in sas_ata_qc_issue() 204 for_each_sg(qc->sg, sg, qc->n_elem, si) in sas_ata_qc_issue()
|
| /Linux-v5.4/include/linux/ |
| D | libata.h | 626 unsigned int n_elem; member 1166 unsigned int n_elem); 1716 qc->n_elem = 0; in ata_qc_reinit()
|