Lines Matching refs:data_buffer
47 char *data_buffer, *buffer_begin, *buffer_end; member
68 chip->buffer_begin = chip->buffer_end = chip->data_buffer; in dac_audio_reset()
107 chip->buffer_begin = chip->buffer_end = chip->data_buffer; in snd_sh_dac_pcm_open()
134 memset(chip->data_buffer, 0, chip->pdata->buffer_size); in snd_sh_dac_pcm_prepare()
148 chip->buffer_begin = chip->buffer_end = chip->data_buffer; in snd_sh_dac_pcm_trigger()
167 if (copy_from_user_toio(chip->data_buffer + pos, src, count)) in snd_sh_dac_pcm_copy()
169 chip->buffer_end = chip->data_buffer + pos + count; in snd_sh_dac_pcm_copy()
186 memcpy_toio(chip->data_buffer + pos, src, count); in snd_sh_dac_pcm_copy_kernel()
187 chip->buffer_end = chip->data_buffer + pos + count; in snd_sh_dac_pcm_copy_kernel()
204 memset_io(chip->data_buffer + pos, 0, count); in snd_sh_dac_pcm_silence()
205 chip->buffer_end = chip->data_buffer + pos + count; in snd_sh_dac_pcm_silence()
219 int pointer = chip->buffer_begin - chip->data_buffer; in snd_sh_dac_pcm_pointer()
271 kfree(chip->data_buffer); in snd_sh_dac_free()
301 if (chip->buffer_begin == (chip->data_buffer + in sh_dac_audio_timer()
303 chip->buffer_begin = chip->data_buffer; in sh_dac_audio_timer()
346 chip->data_buffer = kmalloc(chip->pdata->buffer_size, GFP_KERNEL); in snd_sh_dac_create()
347 if (chip->data_buffer == NULL) { in snd_sh_dac_create()