Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/crypto/marvell/octeontx2/
Dotx2_cpt_reqmgr.h216 struct otx2_cpt_sglist_component *sg_ptr; in setup_sgio_components() local
237 sg_ptr = (struct otx2_cpt_sglist_component *)buffer; in setup_sgio_components()
239 sg_ptr->len0 = cpu_to_be16(list[i * SG_COMPS_MAX + 0].size); in setup_sgio_components()
240 sg_ptr->len1 = cpu_to_be16(list[i * SG_COMPS_MAX + 1].size); in setup_sgio_components()
241 sg_ptr->len2 = cpu_to_be16(list[i * SG_COMPS_MAX + 2].size); in setup_sgio_components()
242 sg_ptr->len3 = cpu_to_be16(list[i * SG_COMPS_MAX + 3].size); in setup_sgio_components()
243 sg_ptr->ptr0 = cpu_to_be64(list[i * SG_COMPS_MAX + 0].dma_addr); in setup_sgio_components()
244 sg_ptr->ptr1 = cpu_to_be64(list[i * SG_COMPS_MAX + 1].dma_addr); in setup_sgio_components()
245 sg_ptr->ptr2 = cpu_to_be64(list[i * SG_COMPS_MAX + 2].dma_addr); in setup_sgio_components()
246 sg_ptr->ptr3 = cpu_to_be64(list[i * SG_COMPS_MAX + 3].dma_addr); in setup_sgio_components()
[all …]
/linux-6.12.1/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
1039 for_each_sg(win->sgt->sgl, sg_ptr, win->nr_segs, i) { in msc_buffer_set_uc()
1041 set_memory_uc((unsigned long)sg_virt(sg_ptr), in msc_buffer_set_uc()
1042 PFN_DOWN(sg_ptr->length)); in msc_buffer_set_uc()
[all …]
/linux-6.12.1/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.12.1/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.12.1/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.12.1/drivers/mmc/host/
Drenesas_sdhi_sys_dmac.c139 host->sg_ptr, host->sg_len, in renesas_sdhi_sys_dmac_dma_callback()
143 host->sg_ptr, host->sg_len, in renesas_sdhi_sys_dmac_dma_callback()
159 struct scatterlist *sg = host->sg_ptr, *sg_tmp; in renesas_sdhi_sys_dmac_start_dma_rx()
188 host->sg_ptr = &host->bounce_sg; in renesas_sdhi_sys_dmac_start_dma_rx()
189 sg = host->sg_ptr; in renesas_sdhi_sys_dmac_start_dma_rx()
231 struct scatterlist *sg = host->sg_ptr, *sg_tmp; in renesas_sdhi_sys_dmac_start_dma_tx()
264 host->sg_ptr = &host->bounce_sg; in renesas_sdhi_sys_dmac_start_dma_tx()
265 sg = host->sg_ptr; in renesas_sdhi_sys_dmac_start_dma_tx()
Duniphier-sd.c109 dma_unmap_sg(mmc_dev(host->mmc), host->sg_ptr, host->sg_len, in uniphier_sd_external_dma_callback()
151 sg_len = dma_map_sg(mmc_dev(host->mmc), host->sg_ptr, host->sg_len, in uniphier_sd_external_dma_start()
156 desc = dmaengine_prep_slave_sg(priv->chan, host->sg_ptr, sg_len, in uniphier_sd_external_dma_start()
173 dma_unmap_sg(mmc_dev(host->mmc), host->sg_ptr, host->sg_len, in uniphier_sd_external_dma_start()
256 struct scatterlist *sg = host->sg_ptr; in uniphier_sd_internal_dma_start()
349 dma_unmap_sg(mmc_dev(host->mmc), host->sg_ptr, 1, priv->dma_dir); in uniphier_sd_internal_dma_dataend()
Dau1xmmc.c381 unsigned char *sg_ptr, val; in au1xmmc_send_pio() local
392 sg_ptr = kmap_local_page(sg_page(sg)) + sg->offset + host->pio.offset; in au1xmmc_send_pio()
408 val = sg_ptr[count]; in au1xmmc_send_pio()
413 kunmap_local(sg_ptr); in au1xmmc_send_pio()
437 unsigned char *sg_ptr = NULL; in au1xmmc_receive_pio() local
450 sg_ptr = kmap_local_page(sg_page(sg)) + sg->offset + host->pio.offset; in au1xmmc_receive_pio()
488 if (sg_ptr) in au1xmmc_receive_pio()
489 sg_ptr[count] = (unsigned char)(val & 0xFF); in au1xmmc_receive_pio()
491 if (sg_ptr) in au1xmmc_receive_pio()
492 kunmap_local(sg_ptr); in au1xmmc_receive_pio()
Dtmio_mmc_core.c124 host->sg_ptr = data->sg; in tmio_mmc_init_sg()
131 host->sg_ptr = sg_next(host->sg_ptr); in tmio_mmc_next_sg()
427 sg_virt = kmap_local_page(sg_page(host->sg_ptr)); in tmio_mmc_pio_irq()
428 buf = (unsigned short *)(sg_virt + host->sg_ptr->offset + host->sg_off); in tmio_mmc_pio_irq()
430 count = host->sg_ptr->length - host->sg_off; in tmio_mmc_pio_irq()
444 if (host->sg_off == host->sg_ptr->length) in tmio_mmc_pio_irq()
450 if (host->sg_ptr == &host->bounce_sg) { in tmio_mmc_check_bounce_buffer()
Dtmio_mmc.h144 struct scatterlist *sg_ptr; member
Drenesas_sdhi_internal_dmac.c409 struct scatterlist *sg = host->sg_ptr; in renesas_sdhi_internal_dmac_start_dma()
/linux-6.12.1/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.12.1/drivers/vhost/
Dscsi.c903 struct scatterlist *sg_ptr, *sg_prot_ptr = NULL; in vhost_scsi_target_queue_cmd() local
907 sg_ptr = cmd->tvc_sgl; in vhost_scsi_target_queue_cmd()
914 sg_ptr = NULL; in vhost_scsi_target_queue_cmd()
924 if (target_submit_prep(se_cmd, cmd->tvc_cdb, sg_ptr, in vhost_scsi_target_queue_cmd()
/linux-6.12.1/drivers/scsi/
DFlashPoint.c5111 u32 sg_ptr; in FPT_hostDataXferAbort() local
5170 sg_ptr = pCurrSCCB->Sccb_sgseg + SG_BUF_CNT; in FPT_hostDataXferAbort()
5172 if (sg_ptr > in FPT_hostDataXferAbort()
5176 sg_ptr = (u32)(pCurrSCCB->DataLength / in FPT_hostDataXferAbort()
5184 sg_ptr--; in FPT_hostDataXferAbort()
5186 DataPointer) + (sg_ptr * 2); in FPT_hostDataXferAbort()
5198 pCurrSCCB->Sccb_sgseg = (unsigned short)sg_ptr; in FPT_hostDataXferAbort()
5200 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()