Lines Matching refs:read_idx
348 size_t read_idx; in stream_cb() local
352 read_idx = MIN(sh_stream->tx.left_read_idx, sh_stream->tx.right_read_idx); in stream_cb()
354 read_idx = sh_stream->tx.left_read_idx; in stream_cb()
356 read_idx = sh_stream->tx.right_read_idx; in stream_cb()
365 if (read_idx > old_write_index) { in stream_cb()
366 if (read_idx < write_index || (overflowed && read_idx < write_index)) { in stream_cb()
432 size_t read_idx; in bap_usb_can_get_full_sdu() local
437 read_idx = MIN(sh_stream->tx.left_read_idx, sh_stream->tx.right_read_idx); in bap_usb_can_get_full_sdu()
439 read_idx = sh_stream->tx.left_read_idx; in bap_usb_can_get_full_sdu()
441 read_idx = sh_stream->tx.right_read_idx; in bap_usb_can_get_full_sdu()
446 if (read_idx <= write_index) { in bap_usb_can_get_full_sdu()
447 buffer_cnt = write_index - read_idx; in bap_usb_can_get_full_sdu()
450 buffer_cnt = write_index + (USB_IN_RING_BUF_SIZE - read_idx); in bap_usb_can_get_full_sdu()