Lines Matching refs:ucb
146 struct ucb1x00 *ucb; member
171 static inline unsigned int ucb1x00_clkrate(struct ucb1x00 *ucb) in ucb1x00_clkrate() argument
173 return mcp_get_sclk_rate(ucb->mcp); in ucb1x00_clkrate()
182 static inline void ucb1x00_enable(struct ucb1x00 *ucb) in ucb1x00_enable() argument
184 mcp_enable(ucb->mcp); in ucb1x00_enable()
195 static inline void ucb1x00_disable(struct ucb1x00 *ucb) in ucb1x00_disable() argument
197 mcp_disable(ucb->mcp); in ucb1x00_disable()
209 static inline void ucb1x00_reg_write(struct ucb1x00 *ucb, unsigned int reg, unsigned int val) in ucb1x00_reg_write() argument
211 mcp_reg_write(ucb->mcp, reg, val); in ucb1x00_reg_write()
222 static inline unsigned int ucb1x00_reg_read(struct ucb1x00 *ucb, unsigned int reg) in ucb1x00_reg_read() argument
224 return mcp_reg_read(ucb->mcp, reg); in ucb1x00_reg_read()
231 static inline void ucb1x00_set_audio_divisor(struct ucb1x00 *ucb, unsigned int div) in ucb1x00_set_audio_divisor() argument
233 mcp_set_audio_divisor(ucb->mcp, div); in ucb1x00_set_audio_divisor()
241 static inline void ucb1x00_set_telecom_divisor(struct ucb1x00 *ucb, unsigned int div) in ucb1x00_set_telecom_divisor() argument
243 mcp_set_telecom_divisor(ucb->mcp, div); in ucb1x00_set_telecom_divisor()
246 void ucb1x00_io_set_dir(struct ucb1x00 *ucb, unsigned int, unsigned int);
247 void ucb1x00_io_write(struct ucb1x00 *ucb, unsigned int, unsigned int);
248 unsigned int ucb1x00_io_read(struct ucb1x00 *ucb);
253 unsigned int ucb1x00_adc_read(struct ucb1x00 *ucb, int adc_channel, int sync);
254 void ucb1x00_adc_enable(struct ucb1x00 *ucb);
255 void ucb1x00_adc_disable(struct ucb1x00 *ucb);