Home
last modified time | relevance | path

Searched refs:sg_ptr (Results 1 - 25 of 33) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/hwtracing/intel_th/
H A 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()
H A 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()
1041 struct scatterlist *sg_ptr; msc_buffer_set_wb() local
[all...]
/kernel/linux/linux-6.6/drivers/hwtracing/intel_th/
H A 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()
H A 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()
1047 struct scatterlist *sg_ptr; msc_buffer_set_wb() local
[all...]
/kernel/linux/linux-5.10/drivers/crypto/cavium/cpt/
H A 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 in setup_sgio_components()
[all...]
/kernel/linux/linux-5.10/drivers/crypto/marvell/octeontx/
H A 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 in setup_sgio_components()
[all...]
/kernel/linux/linux-6.6/drivers/crypto/cavium/cpt/
H A 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 in setup_sgio_components()
[all...]
/kernel/linux/linux-6.6/drivers/crypto/marvell/octeontx/
H A 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 in setup_sgio_components()
[all...]
/kernel/linux/linux-6.6/drivers/crypto/marvell/octeontx2/
H A 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 in setup_sgio_components()
[all...]
/kernel/linux/linux-5.10/drivers/staging/rts5208/
H A 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 in rtsx_transfer_sglist_adma()
[all...]
/kernel/linux/linux-6.6/drivers/staging/rts5208/
H A 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 in rtsx_transfer_sglist_adma()
[all...]
/kernel/linux/linux-5.10/drivers/mmc/host/
H A 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()
H A 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()
H A 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()
[all...]
H A 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()
H A 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()
H A Dtmio_mmc.h138 struct scatterlist *sg_ptr; member
/kernel/linux/linux-6.6/drivers/mmc/host/
H A Drenesas_sdhi_sys_dmac.c138 host->sg_ptr, host->sg_len, in renesas_sdhi_sys_dmac_dma_callback()
142 host->sg_ptr, host->sg_len, in renesas_sdhi_sys_dmac_dma_callback()
158 struct scatterlist *sg = host->sg_ptr, *sg_tmp; in renesas_sdhi_sys_dmac_start_dma_rx()
187 host->sg_ptr = &host->bounce_sg; in renesas_sdhi_sys_dmac_start_dma_rx()
188 sg = host->sg_ptr; in renesas_sdhi_sys_dmac_start_dma_rx()
230 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()
H A 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()
H A Dau1xmmc.c380 unsigned char *sg_ptr, val; in au1xmmc_send_pio() local
391 sg_ptr = kmap_local_page(sg_page(sg)) + sg->offset + host->pio.offset; in au1xmmc_send_pio()
407 val = sg_ptr[count]; in au1xmmc_send_pio()
412 kunmap_local(sg_ptr); in au1xmmc_send_pio()
436 unsigned char *sg_ptr = NULL; in au1xmmc_receive_pio() local
449 sg_ptr = kmap_local_page(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_local(sg_ptr); in au1xmmc_receive_pio()
[all...]
H A 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()
426 sg_virt = kmap_local_page(sg_page(host->sg_ptr)); in tmio_mmc_pio_irq()
427 buf = (unsigned short *)(sg_virt + host->sg_ptr->offset + host->sg_off); in tmio_mmc_pio_irq()
429 count = host->sg_ptr->length - host->sg_off; in tmio_mmc_pio_irq()
443 if (host->sg_off == host->sg_ptr->length) in tmio_mmc_pio_irq()
449 if (host->sg_ptr == &host->bounce_sg) { in tmio_mmc_check_bounce_buffer()
/kernel/linux/linux-5.10/drivers/mmc/core/
H A 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-6.6/drivers/mmc/core/
H A 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/
H A Dgdth_ioctl.h34 u32 sg_ptr; /* address */ member
40 u64 sg_ptr; /* address */ member
H A 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 in gdth_ioc_cacheservice()
[all...]

Completed in 32 milliseconds

12