Home
last modified time | relevance | path

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

/drivers/block/
Dsx8.c258 int n_elem; member
520 crq->n_elem = 0; in carm_get_request()
541 assert(host->hw_sg_used >= crq->n_elem); in carm_put_request()
544 host->hw_sg_used -= crq->n_elem; in carm_put_request()
824 crq->n_elem = 0; in carm_oob_rq_fn()
844 int writing = 0, pci_dir, i, n_elem, rc; in carm_rq_fn() local
872 n_elem = blk_rq_map_sg(q, rq, sg); in carm_rq_fn()
873 if (n_elem <= 0) { in carm_rq_fn()
879 n_elem = pci_map_sg(host->pdev, sg, n_elem, pci_dir); in carm_rq_fn()
880 if (n_elem <= 0) { in carm_rq_fn()
[all …]
Dub.c643 int n_elem; in ub_request_fn_1() local
673 n_elem = blk_rq_map_sg(lun->disk->queue, rq, &urq->sgv[0]); in ub_request_fn_1()
674 if (n_elem < 0) { in ub_request_fn_1()
677 lun->name, n_elem); in ub_request_fn_1()
680 if (n_elem > UB_MAX_REQ_SG) { /* Paranoia */ in ub_request_fn_1()
682 lun->name, n_elem); in ub_request_fn_1()
685 urq->nsg = n_elem; in ub_request_fn_1()
/drivers/scsi/
Dmvsas.c628 u32 n_elem; member
772 sizeof(struct mvs_prd) * slot->n_elem; in mvs_hba_sb_dump()
823 mvs_hexdump(sizeof(struct mvs_prd) * slot->n_elem, in mvs_hba_memory_dump()
1281 if (slot->n_elem) in mvs_slot_task_free()
1283 slot->n_elem, task->data_dir); in mvs_slot_task_free()
1602 int n_elem; member
1620 u32 flags = (tei->n_elem << MCH_PRD_LEN_SHIFT); in mvs_task_prep_smp()
1675 if (tei->n_elem) in mvs_task_prep_smp()
1680 i = sizeof(struct mvs_prd) * tei->n_elem; in mvs_task_prep_smp()
1708 for_each_sg(task->scatter, sg, tei->n_elem, i) { in mvs_task_prep_smp()
[all …]
Dipr.c5145 for_each_sg(qc->sg, sg, qc->n_elem, si) { in ipr_build_ata_ioadl()
5191 ipr_cmd->dma_use_sg = qc->n_elem; in ipr_qc_issue()
/drivers/ata/
Dlibata-core.c1753 unsigned int n_elem, unsigned long timeout) in ata_exec_internal_sg() argument
1817 for_each_sg(sgl, sg, n_elem, i) in ata_exec_internal_sg()
1820 ata_sg_init(qc, sgl, n_elem); in ata_exec_internal_sg()
1945 unsigned int n_elem = 0; in ata_exec_internal() local
1951 n_elem++; in ata_exec_internal()
1954 return ata_exec_internal_sg(dev, tf, cdb, dma_dir, psg, n_elem, in ata_exec_internal()
4614 VPRINTK("unmapping %u sg elements\n", qc->n_elem); in ata_sg_clean()
4616 if (qc->n_elem) in ata_sg_clean()
4700 unsigned int n_elem) in ata_sg_init() argument
4703 qc->n_elem = n_elem; in ata_sg_init()
[all …]
Dpata_bf54x.c842 for_each_sg(qc->sg, sg, qc->n_elem, si) { in bfin_bmdma_setup()
851 for_each_sg(qc->sg, sg, qc->n_elem, si) { in bfin_bmdma_setup()
885 for_each_sg(qc->sg, sg, qc->n_elem, si) { in bfin_bmdma_start()
917 for_each_sg(qc->sg, sg, qc->n_elem, si) { in bfin_bmdma_start()
958 for_each_sg(qc->sg, sg, qc->n_elem, si) { in bfin_bmdma_stop()
Dlibata.h92 unsigned int n_elem, unsigned long timeout);
Dahci.c1888 for_each_sg(qc->sg, sg, qc->n_elem, si) { in ahci_fill_sg()
1908 unsigned int n_elem; in ahci_qc_prep() local
1922 n_elem = 0; in ahci_qc_prep()
1924 n_elem = ahci_fill_sg(qc, cmd_tbl); in ahci_qc_prep()
1929 opts = cmd_fis_len | n_elem << 16 | (qc->dev->link->pmp << 12); in ahci_qc_prep()
Dpata_icside.c238 for_each_sg(qc->sg, sg, qc->n_elem, si) { in pata_icside_bmdma_setup()
Dsata_sil.c318 for_each_sg(qc->sg, sg, qc->n_elem, si) { in sil_fill_sg()
Dsata_qstor.c275 for_each_sg(qc->sg, sg, qc->n_elem, si) { in qs_fill_sg()
Dpdc_adma.c282 for_each_sg(qc->sg, sg, qc->n_elem, si) { in adma_fill_sg()
Dsata_nv.c1326 if (idx == qc->n_elem - 1) in nv_adma_fill_aprd()
1346 for_each_sg(qc->sg, sg, qc->n_elem, si) { in nv_adma_fill_sg()
1994 for_each_sg(qc->sg, sg, qc->n_elem, si) { in nv_swncq_fill_sg()
Dsata_inic162x.c465 for_each_sg(qc->sg, sg, qc->n_elem, si) { in inic_fill_sg()
Dpata_octeon_cf.c527 VPRINTK("%d scatterlists\n", qc->n_elem); in octeon_cf_dma_start()
Dlibata-sff.c108 for_each_sg(qc->sg, sg, qc->n_elem, si) { in ata_fill_sg()
158 for_each_sg(qc->sg, sg, qc->n_elem, si) { in ata_fill_sg_dumb()
Dpata_mpc52xx.c457 for_each_sg(qc->sg, sg, qc->n_elem, si) { in mpc52xx_ata_build_dmatable()
Dsata_promise.c513 for_each_sg(qc->sg, sg, qc->n_elem, si) { in pdc_fill_sg()
Dsata_sil24.c778 for_each_sg(qc->sg, sg, qc->n_elem, si) { in sil24_fill_sg()
Dsata_fsl.c331 for_each_sg(qc->sg, sg, qc->n_elem, si) { in sata_fsl_fill_sg()
Dsata_sx4.c481 for_each_sg(qc->sg, sg, qc->n_elem, si) { in pdc20621_dma_prep()
Dlibata-scsi.c729 qc->n_elem = scsi_sg_count(cmd); in ata_scsi_qc_new()
Dsata_mv.c1352 for_each_sg(qc->sg, sg, qc->n_elem, si) { in mv_fill_sg()
/drivers/scsi/libsas/
Dsas_ata.c182 task->num_scatter = qc->n_elem; in sas_ata_qc_issue()
184 for_each_sg(qc->sg, sg, qc->n_elem, si) in sas_ata_qc_issue()