Home
last modified time | relevance | path

Searched refs:n_elem (Results 1 - 25 of 79) sorted by relevance

1234

/kernel/linux/linux-6.6/drivers/scsi/mvsas/
H A Dmv_sas.c316 u32 flags = (tei->n_elem << MCH_PRD_LEN_SHIFT); in mvs_task_prep_smp()
360 if (tei->n_elem) in mvs_task_prep_smp()
365 i = MVS_CHIP_DISP->prd_size() * tei->n_elem; in mvs_task_prep_smp()
396 MVS_CHIP_DISP->make_prd(task->scatter, tei->n_elem, buf_prd); in mvs_task_prep_smp()
461 flags = (tei->n_elem << MCH_PRD_LEN_SHIFT); in mvs_task_prep_ata()
505 if (tei->n_elem) in mvs_task_prep_ata()
544 MVS_CHIP_DISP->make_prd(task->scatter, tei->n_elem, buf_prd); in mvs_task_prep_ata()
548 TRASH_BUCKET_SIZE, tei->n_elem, buf_prd); in mvs_task_prep_ata()
590 hdr->flags = cpu_to_le32(flags | (tei->n_elem << MCH_PRD_LEN_SHIFT)); in mvs_task_prep_ssp()
616 if (tei->n_elem) in mvs_task_prep_ssp()
696 u32 tag = 0xdeadbeef, n_elem = 0; mvs_task_prep() local
[all...]
H A Dmv_sas.h312 u32 n_elem; member
421 int n_elem; member
/kernel/linux/linux-5.10/drivers/scsi/mvsas/
H A 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()
700 u32 tag = 0xdeadbeef, n_elem = 0; mvs_task_prep() local
[all...]
H A Dmv_sas.h312 u32 n_elem; member
422 int n_elem; member
/kernel/linux/linux-6.6/drivers/scsi/pm8001/
H A Dpm8001_sas.c441 u32 n_elem = 0; in pm8001_queue_command() local
489 n_elem = dma_map_sg(pm8001_ha->dev, task->scatter, in pm8001_queue_command()
491 if (!n_elem) { in pm8001_queue_command()
497 n_elem = task->num_scatter; in pm8001_queue_command()
501 ccb->n_elem = n_elem; in pm8001_queue_command()
508 if (!sas_protocol_ata(task_proto) && n_elem) in pm8001_queue_command()
538 if (!sas_protocol_ata(task->task_proto) && ccb->n_elem) in pm8001_ccb_task_free()
H A Dpm8001_sas.h288 u32 n_elem; member
751 ccb->n_elem = 0; in pm8001_ccb_alloc()
/kernel/linux/linux-5.10/drivers/scsi/pm8001/
H A 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()
830 ccb->n_elem = 0; in pm8001_exec_internal_task_abort()
/kernel/linux/linux-5.10/net/rxrpc/
H A 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; loo in rxrpc_krb5_decode_tagged_array()
[all...]
/kernel/linux/linux-6.6/drivers/scsi/hisi_sas/
H A Dhisi_sas_main.c222 if (slot->n_elem) { in hisi_sas_slot_task_free()
281 struct sas_task *task, int n_elem) in hisi_sas_dma_unmap()
285 if (!sas_protocol_ata(task->task_proto) && n_elem) { in hisi_sas_dma_unmap()
297 struct sas_task *task, int *n_elem) in hisi_sas_dma_map()
303 *n_elem = task->num_scatter; in hisi_sas_dma_map()
308 *n_elem = dma_map_sg(dev, task->scatter, in hisi_sas_dma_map()
310 if (!*n_elem) { in hisi_sas_dma_map()
315 *n_elem = dma_map_sg(dev, &task->smp_task.smp_req, in hisi_sas_dma_map()
317 if (!*n_elem) { in hisi_sas_dma_map()
329 if (*n_elem > HISI_SAS_SGE_PAGE_CN in hisi_sas_dma_map()
280 hisi_sas_dma_unmap(struct hisi_hba *hisi_hba, struct sas_task *task, int n_elem) hisi_sas_dma_unmap() argument
296 hisi_sas_dma_map(struct hisi_hba *hisi_hba, struct sas_task *task, int *n_elem) hisi_sas_dma_map() argument
463 int n_elem = 0, n_elem_dif = 0; hisi_sas_queue_command() local
[all...]
H A Dhisi_sas_v1_hw.c893 int n_elem) in prep_prd_sge_v1_hw()
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()
889 prep_prd_sge_v1_hw(struct hisi_hba *hisi_hba, struct hisi_sas_slot *slot, struct hisi_sas_cmd_hdr *hdr, struct scatterlist *scatter, int n_elem) prep_prd_sge_v1_hw() argument
/kernel/linux/linux-5.10/drivers/scsi/hisi_sas/
H A 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()
291 if (n_elem) in hisi_sas_dma_unmap()
304 struct sas_task *task, int *n_elem, in hisi_sas_dma_map()
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()
338 dev_err(dev, "task prep: n_elem(%d) > HISI_SAS_SGE_PAGE_CNT\n", in hisi_sas_dma_map()
339 *n_elem); in hisi_sas_dma_map()
283 hisi_sas_dma_unmap(struct hisi_hba *hisi_hba, struct sas_task *task, int n_elem, int n_elem_req) hisi_sas_dma_unmap() argument
303 hisi_sas_dma_map(struct hisi_hba *hisi_hba, struct sas_task *task, int *n_elem, int *n_elem_req) hisi_sas_dma_map() argument
420 int n_elem = 0, n_elem_dif = 0, n_elem_req = 0; hisi_sas_task_prep() local
1954 int dlvry_queue_slot, dlvry_queue, n_elem = 0, rc, slot_idx; hisi_sas_internal_abort_task_exec() local
[all...]
H A Dhisi_sas_v3_hw.c1088 int n_elem) in prep_prd_sge_v3_hw()
1094 for_each_sg(scatter, sg, n_elem, i) { in prep_prd_sge_v3_hw()
1105 hdr->sg_len |= cpu_to_le32(n_elem << CMD_HDR_DATA_SGL_LEN_OFF); in prep_prd_sge_v3_hw()
1112 int n_elem) in prep_prd_sge_dif_v3_hw()
1120 for_each_sg(scatter, sg, n_elem, i) { in prep_prd_sge_dif_v3_hw()
1133 hdr->sg_len |= cpu_to_le32(n_elem << CMD_HDR_DIF_SGL_LEN_OFF); in prep_prd_sge_dif_v3_hw()
1258 slot->n_elem); in prep_ssp_v3_hw()
1429 slot->n_elem); in prep_ata_v3_hw()
1084 prep_prd_sge_v3_hw(struct hisi_hba *hisi_hba, struct hisi_sas_slot *slot, struct hisi_sas_cmd_hdr *hdr, struct scatterlist *scatter, int n_elem) prep_prd_sge_v3_hw() argument
1108 prep_prd_sge_dif_v3_hw(struct hisi_hba *hisi_hba, struct hisi_sas_slot *slot, struct hisi_sas_cmd_hdr *hdr, struct scatterlist *scatter, int n_elem) prep_prd_sge_dif_v3_hw() argument
H A Dhisi_sas_v1_hw.c893 int n_elem) in prep_prd_sge_v1_hw()
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()
889 prep_prd_sge_v1_hw(struct hisi_hba *hisi_hba, struct hisi_sas_slot *slot, struct hisi_sas_cmd_hdr *hdr, struct scatterlist *scatter, int n_elem) prep_prd_sge_v1_hw() argument
/kernel/linux/linux-5.10/drivers/mmc/host/
H A 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-6.6/drivers/mmc/host/
H A Dmmci_stm32_sdmmc.c145 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()
/kernel/linux/linux-5.10/drivers/ata/
H A Dlibata-core.c1476 * @n_elem: Number of sg entries
1494 unsigned int n_elem, unsigned long timeout) in ata_exec_internal_sg()
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()
4428 * @n_elem: Number of elements in s/g table.
4431 * to point to a scatter-gather table @sg, containing @n_elem
4438 unsigned int n_elem) in ata_sg_init()
1491 ata_exec_internal_sg(struct ata_device *dev, struct ata_taskfile *tf, const u8 *cdb, int dma_dir, struct scatterlist *sgl, unsigned int n_elem, unsigned long timeout) ata_exec_internal_sg() argument
4437 ata_sg_init(struct ata_queued_cmd *qc, struct scatterlist *sg, unsigned int n_elem) ata_sg_init() argument
4489 unsigned int n_elem; ata_sg_setup() local
[all...]
H A Dlibata.h62 unsigned int n_elem, unsigned long timeout);
H A Dpata_pxa.c57 tx = dmaengine_prep_slave_sg(pd->dma_chan, qc->sg, qc->n_elem, dir, in pxa_qc_prep()
H A Dlibahci.c1620 for_each_sg(qc->sg, sg, qc->n_elem, si) { in ahci_fill_sg()
1651 unsigned int n_elem; in ahci_qc_prep() local
1665 n_elem = 0; in ahci_qc_prep()
1667 n_elem = ahci_fill_sg(qc, cmd_tbl); in ahci_qc_prep()
1672 opts = cmd_fis_len | n_elem << 16 | (qc->dev->link->pmp << 12); in ahci_qc_prep()
/kernel/linux/linux-6.6/drivers/ata/
H A Dlibata-core.c1489 * @n_elem: Number of sg entries
1507 unsigned int n_elem, unsigned int timeout) in ata_exec_internal_sg()
1566 for_each_sg(sgl, sg, n_elem, i) in ata_exec_internal_sg()
1569 ata_sg_init(qc, sgl, n_elem); in ata_exec_internal_sg()
1680 unsigned int n_elem = 0; in ata_exec_internal() local
1686 n_elem++; in ata_exec_internal()
1689 return ata_exec_internal_sg(dev, tf, cdb, dma_dir, psg, n_elem, in ata_exec_internal()
4634 * @n_elem: Number of elements in s/g table.
4637 * to point to a scatter-gather table @sg, containing @n_elem
4644 unsigned int n_elem) in ata_sg_init()
1504 ata_exec_internal_sg(struct ata_device *dev, struct ata_taskfile *tf, const u8 *cdb, int dma_dir, struct scatterlist *sgl, unsigned int n_elem, unsigned int timeout) ata_exec_internal_sg() argument
4643 ata_sg_init(struct ata_queued_cmd *qc, struct scatterlist *sg, unsigned int n_elem) ata_sg_init() argument
4693 unsigned int n_elem; ata_sg_setup() local
[all...]
H A Dpata_pxa.c57 tx = dmaengine_prep_slave_sg(pd->dma_chan, qc->sg, qc->n_elem, dir, in pxa_qc_prep()
H A Dlibahci.c1666 for_each_sg(qc->sg, sg, qc->n_elem, si) { in ahci_fill_sg()
1697 unsigned int n_elem; in ahci_qc_prep() local
1711 n_elem = 0; in ahci_qc_prep()
1713 n_elem = ahci_fill_sg(qc, cmd_tbl); in ahci_qc_prep()
1718 opts = cmd_fis_len | n_elem << 16 | (qc->dev->link->pmp << 12); in ahci_qc_prep()
/kernel/linux/linux-6.6/drivers/iio/imu/
H A Dadis16480.c1103 static bool adis16480_validate_crc(const u16 *buf, const u8 n_elem, const u32 crc) in adis16480_validate_crc() argument
1109 for (j = 0; j < n_elem; j++) in adis16480_validate_crc()
1112 crc_calc = crc32(~0, crc_buf, n_elem * 2); in adis16480_validate_crc()
/kernel/linux/linux-5.10/drivers/scsi/libsas/
H A Dsas_ata.c204 task->num_scatter = qc->n_elem;
209 for_each_sg(qc->sg, sg, qc->n_elem, si)
/kernel/linux/linux-6.6/drivers/scsi/libsas/
H A Dsas_ata.c191 task->num_scatter = qc->n_elem;
196 for_each_sg(qc->sg, sg, qc->n_elem, si)

Completed in 55 milliseconds

1234