Lines Matching refs:mcbsp
282 static inline void omap_mcbsp_write(struct omap_mcbsp *mcbsp, u16 reg, u32 val) in omap_mcbsp_write() argument
284 void __iomem *addr = mcbsp->io_base + reg * mcbsp->pdata->reg_step; in omap_mcbsp_write()
286 if (mcbsp->pdata->reg_size == 2) { in omap_mcbsp_write()
287 ((u16 *)mcbsp->reg_cache)[reg] = (u16)val; in omap_mcbsp_write()
290 ((u32 *)mcbsp->reg_cache)[reg] = val; in omap_mcbsp_write()
295 static inline int omap_mcbsp_read(struct omap_mcbsp *mcbsp, u16 reg, in omap_mcbsp_read() argument
298 void __iomem *addr = mcbsp->io_base + reg * mcbsp->pdata->reg_step; in omap_mcbsp_read()
300 if (mcbsp->pdata->reg_size == 2) { in omap_mcbsp_read()
302 ((u16 *)mcbsp->reg_cache)[reg]; in omap_mcbsp_read()
305 ((u32 *)mcbsp->reg_cache)[reg]; in omap_mcbsp_read()
309 #define MCBSP_READ(mcbsp, reg) \ argument
310 omap_mcbsp_read(mcbsp, OMAP_MCBSP_REG_##reg, 0)
311 #define MCBSP_WRITE(mcbsp, reg, val) \ argument
312 omap_mcbsp_write(mcbsp, OMAP_MCBSP_REG_##reg, val)
313 #define MCBSP_READ_CACHE(mcbsp, reg) \ argument
314 omap_mcbsp_read(mcbsp, OMAP_MCBSP_REG_##reg, 1)
319 int omap_mcbsp_st_start(struct omap_mcbsp *mcbsp);
320 int omap_mcbsp_st_stop(struct omap_mcbsp *mcbsp);