Lines Matching refs:st_data

66 	writel_relaxed(val, mcbsp->st_data->io_base_st + reg);  in omap_mcbsp_st_write()
71 return readl_relaxed(mcbsp->st_data->io_base_st + reg); in omap_mcbsp_st_read()
83 mcbsp->pdata->force_ick_on(mcbsp->st_data->mcbsp_iclk, true); in omap_mcbsp_st_on()
113 mcbsp->pdata->force_ick_on(mcbsp->st_data->mcbsp_iclk, false); in omap_mcbsp_st_off()
144 struct omap_mcbsp_st_data *st_data = mcbsp->st_data; in omap_mcbsp_st_chgain() local
146 MCBSP_ST_WRITE(mcbsp, SGAINCR, ST_CH0GAIN(st_data->ch0gain) | in omap_mcbsp_st_chgain()
147 ST_CH1GAIN(st_data->ch1gain)); in omap_mcbsp_st_chgain()
153 struct omap_mcbsp_st_data *st_data = mcbsp->st_data; in omap_mcbsp_st_set_chgain() local
156 if (!st_data) in omap_mcbsp_st_set_chgain()
161 st_data->ch0gain = chgain; in omap_mcbsp_st_set_chgain()
163 st_data->ch1gain = chgain; in omap_mcbsp_st_set_chgain()
167 if (st_data->enabled) in omap_mcbsp_st_set_chgain()
177 struct omap_mcbsp_st_data *st_data = mcbsp->st_data; in omap_mcbsp_st_get_chgain() local
180 if (!st_data) in omap_mcbsp_st_get_chgain()
185 *chgain = st_data->ch0gain; in omap_mcbsp_st_get_chgain()
187 *chgain = st_data->ch1gain; in omap_mcbsp_st_get_chgain()
197 struct omap_mcbsp_st_data *st_data = mcbsp->st_data; in omap_mcbsp_st_enable() local
199 if (!st_data) in omap_mcbsp_st_enable()
203 st_data->enabled = 1; in omap_mcbsp_st_enable()
212 struct omap_mcbsp_st_data *st_data = mcbsp->st_data; in omap_mcbsp_st_disable() local
215 if (!st_data) in omap_mcbsp_st_disable()
220 st_data->enabled = 0; in omap_mcbsp_st_disable()
228 struct omap_mcbsp_st_data *st_data = mcbsp->st_data; in omap_mcbsp_st_is_enabled() local
230 if (!st_data) in omap_mcbsp_st_is_enabled()
233 return st_data->enabled; in omap_mcbsp_st_is_enabled()
240 struct omap_mcbsp_st_data *st_data = mcbsp->st_data; in st_taps_show() local
245 for (i = 0; i < st_data->nr_taps; i++) in st_taps_show()
247 st_data->taps[i]); in st_taps_show()
260 struct omap_mcbsp_st_data *st_data = mcbsp->st_data; in st_taps_store() local
264 memset(st_data->taps, 0, sizeof(st_data->taps)); in st_taps_store()
265 st_data->nr_taps = 0; in st_taps_store()
277 st_data->taps[i++] = val; in st_taps_store()
284 st_data->nr_taps = i; in st_taps_store()
305 struct omap_mcbsp_st_data *st_data = mcbsp->st_data; in omap_mcbsp_st_start() local
307 if (st_data->enabled && !st_data->running) { in omap_mcbsp_st_start()
308 omap_mcbsp_st_fir_write(mcbsp, st_data->taps); in omap_mcbsp_st_start()
313 st_data->running = 1; in omap_mcbsp_st_start()
322 struct omap_mcbsp_st_data *st_data = mcbsp->st_data; in omap_mcbsp_st_stop() local
324 if (st_data->running) { in omap_mcbsp_st_stop()
327 st_data->running = 0; in omap_mcbsp_st_stop()
337 struct omap_mcbsp_st_data *st_data; in omap_mcbsp_st_init() local
345 st_data = devm_kzalloc(mcbsp->dev, sizeof(*mcbsp->st_data), GFP_KERNEL); in omap_mcbsp_st_init()
346 if (!st_data) in omap_mcbsp_st_init()
349 st_data->mcbsp_iclk = devm_clk_get(mcbsp->dev, "ick"); in omap_mcbsp_st_init()
350 if (IS_ERR(st_data->mcbsp_iclk)) { in omap_mcbsp_st_init()
353 st_data->mcbsp_iclk = NULL; in omap_mcbsp_st_init()
356 st_data->io_base_st = devm_ioremap(mcbsp->dev, res->start, in omap_mcbsp_st_init()
358 if (!st_data->io_base_st) in omap_mcbsp_st_init()
365 mcbsp->st_data = st_data; in omap_mcbsp_st_init()
481 if (!mcbsp->st_data) { in omap_mcbsp_st_add_controls()