Lines Matching refs:data_buffer
46 char *data_buffer, *buffer_begin, *buffer_end; member
67 chip->buffer_begin = chip->buffer_end = chip->data_buffer; in dac_audio_reset()
106 chip->buffer_begin = chip->buffer_end = chip->data_buffer; in snd_sh_dac_pcm_open()
133 memset(chip->data_buffer, 0, chip->pdata->buffer_size); in snd_sh_dac_pcm_prepare()
147 chip->buffer_begin = chip->buffer_end = chip->data_buffer; in snd_sh_dac_pcm_trigger()
166 if (copy_from_user_toio(chip->data_buffer + pos, src, count)) in snd_sh_dac_pcm_copy()
168 chip->buffer_end = chip->data_buffer + pos + count; in snd_sh_dac_pcm_copy()
185 memcpy_toio(chip->data_buffer + pos, src, count); in snd_sh_dac_pcm_copy_kernel()
186 chip->buffer_end = chip->data_buffer + pos + count; in snd_sh_dac_pcm_copy_kernel()
203 memset_io(chip->data_buffer + pos, 0, count); in snd_sh_dac_pcm_silence()
204 chip->buffer_end = chip->data_buffer + pos + count; in snd_sh_dac_pcm_silence()
218 int pointer = chip->buffer_begin - chip->data_buffer; in snd_sh_dac_pcm_pointer()
270 kfree(chip->data_buffer); in snd_sh_dac_free()
300 if (chip->buffer_begin == (chip->data_buffer + in sh_dac_audio_timer()
302 chip->buffer_begin = chip->data_buffer; in sh_dac_audio_timer()
345 chip->data_buffer = kmalloc(chip->pdata->buffer_size, GFP_KERNEL); in snd_sh_dac_create()
346 if (chip->data_buffer == NULL) { in snd_sh_dac_create()