Lines Matching refs:cnt
90 static size_t cnt; in usb_data_request_cb() local
92 if ((++cnt % bap_get_stats_interval()) == 0U) { in usb_data_request_cb()
93 LOG_INF("[%zu]: Sending USB audio", cnt); in usb_data_request_cb()
96 static size_t cnt; in usb_data_request_cb() local
98 if ((++cnt % bap_get_stats_interval()) == 0U) { in usb_data_request_cb()
99 LOG_INF("[%zu]: Sending empty USB audio", cnt); in usb_data_request_cb()
105 static size_t cnt; in usb_data_request_cb() local
107 cnt++; in usb_data_request_cb()
108 if ((cnt % 1000) == 0) { in usb_data_request_cb()
109 LOG_ERR("Failed to send USB audio: %d (%zu)", err, cnt); in usb_data_request_cb()
134 static size_t cnt; in bap_usb_send_frames_to_usb() local
193 if ((++cnt % bap_get_stats_interval()) == 0U) { in bap_usb_send_frames_to_usb()
194 LOG_INF("[%zu]: Sending %u USB audio frame", cnt, frame_cnt); in bap_usb_send_frames_to_usb()
216 static size_t cnt; in bap_usb_add_frame_to_usb() local
218 if ((++cnt % bap_get_stats_interval()) == 0U) { in bap_usb_add_frame_to_usb()
219 LOG_INF("[%zu]: Adding USB audio frame", cnt); in bap_usb_add_frame_to_usb()
377 static size_t cnt; in usb_data_received_cb() local
415 if ((++cnt % bap_get_stats_interval()) == 0U) { in usb_data_received_cb()
416 LOG_DBG("USB Data received (count = %d)", cnt); in usb_data_received_cb()
477 static size_t usb_ring_buf_get(int16_t dest[], int16_t src[], size_t idx, size_t cnt) in usb_ring_buf_get() argument
487 if ((idx + cnt) < USB_IN_RING_BUF_SIZE) { in usb_ring_buf_get()
489 memcpy(dest, &src[idx], cnt * USB_BYTES_PER_SAMPLE); in usb_ring_buf_get()
490 new_idx = idx + cnt; in usb_ring_buf_get()
494 const size_t second_read_cnt = cnt - first_read_cnt; in usb_ring_buf_get()