Home
last modified time | relevance | path

Searched refs:sg_ptr (Results 1 – 17 of 17) sorted by relevance

/kernel/linux/linux-5.10/drivers/hwtracing/intel_th/
Dmsu-sink.c55 struct scatterlist *sg_ptr; in msu_sink_alloc_window() local
70 for_each_sg((*sgt)->sgl, sg_ptr, nents, i) { in msu_sink_alloc_window()
72 PAGE_SIZE, &sg_dma_address(sg_ptr), in msu_sink_alloc_window()
77 sg_set_buf(sg_ptr, block, PAGE_SIZE); in msu_sink_alloc_window()
87 struct scatterlist *sg_ptr; in msu_sink_free_window() local
90 for_each_sg(sgt->sgl, sg_ptr, sgt->nents, i) { in msu_sink_free_window()
92 sg_virt(sg_ptr), sg_dma_address(sg_ptr)); in msu_sink_free_window()
Dmsu.c996 struct scatterlist *sg_ptr; in __msc_buffer_win_alloc() local
1004 for_each_sg(win->sgt->sgl, sg_ptr, nr_segs, i) { in __msc_buffer_win_alloc()
1006 PAGE_SIZE, &sg_dma_address(sg_ptr), in __msc_buffer_win_alloc()
1011 sg_set_buf(sg_ptr, block, PAGE_SIZE); in __msc_buffer_win_alloc()
1017 for_each_sg(win->sgt->sgl, sg_ptr, i, ret) in __msc_buffer_win_alloc()
1019 sg_virt(sg_ptr), sg_dma_address(sg_ptr)); in __msc_buffer_win_alloc()
1029 struct scatterlist *sg_ptr; in msc_buffer_set_uc() local
1032 for_each_sg(win->sgt->sgl, sg_ptr, nr_segs, i) { in msc_buffer_set_uc()
1034 set_memory_uc((unsigned long)sg_virt(sg_ptr), in msc_buffer_set_uc()
1035 PFN_DOWN(sg_ptr->length)); in msc_buffer_set_uc()
[all …]
/kernel/linux/linux-5.10/drivers/crypto/marvell/octeontx/
Dotx_cptvf_reqmgr.c100 struct otx_cpt_sglist_component *sg_ptr = NULL; in setup_sgio_components() local
125 sg_ptr = (struct otx_cpt_sglist_component *)buffer; in setup_sgio_components()
127 sg_ptr->u.s.len0 = cpu_to_be16(list[i * 4 + 0].size); in setup_sgio_components()
128 sg_ptr->u.s.len1 = cpu_to_be16(list[i * 4 + 1].size); in setup_sgio_components()
129 sg_ptr->u.s.len2 = cpu_to_be16(list[i * 4 + 2].size); in setup_sgio_components()
130 sg_ptr->u.s.len3 = cpu_to_be16(list[i * 4 + 3].size); in setup_sgio_components()
131 sg_ptr->ptr0 = cpu_to_be64(list[i * 4 + 0].dma_addr); in setup_sgio_components()
132 sg_ptr->ptr1 = cpu_to_be64(list[i * 4 + 1].dma_addr); in setup_sgio_components()
133 sg_ptr->ptr2 = cpu_to_be64(list[i * 4 + 2].dma_addr); in setup_sgio_components()
134 sg_ptr->ptr3 = cpu_to_be64(list[i * 4 + 3].dma_addr); in setup_sgio_components()
[all …]
/kernel/linux/linux-5.10/drivers/crypto/cavium/cpt/
Dcptvf_reqmanager.c49 struct sglist_component *sg_ptr = NULL; in setup_sgio_components() local
74 sg_ptr = (struct sglist_component *)buffer; in setup_sgio_components()
76 sg_ptr->u.s.len0 = cpu_to_be16(list[i * 4 + 0].size); in setup_sgio_components()
77 sg_ptr->u.s.len1 = cpu_to_be16(list[i * 4 + 1].size); in setup_sgio_components()
78 sg_ptr->u.s.len2 = cpu_to_be16(list[i * 4 + 2].size); in setup_sgio_components()
79 sg_ptr->u.s.len3 = cpu_to_be16(list[i * 4 + 3].size); in setup_sgio_components()
80 sg_ptr->ptr0 = cpu_to_be64(list[i * 4 + 0].dma_addr); in setup_sgio_components()
81 sg_ptr->ptr1 = cpu_to_be64(list[i * 4 + 1].dma_addr); in setup_sgio_components()
82 sg_ptr->ptr2 = cpu_to_be64(list[i * 4 + 2].dma_addr); in setup_sgio_components()
83 sg_ptr->ptr3 = cpu_to_be64(list[i * 4 + 3].dma_addr); in setup_sgio_components()
[all …]
/kernel/linux/linux-5.10/drivers/staging/rts5208/
Drtsx_transport.c326 struct scatterlist *sg_ptr; in rtsx_transfer_sglist_adma_partial() local
361 sg_ptr = sg; in rtsx_transfer_sglist_adma_partial()
370 sg_ptr = sg_next(sg_ptr); in rtsx_transfer_sglist_adma_partial()
376 addr = sg_dma_address(sg_ptr); in rtsx_transfer_sglist_adma_partial()
377 len = sg_dma_len(sg_ptr); in rtsx_transfer_sglist_adma_partial()
405 sg_ptr = sg_next(sg_ptr); in rtsx_transfer_sglist_adma_partial()
490 struct scatterlist *sg_ptr; in rtsx_transfer_sglist_adma() local
523 sg_ptr = sg; in rtsx_transfer_sglist_adma()
536 dma_addr_t addr = sg_dma_address(sg_ptr); in rtsx_transfer_sglist_adma()
537 unsigned int len = sg_dma_len(sg_ptr); in rtsx_transfer_sglist_adma()
[all …]
/kernel/linux/linux-5.10/drivers/mmc/host/
Drenesas_sdhi_sys_dmac.c135 host->sg_ptr, host->sg_len, in renesas_sdhi_sys_dmac_dma_callback()
139 host->sg_ptr, host->sg_len, in renesas_sdhi_sys_dmac_dma_callback()
155 struct scatterlist *sg = host->sg_ptr, *sg_tmp; in renesas_sdhi_sys_dmac_start_dma_rx()
184 host->sg_ptr = &host->bounce_sg; in renesas_sdhi_sys_dmac_start_dma_rx()
185 sg = host->sg_ptr; in renesas_sdhi_sys_dmac_start_dma_rx()
227 struct scatterlist *sg = host->sg_ptr, *sg_tmp; in renesas_sdhi_sys_dmac_start_dma_tx()
261 host->sg_ptr = &host->bounce_sg; in renesas_sdhi_sys_dmac_start_dma_tx()
262 sg = host->sg_ptr; in renesas_sdhi_sys_dmac_start_dma_tx()
Duniphier-sd.c100 dma_unmap_sg(mmc_dev(host->mmc), host->sg_ptr, host->sg_len, in uniphier_sd_external_dma_callback()
142 sg_len = dma_map_sg(mmc_dev(host->mmc), host->sg_ptr, host->sg_len, in uniphier_sd_external_dma_start()
147 desc = dmaengine_prep_slave_sg(priv->chan, host->sg_ptr, sg_len, in uniphier_sd_external_dma_start()
164 dma_unmap_sg(mmc_dev(host->mmc), host->sg_ptr, host->sg_len, in uniphier_sd_external_dma_start()
248 struct scatterlist *sg = host->sg_ptr; in uniphier_sd_internal_dma_start()
342 dma_unmap_sg(mmc_dev(host->mmc), host->sg_ptr, 1, priv->dma_dir); in uniphier_sd_internal_dma_dataend()
Dau1xmmc.c380 unsigned char *sg_ptr, val; in au1xmmc_send_pio() local
391 sg_ptr = kmap_atomic(sg_page(sg)) + sg->offset + host->pio.offset; in au1xmmc_send_pio()
407 val = sg_ptr[count]; in au1xmmc_send_pio()
412 kunmap_atomic(sg_ptr); in au1xmmc_send_pio()
436 unsigned char *sg_ptr = NULL; in au1xmmc_receive_pio() local
449 sg_ptr = kmap_atomic(sg_page(sg)) + sg->offset + host->pio.offset; in au1xmmc_receive_pio()
487 if (sg_ptr) in au1xmmc_receive_pio()
488 sg_ptr[count] = (unsigned char)(val & 0xFF); in au1xmmc_receive_pio()
490 if (sg_ptr) in au1xmmc_receive_pio()
491 kunmap_atomic(sg_ptr); in au1xmmc_receive_pio()
Dtmio_mmc_core.c123 host->sg_ptr = data->sg; in tmio_mmc_init_sg()
130 host->sg_ptr = sg_next(host->sg_ptr); in tmio_mmc_next_sg()
382 sg_virt = tmio_mmc_kmap_atomic(host->sg_ptr, &flags); in tmio_mmc_pio_irq()
385 count = host->sg_ptr->length - host->sg_off; in tmio_mmc_pio_irq()
397 tmio_mmc_kunmap_atomic(host->sg_ptr, &flags, sg_virt); in tmio_mmc_pio_irq()
399 if (host->sg_off == host->sg_ptr->length) in tmio_mmc_pio_irq()
405 if (host->sg_ptr == &host->bounce_sg) { in tmio_mmc_check_bounce_buffer()
Drenesas_sdhi_internal_dmac.c179 struct scatterlist *sg = host->sg_ptr; in renesas_sdhi_internal_dmac_start_dma()
248 dma_unmap_sg(&host->pdev->dev, host->sg_ptr, host->sg_len, dir); in renesas_sdhi_internal_dmac_complete()
Dtmio_mmc.h138 struct scatterlist *sg_ptr; member
/kernel/linux/linux-5.10/drivers/mmc/core/
Dsdio_ops.c120 struct scatterlist sg, *sg_ptr; in mmc_io_rw_extended() local
160 for_each_sg(data.sg, sg_ptr, data.sg_len, i) { in mmc_io_rw_extended()
161 sg_set_buf(sg_ptr, buf + i * seg_size, in mmc_io_rw_extended()
/kernel/linux/linux-5.10/drivers/scsi/
Dgdth_ioctl.h34 u32 sg_ptr; /* address */ member
40 u64 sg_ptr; /* address */ member
Dgdth.c2077 cmdp->u.cache64.sg_lst[i].sg_ptr = sg_dma_address(sl); in gdth_fill_cache_cmd()
2086 cmdp->u.cache.sg_lst[i].sg_ptr = sg_dma_address(sl); in gdth_fill_cache_cmd()
2104 cmdp->u.cache64.sg_lst[0].sg_ptr, in gdth_fill_cache_cmd()
2113 cmdp->u.cache.sg_lst[0].sg_ptr, in gdth_fill_cache_cmd()
2236 cmdp->u.raw64.sg_lst[i].sg_ptr = sg_dma_address(sl); in gdth_fill_raw_cmd()
2245 cmdp->u.raw.sg_lst[i].sg_ptr = sg_dma_address(sl); in gdth_fill_raw_cmd()
2261 cmdp->u.raw64.sg_lst[0].sg_ptr, in gdth_fill_raw_cmd()
2269 cmdp->u.raw.sg_lst[0].sg_ptr, in gdth_fill_raw_cmd()
3485 gen->command.u.cache64.sg_lst[0].sg_ptr = paddr; in gdth_ioc_cacheservice()
3496 gen->command.u.cache.sg_lst[0].sg_ptr = (u32)paddr; in gdth_ioc_cacheservice()
[all …]
DFlashPoint.c5143 u32 sg_ptr; in FPT_hostDataXferAbort() local
5202 sg_ptr = pCurrSCCB->Sccb_sgseg + SG_BUF_CNT; in FPT_hostDataXferAbort()
5204 if (sg_ptr > in FPT_hostDataXferAbort()
5208 sg_ptr = (u32)(pCurrSCCB->DataLength / in FPT_hostDataXferAbort()
5216 sg_ptr--; in FPT_hostDataXferAbort()
5218 DataPointer) + (sg_ptr * 2); in FPT_hostDataXferAbort()
5230 pCurrSCCB->Sccb_sgseg = (unsigned short)sg_ptr; in FPT_hostDataXferAbort()
5232 if ((unsigned long)(sg_ptr * SG_ELEMENT_SIZE) == in FPT_hostDataXferAbort()
Dadvansys.c1729 __le32 sg_ptr; /* Pointer to next sg block. */ member
2558 b->sg_cnt, (u32)le32_to_cpu(b->sg_ptr)); in asc_prt_adv_sgblock()
2560 if (b->sg_ptr != 0) in asc_prt_adv_sgblock()
2577 struct adv_sg_block *sg_ptr; in asc_prt_adv_scsi_req_q() local
2608 sg_ptr = &sgblkp->sg_block; in asc_prt_adv_scsi_req_q()
2609 asc_prt_adv_sgblock(sg_blk_cnt, sg_ptr); in asc_prt_adv_scsi_req_q()
2610 if (sg_ptr->sg_ptr == 0) { in asc_prt_adv_scsi_req_q()
7694 prev_sg_block->sg_ptr = cpu_to_le32(sgblk_paddr); in adv_get_sglist()
7710 sg_block->sg_ptr = 0L; /* Last ADV_SG_BLOCK in list. */ in adv_get_sglist()
/kernel/linux/linux-5.10/drivers/vhost/
Dscsi.c791 struct scatterlist *sg_ptr, *sg_prot_ptr = NULL; in vhost_scsi_submission_work() local
796 sg_ptr = cmd->tvc_sgl; in vhost_scsi_submission_work()
803 sg_ptr = NULL; in vhost_scsi_submission_work()
813 sg_ptr, cmd->tvc_sgl_count, NULL, 0, sg_prot_ptr, in vhost_scsi_submission_work()