Lines Matching refs:st_data
67 writel_relaxed(val, mcbsp->st_data->io_base_st + reg); in omap_mcbsp_st_write()
72 return readl_relaxed(mcbsp->st_data->io_base_st + reg); in omap_mcbsp_st_read()
84 mcbsp->pdata->force_ick_on(mcbsp->st_data->mcbsp_iclk, true); in omap_mcbsp_st_on()
114 mcbsp->pdata->force_ick_on(mcbsp->st_data->mcbsp_iclk, false); in omap_mcbsp_st_off()
145 struct omap_mcbsp_st_data *st_data = mcbsp->st_data; in omap_mcbsp_st_chgain() local
147 MCBSP_ST_WRITE(mcbsp, SGAINCR, ST_CH0GAIN(st_data->ch0gain) | in omap_mcbsp_st_chgain()
148 ST_CH1GAIN(st_data->ch1gain)); in omap_mcbsp_st_chgain()
154 struct omap_mcbsp_st_data *st_data = mcbsp->st_data; in omap_mcbsp_st_set_chgain() local
157 if (!st_data) in omap_mcbsp_st_set_chgain()
162 st_data->ch0gain = chgain; in omap_mcbsp_st_set_chgain()
164 st_data->ch1gain = chgain; in omap_mcbsp_st_set_chgain()
168 if (st_data->enabled) in omap_mcbsp_st_set_chgain()
178 struct omap_mcbsp_st_data *st_data = mcbsp->st_data; in omap_mcbsp_st_get_chgain() local
181 if (!st_data) in omap_mcbsp_st_get_chgain()
186 *chgain = st_data->ch0gain; in omap_mcbsp_st_get_chgain()
188 *chgain = st_data->ch1gain; in omap_mcbsp_st_get_chgain()
198 struct omap_mcbsp_st_data *st_data = mcbsp->st_data; in omap_mcbsp_st_enable() local
200 if (!st_data) in omap_mcbsp_st_enable()
204 st_data->enabled = 1; in omap_mcbsp_st_enable()
213 struct omap_mcbsp_st_data *st_data = mcbsp->st_data; in omap_mcbsp_st_disable() local
216 if (!st_data) in omap_mcbsp_st_disable()
221 st_data->enabled = 0; in omap_mcbsp_st_disable()
229 struct omap_mcbsp_st_data *st_data = mcbsp->st_data; in omap_mcbsp_st_is_enabled() local
231 if (!st_data) in omap_mcbsp_st_is_enabled()
234 return st_data->enabled; in omap_mcbsp_st_is_enabled()
241 struct omap_mcbsp_st_data *st_data = mcbsp->st_data; in st_taps_show() local
246 for (i = 0; i < st_data->nr_taps; i++) in st_taps_show()
248 st_data->taps[i]); in st_taps_show()
261 struct omap_mcbsp_st_data *st_data = mcbsp->st_data; in st_taps_store() local
265 memset(st_data->taps, 0, sizeof(st_data->taps)); in st_taps_store()
266 st_data->nr_taps = 0; in st_taps_store()
278 st_data->taps[i++] = val; in st_taps_store()
285 st_data->nr_taps = i; in st_taps_store()
306 struct omap_mcbsp_st_data *st_data = mcbsp->st_data; in omap_mcbsp_st_start() local
308 if (st_data->enabled && !st_data->running) { in omap_mcbsp_st_start()
309 omap_mcbsp_st_fir_write(mcbsp, st_data->taps); in omap_mcbsp_st_start()
314 st_data->running = 1; in omap_mcbsp_st_start()
323 struct omap_mcbsp_st_data *st_data = mcbsp->st_data; in omap_mcbsp_st_stop() local
325 if (st_data->running) { in omap_mcbsp_st_stop()
328 st_data->running = 0; in omap_mcbsp_st_stop()
338 struct omap_mcbsp_st_data *st_data; in omap_mcbsp_st_init() local
346 st_data = devm_kzalloc(mcbsp->dev, sizeof(*mcbsp->st_data), GFP_KERNEL); in omap_mcbsp_st_init()
347 if (!st_data) in omap_mcbsp_st_init()
350 st_data->mcbsp_iclk = devm_clk_get(mcbsp->dev, "ick"); in omap_mcbsp_st_init()
351 if (IS_ERR(st_data->mcbsp_iclk)) { in omap_mcbsp_st_init()
354 st_data->mcbsp_iclk = NULL; in omap_mcbsp_st_init()
357 st_data->io_base_st = devm_ioremap(mcbsp->dev, res->start, in omap_mcbsp_st_init()
359 if (!st_data->io_base_st) in omap_mcbsp_st_init()
366 mcbsp->st_data = st_data; in omap_mcbsp_st_init()
482 if (!mcbsp->st_data) { in omap_mcbsp_st_add_controls()