Home
last modified time | relevance | path

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

/Linux-v5.4/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()
74 sg_set_buf(sg_ptr, block, PAGE_SIZE); in msu_sink_alloc_window()
84 struct scatterlist *sg_ptr; in msu_sink_free_window() local
87 for_each_sg(sgt->sgl, sg_ptr, sgt->nents, i) { in msu_sink_free_window()
89 sg_virt(sg_ptr), sg_dma_address(sg_ptr)); in msu_sink_free_window()
Dmsu.c991 struct scatterlist *sg_ptr; in __msc_buffer_win_alloc() local
999 for_each_sg(win->sgt->sgl, sg_ptr, nr_segs, i) { in __msc_buffer_win_alloc()
1001 PAGE_SIZE, &sg_dma_address(sg_ptr), in __msc_buffer_win_alloc()
1006 sg_set_buf(sg_ptr, block, PAGE_SIZE); in __msc_buffer_win_alloc()
1012 for_each_sg(win->sgt->sgl, sg_ptr, i, ret) in __msc_buffer_win_alloc()
1014 sg_virt(sg_ptr), sg_dma_address(sg_ptr)); in __msc_buffer_win_alloc()
1024 struct scatterlist *sg_ptr; in msc_buffer_set_uc() local
1027 for_each_sg(win->sgt->sgl, sg_ptr, nr_segs, i) { in msc_buffer_set_uc()
1029 set_memory_uc((unsigned long)sg_virt(sg_ptr), in msc_buffer_set_uc()
1030 PFN_DOWN(sg_ptr->length)); in msc_buffer_set_uc()
[all …]
/Linux-v5.4/drivers/crypto/cavium/cpt/
Dcptvf_reqmanager.c48 struct sglist_component *sg_ptr = NULL; in setup_sgio_components() local
73 sg_ptr = (struct sglist_component *)buffer; in setup_sgio_components()
75 sg_ptr->u.s.len0 = cpu_to_be16(list[i * 4 + 0].size); in setup_sgio_components()
76 sg_ptr->u.s.len1 = cpu_to_be16(list[i * 4 + 1].size); in setup_sgio_components()
77 sg_ptr->u.s.len2 = cpu_to_be16(list[i * 4 + 2].size); in setup_sgio_components()
78 sg_ptr->u.s.len3 = cpu_to_be16(list[i * 4 + 3].size); in setup_sgio_components()
79 sg_ptr->ptr0 = cpu_to_be64(list[i * 4 + 0].dma_addr); in setup_sgio_components()
80 sg_ptr->ptr1 = cpu_to_be64(list[i * 4 + 1].dma_addr); in setup_sgio_components()
81 sg_ptr->ptr2 = cpu_to_be64(list[i * 4 + 2].dma_addr); in setup_sgio_components()
82 sg_ptr->ptr3 = cpu_to_be64(list[i * 4 + 3].dma_addr); in setup_sgio_components()
[all …]
/Linux-v5.4/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 …]
/Linux-v5.4/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.c101 dma_unmap_sg(mmc_dev(host->mmc), host->sg_ptr, host->sg_len, in uniphier_sd_external_dma_callback()
143 sg_len = dma_map_sg(mmc_dev(host->mmc), host->sg_ptr, host->sg_len, in uniphier_sd_external_dma_start()
148 desc = dmaengine_prep_slave_sg(priv->chan, host->sg_ptr, sg_len, in uniphier_sd_external_dma_start()
165 dma_unmap_sg(mmc_dev(host->mmc), host->sg_ptr, host->sg_len, in uniphier_sd_external_dma_start()
249 struct scatterlist *sg = host->sg_ptr; in uniphier_sd_internal_dma_start()
343 dma_unmap_sg(mmc_dev(host->mmc), host->sg_ptr, 1, priv->dma_dir); in uniphier_sd_internal_dma_dataend()
Dau1xmmc.c396 unsigned char *sg_ptr, val; in au1xmmc_send_pio() local
407 sg_ptr = kmap_atomic(sg_page(sg)) + sg->offset + host->pio.offset; in au1xmmc_send_pio()
423 val = sg_ptr[count]; in au1xmmc_send_pio()
428 kunmap_atomic(sg_ptr); in au1xmmc_send_pio()
452 unsigned char *sg_ptr = NULL; in au1xmmc_receive_pio() local
465 sg_ptr = kmap_atomic(sg_page(sg)) + sg->offset + host->pio.offset; in au1xmmc_receive_pio()
503 if (sg_ptr) in au1xmmc_receive_pio()
504 sg_ptr[count] = (unsigned char)(val & 0xFF); in au1xmmc_receive_pio()
506 if (sg_ptr) in au1xmmc_receive_pio()
507 kunmap_atomic(sg_ptr); in au1xmmc_receive_pio()
Dtmio_mmc_core.c117 host->sg_ptr = data->sg; in tmio_mmc_init_sg()
124 host->sg_ptr = sg_next(host->sg_ptr); in tmio_mmc_next_sg()
384 sg_virt = tmio_mmc_kmap_atomic(host->sg_ptr, &flags); in tmio_mmc_pio_irq()
387 count = host->sg_ptr->length - host->sg_off; in tmio_mmc_pio_irq()
399 tmio_mmc_kunmap_atomic(host->sg_ptr, &flags, sg_virt); in tmio_mmc_pio_irq()
401 if (host->sg_off == host->sg_ptr->length) in tmio_mmc_pio_irq()
407 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_tasklet_fn()
Dtmio_mmc.h135 struct scatterlist *sg_ptr; member
/Linux-v5.4/drivers/mmc/core/
Dsdio_ops.c120 struct scatterlist sg, *sg_ptr; in mmc_io_rw_extended() local
159 for_each_sg(data.sg, sg_ptr, data.sg_len, i) { in mmc_io_rw_extended()
160 sg_set_buf(sg_ptr, buf + i * seg_size, in mmc_io_rw_extended()
/Linux-v5.4/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()
3562 gen->command.u.cache64.sg_lst[0].sg_ptr = paddr; in gdth_ioc_cacheservice()
3573 gen->command.u.cache.sg_lst[0].sg_ptr = (u32)paddr; in gdth_ioc_cacheservice()
[all …]
DFlashPoint.c5140 u32 sg_ptr; in FPT_hostDataXferAbort() local
5199 sg_ptr = pCurrSCCB->Sccb_sgseg + SG_BUF_CNT; in FPT_hostDataXferAbort()
5201 if (sg_ptr > in FPT_hostDataXferAbort()
5205 sg_ptr = (u32)(pCurrSCCB->DataLength / in FPT_hostDataXferAbort()
5213 sg_ptr--; in FPT_hostDataXferAbort()
5215 DataPointer) + (sg_ptr * 2); in FPT_hostDataXferAbort()
5227 pCurrSCCB->Sccb_sgseg = (unsigned short)sg_ptr; in FPT_hostDataXferAbort()
5229 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()
/Linux-v5.4/drivers/vhost/
Dscsi.c762 struct scatterlist *sg_ptr, *sg_prot_ptr = NULL; in vhost_scsi_submission_work() local
767 sg_ptr = cmd->tvc_sgl; in vhost_scsi_submission_work()
774 sg_ptr = NULL; in vhost_scsi_submission_work()
784 sg_ptr, cmd->tvc_sgl_count, NULL, 0, sg_prot_ptr, in vhost_scsi_submission_work()