Home
last modified time | relevance | path

Searched refs:dma_desc (Results 1 – 25 of 56) sorted by relevance

123

/linux-6.3-rc2/drivers/dma/
A Dtegra20-apb-dma.c280 if (async_tx_test_ack(&dma_desc->txd) && !dma_desc->cb_count) { in tegra_dma_desc_get()
291 dma_desc = kzalloc(sizeof(*dma_desc), GFP_NOWAIT); in tegra_dma_desc_get()
292 if (!dma_desc) in tegra_dma_desc_get()
299 return dma_desc; in tegra_dma_desc_get()
536 dma_desc = sgreq->dma_desc; in tegra_dma_abort_all()
584 dma_desc = sgreq->dma_desc; in handle_once_dma_done()
618 dma_desc = sgreq->dma_desc; in handle_cont_sngl_cycle_dma_done()
651 dma_desc = list_first_entry(&tdc->cb_desc, typeof(*dma_desc), in tegra_dma_tasklet()
920 dma_desc = sg_req->dma_desc; in tegra_dma_tx_status()
1139 sg_req->dma_desc = dma_desc; in tegra_dma_prep_slave_sg()
[all …]
A Dtegra186-gpc-dma.c473 struct tegra_dma_desc *dma_desc = tdc->dma_desc; in tegra_dma_configure_next_sg() local
481 if (dma_desc->sg_idx == dma_desc->sg_count) in tegra_dma_configure_next_sg()
493 ch_regs = &dma_desc->sg_req[dma_desc->sg_idx].ch_regs; in tegra_dma_configure_next_sg()
507 struct tegra_dma_desc *dma_desc = tdc->dma_desc; in tegra_dma_start() local
519 tdc->dma_desc = dma_desc; in tegra_dma_start()
524 ch_regs = &dma_desc->sg_req[dma_desc->sg_idx].ch_regs; in tegra_dma_start()
593 struct tegra_dma_desc *dma_desc = tdc->dma_desc; in tegra_dma_isr() local
617 dma_desc->bytes_xfer += sg_req[dma_desc->sg_idx].len; in tegra_dma_isr()
624 if (dma_desc->sg_idx == dma_desc->sg_count) in tegra_dma_isr()
654 if (tdc->dma_desc && tdc->dma_desc->cyclic) in tegra_dma_issue_pending()
[all …]
A Dtimb_dma.c145 static int td_fill_desc(struct timb_dma_chan *td_chan, u8 *dma_desc, in td_fill_desc() argument
161 dma_desc, (unsigned long long)sg_dma_address(sg)); in td_fill_desc()
163 dma_desc[7] = (sg_dma_address(sg) >> 24) & 0xff; in td_fill_desc()
164 dma_desc[6] = (sg_dma_address(sg) >> 16) & 0xff; in td_fill_desc()
165 dma_desc[5] = (sg_dma_address(sg) >> 8) & 0xff; in td_fill_desc()
166 dma_desc[4] = (sg_dma_address(sg) >> 0) & 0xff; in td_fill_desc()
168 dma_desc[3] = (sg_dma_len(sg) >> 8) & 0xff; in td_fill_desc()
169 dma_desc[2] = (sg_dma_len(sg) >> 0) & 0xff; in td_fill_desc()
171 dma_desc[1] = 0x00; in td_fill_desc()
172 dma_desc[0] = 0x21 | (last ? 0x02 : 0); /* tran, valid */ in td_fill_desc()
/linux-6.3-rc2/drivers/net/ethernet/stmicro/stmmac/
A Ddwxgmac2_descs.c12 struct dma_desc *p, void __iomem *ioaddr) in dwxgmac2_get_tx_status()
26 struct dma_desc *p) in dwxgmac2_get_rx_status()
42 static int dwxgmac2_get_tx_len(struct dma_desc *p) in dwxgmac2_get_tx_len()
47 static int dwxgmac2_get_tx_owner(struct dma_desc *p) in dwxgmac2_get_tx_owner()
52 static void dwxgmac2_set_tx_owner(struct dma_desc *p) in dwxgmac2_set_tx_owner()
65 static int dwxgmac2_get_tx_ls(struct dma_desc *p) in dwxgmac2_get_tx_ls()
87 struct dma_desc *p = (struct dma_desc *)desc; in dwxgmac2_get_timestamp()
98 struct dma_desc *p = (struct dma_desc *)desc; in dwxgmac2_rx_check_timestamp()
119 struct dma_desc *p = (struct dma_desc *)desc; in dwxgmac2_get_rx_timestamp_status()
229 static void dwxgmac2_set_tx_ic(struct dma_desc *p) in dwxgmac2_set_tx_ic()
[all …]
A Dnorm_desc.c16 struct dma_desc *p, void __iomem *ioaddr) in ndesc_get_tx_status()
64 static int ndesc_get_tx_len(struct dma_desc *p) in ndesc_get_tx_len()
74 struct dma_desc *p) in ndesc_get_rx_status()
153 static int ndesc_get_tx_owner(struct dma_desc *p) in ndesc_get_tx_owner()
168 static int ndesc_get_tx_ls(struct dma_desc *p) in ndesc_get_tx_ls()
177 memset(p, 0, offsetof(struct dma_desc, des2)); in ndesc_release_tx_desc()
214 static void ndesc_set_tx_ic(struct dma_desc *p) in ndesc_set_tx_ic()
250 struct dma_desc *p = (struct dma_desc *)desc; in ndesc_get_timestamp()
262 struct dma_desc *p = (struct dma_desc *)desc; in ndesc_get_rx_timestamp_status()
275 struct dma_desc *p = (struct dma_desc *)head; in ndesc_display_ring()
[all …]
A Ddescs_com.h22 static inline void ehn_desc_rx_set_on_ring(struct dma_desc *p, int end, in ehn_desc_rx_set_on_ring()
34 static inline void enh_desc_end_tx_desc_on_ring(struct dma_desc *p, int end) in enh_desc_end_tx_desc_on_ring()
42 static inline void enh_set_tx_desc_len_on_ring(struct dma_desc *p, int len) in enh_set_tx_desc_len_on_ring()
68 static inline void ndesc_end_tx_desc_on_ring(struct dma_desc *p, int end) in ndesc_end_tx_desc_on_ring()
76 static inline void norm_set_tx_desc_len_on_ring(struct dma_desc *p, int len) in norm_set_tx_desc_len_on_ring()
91 static inline void ehn_desc_rx_set_on_chain(struct dma_desc *p) in ehn_desc_rx_set_on_chain()
96 static inline void enh_desc_end_tx_desc_on_chain(struct dma_desc *p) in enh_desc_end_tx_desc_on_chain()
101 static inline void enh_set_tx_desc_len_on_chain(struct dma_desc *p, int len) in enh_set_tx_desc_len_on_chain()
107 static inline void ndesc_rx_set_on_chain(struct dma_desc *p, int end) in ndesc_rx_set_on_chain()
112 static inline void ndesc_tx_set_on_chain(struct dma_desc *p) in ndesc_tx_set_on_chain()
[all …]
A Ddwmac4_descs.c17 struct dma_desc *p, in dwmac4_wrback_get_tx_status()
77 struct dma_desc *p) in dwmac4_wrback_get_rx_status()
178 static int dwmac4_rd_get_tx_len(struct dma_desc *p) in dwmac4_rd_get_tx_len()
183 static int dwmac4_get_tx_owner(struct dma_desc *p) in dwmac4_get_tx_owner()
201 static int dwmac4_get_tx_ls(struct dma_desc *p) in dwmac4_get_tx_ls()
232 struct dma_desc *p = (struct dma_desc *)desc; in dwmac4_get_timestamp()
244 struct dma_desc *p = (struct dma_desc *)desc; in dwmac4_rx_check_timestamp()
271 struct dma_desc *p = (struct dma_desc *)desc; in dwmac4_wrback_get_rx_timestamp_status()
415 if (desc_size == sizeof(struct dma_desc)) { in dwmac4_display_ring()
416 struct dma_desc *p = (struct dma_desc *)head; in dwmac4_display_ring()
[all …]
A Denh_desc.c16 struct dma_desc *p, void __iomem *ioaddr) in enh_desc_get_tx_status()
82 static int enh_desc_get_tx_len(struct dma_desc *p) in enh_desc_get_tx_len()
185 struct dma_desc *p) in enh_desc_get_rx_status()
285 static int enh_desc_get_tx_owner(struct dma_desc *p) in enh_desc_get_tx_owner()
290 static void enh_desc_set_tx_owner(struct dma_desc *p) in enh_desc_set_tx_owner()
300 static int enh_desc_get_tx_ls(struct dma_desc *p) in enh_desc_get_tx_ls()
309 memset(p, 0, offsetof(struct dma_desc, des2)); in enh_desc_release_tx_desc()
354 static void enh_desc_set_tx_ic(struct dma_desc *p) in enh_desc_set_tx_ic()
395 struct dma_desc *p = (struct dma_desc *)desc; in enh_desc_get_timestamp()
410 struct dma_desc *p = (struct dma_desc *)desc; in enh_desc_get_rx_timestamp_status()
[all …]
A Dchain_mode.c25 struct dma_desc *desc; in jumbo_frm()
118 struct dma_desc *p = (struct dma_desc *)des; in init_dma_chain()
120 dma_phy += sizeof(struct dma_desc); in init_dma_chain()
128 static void refill_desc3(void *priv_ptr, struct dma_desc *p) in refill_desc3()
141 sizeof(struct dma_desc))); in refill_desc3()
144 static void clean_desc3(void *priv_ptr, struct dma_desc *p) in clean_desc3()
159 * sizeof(struct dma_desc))); in clean_desc3()
A Dhwif.h30 struct dma_desc;
49 void (*set_tx_owner)(struct dma_desc *p);
50 int (*get_tx_owner)(struct dma_desc *p);
55 void (*set_tx_ic)(struct dma_desc *p);
57 int (*get_tx_ls)(struct dma_desc *p);
60 struct dma_desc *p, void __iomem *ioaddr);
62 int (*get_tx_len)(struct dma_desc *p);
69 struct dma_desc *p);
88 void (*clear)(struct dma_desc *p);
97 void (*set_vlan)(struct dma_desc *p, u32 type);
[all …]
A Dring_mode.c24 struct dma_desc *desc; in jumbo_frm()
27 desc = (struct dma_desc *)(tx_q->dma_etx + entry); in jumbo_frm()
57 desc = (struct dma_desc *)(tx_q->dma_etx + entry); in jumbo_frm()
104 static void refill_desc3(void *priv_ptr, struct dma_desc *p) in refill_desc3()
115 static void init_desc3(struct dma_desc *p) in init_desc3()
120 static void clean_desc3(void *priv_ptr, struct dma_desc *p) in clean_desc3()
A Ddescs.h158 struct dma_desc { struct
167 struct dma_desc basic; /* Basic descriptors */ argument
180 struct dma_desc basic;
/linux-6.3-rc2/sound/soc/bcm/
A Dbcm63xx-pcm-whistler.c48 struct i2s_dma_desc *dma_desc; in bcm63xx_pcm_hw_params() local
51 dma_desc = kzalloc(sizeof(*dma_desc), GFP_NOWAIT); in bcm63xx_pcm_hw_params()
52 if (!dma_desc) in bcm63xx_pcm_hw_params()
63 struct i2s_dma_desc *dma_desc; in bcm63xx_pcm_hw_free() local
67 kfree(dma_desc); in bcm63xx_pcm_hw_free()
270 dma_desc->dma_addr += in i2s_dma_isr()
272 dma_desc->dma_area += in i2s_dma_isr()
284 dma_desc->dma_addr); in i2s_dma_isr()
319 dma_desc->dma_addr += in i2s_dma_isr()
321 dma_desc->dma_area += in i2s_dma_isr()
[all …]
/linux-6.3-rc2/drivers/net/ethernet/synopsys/
A Ddwc-xlgmac-hw.c759 dma_desc = desc_data->dma_desc; in xlgmac_dev_xmit()
823 dma_desc = desc_data->dma_desc; in xlgmac_dev_xmit()
832 dma_desc->desc2, in xlgmac_dev_xmit()
859 dma_desc->desc3, in xlgmac_dev_xmit()
923 dma_desc = desc_data->dma_desc; in xlgmac_dev_xmit()
926 dma_desc->desc0 = in xlgmac_dev_xmit()
928 dma_desc->desc1 = in xlgmac_dev_xmit()
984 dma_desc = desc_data->dma_desc; in xlgmac_dev_xmit()
1039 struct xlgmac_dma_desc *dma_desc = desc_data->dma_desc; in xlgmac_tx_desc_reset() local
1086 struct xlgmac_dma_desc *dma_desc = desc_data->dma_desc; in xlgmac_rx_desc_reset() local
[all …]
A Ddwc-xlgmac-common.c291 struct xlgmac_dma_desc *dma_desc; in xlgmac_dump_tx_desc() local
295 dma_desc = desc_data->dma_desc; in xlgmac_dump_tx_desc()
302 le32_to_cpu(dma_desc->desc0), in xlgmac_dump_tx_desc()
303 le32_to_cpu(dma_desc->desc1), in xlgmac_dump_tx_desc()
304 le32_to_cpu(dma_desc->desc2), in xlgmac_dump_tx_desc()
316 struct xlgmac_dma_desc *dma_desc; in xlgmac_dump_rx_desc() local
319 dma_desc = desc_data->dma_desc; in xlgmac_dump_rx_desc()
326 le32_to_cpu(dma_desc->desc0), in xlgmac_dump_rx_desc()
327 le32_to_cpu(dma_desc->desc1), in xlgmac_dump_rx_desc()
328 le32_to_cpu(dma_desc->desc2), in xlgmac_dump_rx_desc()
[all …]
A Ddwc-xlgmac-desc.c425 struct xlgmac_dma_desc *dma_desc; in xlgmac_tx_desc_init() local
437 dma_desc = ring->dma_desc_head; in xlgmac_tx_desc_init()
443 desc_data->dma_desc = dma_desc; in xlgmac_tx_desc_init()
446 dma_desc++; in xlgmac_tx_desc_init()
462 struct xlgmac_dma_desc *dma_desc; in xlgmac_rx_desc_init() local
474 dma_desc = ring->dma_desc_head; in xlgmac_rx_desc_init()
480 desc_data->dma_desc = dma_desc; in xlgmac_rx_desc_init()
486 dma_desc++; in xlgmac_rx_desc_init()
A Ddwc-xlgmac.h286 struct xlgmac_dma_desc *dma_desc; member
400 int (*tx_complete)(struct xlgmac_dma_desc *dma_desc);
432 int (*is_last_desc)(struct xlgmac_dma_desc *dma_desc);
433 int (*is_context_desc)(struct xlgmac_dma_desc *dma_desc);
/linux-6.3-rc2/drivers/usb/dwc2/
A Dhcd_ddma.c519 memset(dma_desc, 0, sizeof(*dma_desc)); in dwc2_fill_host_isoc_dma_desc()
532 dma_desc->status |= HOST_DMA_A; in dwc2_fill_host_isoc_dma_desc()
540 dma_desc->status |= HOST_DMA_IOC; in dwc2_fill_host_isoc_dma_desc()
689 dma_desc->status |= HOST_DMA_SUP; in dwc2_fill_host_dma_desc()
691 dma_desc->buf = (u32)chan->xfer_dma; in dwc2_fill_host_dma_desc()
867 struct dwc2_dma_desc *dma_desc; in dwc2_cmpl_host_isoc_dma_desc() local
880 dma_desc = &qh->desc_list[idx]; in dwc2_cmpl_host_isoc_dma_desc()
925 if (dma_desc->status & HOST_DMA_IOC) in dwc2_cmpl_host_isoc_dma_desc()
1040 struct dwc2_dma_desc *dma_desc, in dwc2_update_non_isoc_urb_state_ddma() argument
1082 if (dma_desc->status & HOST_DMA_A) { in dwc2_update_non_isoc_urb_state_ddma()
[all …]
/linux-6.3-rc2/drivers/soc/tegra/fuse/
A Dfuse-tegra20.c45 struct dma_async_tx_descriptor *dma_desc; in tegra20_fuse_read() local
62 dma_desc = dmaengine_prep_slave_single(fuse->apbdma.chan, in tegra20_fuse_read()
66 if (!dma_desc) in tegra20_fuse_read()
69 dma_desc->callback = apb_dma_complete; in tegra20_fuse_read()
70 dma_desc->callback_param = fuse; in tegra20_fuse_read()
74 dmaengine_submit(dma_desc); in tegra20_fuse_read()
/linux-6.3-rc2/drivers/comedi/drivers/
A Dgsc_hpdi.c125 struct plx_dma_desc *dma_desc; member
154 start = le32_to_cpu(devpriv->dma_desc[idx].pci_start_addr); in gsc_hpdi_drain_dma()
169 start = le32_to_cpu(devpriv->dma_desc[idx].pci_start_addr); in gsc_hpdi_drain_dma()
428 devpriv->dma_desc[i].pci_start_addr = in gsc_hpdi_setup_dma_descriptors()
431 devpriv->dma_desc[i].transfer_size = cpu_to_le32(len); in gsc_hpdi_setup_dma_descriptors()
432 devpriv->dma_desc[i].next = cpu_to_le32((phys_addr + in gsc_hpdi_setup_dma_descriptors()
433 (i + 1) * sizeof(devpriv->dma_desc[0])) | next_bits); in gsc_hpdi_setup_dma_descriptors()
496 if (devpriv->dma_desc) in gsc_hpdi_free_dma()
500 devpriv->dma_desc, in gsc_hpdi_free_dma()
632 devpriv->dma_desc = dma_alloc_coherent(&pcidev->dev, in gsc_hpdi_auto_attach()
[all …]
/linux-6.3-rc2/drivers/usb/musb/
A Dmusb_cppi41.c149 struct dma_async_tx_descriptor *dma_desc; in cppi41_trans_done() local
162 dma_desc = dmaengine_prep_slave_single(dc, in cppi41_trans_done()
167 if (WARN_ON(!dma_desc)) in cppi41_trans_done()
170 dma_desc->callback_result = cppi41_dma_callback; in cppi41_trans_done()
171 dma_desc->callback_param = &cppi41_channel->channel; in cppi41_trans_done()
172 cppi41_channel->cookie = dma_desc->tx_submit(dma_desc); in cppi41_trans_done()
418 struct dma_async_tx_descriptor *dma_desc; in cppi41_configure_channel() local
467 if (!dma_desc) in cppi41_configure_channel()
470 dma_desc->callback_result = cppi41_dma_callback; in cppi41_configure_channel()
471 dma_desc->callback_param = channel; in cppi41_configure_channel()
[all …]
A Dux500_dma.c77 struct dma_async_tx_descriptor *dma_desc; in ux500_configure_channel() local
114 dma_desc = dmaengine_prep_slave_sg(dma_chan, &sg, 1, direction, in ux500_configure_channel()
116 if (!dma_desc) in ux500_configure_channel()
119 dma_desc->callback = ux500_dma_callback; in ux500_configure_channel()
120 dma_desc->callback_param = channel; in ux500_configure_channel()
121 ux500_channel->cookie = dma_desc->tx_submit(dma_desc); in ux500_configure_channel()
A Dtusb6010_omap.c196 struct dma_async_tx_descriptor *dma_desc; in tusb_omap_dma_program() local
303 dma_desc = dmaengine_prep_slave_single(dma_data->chan, dma_addr, in tusb_omap_dma_program()
306 if (!dma_desc) { in tusb_omap_dma_program()
311 dma_desc->callback = tusb_omap_dma_cb; in tusb_omap_dma_program()
312 dma_desc->callback_param = channel; in tusb_omap_dma_program()
313 dmaengine_submit(dma_desc); in tusb_omap_dma_program()
/linux-6.3-rc2/arch/mips/include/asm/mach-rc32434/
A Ddma.h23 struct dma_desc { struct
30 #define DMA_DESC_SIZ sizeof(struct dma_desc) argument
/linux-6.3-rc2/drivers/net/ethernet/broadcom/
A Dbgmac.c115 struct bgmac_dma_desc *dma_desc; in bgmac_dma_tx_add_buf() local
124 dma_desc = &ring->cpu_base[i]; in bgmac_dma_tx_add_buf()
125 dma_desc->addr_low = cpu_to_le32(lower_32_bits(slot->dma_addr)); in bgmac_dma_tx_add_buf()
126 dma_desc->addr_high = cpu_to_le32(upper_32_bits(slot->dma_addr)); in bgmac_dma_tx_add_buf()
127 dma_desc->ctl0 = cpu_to_le32(ctl0); in bgmac_dma_tx_add_buf()
128 dma_desc->ctl1 = cpu_to_le32(ctl1); in bgmac_dma_tx_add_buf()
380 struct bgmac_dma_desc *dma_desc = ring->cpu_base + desc_idx; in bgmac_dma_rx_setup_desc() local
393 dma_desc->ctl0 = cpu_to_le32(ctl0); in bgmac_dma_rx_setup_desc()
394 dma_desc->ctl1 = cpu_to_le32(ctl1); in bgmac_dma_rx_setup_desc()
529 struct bgmac_dma_desc *dma_desc = ring->cpu_base; in bgmac_dma_tx_ring_free() local
[all …]

Completed in 52 milliseconds

123