Lines Matching refs:core

36 		printk(KERN_INFO "%s/1: " fmt, chip->core->name , ## arg); \
78 struct tm6000_core *core = chip->core; in _tm6000_start_audio_dma() local
83 tm6000_set_reg_mask(core, TM6010_REQ07_RCC_ACTIVE_IF, 0x40, 0x40); in _tm6000_start_audio_dma()
85 tm6000_set_audio_bitrate(core, 48000); in _tm6000_start_audio_dma()
95 struct tm6000_core *core = chip->core; in _tm6000_stop_audio_dma() local
100 tm6000_set_reg_mask(core, TM6010_REQ07_RCC_ACTIVE_IF, 0x00, 0x40); in _tm6000_stop_audio_dma()
199 struct tm6000_core *core = chip->core; in snd_tm6000_close() local
201 if (atomic_read(&core->stream_started) > 0) { in snd_tm6000_close()
202 atomic_set(&core->stream_started, 0); in snd_tm6000_close()
203 schedule_work(&core->wq_trigger); in snd_tm6000_close()
209 static int tm6000_fillbuf(struct tm6000_core *core, char *buf, int size) in tm6000_fillbuf() argument
211 struct snd_tm6000_card *chip = core->adev; in tm6000_fillbuf()
218 if (atomic_read(&core->stream_started) == 0) in tm6000_fillbuf()
302 struct tm6000_core *core = chip->core; in snd_tm6000_hw_free() local
304 if (atomic_read(&core->stream_started) > 0) { in snd_tm6000_hw_free()
305 atomic_set(&core->stream_started, 0); in snd_tm6000_hw_free()
306 schedule_work(&core->wq_trigger); in snd_tm6000_hw_free()
332 struct tm6000_core *core = container_of(work, struct tm6000_core, in audio_trigger() local
334 struct snd_tm6000_card *chip = core->adev; in audio_trigger()
336 if (atomic_read(&core->stream_started)) { in audio_trigger()
348 struct tm6000_core *core = chip->core; in snd_tm6000_card_trigger() local
355 atomic_set(&core->stream_started, 1); in snd_tm6000_card_trigger()
360 atomic_set(&core->stream_started, 0); in snd_tm6000_card_trigger()
366 schedule_work(&core->wq_trigger); in snd_tm6000_card_trigger()
456 chip->core = dev; in tm6000_audio_init()