Home
last modified time | relevance | path

Searched refs:lch (Results 1 – 9 of 9) sorted by relevance

/linux-6.6.21/arch/arm/mach-omap1/
Domap-dma.c82 static inline void omap_disable_channel_irq(int lch) in omap_disable_channel_irq() argument
85 p->dma_write(0, CICR, lch); in omap_disable_channel_irq()
87 p->dma_read(CSR, lch); in omap_disable_channel_irq()
103 void omap_set_dma_priority(int lch, int dst_port, int priority) in omap_set_dma_priority() argument
146 void omap_set_dma_transfer_params(int lch, int data_type, int elem_count, in omap_set_dma_transfer_params() argument
153 l = p->dma_read(CSDP, lch); in omap_set_dma_transfer_params()
156 p->dma_write(l, CSDP, lch); in omap_set_dma_transfer_params()
158 ccr = p->dma_read(CCR, lch); in omap_set_dma_transfer_params()
162 p->dma_write(ccr, CCR, lch); in omap_set_dma_transfer_params()
164 ccr = p->dma_read(CCR2, lch); in omap_set_dma_transfer_params()
[all …]
Ddma.c175 static inline void dma_write(u32 val, int reg, int lch) in dma_write() argument
180 addr += reg_map[reg].stride * lch; in dma_write()
187 static inline u32 dma_read(int reg, int lch) in dma_read() argument
193 addr += reg_map[reg].stride * lch; in dma_read()
202 static void omap1_clear_lch_regs(int lch) in omap1_clear_lch_regs() argument
207 dma_write(0, i, lch); in omap1_clear_lch_regs()
210 static void omap1_clear_dma(int lch) in omap1_clear_dma() argument
214 l = dma_read(CCR, lch); in omap1_clear_dma()
216 dma_write(l, CCR, lch); in omap1_clear_dma()
219 l = dma_read(CSR, lch); in omap1_clear_dma()
/linux-6.6.21/include/linux/
Domap-dma.h238 void (*callback)(int lch, u16 ch_status, void *data);
275 void (*clear_lch_regs)(int lch);
276 void (*clear_dma)(int lch);
277 void (*dma_write)(u32 val, int reg, int lch);
278 u32 (*dma_read)(int reg, int lch);
298 extern void omap_set_dma_priority(int lch, int dst_port, int priority);
300 static inline void omap_set_dma_priority(int lch, int dst_port, int priority) in omap_set_dma_priority() argument
306 void (*callback)(int lch, u16 ch_status, void *data),
311 extern void omap_start_dma(int lch);
312 extern void omap_stop_dma(int lch);
[all …]
/linux-6.6.21/drivers/hsi/controllers/
Domap_ssi_core.c61 int lch; in ssi_gdd_regs_show() local
80 for (lch = 0; lch < SSI_MAX_GDD_LCH; lch++) { in ssi_gdd_regs_show()
81 seq_printf(m, "\nGDD LCH %d\n=========\n", lch); in ssi_gdd_regs_show()
83 readw(gdd + SSI_GDD_CSDP_REG(lch))); in ssi_gdd_regs_show()
85 readw(gdd + SSI_GDD_CCR_REG(lch))); in ssi_gdd_regs_show()
87 readw(gdd + SSI_GDD_CICR_REG(lch))); in ssi_gdd_regs_show()
89 readw(gdd + SSI_GDD_CSR_REG(lch))); in ssi_gdd_regs_show()
91 readl(gdd + SSI_GDD_CSSA_REG(lch))); in ssi_gdd_regs_show()
93 readl(gdd + SSI_GDD_CDSA_REG(lch))); in ssi_gdd_regs_show()
95 readw(gdd + SSI_GDD_CEN_REG(lch))); in ssi_gdd_regs_show()
[all …]
Domap_ssi_port.c189 int lch; in ssi_claim_lch() local
191 for (lch = 0; lch < SSI_MAX_GDD_LCH; lch++) in ssi_claim_lch()
192 if (!omap_ssi->gdd_trn[lch].msg) { in ssi_claim_lch()
193 omap_ssi->gdd_trn[lch].msg = msg; in ssi_claim_lch()
194 omap_ssi->gdd_trn[lch].sg = msg->sgt.sgl; in ssi_claim_lch()
195 return lch; in ssi_claim_lch()
201 static int ssi_start_dma(struct hsi_msg *msg, int lch) in ssi_start_dma() argument
260 lch, csdp, ccr, s_addr, d_addr); in ssi_start_dma()
262 writew_relaxed(csdp, gdd + SSI_GDD_CSDP_REG(lch)); in ssi_start_dma()
263 writew_relaxed(SSI_BLOCK_IE | SSI_TOUT_IE, gdd + SSI_GDD_CICR_REG(lch)); in ssi_start_dma()
[all …]
/linux-6.6.21/drivers/usb/gadget/udc/
Domap_udc.c209 ep->lch = -1; in omap_ep_enable()
484 end = omap_get_dma_src_pos(ep->lch); in dma_src_len()
498 end = omap_get_dma_dst_pos(ep->lch); in dma_dest_len()
529 omap_set_dma_transfer_params(ep->lch, OMAP_DMA_DATA_TYPE_S8, in next_in_dma()
535 omap_set_dma_transfer_params(ep->lch, OMAP_DMA_DATA_TYPE_S16, in next_in_dma()
540 omap_set_dma_src_params(ep->lch, OMAP_DMA_PORT_EMIFF, in next_in_dma()
544 omap_start_dma(ep->lch); in next_in_dma()
545 ep->dma_counter = omap_get_dma_src_pos(ep->lch); in next_in_dma()
572 omap_stop_dma(ep->lch); in finish_in_dma()
589 omap_set_dma_transfer_params(ep->lch, OMAP_DMA_DATA_TYPE_S16, in next_out_dma()
[all …]
Domap_udc.h155 int lch; member
Dfsl_qe_udc.h310 int lch; member
/linux-6.6.21/drivers/dma/ti/
Domap-dma.c401 static void omap_dma_clear_lch(struct omap_dmadev *od, int lch) in omap_dma_clear_lch() argument
406 c = od->lch_map[lch]; in omap_dma_clear_lch()
415 unsigned lch) in omap_dma_assign() argument
417 c->channel_base = od->base + od->plat->channel_stride * lch; in omap_dma_assign()
419 od->lch_map[lch] = c; in omap_dma_assign()
671 static int omap_dma_get_lch(struct omap_dmadev *od, int *lch) in omap_dma_get_lch() argument
683 *lch = channel; in omap_dma_get_lch()
689 *lch = -EINVAL; in omap_dma_get_lch()
694 static void omap_dma_put_lch(struct omap_dmadev *od, int lch) in omap_dma_put_lch() argument
696 omap_dma_clear_lch(od, lch); in omap_dma_put_lch()
[all …]