Home
last modified time | relevance | path

Searched refs:dma (Results 1 - 25 of 290) sorted by relevance

12345678910>>...12

/device/soc/rockchip/common/sdk_linux/drivers/tty/serial/8250/
H A D8250_dma.c10 #include <linux/dma-mapping.h>
23 struct uart_8250_dma *dma = p->dma; in _dma_tx_complete() local
28 dma_sync_single_for_cpu(dma->txchan->device->dev, dma->tx_addr, UART_XMIT_SIZE, DMA_TO_DEVICE); in _dma_tx_complete()
32 dma->tx_running = 0; in _dma_tx_complete()
34 xmit->tail += dma->tx_size; in _dma_tx_complete()
36 p->port.icount.tx += dma->tx_size; in _dma_tx_complete()
55 struct uart_8250_dma *dma = p->dma; in _dma_rx_complete() local
87 struct uart_8250_dma *dma = p->dma; _dma_rx_complete() local
107 struct uart_8250_dma *dma = p->dma; serial8250_tx_dma() local
172 struct uart_8250_dma *dma = p->dma; serial8250_rx_dma() local
201 struct uart_8250_dma *dma = p->dma; serial8250_start_rx_dma() local
224 struct uart_8250_dma *dma = p->dma; serial8250_rx_dma() local
252 struct uart_8250_dma *dma = p->dma; serial8250_rx_dma_flush() local
264 struct uart_8250_dma *dma = p->dma; serial8250_request_dma() local
358 struct uart_8250_dma *dma = p->dma; serial8250_release_dma() local
[all...]
H A D8250_dw.c488 data->data.dma.rx_param = p->dev->parent; in dw8250_quirks()
489 data->data.dma.tx_param = p->dev->parent; in dw8250_quirks()
490 data->data.dma.fn = dw8250_idma_filter; in dw8250_quirks()
539 data->data.dma.fn = dw8250_fallback_dma_filter; in dw8250_probe()
655 data->data.dma.rxconf.src_maxburst = p->fifosize / 0x4; in dw8250_probe()
656 data->data.dma.txconf.dst_maxburst = p->fifosize / 0x4; in dw8250_probe()
657 up->dma = &data->data.dma; in dw8250_probe()
H A D8250_port.c1598 if (up->dma && up->dma->txchan && !up->dma->tx_dma(up)) { in __start_tx()
1602 if (up->dma && !up->dma->tx_dma(up)) { in __start_tx()
1956 return up->dma->rx_dma(up); in handle_rx_dma()
1968 return up->dma->rx_dma(up); in handle_rx_dma()
1992 if (up->dma && up->dma->rxchan) { in serial8250_handle_irq()
1996 if (!up->dma || dma_er in serial8250_handle_irq()
[all...]
/device/soc/rockchip/common/vendor/drivers/video/rockchip/mpp/
H A Dmpp_iommu.c12 #include <linux/dma-buf-cache.h>
13 #include <linux/dma-iommu.h>
22 #include <asm/dma-iommu.h>
29 static struct mpp_dma_buffer *mpp_dma_find_buffer_fd(struct mpp_dma_session *dma, int fd) in mpp_dma_find_buffer_fd() argument
40 mutex_lock(&dma->list_mutex); in mpp_dma_find_buffer_fd()
41 list_for_each_entry_safe(buffer, n, &dma->used_list, link) in mpp_dma_find_buffer_fd()
52 mutex_unlock(&dma->list_mutex); in mpp_dma_find_buffer_fd()
63 buffer->dma->buffer_count--; in mpp_dma_release_buffer()
64 list_move_tail(&buffer->link, &buffer->dma->unused_list); in mpp_dma_release_buffer()
72 static int mpp_dma_remove_extra_buffer(struct mpp_dma_session *dma) in mpp_dma_remove_extra_buffer() argument
96 mpp_dma_release(struct mpp_dma_session *dma, struct mpp_dma_buffer *buffer) mpp_dma_release() argument
105 mpp_dma_release_fd(struct mpp_dma_session *dma, int fd) mpp_dma_release_fd() argument
163 mpp_dma_import_fd(struct mpp_iommu_info *iommu_info, struct mpp_dma_session *dma, int fd) mpp_dma_import_fd() argument
253 mpp_dma_unmap_kernel(struct mpp_dma_session *dma, struct mpp_dma_buffer *buffer) mpp_dma_unmap_kernel() argument
270 mpp_dma_map_kernel(struct mpp_dma_session *dma, struct mpp_dma_buffer *buffer) mpp_dma_map_kernel() argument
304 mpp_dma_session_destroy(struct mpp_dma_session *dma) mpp_dma_session_destroy() argument
327 struct mpp_dma_session *dma = NULL; mpp_dma_session_create() local
[all...]
H A Dmpp_iommu.h15 #include <linux/dma-mapping.h>
18 /* link to dma session buffer list */
21 /* dma session belong */
22 struct mpp_dma_session *dma; member
79 int mpp_dma_session_destroy(struct mpp_dma_session *dma);
84 struct mpp_dma_buffer *mpp_dma_import_fd(struct mpp_iommu_info *iommu_info, struct mpp_dma_session *dma, int fd);
85 int mpp_dma_release(struct mpp_dma_session *dma, struct mpp_dma_buffer *buffer);
86 int mpp_dma_release_fd(struct mpp_dma_session *dma, int fd);
88 int mpp_dma_unmap_kernel(struct mpp_dma_session *dma, struct mpp_dma_buffer *buffer);
89 int mpp_dma_map_kernel(struct mpp_dma_session *dma, struc
[all...]
/device/soc/rockchip/rk3588/kernel/drivers/video/rockchip/mpp/
H A Dmpp_iommu.c12 #include <linux/dma-buf.h>
13 #include <linux/dma-iommu.h>
22 #include <asm/dma-iommu.h>
30 mpp_dma_find_buffer_fd(struct mpp_dma_session *dma, int fd) in mpp_dma_find_buffer_fd() argument
40 mutex_lock(&dma->list_mutex); in mpp_dma_find_buffer_fd()
42 &dma->used_list, link) { in mpp_dma_find_buffer_fd()
52 mutex_unlock(&dma->list_mutex); in mpp_dma_find_buffer_fd()
64 buffer->dma->buffer_count--; in mpp_dma_release_buffer()
65 list_move_tail(&buffer->link, &buffer->dma->unused_list); in mpp_dma_release_buffer()
74 mpp_dma_remove_extra_buffer(struct mpp_dma_session *dma) in mpp_dma_remove_extra_buffer() argument
99 mpp_dma_release(struct mpp_dma_session *dma, struct mpp_dma_buffer *buffer) mpp_dma_release() argument
109 mpp_dma_release_fd(struct mpp_dma_session *dma, int fd) mpp_dma_release_fd() argument
167 mpp_dma_import_fd(struct mpp_iommu_info *iommu_info, struct mpp_dma_session *dma, int fd) mpp_dma_import_fd() argument
258 mpp_dma_unmap_kernel(struct mpp_dma_session *dma, struct mpp_dma_buffer *buffer) mpp_dma_unmap_kernel() argument
276 mpp_dma_map_kernel(struct mpp_dma_session *dma, struct mpp_dma_buffer *buffer) mpp_dma_map_kernel() argument
310 mpp_dma_session_destroy(struct mpp_dma_session *dma) mpp_dma_session_destroy() argument
334 struct mpp_dma_session *dma = NULL; mpp_dma_session_create() local
[all...]
H A Dmpp_iommu.h15 #include <linux/dma-mapping.h>
18 /* link to dma session buffer list */
21 /* dma session belong */
22 struct mpp_dma_session *dma; member
80 int mpp_dma_session_destroy(struct mpp_dma_session *dma);
88 struct mpp_dma_session *dma, int fd);
89 int mpp_dma_release(struct mpp_dma_session *dma,
91 int mpp_dma_release_fd(struct mpp_dma_session *dma, int fd);
93 int mpp_dma_unmap_kernel(struct mpp_dma_session *dma,
95 int mpp_dma_map_kernel(struct mpp_dma_session *dma,
[all...]
/third_party/mesa3d/src/gallium/drivers/svga/
H A Dsvga_resource_buffer_upload.c128 assert(sbuf->handle || !sbuf->dma.pending); in svga_buffer_create_hw_storage()
141 assert(!sbuf->dma.pending); in svga_buffer_create_hw_storage()
238 sbuf->dma.flags.discard = TRUE; in svga_buffer_create_host_surface()
508 assert(sbuf->dma.updates == NULL); in svga_buffer_upload_gb_command()
535 sbuf->dma.updates = whole_update_cmd; in svga_buffer_upload_gb_command()
543 memcpy(whole_update_cmd, sbuf->dma.updates, sizeof(*whole_update_cmd)); in svga_buffer_upload_gb_command()
551 sbuf->dma.svga = svga; in svga_buffer_upload_gb_command()
557 sbuf->dma.flags.discard = FALSE; in svga_buffer_upload_gb_command()
619 sbuf->dma.boxes = (SVGA3dCopyBox *)&cmd[1]; in svga_buffer_upload_hb_command()
620 sbuf->dma in svga_buffer_upload_hb_command()
[all...]
H A Dsvga_resource_buffer.c167 if (sbuf->dma.pending) { in svga_buffer_transfer_map()
197 if (sbuf->dma.pending) { in svga_buffer_transfer_map()
213 sbuf->dma.flags.discard = TRUE; in svga_buffer_transfer_map()
223 sbuf->dma.flags.unsynchronized = TRUE; in svga_buffer_transfer_map()
233 if (sbuf->dma.pending) { in svga_buffer_transfer_map()
268 sbuf->dma.flags.unsynchronized = FALSE; in svga_buffer_transfer_map()
391 sbuf->dma.flags.discard = TRUE; in svga_buffer_transfer_unmap()
427 assert(!sbuf->dma.pending); in svga_resource_destroy()
/device/soc/rockchip/common/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_wifi6/include/
H A Dbcmsdpcm.h239 (void *)(uintptr)&((h)->regs->dma.sdiod32.dma32regs[chnl].xmt) : \
240 (void *)(uintptr)&((h)->regs->dma.sdiod32.dma32regs[chnl].rcv))
244 (void *)(uintptr)&((h)->regs->dma.sdiod64.dma64regs[chnl].xmt) : \
245 (void *)(uintptr)&((h)->regs->dma.sdiod64.dma64regs[chnl].rcv))
254 (void *)(uintptr)&((h)->regs->dma.pcm32.dmaregs.xmt) : \
255 (void *)(uintptr)&((h)->regs->dma.pcm32.dmaregs.rcv))
264 ((dma32diag_t *)(uintptr)&((h)->regs->dma.sdiod32.dmafifo)) : \
265 ((dma32diag_t *)(uintptr)&((h)->regs->dma.sdiod64.dmafifo)))
268 ((dma32diag_t *)(uintptr)&((h)->regs->dma.pcm32.dmafifo))
/device/soc/rockchip/rk3588/kernel/drivers/net/ethernet/stmicro/stmmac/
H A Dhwif.h222 stmmac_do_callback(__priv, dma, reset, __args)
224 stmmac_do_void_callback(__priv, dma, init, __args)
226 stmmac_do_void_callback(__priv, dma, init_chan, __args)
228 stmmac_do_void_callback(__priv, dma, init_rx_chan, __args)
230 stmmac_do_void_callback(__priv, dma, init_tx_chan, __args)
232 stmmac_do_void_callback(__priv, dma, axi, __args)
234 stmmac_do_void_callback(__priv, dma, dump_regs, __args)
236 stmmac_do_void_callback(__priv, dma, dma_rx_mode, __args)
238 stmmac_do_void_callback(__priv, dma, dma_tx_mode, __args)
240 stmmac_do_void_callback(__priv, dma, dma_diagnostic_f
[all...]
/third_party/mesa3d/src/gallium/drivers/r600/
H A Dr600_pipe_common.c218 struct radeon_cmdbuf *cs = &rctx->dma.cs; in r600_dma_emit_wait_idle()
231 uint64_t vram = (uint64_t)ctx->dma.cs.used_vram_kb * 1024; in r600_need_dma_space()
232 uint64_t gtt = (uint64_t)ctx->dma.cs.used_gart_kb * 1024; in r600_need_dma_space()
266 if (!ctx->ws->cs_check_space(&ctx->dma.cs, num_dw) || in r600_need_dma_space()
267 ctx->dma.cs.used_vram_kb + ctx->dma.cs.used_gart_kb > 64 * 1024 || in r600_need_dma_space()
268 !radeon_cs_memory_below_limit(ctx->screen, &ctx->dma.cs, vram, gtt)) { in r600_need_dma_space()
269 ctx->dma.flush(ctx, PIPE_FLUSH_ASYNC, NULL); in r600_need_dma_space()
270 assert((num_dw + ctx->dma.cs.current.cdw) <= ctx->dma in r600_need_dma_space()
[all...]
H A Dr600_buffer_common.c42 if (radeon_emitted(&ctx->dma.cs, 0) && in r600_rings_is_buffer_referenced()
43 ctx->ws->cs_is_buffer_referenced(&ctx->dma.cs, buf, usage)) { in r600_rings_is_buffer_referenced()
78 if (radeon_emitted(&ctx->dma.cs, 0) && in r600_buffer_map_sync_with_rings()
79 ctx->ws->cs_is_buffer_referenced(&ctx->dma.cs, in r600_buffer_map_sync_with_rings()
82 ctx->dma.flush(ctx, PIPE_FLUSH_ASYNC, NULL); in r600_buffer_map_sync_with_rings()
85 ctx->dma.flush(ctx, 0, NULL); in r600_buffer_map_sync_with_rings()
97 if (ctx->dma.cs.priv) in r600_buffer_map_sync_with_rings()
98 ctx->ws->cs_sync_flush(&ctx->dma.cs); in r600_buffer_map_sync_with_rings()
309 (dword_aligned && (rctx->dma.cs.priv || in r600_can_dma_copy_buffer()
H A Devergreen_hw_context.c38 struct radeon_cmdbuf *cs = &rctx->b.dma.cs; in evergreen_dma_copy_buffer()
67 radeon_add_to_buffer_list(&rctx->b, &rctx->b.dma, rsrc, RADEON_USAGE_READ); in evergreen_dma_copy_buffer()
68 radeon_add_to_buffer_list(&rctx->b, &rctx->b.dma, rdst, RADEON_USAGE_WRITE); in evergreen_dma_copy_buffer()
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/src/drv/cipher_v1.0/osal/
H A Ddrv_osal_sys_linux.c35 compat_addr dma; member
87 hi_log_error("dma alloc coherent with invalid size(0x%x).\n", size); in cipher_dma_alloc_coherent()
99 hi_log_error("cipher dma set mask failed.\n"); in cipher_dma_alloc_coherent()
114 addr_u64(g_local_map_table[i].dma) = addr_u64(mem->dma_addr); in cipher_dma_alloc_coherent()
150 hi_log_error("cipher dma set mask failed.\n"); in cipher_dma_free_coherent()
158 if (g_local_map_table[i].valid && addr_u64(g_local_map_table[i].dma) == addr_u64(mem_temp.dma_addr)) { in cipher_dma_free_coherent()
159 addr_u64(g_local_map_table[i].dma) = 0x00; in cipher_dma_free_coherent()
215 addr_u64(g_local_map_table[i].dma) = addr_u64(mem->dma_addr); in hash_mem_alloc_remap()
238 addr_u64(g_local_map_table[i].dma) == addr_u64(mem->dma_addr)) { in hash_mem_release_unmap()
239 addr_u64(g_local_map_table[i].dma) in hash_mem_release_unmap()
[all...]
/device/soc/rockchip/common/sdk_linux/include/linux/
H A Ddmaengine.h49 * automatically set as dma devices are registered.
73 * enum dma_transfer_direction - dma transfer mode and direction indicator
313 * @device: ptr to the dma device who supplies this channel, always !%NULL
385 * struct dma_slave_config - dma slave channel runtime config
419 * @slave_id: Slave requester id. Only valid for slave channels. The dma
420 * slave peripheral will have unique id as dma requester which need to be
488 * each type, the dma controller should set BIT(<TYPE>) and same
579 * ---dma generic offload fields---
783 * @dev: struct device reference for dma mapping api
791 * each type, the dma controlle
1214 dma_set_maxpq(struct dma_device *dma, int maxpq, int has_pq_continue) dma_set_maxpq() argument
1234 dma_dev_has_pq_continue(struct dma_device *dma) dma_dev_has_pq_continue() argument
1239 dma_dev_to_maxpq(struct dma_device *dma) dma_dev_to_maxpq() argument
1257 dma_maxpq(struct dma_device *dma, enum dma_ctrl_flags flags) dma_maxpq() argument
[all...]
H A Ddma-buf.h3 * Header file for dma buffer sharing framework.
20 #include <linux/dma-mapping.h>
22 #include <linux/dma-fence.h>
291 * Because dma-buf buffers have invariant size over their lifetime, the
292 * dma-buf core checks whether a vma is too large and rejects such
372 * @resv: reservation object linked to this dma-buf
387 * Shared dma buffers are reference counted using dma_buf_put() and
517 * @ops: Attach allocator-defined dma buf ops to the new buffer
550 * Increments the reference count on the dma-buf, needed in case of drivers
/device/soc/rockchip/common/vendor/drivers/gpu/arm/mali400/mali/linux/
H A Dmali_memory_secure.c17 #include <linux/dma-mapping.h>
18 #include <linux/dma-buf.h>
19 #include <linux/dma-direct.h>
26 /* get dma buffer */ in mali_mem_secure_attach_dma_buf()
29 MALI_DEBUG_PRINT_ERROR(("Failed to get dma buf!\n")); in mali_mem_secure_attach_dma_buf()
34 MALI_DEBUG_PRINT_ERROR(("The secure mem size not match to the dma buf size!\n")); in mali_mem_secure_attach_dma_buf()
41 MALI_DEBUG_PRINT_ERROR(("Failed to get dma buf attachment!\n")); in mali_mem_secure_attach_dma_buf()
47 MALI_DEBUG_PRINT_ERROR(("Failed to map dma buf attachment\n")); in mali_mem_secure_attach_dma_buf()
H A Dmali_internal_sync.h34 #include <linux/dma-fence.h>
43 #include <linux/dma-fence-array.h>
/device/soc/rockchip/common/kernel/drivers/gpu/arm/mali400/mali/linux/
H A Dmali_memory_secure.c16 #include <linux/dma-mapping.h>
17 #include <linux/dma-buf.h>
18 #include <linux/dma-direct.h>
25 /* get dma buffer */ in mali_mem_secure_attach_dma_buf()
28 MALI_DEBUG_PRINT_ERROR(("Failed to get dma buf!\n")); in mali_mem_secure_attach_dma_buf()
33 MALI_DEBUG_PRINT_ERROR(("The secure mem size not match to the dma buf size!\n")); in mali_mem_secure_attach_dma_buf()
40 MALI_DEBUG_PRINT_ERROR(("Failed to get dma buf attachment!\n")); in mali_mem_secure_attach_dma_buf()
46 MALI_DEBUG_PRINT_ERROR(("Failed to map dma buf attachment\n")); in mali_mem_secure_attach_dma_buf()
H A Dmali_internal_sync.h33 #include <linux/dma-fence.h>
42 #include <linux/dma-fence-array.h>
/third_party/ltp/testcases/kernel/device-drivers/usb/tusb/
H A Dst_tusb.h39 /* allocate dma-consistent buffer for URB_DMA_NOMAPPING */
42 dma_addr_t *dma);
44 void *addr, dma_addr_t dma);
/device/soc/rockchip/rk3588/kernel/drivers/video/rockchip/rga3/include/
H A Drga_drv.h16 #include <linux/dma-buf-cache.h>
17 #include <linux/dma-mapping.h>
52 #include <linux/dma-iommu.h>
53 #include <linux/dma-map-ops.h>
/device/soc/rockchip/common/sdk_linux/drivers/dma-buf/
H A Ddma-heap.c9 #include <linux/dma-heap.h>
13 #include <linux/dma-buf.h>
21 #include <uapi/linux/dma-heap.h>
/third_party/mesa3d/src/imagination/vulkan/pds/
H A Dpvr_xgl_pds.c391 * Generates the PDS vertex primary program for the dma's listed in the input
529 for (uint32_t dma = 0; dma < input_program->dma_count; dma++) { in pvr_pds_generate_vertex_primary_program()
742 for (uint32_t dma = 0; dma < input_program->dma_count; dma++) { in pvr_pds_generate_vertex_primary_program()
743 uint32_t const_base = dma * PVR_PDS_DDMAD_NUM_CONSTS; in pvr_pds_generate_vertex_primary_program()
747 struct pvr_pds_vertex_dma *vertex_dma = &input_program->dma_list[dma]; in pvr_pds_generate_vertex_primary_program()
750 pvr_debug_pds_note("Vertex Attribute DMA %d (last=%d)", dma, last_DM in pvr_pds_generate_vertex_primary_program()
[all...]

Completed in 24 milliseconds

12345678910>>...12