Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/drivers/block/
Dsx8.c256 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/
Dmv_sas.c315 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 …]
Dmv_sas.h312 u32 n_elem; member
422 int n_elem; member
/kernel/linux/linux-5.10/drivers/scsi/pm8001/
Dpm8001_sas.c389 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()
Dpm8001_sas.h285 u32 n_elem; member
/kernel/linux/linux-5.10/net/rxrpc/
Dkey.c343 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/
Dmmci_stm32_sdmmc.c87 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/
Dlibata-core.c1494 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 …]
Dpata_pxa.c57 tx = dmaengine_prep_slave_sg(pd->dma_chan, qc->sg, qc->n_elem, dir, in pxa_qc_prep()
Dlibata.h60 unsigned int n_elem, unsigned long timeout);
Dacard-ahci.c193 for_each_sg(qc->sg, sg, qc->n_elem, si) { in acard_ahci_fill_sg()
Dlibahci.c1609 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()
Dpata_icside.c238 set_dma_sg(state->dma, qc->sg, qc->n_elem); in pata_icside_bmdma_setup()
Dsata_dwc_460ex.c388 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()
Dpdc_adma.c266 for_each_sg(qc->sg, sg, qc->n_elem, si) { in adma_fill_sg()
Dsata_qstor.c244 for_each_sg(qc->sg, sg, qc->n_elem, si) { in qs_fill_sg()
Dsata_sil.c301 for_each_sg(qc->sg, sg, qc->n_elem, si) { in sil_fill_sg()
Dsata_nv.c1299 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/
Dhisi_sas_main.c232 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 …]
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()
Dhisi_sas_v3_hw.c1083 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()
Dhisi_sas.h226 u64 n_elem; member
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()
2557 slot->n_elem); in prep_ata_v2_hw()
/kernel/linux/linux-5.10/drivers/scsi/libsas/
Dsas_ata.c203 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/
Dlibata.h631 unsigned int n_elem; member
1140 unsigned int n_elem);
1784 qc->n_elem = 0; in ata_qc_reinit()

12