/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/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
|
/kernel/linux/linux-5.10/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() 825 ccb->n_elem = 0; in pm8001_exec_internal_task_abort()
|
D | pm8001_sas.h | 285 u32 n_elem; member
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/drivers/ata/ |
D | libata-core.c | 1494 unsigned int n_elem, unsigned long timeout) in ata_exec_internal_sg() argument 1553 for_each_sg(sgl, sg, n_elem, i) in ata_exec_internal_sg() 1556 ata_sg_init(qc, sgl, n_elem); in ata_exec_internal_sg() 1673 unsigned int n_elem = 0; in ata_exec_internal() local 1679 n_elem++; in ata_exec_internal() 1682 return ata_exec_internal_sg(dev, tf, cdb, dma_dir, psg, n_elem, in ata_exec_internal() 4430 unsigned int n_elem) in ata_sg_init() argument 4433 qc->n_elem = n_elem; in ata_sg_init() 4456 VPRINTK("unmapping %u sg elements\n", qc->n_elem); in ata_sg_clean() 4458 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 | 60 unsigned int n_elem, unsigned long timeout);
|
D | acard-ahci.c | 193 for_each_sg(qc->sg, sg, qc->n_elem, si) { in acard_ahci_fill_sg()
|
D | libahci.c | 1609 for_each_sg(qc->sg, sg, qc->n_elem, si) { in ahci_fill_sg() 1640 unsigned int n_elem; in ahci_qc_prep() local 1654 n_elem = 0; in ahci_qc_prep() 1656 n_elem = ahci_fill_sg(qc, cmd_tbl); in ahci_qc_prep() 1661 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 | 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 | 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() 1981 for_each_sg(qc->sg, sg, qc->n_elem, si) { in nv_swncq_fill_sg()
|
/kernel/linux/linux-5.10/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 | 1083 int n_elem) in prep_prd_sge_v3_hw() argument 1089 for_each_sg(scatter, sg, n_elem, i) { in prep_prd_sge_v3_hw() 1100 hdr->sg_len |= cpu_to_le32(n_elem << CMD_HDR_DATA_SGL_LEN_OFF); in prep_prd_sge_v3_hw() 1107 int n_elem) in prep_prd_sge_dif_v3_hw() argument 1115 for_each_sg(scatter, sg, n_elem, i) { in prep_prd_sge_dif_v3_hw() 1128 hdr->sg_len |= cpu_to_le32(n_elem << CMD_HDR_DIF_SGL_LEN_OFF); in prep_prd_sge_dif_v3_hw() 1253 slot->n_elem); in prep_ssp_v3_hw() 1424 slot->n_elem); in prep_ata_v3_hw()
|
D | hisi_sas.h | 226 u64 n_elem; member
|
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() 2557 slot->n_elem); in prep_ata_v2_hw()
|
/kernel/linux/linux-5.10/drivers/scsi/libsas/ |
D | sas_ata.c | 203 task->num_scatter = qc->n_elem; in sas_ata_qc_issue() 208 for_each_sg(qc->sg, sg, qc->n_elem, si) in sas_ata_qc_issue()
|
/kernel/linux/linux-5.10/include/linux/ |
D | libata.h | 631 unsigned int n_elem; member 1140 unsigned int n_elem); 1784 qc->n_elem = 0; in ata_qc_reinit()
|