Home
last modified time | relevance | path

Searched refs:buffer_pos (Results 1 – 6 of 6) sorted by relevance

/linux-5.19.10/drivers/media/usb/usbtv/
Dusbtv-audio.c103 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-5.19.10/lib/
Ddecompress_unlzma.c280 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-5.19.10/drivers/most/
Dmost_snd.c51 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-5.19.10/sound/soc/sh/
Drz-ssi.c89 int buffer_pos; /* current frame position in the buffer */ member
220 strm->buffer_pos = 0; in rz_ssi_stream_init()
397 strm->buffer_pos += frames; in rz_ssi_pointer_update()
398 WARN_ON(strm->buffer_pos > runtime->buffer_size); in rz_ssi_pointer_update()
401 if (strm->buffer_pos == runtime->buffer_size) in rz_ssi_pointer_update()
402 strm->buffer_pos = 0; in rz_ssi_pointer_update()
404 current_period = strm->buffer_pos / runtime->period_size; in rz_ssi_pointer_update()
429 (strm->buffer_pos % runtime->period_size); in rz_ssi_pio_recv()
451 buf += strm->buffer_pos * runtime->channels; in rz_ssi_pio_recv()
479 frames_left = runtime->period_size - (strm->buffer_pos % in rz_ssi_pio_send()
[all …]
/linux-5.19.10/sound/usb/misc/
Dua101.c109 unsigned int buffer_pos; member
219 source = runtime->dma_area + stream->buffer_pos * frame_bytes; in copy_playback_data()
220 if (stream->buffer_pos + frames <= runtime->buffer_size) { in copy_playback_data()
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()
323 dest = runtime->dma_area + stream->buffer_pos * frame_bytes; in copy_capture_data()
324 if (stream->buffer_pos + frames <= runtime->buffer_size) { in copy_capture_data()
328 frames1 = runtime->buffer_size - stream->buffer_pos; in copy_capture_data()
[all …]
/linux-5.19.10/fs/reiserfs/
Dxattr.c528 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()