Home
last modified time | relevance | path

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

123

/Linux-v4.19/drivers/net/ethernet/stmicro/stmmac/
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()
41 static int dwxgmac2_get_tx_len(struct dma_desc *p) in dwxgmac2_get_tx_len()
46 static int dwxgmac2_get_tx_owner(struct dma_desc *p) in dwxgmac2_get_tx_owner()
51 static void dwxgmac2_set_tx_owner(struct dma_desc *p) in dwxgmac2_set_tx_owner()
56 static void dwxgmac2_set_rx_owner(struct dma_desc *p, int disable_rx_ic) in dwxgmac2_set_rx_owner()
64 static int dwxgmac2_get_tx_ls(struct dma_desc *p) in dwxgmac2_get_tx_ls()
69 static int dwxgmac2_get_rx_frame_len(struct dma_desc *p, int rx_coe) in dwxgmac2_get_rx_frame_len()
74 static void dwxgmac2_enable_tx_timestamp(struct dma_desc *p) in dwxgmac2_enable_tx_timestamp()
79 static int dwxgmac2_get_tx_timestamp_status(struct dma_desc *p) in dwxgmac2_get_tx_timestamp_status()
[all …]
Dnorm_desc.c26 struct dma_desc *p, void __iomem *ioaddr) in ndesc_get_tx_status()
74 static int ndesc_get_tx_len(struct dma_desc *p) in ndesc_get_tx_len()
84 struct dma_desc *p) in ndesc_get_rx_status()
137 static void ndesc_init_rx_desc(struct dma_desc *p, int disable_rx_ic, int mode, in ndesc_init_rx_desc()
152 static void ndesc_init_tx_desc(struct dma_desc *p, int mode, int end) in ndesc_init_tx_desc()
161 static int ndesc_get_tx_owner(struct dma_desc *p) in ndesc_get_tx_owner()
166 static void ndesc_set_tx_owner(struct dma_desc *p) in ndesc_set_tx_owner()
171 static void ndesc_set_rx_owner(struct dma_desc *p, int disable_rx_ic) in ndesc_set_rx_owner()
176 static int ndesc_get_tx_ls(struct dma_desc *p) in ndesc_get_tx_ls()
181 static void ndesc_release_tx_desc(struct dma_desc *p, int mode) in ndesc_release_tx_desc()
[all …]
Ddescs_com.h32 static inline void ehn_desc_rx_set_on_ring(struct dma_desc *p, int end) in ehn_desc_rx_set_on_ring()
42 static inline void enh_desc_end_tx_desc_on_ring(struct dma_desc *p, int end) in enh_desc_end_tx_desc_on_ring()
50 static inline void enh_set_tx_desc_len_on_ring(struct dma_desc *p, int len) in enh_set_tx_desc_len_on_ring()
62 static inline void ndesc_rx_set_on_ring(struct dma_desc *p, int end) in ndesc_rx_set_on_ring()
72 static inline void ndesc_end_tx_desc_on_ring(struct dma_desc *p, int end) in ndesc_end_tx_desc_on_ring()
80 static inline void norm_set_tx_desc_len_on_ring(struct dma_desc *p, int len) in norm_set_tx_desc_len_on_ring()
95 static inline void ehn_desc_rx_set_on_chain(struct dma_desc *p) in ehn_desc_rx_set_on_chain()
100 static inline void enh_desc_end_tx_desc_on_chain(struct dma_desc *p) in enh_desc_end_tx_desc_on_chain()
105 static inline void enh_set_tx_desc_len_on_chain(struct dma_desc *p, int len) in enh_set_tx_desc_len_on_chain()
111 static inline void ndesc_rx_set_on_chain(struct dma_desc *p, int end) in ndesc_rx_set_on_chain()
[all …]
Ddwmac4_descs.c19 struct dma_desc *p, in dwmac4_wrback_get_tx_status()
77 struct dma_desc *p) in dwmac4_wrback_get_rx_status()
177 static int dwmac4_rd_get_tx_len(struct dma_desc *p) in dwmac4_rd_get_tx_len()
182 static int dwmac4_get_tx_owner(struct dma_desc *p) in dwmac4_get_tx_owner()
187 static void dwmac4_set_tx_owner(struct dma_desc *p) in dwmac4_set_tx_owner()
192 static void dwmac4_set_rx_owner(struct dma_desc *p, int disable_rx_ic) in dwmac4_set_rx_owner()
200 static int dwmac4_get_tx_ls(struct dma_desc *p) in dwmac4_get_tx_ls()
206 static int dwmac4_wrback_get_rx_frame_len(struct dma_desc *p, int rx_coe) in dwmac4_wrback_get_rx_frame_len()
211 static void dwmac4_rd_enable_tx_timestamp(struct dma_desc *p) in dwmac4_rd_enable_tx_timestamp()
216 static int dwmac4_wrback_get_tx_timestamp_status(struct dma_desc *p) in dwmac4_wrback_get_tx_timestamp_status()
[all …]
Denh_desc.c26 struct dma_desc *p, void __iomem *ioaddr) in enh_desc_get_tx_status()
92 static int enh_desc_get_tx_len(struct dma_desc *p) in enh_desc_get_tx_len()
195 struct dma_desc *p) in enh_desc_get_rx_status()
261 static void enh_desc_init_rx_desc(struct dma_desc *p, int disable_rx_ic, in enh_desc_init_rx_desc()
276 static void enh_desc_init_tx_desc(struct dma_desc *p, int mode, int end) in enh_desc_init_tx_desc()
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()
295 static void enh_desc_set_rx_owner(struct dma_desc *p, int disable_rx_ic) in enh_desc_set_rx_owner()
300 static int enh_desc_get_tx_ls(struct dma_desc *p) in enh_desc_get_tx_ls()
305 static void enh_desc_release_tx_desc(struct dma_desc *p, int mode) in enh_desc_release_tx_desc()
[all …]
Dchain_mode.c35 struct dma_desc *desc; in jumbo_frm()
128 struct dma_desc *p = (struct dma_desc *)des; in init_dma_chain()
130 dma_phy += sizeof(struct dma_desc); in init_dma_chain()
138 static void refill_desc3(void *priv_ptr, struct dma_desc *p) in refill_desc3()
151 sizeof(struct dma_desc))); in refill_desc3()
154 static void clean_desc3(void *priv_ptr, struct dma_desc *p) in clean_desc3()
168 * sizeof(struct dma_desc))); in clean_desc3()
Dhwif.h29 struct dma_desc;
35 void (*init_rx_desc)(struct dma_desc *p, int disable_rx_ic, int mode,
38 void (*init_tx_desc)(struct dma_desc *p, int mode, int end);
40 void (*prepare_tx_desc)(struct dma_desc *p, int is_fs, int len,
43 void (*prepare_tso_tx_desc)(struct dma_desc *p, int is_fs, int len1,
47 void (*set_tx_owner)(struct dma_desc *p);
48 int (*get_tx_owner)(struct dma_desc *p);
50 void (*release_tx_desc)(struct dma_desc *p, int mode);
53 void (*set_tx_ic)(struct dma_desc *p);
55 int (*get_tx_ls)(struct dma_desc *p);
[all …]
Dring_mode.c34 struct dma_desc *desc; in jumbo_frm()
37 desc = (struct dma_desc *)(tx_q->dma_etx + entry); in jumbo_frm()
67 desc = (struct dma_desc *)(tx_q->dma_etx + entry); in jumbo_frm()
112 static void refill_desc3(void *priv_ptr, struct dma_desc *p) in refill_desc3()
122 static void init_desc3(struct dma_desc *p) in init_desc3()
127 static void clean_desc3(void *priv_ptr, struct dma_desc *p) in clean_desc3()
Ddescs.h168 struct dma_desc { struct
177 struct dma_desc basic; /* Basic descriptors */ argument
Dstmmac.h56 struct dma_desc *dma_tx;
70 struct dma_desc *dma_rx ____cacheline_aligned_in_smp;
/Linux-v4.19/drivers/dma/
Dtegra20-apb-dma.c162 struct tegra_dma_desc *dma_desc; member
284 struct tegra_dma_desc *dma_desc; in tegra_dma_desc_get() local
290 list_for_each_entry(dma_desc, &tdc->free_dma_desc, node) { in tegra_dma_desc_get()
291 if (async_tx_test_ack(&dma_desc->txd)) { in tegra_dma_desc_get()
292 list_del(&dma_desc->node); in tegra_dma_desc_get()
294 dma_desc->txd.flags = 0; in tegra_dma_desc_get()
295 return dma_desc; in tegra_dma_desc_get()
302 dma_desc = kzalloc(sizeof(*dma_desc), GFP_NOWAIT); in tegra_dma_desc_get()
303 if (!dma_desc) in tegra_dma_desc_get()
306 dma_async_tx_descriptor_init(&dma_desc->txd, &tdc->dma_chan); in tegra_dma_desc_get()
[all …]
Dtimb_dma.c153 static int td_fill_desc(struct timb_dma_chan *td_chan, u8 *dma_desc, in td_fill_desc() argument
169 dma_desc, (unsigned long long)sg_dma_address(sg)); in td_fill_desc()
171 dma_desc[7] = (sg_dma_address(sg) >> 24) & 0xff; in td_fill_desc()
172 dma_desc[6] = (sg_dma_address(sg) >> 16) & 0xff; in td_fill_desc()
173 dma_desc[5] = (sg_dma_address(sg) >> 8) & 0xff; in td_fill_desc()
174 dma_desc[4] = (sg_dma_address(sg) >> 0) & 0xff; in td_fill_desc()
176 dma_desc[3] = (sg_dma_len(sg) >> 8) & 0xff; in td_fill_desc()
177 dma_desc[2] = (sg_dma_len(sg) >> 0) & 0xff; in td_fill_desc()
179 dma_desc[1] = 0x00; in td_fill_desc()
180 dma_desc[0] = 0x21 | (last ? 0x02 : 0); /* tran, valid */ in td_fill_desc()
/Linux-v4.19/drivers/net/ethernet/synopsys/
Ddwc-xlgmac-hw.c29 static int xlgmac_tx_complete(struct xlgmac_dma_desc *dma_desc) in xlgmac_tx_complete() argument
31 return !XLGMAC_GET_REG_BITS_LE(dma_desc->desc3, in xlgmac_tx_complete()
708 struct xlgmac_dma_desc *dma_desc; in xlgmac_dev_xmit() local
759 dma_desc = desc_data->dma_desc; in xlgmac_dev_xmit()
769 dma_desc->desc2 = XLGMAC_SET_REG_BITS_LE( in xlgmac_dev_xmit()
770 dma_desc->desc2, in xlgmac_dev_xmit()
776 dma_desc->desc3 = XLGMAC_SET_REG_BITS_LE( in xlgmac_dev_xmit()
777 dma_desc->desc3, in xlgmac_dev_xmit()
783 dma_desc->desc3 = XLGMAC_SET_REG_BITS_LE( in xlgmac_dev_xmit()
784 dma_desc->desc3, in xlgmac_dev_xmit()
[all …]
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()
298 desc_data->dma_desc, &desc_data->dma_desc_addr); 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()
305 le32_to_cpu(dma_desc->desc3)); 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()
322 desc_data->dma_desc, &desc_data->dma_desc_addr); in xlgmac_dump_rx_desc()
[all …]
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()
Ddwc-xlgmac.h285 struct xlgmac_dma_desc *dma_desc; member
399 int (*tx_complete)(struct xlgmac_dma_desc *dma_desc);
431 int (*is_last_desc)(struct xlgmac_dma_desc *dma_desc);
432 int (*is_context_desc)(struct xlgmac_dma_desc *dma_desc);
/Linux-v4.19/drivers/soc/tegra/fuse/
Dfuse-tegra20.c55 struct dma_async_tx_descriptor *dma_desc; in tegra20_fuse_read() local
68 dma_desc = dmaengine_prep_slave_single(fuse->apbdma.chan, in tegra20_fuse_read()
72 if (!dma_desc) in tegra20_fuse_read()
75 dma_desc->callback = apb_dma_complete; in tegra20_fuse_read()
76 dma_desc->callback_param = fuse; in tegra20_fuse_read()
82 dmaengine_submit(dma_desc); in tegra20_fuse_read()
/Linux-v4.19/drivers/usb/dwc2/
Dhcd_ddma.c546 struct dwc2_dma_desc *dma_desc = &qh->desc_list[idx]; in dwc2_fill_host_isoc_dma_desc() local
549 memset(dma_desc, 0, sizeof(*dma_desc)); in dwc2_fill_host_isoc_dma_desc()
557 dma_desc->buf = (u32)(qtd->urb->dma + frame_desc->offset); in dwc2_fill_host_isoc_dma_desc()
558 dma_desc->status = qh->n_bytes[idx] << HOST_DMA_ISOC_NBYTES_SHIFT & in dwc2_fill_host_isoc_dma_desc()
562 dma_desc->status |= HOST_DMA_A; in dwc2_fill_host_isoc_dma_desc()
570 dma_desc->status |= HOST_DMA_IOC; in dwc2_fill_host_isoc_dma_desc()
694 struct dwc2_dma_desc *dma_desc = &qh->desc_list[n_desc]; in dwc2_fill_host_dma_desc() local
714 dma_desc->status = len << HOST_DMA_NBYTES_SHIFT & HOST_DMA_NBYTES_MASK; in dwc2_fill_host_dma_desc()
719 dma_desc->status |= HOST_DMA_SUP; in dwc2_fill_host_dma_desc()
721 dma_desc->buf = (u32)chan->xfer_dma; in dwc2_fill_host_dma_desc()
[all …]
/Linux-v4.19/drivers/staging/comedi/drivers/
Dgsc_hpdi.c126 struct plx_dma_desc *dma_desc; member
155 start = le32_to_cpu(devpriv->dma_desc[idx].pci_start_addr); in gsc_hpdi_drain_dma()
170 start = le32_to_cpu(devpriv->dma_desc[idx].pci_start_addr); in gsc_hpdi_drain_dma()
429 devpriv->dma_desc[i].pci_start_addr = in gsc_hpdi_setup_dma_descriptors()
431 devpriv->dma_desc[i].local_start_addr = cpu_to_le32(FIFO_REG); in gsc_hpdi_setup_dma_descriptors()
432 devpriv->dma_desc[i].transfer_size = cpu_to_le32(len); in gsc_hpdi_setup_dma_descriptors()
433 devpriv->dma_desc[i].next = cpu_to_le32((phys_addr + in gsc_hpdi_setup_dma_descriptors()
434 (i + 1) * sizeof(devpriv->dma_desc[0])) | next_bits); in gsc_hpdi_setup_dma_descriptors()
447 devpriv->dma_desc[i - 1].next = cpu_to_le32(phys_addr | next_bits); in gsc_hpdi_setup_dma_descriptors()
497 if (devpriv->dma_desc) in gsc_hpdi_free_dma()
[all …]
/Linux-v4.19/drivers/usb/musb/
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
465 dma_desc = dmaengine_prep_slave_single(dc, dma_addr, len, direction, in cppi41_configure_channel()
467 if (!dma_desc) in cppi41_configure_channel()
470 dma_desc->callback_result = cppi41_dma_callback; in cppi41_configure_channel()
[all …]
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()
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-v4.19/arch/mips/include/asm/mach-rc32434/
Ddma.h23 struct dma_desc { struct
30 #define DMA_DESC_SIZ sizeof(struct dma_desc) argument
/Linux-v4.19/drivers/net/ethernet/broadcom/
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
391 dma_desc->addr_low = cpu_to_le32(lower_32_bits(ring->slots[desc_idx].dma_addr)); in bgmac_dma_rx_setup_desc()
392 dma_desc->addr_high = cpu_to_le32(upper_32_bits(ring->slots[desc_idx].dma_addr)); in bgmac_dma_rx_setup_desc()
393 dma_desc->ctl0 = cpu_to_le32(ctl0); in bgmac_dma_rx_setup_desc()
[all …]
/Linux-v4.19/drivers/net/ethernet/
Dkorina.c91 #define RD_RING_SIZE (KORINA_NUM_RDS * sizeof(struct dma_desc))
92 #define TD_RING_SIZE (KORINA_NUM_TDS * sizeof(struct dma_desc))
110 struct dma_desc *td_ring; /* transmit descriptor ring */
111 struct dma_desc *rd_ring; /* receive descriptor ring */
187 struct dma_desc *rd) in korina_start_rx()
193 struct dma_desc *rd) in korina_chain_rx()
205 struct dma_desc *td; in korina_send_packet()
354 struct dma_desc *rd = &lp->rd_ring[lp->rx_next_done]; in korina_rx()
526 struct dma_desc *td = &lp->td_ring[lp->tx_next_done]; in korina_tx()
1079 lp->td_ring = (struct dma_desc *)KSEG1ADDR(lp->td_ring); in korina_probe()

123