Searched refs:buffer_pos (Results 1 – 6 of 6) sorted by relevance
/linux/drivers/media/usb/usbtv/ |
A D | usbtv-audio.c | 103 size_t i, frame_bytes, chunk_length, buffer_pos, period_pos; in usbtv_audio_urb_received() local 128 buffer_pos = chip->snd_buffer_pos; in usbtv_audio_urb_received() 135 if (buffer_pos + chunk_length >= runtime->buffer_size) { in usbtv_audio_urb_received() 136 size_t cnt = (runtime->buffer_size - buffer_pos) * in usbtv_audio_urb_received() 138 memcpy(runtime->dma_area + buffer_pos * frame_bytes, in usbtv_audio_urb_received() 143 memcpy(runtime->dma_area + buffer_pos * frame_bytes, in usbtv_audio_urb_received() 147 buffer_pos += chunk_length; in usbtv_audio_urb_received() 150 if (buffer_pos >= runtime->buffer_size) in usbtv_audio_urb_received() 151 buffer_pos -= runtime->buffer_size; in usbtv_audio_urb_received() 161 chip->snd_buffer_pos = buffer_pos; in usbtv_audio_urb_received()
|
/linux/lib/ |
A D | decompress_unlzma.c | 280 size_t buffer_pos; member 295 wr->global_pos + wr->buffer_pos; in get_pos() 305 pos = wr->buffer_pos - offs; in peek_old_byte() 308 uint32_t pos = wr->buffer_pos - offs; in peek_old_byte() 318 wr->buffer[wr->buffer_pos++] = wr->previous_byte = byte; in write_byte() 319 if (wr->flush && wr->buffer_pos == wr->header->dict_size) { in write_byte() 320 wr->buffer_pos = 0; in write_byte() 342 } while (len != 0 && wr->buffer_pos < wr->header->dst_size); in copy_bytes() 576 wr.buffer_pos = 0; in unlzma() 655 if (!wr.flush || wr.flush(wr.buffer, wr.buffer_pos) == wr.buffer_pos) in unlzma()
|
/linux/drivers/most/ |
A D | most_snd.c | 51 unsigned int buffer_pos; member 191 fr0 = min(buffer_size - channel->buffer_pos, frames); in copy_data() 193 channel->copy_fn(runtime->dma_area + channel->buffer_pos * frame_bytes, in copy_data() 204 channel->buffer_pos += frames; in copy_data() 205 if (channel->buffer_pos >= buffer_size) in copy_data() 206 channel->buffer_pos -= buffer_size; in copy_data() 354 channel->buffer_pos = 0; in pcm_prepare() 400 return channel->buffer_pos; in pcm_pointer()
|
/linux/sound/usb/misc/ |
A D | ua101.c | 109 unsigned int buffer_pos; member 224 frames1 = runtime->buffer_size - stream->buffer_pos; in copy_playback_data() 230 stream->buffer_pos += frames; in copy_playback_data() 231 if (stream->buffer_pos >= runtime->buffer_size) in copy_playback_data() 232 stream->buffer_pos -= runtime->buffer_size; in copy_playback_data() 335 stream->buffer_pos += frames; in copy_capture_data() 336 if (stream->buffer_pos >= runtime->buffer_size) in copy_capture_data() 337 stream->buffer_pos -= runtime->buffer_size; in copy_capture_data() 775 ua->capture.buffer_pos = 0; in capture_pcm_prepare() 803 ua->playback.buffer_pos = 0; in playback_pcm_prepare() [all …]
|
/linux/sound/soc/sh/ |
A D | rz-ssi.c | 93 int buffer_pos; /* current frame position in the buffer */ member 214 strm->buffer_pos = 0; in rz_ssi_stream_init() 396 strm->buffer_pos += frames; in rz_ssi_pointer_update() 397 WARN_ON(strm->buffer_pos > runtime->buffer_size); in rz_ssi_pointer_update() 400 if (strm->buffer_pos == runtime->buffer_size) in rz_ssi_pointer_update() 401 strm->buffer_pos = 0; in rz_ssi_pointer_update() 425 frames_left = runtime->period_size - (strm->buffer_pos % in rz_ssi_pio_recv() 447 buf += strm->buffer_pos * runtime->channels; in rz_ssi_pio_recv() 481 frames_left = runtime->period_size - (strm->buffer_pos % in rz_ssi_pio_send() 503 buf += strm->buffer_pos * runtime->channels; in rz_ssi_pio_send() [all …]
|
/linux/fs/reiserfs/ |
A D | xattr.c | 528 size_t buffer_pos = 0; in reiserfs_xattr_set_handle() local 547 while (buffer_pos < buffer_size || buffer_pos == 0) { in reiserfs_xattr_set_handle() 552 if (buffer_size - buffer_pos > PAGE_SIZE) in reiserfs_xattr_set_handle() 555 chunk = buffer_size - buffer_pos; in reiserfs_xattr_set_handle() 581 memcpy(data + skip, buffer + buffer_pos, chunk); in reiserfs_xattr_set_handle() 589 buffer_pos += chunk; in reiserfs_xattr_set_handle() 663 size_t buffer_pos = 0; in reiserfs_xattr_get() local 741 memcpy(buffer + buffer_pos, data + skip, chunk); in reiserfs_xattr_get() 745 buffer_pos += chunk; in reiserfs_xattr_get()
|
Completed in 22 milliseconds