Lines Matching refs:mcp

42 #define priv(mcp)	((struct mcp_sa11x0 *)mcp_priv(mcp))  argument
45 mcp_sa11x0_set_telecom_divisor(struct mcp *mcp, unsigned int divisor) in mcp_sa11x0_set_telecom_divisor() argument
47 struct mcp_sa11x0 *m = priv(mcp); in mcp_sa11x0_set_telecom_divisor()
57 mcp_sa11x0_set_audio_divisor(struct mcp *mcp, unsigned int divisor) in mcp_sa11x0_set_audio_divisor() argument
59 struct mcp_sa11x0 *m = priv(mcp); in mcp_sa11x0_set_audio_divisor()
75 mcp_sa11x0_write(struct mcp *mcp, unsigned int reg, unsigned int val) in mcp_sa11x0_write() argument
77 struct mcp_sa11x0 *m = priv(mcp); in mcp_sa11x0_write()
84 udelay(mcp->rw_timeout); in mcp_sa11x0_write()
102 mcp_sa11x0_read(struct mcp *mcp, unsigned int reg) in mcp_sa11x0_read() argument
104 struct mcp_sa11x0 *m = priv(mcp); in mcp_sa11x0_read()
111 udelay(mcp->rw_timeout); in mcp_sa11x0_read()
124 static void mcp_sa11x0_enable(struct mcp *mcp) in mcp_sa11x0_enable() argument
126 struct mcp_sa11x0 *m = priv(mcp); in mcp_sa11x0_enable()
133 static void mcp_sa11x0_disable(struct mcp *mcp) in mcp_sa11x0_disable() argument
135 struct mcp_sa11x0 *m = priv(mcp); in mcp_sa11x0_disable()
158 struct mcp *mcp; in mcp_sa11x0_probe() local
181 mcp = mcp_host_alloc(&dev->dev, sizeof(struct mcp_sa11x0)); in mcp_sa11x0_probe()
182 if (!mcp) { in mcp_sa11x0_probe()
187 mcp->owner = THIS_MODULE; in mcp_sa11x0_probe()
188 mcp->ops = &mcp_sa11x0; in mcp_sa11x0_probe()
189 mcp->sclk_rate = data->sclk_rate; in mcp_sa11x0_probe()
191 m = priv(mcp); in mcp_sa11x0_probe()
202 platform_set_drvdata(dev, mcp); in mcp_sa11x0_probe()
217 mcp->rw_timeout = DIV_ROUND_UP(64 * 3 * 1000000, mcp->sclk_rate); in mcp_sa11x0_probe()
219 ret = mcp_host_add(mcp, data->codec_pdata); in mcp_sa11x0_probe()
226 mcp_host_free(mcp); in mcp_sa11x0_probe()
237 struct mcp *mcp = platform_get_drvdata(dev); in mcp_sa11x0_remove() local
238 struct mcp_sa11x0 *m = priv(mcp); in mcp_sa11x0_remove()
248 mcp_host_del(mcp); in mcp_sa11x0_remove()
251 mcp_host_free(mcp); in mcp_sa11x0_remove()