Searched refs:buffer_pos (Results 1 – 4 of 4) sorted by relevance
/drivers/oprofile/ |
D | event_buffer.c | 34 static size_t buffer_pos; variable 55 if (buffer_pos == buffer_size) { in add_event_entry() 60 event_buffer[buffer_pos] = value; in add_event_entry() 61 if (++buffer_pos == buffer_size - buffer_watershed) { in add_event_entry() 93 buffer_pos = 0; in alloc_event_buffer() 106 buffer_pos = 0; in free_event_buffer() 153 buffer_pos = 0; in event_buffer_release() 191 count = buffer_pos * sizeof(unsigned long); in event_buffer_read() 197 buffer_pos = 0; in event_buffer_read()
|
/drivers/media/usb/usbtv/ |
D | usbtv-audio.c | 113 size_t i, frame_bytes, chunk_length, buffer_pos, period_pos; in usbtv_audio_urb_received() local 137 buffer_pos = chip->snd_buffer_pos; in usbtv_audio_urb_received() 144 if (buffer_pos + chunk_length >= runtime->buffer_size) { in usbtv_audio_urb_received() 145 size_t cnt = (runtime->buffer_size - buffer_pos) * in usbtv_audio_urb_received() 147 memcpy(runtime->dma_area + buffer_pos * frame_bytes, in usbtv_audio_urb_received() 152 memcpy(runtime->dma_area + buffer_pos * frame_bytes, in usbtv_audio_urb_received() 156 buffer_pos += chunk_length; in usbtv_audio_urb_received() 159 if (buffer_pos >= runtime->buffer_size) in usbtv_audio_urb_received() 160 buffer_pos -= runtime->buffer_size; in usbtv_audio_urb_received() 170 chip->snd_buffer_pos = buffer_pos; in usbtv_audio_urb_received()
|
/drivers/usb/gadget/function/ |
D | f_audio_source.c | 261 void *buffer_pos; member 377 if (!audio->buffer_pos) in audio_send() 410 if (audio->buffer_pos + length > audio->buffer_end) in audio_send() 411 length1 = audio->buffer_end - audio->buffer_pos; in audio_send() 414 memcpy(req->buf, audio->buffer_pos, length1); in audio_send() 422 audio->buffer_pos = audio->buffer_start + length2; in audio_send() 424 audio->buffer_pos += length1; in audio_send() 425 if (audio->buffer_pos >= audio->buffer_end) in audio_send() 426 audio->buffer_pos = audio->buffer_start; in audio_send() 731 audio->buffer_pos = 0; in audio_pcm_playback_stop() [all …]
|
/drivers/staging/most/aim-sound/ |
D | sound.c | 56 unsigned int buffer_pos; member 197 fr0 = min(buffer_size - channel->buffer_pos, frames); in copy_data() 199 channel->copy_fn(runtime->dma_area + channel->buffer_pos * frame_bytes, in copy_data() 210 channel->buffer_pos += frames; in copy_data() 211 if (channel->buffer_pos >= buffer_size) in copy_data() 212 channel->buffer_pos -= buffer_size; in copy_data() 408 channel->buffer_pos = 0; in pcm_prepare() 456 return channel->buffer_pos; in pcm_pointer()
|