/Linux-v5.10/arch/arm/plat-omap/ |
D | dma.c | 67 static void omap_clear_dma(int lch); 91 static inline void disable_lnk(int lch); 92 static void omap_disable_channel_irq(int lch); 93 static inline void omap_enable_channel_irq(int lch); 124 void omap_set_dma_priority(int lch, int dst_port, int priority) in omap_set_dma_priority() argument 156 void omap_set_dma_priority(int lch, int dst_port, int priority) in omap_set_dma_priority() argument 160 ccr = p->dma_read(CCR, lch); in omap_set_dma_priority() 165 p->dma_write(ccr, CCR, lch); in omap_set_dma_priority() 170 void omap_set_dma_transfer_params(int lch, int data_type, int elem_count, in omap_set_dma_transfer_params() argument 176 l = p->dma_read(CSDP, lch); in omap_set_dma_transfer_params() [all …]
|
/Linux-v5.10/include/linux/ |
D | omap-dma.h | 238 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 void (*callback)(int lch, u16 ch_status, void *data), 304 extern void omap_start_dma(int lch); 305 extern void omap_stop_dma(int lch); 306 extern void omap_set_dma_transfer_params(int lch, int data_type, [all …]
|
/Linux-v5.10/drivers/hsi/controllers/ |
D | omap_ssi_core.c | 59 int lch; in ssi_gdd_regs_show() local 78 for (lch = 0; lch < SSI_MAX_GDD_LCH; lch++) { in ssi_gdd_regs_show() 79 seq_printf(m, "\nGDD LCH %d\n=========\n", lch); in ssi_gdd_regs_show() 81 readw(gdd + SSI_GDD_CSDP_REG(lch))); in ssi_gdd_regs_show() 83 readw(gdd + SSI_GDD_CCR_REG(lch))); in ssi_gdd_regs_show() 85 readw(gdd + SSI_GDD_CICR_REG(lch))); in ssi_gdd_regs_show() 87 readw(gdd + SSI_GDD_CSR_REG(lch))); in ssi_gdd_regs_show() 89 readl(gdd + SSI_GDD_CSSA_REG(lch))); in ssi_gdd_regs_show() 91 readl(gdd + SSI_GDD_CDSA_REG(lch))); in ssi_gdd_regs_show() 93 readw(gdd + SSI_GDD_CEN_REG(lch))); in ssi_gdd_regs_show() [all …]
|
D | omap_ssi_port.c | 195 int lch; in ssi_claim_lch() local 197 for (lch = 0; lch < SSI_MAX_GDD_LCH; lch++) in ssi_claim_lch() 198 if (!omap_ssi->gdd_trn[lch].msg) { in ssi_claim_lch() 199 omap_ssi->gdd_trn[lch].msg = msg; in ssi_claim_lch() 200 omap_ssi->gdd_trn[lch].sg = msg->sgt.sgl; in ssi_claim_lch() 201 return lch; in ssi_claim_lch() 207 static int ssi_start_dma(struct hsi_msg *msg, int lch) in ssi_start_dma() argument 266 lch, csdp, ccr, s_addr, d_addr); in ssi_start_dma() 268 writew_relaxed(csdp, gdd + SSI_GDD_CSDP_REG(lch)); in ssi_start_dma() 269 writew_relaxed(SSI_BLOCK_IE | SSI_TOUT_IE, gdd + SSI_GDD_CICR_REG(lch)); in ssi_start_dma() [all …]
|
/Linux-v5.10/arch/arm/mach-omap1/ |
D | dma.c | 175 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-v5.10/drivers/usb/gadget/udc/ |
D | omap_udc.c | 206 ep->lch = -1; in omap_ep_enable() 481 end = omap_get_dma_src_pos(ep->lch); in dma_src_len() 495 end = omap_get_dma_dst_pos(ep->lch); in dma_dest_len() 526 omap_set_dma_transfer_params(ep->lch, OMAP_DMA_DATA_TYPE_S8, in next_in_dma() 532 omap_set_dma_transfer_params(ep->lch, OMAP_DMA_DATA_TYPE_S16, in next_in_dma() 537 omap_set_dma_src_params(ep->lch, OMAP_DMA_PORT_EMIFF, in next_in_dma() 541 omap_start_dma(ep->lch); in next_in_dma() 542 ep->dma_counter = omap_get_dma_src_pos(ep->lch); in next_in_dma() 569 omap_stop_dma(ep->lch); in finish_in_dma() 586 omap_set_dma_transfer_params(ep->lch, OMAP_DMA_DATA_TYPE_S16, in next_out_dma() [all …]
|
D | omap_udc.h | 155 int lch; member
|
D | fsl_qe_udc.h | 310 int lch; member
|
/Linux-v5.10/drivers/dma/ti/ |
D | omap-dma.c | 401 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 …]
|