Home
last modified time | relevance | path

Searched refs:len_to_send (Results 1 – 9 of 9) sorted by relevance

/Zephyr-latest/drivers/bluetooth/hci/
Dhci_nxp_setup.c608 static int fw_upload_write_hdr_and_payload(uint16_t len_to_send, uint8_t *buffer, bool new_speed) in fw_upload_write_hdr_and_payload() argument
621 if (sending_len == len_to_send) { in fw_upload_write_hdr_and_payload()
649 if ((len_to_send & 0x01) == 0x01) { in fw_upload_write_hdr_and_payload()
650 if (len_to_send == (CMD_HDR_LEN + 1)) { in fw_upload_write_hdr_and_payload()
652 fw_upload_write_data(buffer, len_to_send - 1); in fw_upload_write_hdr_and_payload()
655 } else if (len_to_send == (payload_len + 1)) { in fw_upload_write_hdr_and_payload()
657 fw_upload_write_data(&buffer[CMD_HDR_LEN], len_to_send - 1); in fw_upload_write_hdr_and_payload()
661 } else if (len_to_send == CMD_HDR_LEN) { in fw_upload_write_hdr_and_payload()
663 fw_upload_write_data(buffer, len_to_send); in fw_upload_write_hdr_and_payload()
666 } else if (len_to_send == payload_len) { in fw_upload_write_hdr_and_payload()
[all …]
/Zephyr-latest/samples/bluetooth/iso_central/src/
Dmain.c53 static size_t len_to_send = 1; in iso_timer_timeout() local
67 net_buf_add_mem(buf, buf_data, len_to_send); in iso_timer_timeout()
76 len_to_send++; in iso_timer_timeout()
77 if (len_to_send > ARRAY_SIZE(buf_data)) { in iso_timer_timeout()
78 len_to_send = 1; in iso_timer_timeout()
/Zephyr-latest/tests/bsim/bluetooth/host/iso/bis/src/
Dbis_broadcaster.c38 static size_t len_to_send = 1U; in send_data() local
61 net_buf_add_mem(buf, buf_data, len_to_send); in send_data()
74 len_to_send++; in send_data()
75 if (len_to_send > ARRAY_SIZE(buf_data)) { in send_data()
76 len_to_send = 1; in send_data()
/Zephyr-latest/samples/bluetooth/hap_ha/src/
Dbap_unicast_sr.c142 static size_t len_to_send = 1; in audio_timer_timeout() local
168 net_buf_add_mem(buf, buf_data, len_to_send); in audio_timer_timeout()
177 len_to_send, i, stream); in audio_timer_timeout()
183 len_to_send++; in audio_timer_timeout()
184 if (len_to_send > ARRAY_SIZE(buf_data)) { in audio_timer_timeout()
185 len_to_send = 1; in audio_timer_timeout()
/Zephyr-latest/tests/bsim/bluetooth/host/iso/cis/src/
Dcis_central.c33 static size_t len_to_send = 1; in send_data_cb() local
54 net_buf_add_mem(buf, buf_data, len_to_send); in send_data_cb()
67 len_to_send++; in send_data_cb()
68 if (len_to_send > ARRAY_SIZE(buf_data)) { in send_data_cb()
69 len_to_send = 1; in send_data_cb()
/Zephyr-latest/samples/bluetooth/tmap_central/src/
Dcap_initiator.c382 static size_t len_to_send; in audio_timer_timeout() local
385 len_to_send = unicast_preset_48_2_1.qos.sdu; in audio_timer_timeout()
399 net_buf_add_mem(buf, buf_data, len_to_send); in audio_timer_timeout()
407 printk("Sending mock data with len %zu\n", len_to_send); in audio_timer_timeout()
/Zephyr-latest/samples/bluetooth/bap_unicast_server/src/
Dmain.c62 size_t len_to_send; member
240 net_buf_add_mem(buf, buf_data, ++source_streams[i].len_to_send); in audio_timer_timeout()
249 source_streams[i].len_to_send, i, stream); in audio_timer_timeout()
252 if (source_streams[i].len_to_send >= source_streams[i].max_sdu) { in audio_timer_timeout()
253 source_streams[i].len_to_send = 0; in audio_timer_timeout()
431 source_streams[i].len_to_send = 0U; in lc3_start()
/Zephyr-latest/drivers/usb/device/
Dusb_dc_mcux.c539 uint32_t len_to_send = data_len; in usb_dc_ep_write() local
560 len_to_send = dev_state.eps[ep_abs_idx].ep_mps; in usb_dc_ep_write()
563 for (uint32_t n = 0; n < len_to_send; n++) { in usb_dc_ep_write()
571 DCACHE_CleanByRange((uint32_t)buffer, len_to_send); in usb_dc_ep_write()
575 ep, buffer, len_to_send); in usb_dc_ep_write()
582 *ret_bytes = len_to_send; in usb_dc_ep_write()
Dusb_dc_kinetis.c599 uint32_t len_to_send = data_len; in usb_dc_ep_write() local
631 len_to_send = dev_data.ep_ctrl[ep_idx].mps_in; in usb_dc_ep_write()
634 bdt[bd_idx].set.bc = len_to_send; in usb_dc_ep_write()
636 for (uint32_t n = 0; n < len_to_send; n++) { in usb_dc_ep_write()
652 LOG_DBG("ep 0x%x write %d bytes from %d", ep, len_to_send, data_len); in usb_dc_ep_write()
655 *ret_bytes = len_to_send; in usb_dc_ep_write()