| /drivers/scsi/aacraid/ |
| A D | commctrl.c | 658 if (sg_count[i] > in aac_send_raw_srb() 661 i, sg_count[i], in aac_send_raw_srb() 686 sg_count[i])) { in aac_send_raw_srb() 723 if (sg_count[i] > in aac_send_raw_srb() 747 sg_count[i])){ in aac_send_raw_srb() 778 if (sg_count[i] > in aac_send_raw_srb() 802 sg_count[i])) { in aac_send_raw_srb() 836 if (sg_count[i] > in aac_send_raw_srb() 859 sg_count[i])){ in aac_send_raw_srb() 879 if (sg_count[i] > in aac_send_raw_srb() [all …]
|
| /drivers/spi/ |
| A D | spi-mxs.c | 173 int sg_count; in mxs_spi_txrx_dma() local 201 for (sg_count = 0; sg_count < sgs; sg_count++) { in mxs_spi_txrx_dma() 217 dma_xfer[sg_count].pio[0] = ctrl0; in mxs_spi_txrx_dma() 218 dma_xfer[sg_count].pio[3] = min; in mxs_spi_txrx_dma() 227 sg_init_table(&dma_xfer[sg_count].sg, 1); in mxs_spi_txrx_dma() 228 sg_set_page(&dma_xfer[sg_count].sg, vm_page, in mxs_spi_txrx_dma() 231 sg_init_one(&dma_xfer[sg_count].sg, buf, min); in mxs_spi_txrx_dma() 242 (struct scatterlist *)dma_xfer[sg_count].pio, in mxs_spi_txrx_dma() 245 sg_count ? DMA_PREP_INTERRUPT : 0); in mxs_spi_txrx_dma() 254 &dma_xfer[sg_count].sg, 1, in mxs_spi_txrx_dma() [all …]
|
| /drivers/firmware/efi/ |
| A D | capsule.c | 220 unsigned int count, sg_count; in efi_capsule_update() local 231 sg_count = sg_pages_num(count); in efi_capsule_update() 233 sg_pages = kcalloc(sg_count, sizeof(*sg_pages), GFP_KERNEL); in efi_capsule_update() 237 for (i = 0; i < sg_count; i++) { in efi_capsule_update() 245 for (i = 0; i < sg_count; i++) { in efi_capsule_update() 264 if (i + 1 == sg_count) in efi_capsule_update() 288 for (i = 0; rv && i < sg_count; i++) { in efi_capsule_update()
|
| /drivers/crypto/ |
| A D | talitos.c | 1098 int n_sg = elen ? sg_count + 1 : sg_count; in sg_to_link_tbl_offset() 1161 return sg_count; in talitos_sg_map_ext() 1165 return sg_count; in talitos_sg_map_ext() 1167 sg_count = sg_to_link_tbl_offset(src, sg_count, offset, len, elen, in talitos_sg_map_ext() 1172 return sg_count; in talitos_sg_map_ext() 1178 return sg_count; in talitos_sg_map_ext() 1225 sg_count = dma_map_sg(dev, areq->src, sg_count, in ipsec_esp() 1598 sg_count = dma_map_sg(dev, areq->src, sg_count, in common_nonsnoop() 1606 if (sg_count > 1) in common_nonsnoop() 1801 int sg_count; in common_nonsnoop_hash() local [all …]
|
| /drivers/mmc/host/ |
| A D | jz4740_mmc.c | 305 unsigned int sg_count; in jz4740_mmc_prepare_dma_data() local 308 return data->sg_count; in jz4740_mmc_prepare_dma_data() 310 sg_count = dma_map_sg(chan->device->dev, in jz4740_mmc_prepare_dma_data() 315 if (!sg_count) { in jz4740_mmc_prepare_dma_data() 321 data->sg_count = sg_count; in jz4740_mmc_prepare_dma_data() 324 return data->sg_count; in jz4740_mmc_prepare_dma_data() 338 int sg_count; in jz4740_mmc_start_dma_transfer() local 348 sg_count = jz4740_mmc_prepare_dma_data(host, data, COOKIE_MAPPED); in jz4740_mmc_start_dma_transfer() 349 if (sg_count < 0) in jz4740_mmc_start_dma_transfer() 350 return sg_count; in jz4740_mmc_start_dma_transfer() [all …]
|
| A D | alcor.c | 59 int sg_count; member 128 if (!host->sg_count) in alcor_data_set_dma() 146 host->sg_count--; in alcor_data_set_dma() 170 alcor_write32(priv, data->sg_count * 0x1000, in alcor_trigger_data_transfer() 253 host->sg_count = data->sg_count; in alcor_prepare_data() 255 host->sg_count, host->blocks); in alcor_prepare_data() 504 if (!host->sg_count) in alcor_data_irq_done() 544 (host->dma_on && !host->sg_count)) in alcor_data_irq_thread() 823 data->sg_count = sg_len; in alcor_pre_req()
|
| A D | cqhci-core.c | 464 int sg_count; in cqhci_dma_map() local 470 sg_count = dma_map_sg(mmc_dev(host), data->sg, in cqhci_dma_map() 474 if (!sg_count) { in cqhci_dma_map() 479 return sg_count; in cqhci_dma_map() 509 int i, sg_count, len; in cqhci_prep_tran_desc() local 516 sg_count = cqhci_dma_map(mrq->host, mrq); in cqhci_prep_tran_desc() 517 if (sg_count < 0) { in cqhci_prep_tran_desc() 519 mmc_hostname(mrq->host), __func__, sg_count); in cqhci_prep_tran_desc() 520 return sg_count; in cqhci_prep_tran_desc() 525 for_each_sg(data->sg, sg, sg_count, i) { in cqhci_prep_tran_desc() [all …]
|
| A D | rtsx_pci_sdmmc.c | 43 int sg_count; member 174 host->sg_count = count; in sd_pre_dma_transfer() 474 err = rtsx_pci_dma_transfer(pcr, data->sg, host->sg_count, 1, 10000); in sd_read_long_data() 532 err = rtsx_pci_dma_transfer(pcr, data->sg, host->sg_count, 0, 10000); in sd_write_long_data() 558 if (host->sg_count < 0) { in sd_rw_multi() 559 data->error = host->sg_count; in sd_rw_multi() 561 __func__, host->sg_count); in sd_rw_multi()
|
| A D | litex_mmc.c | 296 int sg_count; in litex_mmc_do_dma() local 305 sg_count = dma_map_sg(dev, data->sg, data->sg_len, in litex_mmc_do_dma() 307 if (sg_count == 1) { in litex_mmc_do_dma()
|
| A D | meson-gx-mmc.c | 301 data->sg_count = dma_map_sg(mmc_dev(mmc), data->sg, data->sg_len, in meson_mmc_pre_req() 303 if (!data->sg_count) in meson_mmc_pre_req() 312 if (data && meson_mmc_desc_chain_mode(data) && data->sg_count) in meson_mmc_post_req() 722 for_each_sg(data->sg, sg, data->sg_count, i) { in meson_mmc_desc_chain_transfer() 736 desc[data->sg_count - 1].cmd_cfg |= CMD_CFG_END_OF_CHAIN; in meson_mmc_desc_chain_transfer()
|
| A D | sdhci.c | 656 int sg_count; in sdhci_pre_dma_transfer() local 663 return data->sg_count; in sdhci_pre_dma_transfer() 691 sg_count = 1; in sdhci_pre_dma_transfer() 694 sg_count = dma_map_sg(mmc_dev(host->mmc), in sdhci_pre_dma_transfer() 699 if (sg_count == 0) in sdhci_pre_dma_transfer() 702 data->sg_count = sg_count; in sdhci_pre_dma_transfer() 705 return sg_count; in sdhci_pre_dma_transfer() 754 struct mmc_data *data, int sg_count) in sdhci_adma_table_pre() argument 767 host->sg_count = sg_count; in sdhci_adma_table_pre() 774 for_each_sg(data->sg, sg, host->sg_count, i) { in sdhci_adma_table_pre() [all …]
|
| /drivers/scsi/arm/ |
| A D | arm_scsi.h | 109 unsigned i, sg_count = scsi_sg_count(SCpnt); in init_SCp() local 111 scsi_for_each_sg(SCpnt, sg, sg_count, i) in init_SCp()
|
| /drivers/scsi/ |
| A D | qlogicpti.c | 906 int sg_count; in load_cmd() local 909 sg_count = dma_map_sg(&qpti->op->dev, sg, in load_cmd() 912 if (!sg_count) in load_cmd() 915 cmd->segment_cnt = sg_count; in load_cmd() 918 n = sg_count; in load_cmd() 925 sg_count -= 4; in load_cmd() 927 while (sg_count > 0) { in load_cmd() 942 n = sg_count; in load_cmd() 949 sg_count -= n; in load_cmd()
|
| A D | stex.c | 202 __le16 sg_count; member 305 int sg_count; member 440 ccb->sg_count = nseg; in stex_map_sg() 441 dst->sg_count = cpu_to_le16((u16)nseg); in stex_map_sg() 472 ccb->sg_count = nseg; in stex_ss_map_sg() 473 dst->sg_count = cpu_to_le16((u16)nseg); in stex_ss_map_sg() 549 addr += (hba->ccb[tag].sg_count+4)/11; in stex_ss_send_cmd() 720 hba->ccb[tag].sg_count = 0; in stex_queuecommand_lck() 1896 hba->ccb[tag].sg_count = 0; in stex_hba_stop()
|
| A D | ips.h | 413 uint8_t sg_count; member 622 uint8_t sg_count; member 637 uint16_t sg_count; member 1088 int sg_count; member
|
| A D | dc395x.c | 161 u8 sg_count; /* No of HW sg entries for this request */ member 798 srb->sg_count = 0; in build_srb() 822 srb->sg_count = nseg; in build_srb() 824 scsi_for_each_sg(cmd, sg, srb->sg_count, i) { in build_srb() 831 sgp += srb->sg_count - 1; in build_srb() 1797 srb->sg_count, &offset, &len); in data_in_phase0() 1907 if (srb->sg_index >= srb->sg_count) { in data_io_transfer() 1936 ((u32)(srb->sg_count - in data_io_transfer() 1991 srb->sg_count, &offset, &len); in data_io_transfer() 2018 if (srb->sg_count) { in data_io_transfer() [all …]
|
| A D | storvsc_drv.c | 1813 int j, i = 0, sg_count; in storvsc_queuecommand() local 1828 sg_count = scsi_dma_map(scmnd); in storvsc_queuecommand() 1829 if (sg_count < 0) { in storvsc_queuecommand() 1834 for_each_sg(sgl, sg, sg_count, j) { in storvsc_queuecommand()
|
| /drivers/dma/ |
| A D | tegra186-gpc-dma.c | 221 unsigned int sg_count; member 224 struct tegra_dma_sg_req sg_req[] __counted_by(sg_count); 486 if (dma_desc->sg_idx == dma_desc->sg_count) in tegra_dma_configure_next_sg() 630 if (dma_desc->sg_idx == dma_desc->sg_count) in tegra_dma_isr() 916 dma_desc->sg_count = 1; in tegra_dma_prep_dma_memset() 985 dma_desc->sg_count = 1; in tegra_dma_prep_dma_memcpy() 1077 dma_desc->sg_count = sg_len; in tegra_dma_prep_slave_sg() 1214 dma_desc->sg_count = period_count; in tegra_dma_prep_dma_cyclic()
|
| /drivers/crypto/ccp/ |
| A D | ccp-crypto-aes-cmac.c | 64 unsigned int need_pad, sg_count; in ccp_do_cmac_update() local 107 sg_count = (nbytes) ? sg_nents(req->src) + 2 : 2; in ccp_do_cmac_update() 110 ret = sg_alloc_table(&rctx->data_sg, sg_count, gfp); in ccp_do_cmac_update()
|
| A D | ccp-crypto-sha.c | 67 unsigned int sg_count; in ccp_do_sha_update() local 104 sg_count = sg_nents(req->src) + 1; in ccp_do_sha_update() 105 ret = sg_alloc_table(&rctx->data_sg, sg_count, gfp); in ccp_do_sha_update()
|
| /drivers/scsi/fnic/ |
| A D | fnic_scsi.c | 359 int sg_count, in fnic_queue_wq_copy_desc() argument 377 if (sg_count) { in fnic_queue_wq_copy_desc() 389 sizeof(io_req->sgl_list[0]) * sg_count, in fnic_queue_wq_copy_desc() 403 sizeof(io_req->sgl_list[0]) * sg_count, in fnic_queue_wq_copy_desc() 470 int sg_count = 0; in fnic_queuecommand() local 593 sg_count = scsi_dma_map(sc); in fnic_queuecommand() 594 if (sg_count < 0) { in fnic_queuecommand() 603 io_req->sgl_cnt = sg_count; in fnic_queuecommand() 605 if (sg_count > FNIC_DFLT_SG_DESC_CNT) in fnic_queuecommand() 608 if (sg_count) { in fnic_queuecommand() [all …]
|
| /drivers/scsi/smartpqi/ |
| A D | smartpqi_init.c | 5403 int sg_count; in pqi_build_raid_sg_list() local 5410 if (sg_count < 0) in pqi_build_raid_sg_list() 5411 return sg_count; in pqi_build_raid_sg_list() 5439 int sg_count; in pqi_build_aio_r1_sg_list() local 5446 if (sg_count < 0) in pqi_build_aio_r1_sg_list() 5447 return sg_count; in pqi_build_aio_r1_sg_list() 5477 int sg_count; in pqi_build_aio_r56_sg_list() local 5484 if (sg_count < 0) in pqi_build_aio_r56_sg_list() 5513 int sg_count; in pqi_build_aio_sg_list() local 8930 u32 sg_count; in pqi_host_alloc_mem() local [all …]
|
| /drivers/scsi/qedi/ |
| A D | qedi_fw.c | 1785 int sg_count; in qedi_map_scsi_sg() local 1793 sg_count = dma_map_sg(&qedi->pdev->dev, scsi_sglist(sc), in qedi_map_scsi_sg() 1801 if ((sg_count == 1) && (sg_dma_len(sg) <= MAX_SGLEN_FOR_CACHESGL)) { in qedi_map_scsi_sg() 1811 sg_count, addr, sg_len); in qedi_map_scsi_sg() 1816 scsi_for_each_sg(sc, sg, sg_count, i) { in qedi_map_scsi_sg() 1825 if ((i == 0) && (sg_count > 1) && (end_addr % QEDI_PAGE_SIZE)) in qedi_map_scsi_sg() 1832 else if ((i == (sg_count - 1)) && in qedi_map_scsi_sg() 1833 (sg_count > 1) && (addr % QEDI_PAGE_SIZE)) in qedi_map_scsi_sg() 1840 else if ((i != 0) && (i != (sg_count - 1)) && in qedi_map_scsi_sg() 1935 io_log->sg_count = scsi_sg_count(sc_cmd); in qedi_trace_io()
|
| A D | qedi_debugfs.c | 193 seq_printf(s, "sgcnt-%d:", io_log->sg_count); in qedi_io_trace_show()
|
| /drivers/memstick/host/ |
| A D | r592.c | 275 int len, sg_count; in r592_transfer_fifo_dma() local 293 sg_count = dma_map_sg(&dev->pci_dev->dev, &dev->req->sg, 1, is_write ? in r592_transfer_fifo_dma() 296 if (sg_count != 1 || sg_dma_len(&dev->req->sg) < R592_LFIFO_SIZE) { in r592_transfer_fifo_dma()
|