Home
last modified time | relevance | path

Searched refs:sg_count (Results 1 – 25 of 67) sorted by relevance

123

/linux/drivers/scsi/aacraid/
A Dcommctrl.c658 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 …]
/linux/drivers/firmware/efi/
A Dcapsule.c220 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()
/linux/drivers/spi/
A Dspi-mxs.c172 int sg_count; in mxs_spi_txrx_dma() local
200 for (sg_count = 0; sg_count < sgs; sg_count++) { in mxs_spi_txrx_dma()
216 dma_xfer[sg_count].pio[0] = ctrl0; in mxs_spi_txrx_dma()
217 dma_xfer[sg_count].pio[3] = min; in mxs_spi_txrx_dma()
226 sg_init_table(&dma_xfer[sg_count].sg, 1); in mxs_spi_txrx_dma()
227 sg_set_page(&dma_xfer[sg_count].sg, vm_page, in mxs_spi_txrx_dma()
230 sg_init_one(&dma_xfer[sg_count].sg, buf, min); in mxs_spi_txrx_dma()
241 (struct scatterlist *)dma_xfer[sg_count].pio, in mxs_spi_txrx_dma()
244 sg_count ? DMA_PREP_INTERRUPT : 0); in mxs_spi_txrx_dma()
253 &dma_xfer[sg_count].sg, 1, in mxs_spi_txrx_dma()
[all …]
/linux/drivers/crypto/
A Dtalitos.c1098 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 …]
/linux/drivers/mmc/host/
A Djz4740_mmc.c266 int sg_count; in jz4740_mmc_prepare_dma_data() local
269 return data->sg_count; in jz4740_mmc_prepare_dma_data()
271 sg_count = dma_map_sg(chan->device->dev, in jz4740_mmc_prepare_dma_data()
276 if (sg_count <= 0) { in jz4740_mmc_prepare_dma_data()
282 data->sg_count = sg_count; in jz4740_mmc_prepare_dma_data()
285 return data->sg_count; in jz4740_mmc_prepare_dma_data()
299 int sg_count; in jz4740_mmc_start_dma_transfer() local
309 sg_count = jz4740_mmc_prepare_dma_data(host, data, COOKIE_MAPPED); in jz4740_mmc_start_dma_transfer()
310 if (sg_count < 0) in jz4740_mmc_start_dma_transfer()
311 return sg_count; in jz4740_mmc_start_dma_transfer()
[all …]
A Dalcor.c58 int sg_count; member
127 if (!host->sg_count) in alcor_data_set_dma()
145 host->sg_count--; in alcor_data_set_dma()
169 alcor_write32(priv, data->sg_count * 0x1000, in alcor_trigger_data_transfer()
252 host->sg_count = data->sg_count; in alcor_prepare_data()
254 host->sg_count, host->blocks); in alcor_prepare_data()
503 if (!host->sg_count) in alcor_data_irq_done()
543 (host->dma_on && !host->sg_count)) in alcor_data_irq_thread()
822 data->sg_count = sg_len; in alcor_pre_req()
A Dcqhci-core.c459 int sg_count; in cqhci_dma_map() local
465 sg_count = dma_map_sg(mmc_dev(host), data->sg, in cqhci_dma_map()
469 if (!sg_count) { in cqhci_dma_map()
474 return sg_count; in cqhci_dma_map()
503 int i, sg_count, len; in cqhci_prep_tran_desc() local
510 sg_count = cqhci_dma_map(mrq->host, mrq); in cqhci_prep_tran_desc()
511 if (sg_count < 0) { in cqhci_prep_tran_desc()
513 mmc_hostname(mrq->host), __func__, sg_count); in cqhci_prep_tran_desc()
514 return sg_count; in cqhci_prep_tran_desc()
519 for_each_sg(data->sg, sg, sg_count, i) { in cqhci_prep_tran_desc()
[all …]
A Drtsx_pci_sdmmc.c45 int sg_count; member
178 host->sg_count = count; in sd_pre_dma_transfer()
478 err = rtsx_pci_dma_transfer(pcr, data->sg, host->sg_count, 1, 10000); in sd_read_long_data()
536 err = rtsx_pci_dma_transfer(pcr, data->sg, host->sg_count, 0, 10000); in sd_write_long_data()
562 if (host->sg_count < 0) { in sd_rw_multi()
563 data->error = host->sg_count; in sd_rw_multi()
565 __func__, host->sg_count); in sd_rw_multi()
A Dmeson-gx-mmc.c297 data->sg_count = dma_map_sg(mmc_dev(mmc), data->sg, data->sg_len, in meson_mmc_pre_req()
299 if (!data->sg_count) in meson_mmc_pre_req()
308 if (data && meson_mmc_desc_chain_mode(data) && data->sg_count) in meson_mmc_post_req()
728 for_each_sg(data->sg, sg, data->sg_count, i) { in meson_mmc_desc_chain_transfer()
742 desc[data->sg_count - 1].cmd_cfg |= CMD_CFG_END_OF_CHAIN; in meson_mmc_desc_chain_transfer()
A Dsdhci.c621 int sg_count; in sdhci_pre_dma_transfer() local
628 return data->sg_count; in sdhci_pre_dma_transfer()
656 sg_count = 1; in sdhci_pre_dma_transfer()
659 sg_count = dma_map_sg(mmc_dev(host->mmc), in sdhci_pre_dma_transfer()
664 if (sg_count == 0) in sdhci_pre_dma_transfer()
667 data->sg_count = sg_count; in sdhci_pre_dma_transfer()
670 return sg_count; in sdhci_pre_dma_transfer()
721 struct mmc_data *data, int sg_count) in sdhci_adma_table_pre() argument
735 host->sg_count = sg_count; in sdhci_adma_table_pre()
742 for_each_sg(data->sg, sg, host->sg_count, i) { in sdhci_adma_table_pre()
[all …]
/linux/drivers/scsi/arm/
A Dscsi.h98 unsigned i, sg_count = scsi_sg_count(SCpnt); in init_SCp() local
100 scsi_for_each_sg(SCpnt, sg, sg_count, i) in init_SCp()
/linux/drivers/scsi/fnic/
A Dfnic_scsi.c321 int sg_count) in fnic_queue_wq_copy_desc() argument
334 if (sg_count) { in fnic_queue_wq_copy_desc()
346 sizeof(io_req->sgl_list[0]) * sg_count, in fnic_queue_wq_copy_desc()
360 sizeof(io_req->sgl_list[0]) * sg_count, in fnic_queue_wq_copy_desc()
435 int sg_count = 0; in fnic_queuecommand_lck() local
513 sg_count = scsi_dma_map(sc); in fnic_queuecommand_lck()
514 if (sg_count < 0) { in fnic_queuecommand_lck()
522 io_req->sgl_cnt = sg_count; in fnic_queuecommand_lck()
524 if (sg_count > FNIC_DFLT_SG_DESC_CNT) in fnic_queuecommand_lck()
527 if (sg_count) { in fnic_queuecommand_lck()
[all …]
/linux/drivers/scsi/
A Dqlogicpti.c906 int sg_count; in load_cmd() local
909 sg_count = dma_map_sg(&qpti->op->dev, sg, in load_cmd()
914 cmd->segment_cnt = sg_count; in load_cmd()
917 n = sg_count; in load_cmd()
924 sg_count -= 4; in load_cmd()
926 while (sg_count > 0) { in load_cmd()
941 n = sg_count; in load_cmd()
948 sg_count -= n; in load_cmd()
A Dstex.c198 __le16 sg_count; member
301 int sg_count; member
437 ccb->sg_count = nseg; in stex_map_sg()
438 dst->sg_count = cpu_to_le16((u16)nseg); in stex_map_sg()
469 ccb->sg_count = nseg; in stex_ss_map_sg()
470 dst->sg_count = cpu_to_le16((u16)nseg); in stex_ss_map_sg()
546 addr += (hba->ccb[tag].sg_count+4)/11; in stex_ss_send_cmd()
716 hba->ccb[tag].sg_count = 0; in stex_queuecommand_lck()
1893 hba->ccb[tag].sg_count = 0; in stex_hba_stop()
A Ddc395x.c872 srb->sg_count = 0; in build_srb()
901 srb->sg_count = nseg; in build_srb()
906 srb->sg_count); in build_srb()
915 sgp += srb->sg_count - 1; in build_srb()
1781 for (; idx < srb->sg_count; psge++, idx++) in sg_verify_length()
2127 srb->sg_count, &offset, &len); in data_in_phase0()
2257 if (srb->sg_index >= srb->sg_count) { in data_io_transfer()
2289 ((u32)(srb->sg_count - in data_io_transfer()
2344 srb->sg_count, &offset, &len); in data_io_transfer()
2378 if (srb->sg_count) { in data_io_transfer()
[all …]
A Dips.h412 uint8_t sg_count; member
621 uint8_t sg_count; member
636 uint16_t sg_count; member
1087 int sg_count; member
/linux/drivers/crypto/ccp/
A Dccp-crypto-aes-cmac.c64 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 Dccp-crypto-sha.c67 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()
/linux/sound/soc/intel/atom/
A Dsst-mfld-dsp.h376 __u16 sg_count; member
402 u8 sg_count; member
/linux/include/scsi/
A Dlibiscsi_tcp.h106 struct scatterlist *sg_list, unsigned int sg_count,
/linux/drivers/scsi/smartpqi/
A Dsmartpqi_init.c5279 int sg_count; in pqi_build_raid_sg_list() local
5286 if (sg_count < 0) in pqi_build_raid_sg_list()
5287 return sg_count; in pqi_build_raid_sg_list()
5315 int sg_count; in pqi_build_aio_r1_sg_list() local
5322 if (sg_count < 0) in pqi_build_aio_r1_sg_list()
5323 return sg_count; in pqi_build_aio_r1_sg_list()
5353 int sg_count; in pqi_build_aio_r56_sg_list() local
5360 if (sg_count < 0) in pqi_build_aio_r56_sg_list()
5389 int sg_count; in pqi_build_aio_sg_list() local
8442 u32 sg_count; in pqi_ofa_alloc_mem() local
[all …]
/linux/drivers/memstick/host/
A Dr592.c277 int len, sg_count; in r592_transfer_fifo_dma() local
295 sg_count = dma_map_sg(&dev->pci_dev->dev, &dev->req->sg, 1, is_write ? in r592_transfer_fifo_dma()
298 if (sg_count != 1 || sg_dma_len(&dev->req->sg) < R592_LFIFO_SIZE) { in r592_transfer_fifo_dma()
/linux/include/linux/mmc/
A Dcore.h138 int sg_count; /* mapped sg entries */ member
/linux/drivers/scsi/qedi/
A Dqedi_fw.c1787 int sg_count; in qedi_map_scsi_sg() local
1795 sg_count = dma_map_sg(&qedi->pdev->dev, scsi_sglist(sc), in qedi_map_scsi_sg()
1803 if ((sg_count == 1) && (sg_dma_len(sg) <= MAX_SGLEN_FOR_CACHESGL)) { in qedi_map_scsi_sg()
1813 sg_count, addr, sg_len); in qedi_map_scsi_sg()
1818 scsi_for_each_sg(sc, sg, sg_count, i) { in qedi_map_scsi_sg()
1827 if ((i == 0) && (sg_count > 1) && (end_addr % QEDI_PAGE_SIZE)) in qedi_map_scsi_sg()
1834 else if ((i == (sg_count - 1)) && in qedi_map_scsi_sg()
1835 (sg_count > 1) && (addr % QEDI_PAGE_SIZE)) in qedi_map_scsi_sg()
1842 else if ((i != 0) && (i != (sg_count - 1)) && in qedi_map_scsi_sg()
1937 io_log->sg_count = scsi_sg_count(sc_cmd); in qedi_trace_io()
/linux/sound/soc/intel/atom/sst/
A Dsst_stream.c46 str_info->alloc_param.sg_count = str_params->aparams.sg_count; in sst_alloc_stream_mrfld()

Completed in 95 milliseconds

123