/drivers/block/ |
D | sx8.c | 258 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 …]
|
D | ub.c | 643 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/ |
D | mvsas.c | 628 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 …]
|
D | ipr.c | 5145 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/ |
D | libata-core.c | 1753 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 …]
|
D | pata_bf54x.c | 842 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()
|
D | libata.h | 92 unsigned int n_elem, unsigned long timeout);
|
D | ahci.c | 1888 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()
|
D | pata_icside.c | 238 for_each_sg(qc->sg, sg, qc->n_elem, si) { in pata_icside_bmdma_setup()
|
D | sata_sil.c | 318 for_each_sg(qc->sg, sg, qc->n_elem, si) { in sil_fill_sg()
|
D | sata_qstor.c | 275 for_each_sg(qc->sg, sg, qc->n_elem, si) { in qs_fill_sg()
|
D | pdc_adma.c | 282 for_each_sg(qc->sg, sg, qc->n_elem, si) { in adma_fill_sg()
|
D | sata_nv.c | 1326 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()
|
D | sata_inic162x.c | 465 for_each_sg(qc->sg, sg, qc->n_elem, si) { in inic_fill_sg()
|
D | pata_octeon_cf.c | 527 VPRINTK("%d scatterlists\n", qc->n_elem); in octeon_cf_dma_start()
|
D | libata-sff.c | 108 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()
|
D | pata_mpc52xx.c | 457 for_each_sg(qc->sg, sg, qc->n_elem, si) { in mpc52xx_ata_build_dmatable()
|
D | sata_promise.c | 513 for_each_sg(qc->sg, sg, qc->n_elem, si) { in pdc_fill_sg()
|
D | sata_sil24.c | 778 for_each_sg(qc->sg, sg, qc->n_elem, si) { in sil24_fill_sg()
|
D | sata_fsl.c | 331 for_each_sg(qc->sg, sg, qc->n_elem, si) { in sata_fsl_fill_sg()
|
D | sata_sx4.c | 481 for_each_sg(qc->sg, sg, qc->n_elem, si) { in pdc20621_dma_prep()
|
D | libata-scsi.c | 729 qc->n_elem = scsi_sg_count(cmd); in ata_scsi_qc_new()
|
D | sata_mv.c | 1352 for_each_sg(qc->sg, sg, qc->n_elem, si) { in mv_fill_sg()
|
/drivers/scsi/libsas/ |
D | sas_ata.c | 182 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()
|