Home
last modified time | relevance | path

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

/Linux-v5.15/arch/arm/plat-omap/
Ddma.c67 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.15/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 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.15/drivers/hsi/controllers/
Domap_ssi_core.c59 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 …]
Domap_ssi_port.c195 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.15/arch/arm/mach-omap1/
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-v5.15/drivers/usb/gadget/udc/
Domap_udc.c206 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 …]
Domap_udc.h155 int lch; member
Dfsl_qe_udc.h310 int lch; member
/Linux-v5.15/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 …]
/Linux-v5.15/drivers/staging/r8188eu/include/
Dwlan_bssdef.h323 u8 key_2char2num(u8 hch, u8 lch);
325 u8 str_2char2num(u8 hch, u8 lch);
/Linux-v5.15/drivers/staging/r8188eu/core/
Drtw_ieee80211.c1011 u8 str_2char2num(u8 hch, u8 lch) in str_2char2num() argument
1013 return (key_char2num(hch) * 10) + key_char2num(lch); in str_2char2num()
1016 u8 key_2char2num(u8 hch, u8 lch) in key_2char2num() argument
1018 return (key_char2num(hch) << 4) | key_char2num(lch); in key_2char2num()