Home
last modified time | relevance | path

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

/linux-6.1.9/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.c994 struct scatterlist *sg_ptr; in __msc_buffer_win_alloc() local
1002 for_each_sg(win->sgt->sgl, sg_ptr, nr_segs, i) { in __msc_buffer_win_alloc()
1004 PAGE_SIZE, &sg_dma_address(sg_ptr), in __msc_buffer_win_alloc()
1009 sg_set_buf(sg_ptr, block, PAGE_SIZE); in __msc_buffer_win_alloc()
1015 for_each_sg(win->sgt->sgl, sg_ptr, i, ret) in __msc_buffer_win_alloc()
1017 sg_virt(sg_ptr), sg_dma_address(sg_ptr)); in __msc_buffer_win_alloc()
1027 struct scatterlist *sg_ptr; in msc_buffer_set_uc() local
1037 for_each_sg(win->sgt->sgl, sg_ptr, win->nr_segs, i) { in msc_buffer_set_uc()
1039 set_memory_uc((unsigned long)sg_virt(sg_ptr), in msc_buffer_set_uc()
1040 PFN_DOWN(sg_ptr->length)); in msc_buffer_set_uc()
[all …]
/linux-6.1.9/drivers/crypto/marvell/octeontx2/
Dotx2_cptvf_reqmgr.c91 struct otx2_cpt_sglist_component *sg_ptr = NULL; in setup_sgio_components() local
113 sg_ptr = (struct otx2_cpt_sglist_component *)buffer; in setup_sgio_components()
115 sg_ptr->len0 = cpu_to_be16(list[i * 4 + 0].size); in setup_sgio_components()
116 sg_ptr->len1 = cpu_to_be16(list[i * 4 + 1].size); in setup_sgio_components()
117 sg_ptr->len2 = cpu_to_be16(list[i * 4 + 2].size); in setup_sgio_components()
118 sg_ptr->len3 = cpu_to_be16(list[i * 4 + 3].size); in setup_sgio_components()
119 sg_ptr->ptr0 = cpu_to_be64(list[i * 4 + 0].dma_addr); in setup_sgio_components()
120 sg_ptr->ptr1 = cpu_to_be64(list[i * 4 + 1].dma_addr); in setup_sgio_components()
121 sg_ptr->ptr2 = cpu_to_be64(list[i * 4 + 2].dma_addr); in setup_sgio_components()
122 sg_ptr->ptr3 = cpu_to_be64(list[i * 4 + 3].dma_addr); in setup_sgio_components()
[all …]
/linux-6.1.9/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 …]
/linux-6.1.9/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 …]
/linux-6.1.9/drivers/staging/rts5208/
Drtsx_transport.c324 struct scatterlist *sg_ptr; in rtsx_transfer_sglist_adma_partial() local
359 sg_ptr = sg; in rtsx_transfer_sglist_adma_partial()
368 sg_ptr = sg_next(sg_ptr); in rtsx_transfer_sglist_adma_partial()
374 addr = sg_dma_address(sg_ptr); in rtsx_transfer_sglist_adma_partial()
375 len = sg_dma_len(sg_ptr); in rtsx_transfer_sglist_adma_partial()
403 sg_ptr = sg_next(sg_ptr); in rtsx_transfer_sglist_adma_partial()
488 struct scatterlist *sg_ptr; in rtsx_transfer_sglist_adma() local
521 sg_ptr = sg; in rtsx_transfer_sglist_adma()
534 dma_addr_t addr = sg_dma_address(sg_ptr); in rtsx_transfer_sglist_adma()
535 unsigned int len = sg_dma_len(sg_ptr); in rtsx_transfer_sglist_adma()
[all …]
/linux-6.1.9/drivers/mmc/host/
Drenesas_sdhi_sys_dmac.c137 host->sg_ptr, host->sg_len, in renesas_sdhi_sys_dmac_dma_callback()
141 host->sg_ptr, host->sg_len, in renesas_sdhi_sys_dmac_dma_callback()
157 struct scatterlist *sg = host->sg_ptr, *sg_tmp; in renesas_sdhi_sys_dmac_start_dma_rx()
186 host->sg_ptr = &host->bounce_sg; in renesas_sdhi_sys_dmac_start_dma_rx()
187 sg = host->sg_ptr; in renesas_sdhi_sys_dmac_start_dma_rx()
229 struct scatterlist *sg = host->sg_ptr, *sg_tmp; in renesas_sdhi_sys_dmac_start_dma_tx()
263 host->sg_ptr = &host->bounce_sg; in renesas_sdhi_sys_dmac_start_dma_tx()
264 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()
247 struct scatterlist *sg = host->sg_ptr; in uniphier_sd_internal_dma_start()
340 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()
425 sg_virt = tmio_mmc_kmap_atomic(host->sg_ptr, &flags); in tmio_mmc_pio_irq()
428 count = host->sg_ptr->length - host->sg_off; in tmio_mmc_pio_irq()
440 tmio_mmc_kunmap_atomic(host->sg_ptr, &flags, sg_virt); in tmio_mmc_pio_irq()
442 if (host->sg_off == host->sg_ptr->length) in tmio_mmc_pio_irq()
448 if (host->sg_ptr == &host->bounce_sg) { in tmio_mmc_check_bounce_buffer()
Dtmio_mmc.h145 struct scatterlist *sg_ptr; member
Drenesas_sdhi_internal_dmac.c381 struct scatterlist *sg = host->sg_ptr; in renesas_sdhi_internal_dmac_start_dma()
/linux-6.1.9/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()
/linux-6.1.9/drivers/vhost/
Dscsi.c776 struct scatterlist *sg_ptr, *sg_prot_ptr = NULL; in vhost_scsi_target_queue_cmd() local
780 sg_ptr = cmd->tvc_sgl; in vhost_scsi_target_queue_cmd()
787 sg_ptr = NULL; in vhost_scsi_target_queue_cmd()
797 if (target_submit_prep(se_cmd, cmd->tvc_cdb, sg_ptr, in vhost_scsi_target_queue_cmd()
/linux-6.1.9/drivers/scsi/
DFlashPoint.c5112 u32 sg_ptr; in FPT_hostDataXferAbort() local
5171 sg_ptr = pCurrSCCB->Sccb_sgseg + SG_BUF_CNT; in FPT_hostDataXferAbort()
5173 if (sg_ptr > in FPT_hostDataXferAbort()
5177 sg_ptr = (u32)(pCurrSCCB->DataLength / in FPT_hostDataXferAbort()
5185 sg_ptr--; in FPT_hostDataXferAbort()
5187 DataPointer) + (sg_ptr * 2); in FPT_hostDataXferAbort()
5199 pCurrSCCB->Sccb_sgseg = (unsigned short)sg_ptr; in FPT_hostDataXferAbort()
5201 if ((unsigned long)(sg_ptr * SG_ELEMENT_SIZE) == in FPT_hostDataXferAbort()
Dadvansys.c1716 __le32 sg_ptr; /* Pointer to next sg block. */ member
2547 b->sg_cnt, (u32)le32_to_cpu(b->sg_ptr)); in asc_prt_adv_sgblock()
2549 if (b->sg_ptr != 0) in asc_prt_adv_sgblock()
2566 struct adv_sg_block *sg_ptr; in asc_prt_adv_scsi_req_q() local
2597 sg_ptr = &sgblkp->sg_block; in asc_prt_adv_scsi_req_q()
2598 asc_prt_adv_sgblock(sg_blk_cnt, sg_ptr); in asc_prt_adv_scsi_req_q()
2599 if (sg_ptr->sg_ptr == 0) { in asc_prt_adv_scsi_req_q()
7608 prev_sg_block->sg_ptr = cpu_to_le32(sgblk_paddr); in adv_get_sglist()
7624 sg_block->sg_ptr = 0L; /* Last ADV_SG_BLOCK in list. */ in adv_get_sglist()