Home
last modified time | relevance | path

Searched refs:net_buf_tailroom (Results 1 – 25 of 81) sorted by relevance

1234

/Zephyr-latest/subsys/usb/device_next/
Dusbd_ch9.c442 if (net_buf_tailroom(buf) < setup->wLength) { in sreq_get_status()
506 net_buf_add_mem(buf, cfg_desc, MIN(net_buf_tailroom(buf), cfg_desc->bLength)); in sreq_get_desc_cfg()
517 len = MIN(net_buf_tailroom(buf), (*dhp)->bLength); in sreq_get_desc_cfg()
589 wLength, head.bLength, net_buf_tailroom(buf)); in string_ascii7_to_utf16le()
591 len = MIN(net_buf_tailroom(buf), MIN(head.bLength, wLength)); in string_ascii7_to_utf16le()
616 len = MIN(setup->wLength, net_buf_tailroom(buf)); in sreq_get_desc_dev()
657 len = MIN(setup->wLength, net_buf_tailroom(buf)); in sreq_get_desc_str()
698 len = MIN(setup->wLength, net_buf_tailroom(buf)); in sreq_get_dev_qualifier()
749 len = MIN(net_buf_tailroom(buf), MIN(setup->wLength, bos.wTotalLength)); in sreq_get_desc_bos()
752 setup->wLength, bos.bLength, bos.wTotalLength, net_buf_tailroom(buf)); in sreq_get_desc_bos()
[all …]
/Zephyr-latest/tests/subsys/mgmt/mcumgr/mcumgr_client/src/
Dimg_gr_stub.c53 zcbor_new_encode_state(zse, ARRAY_SIZE(zse), nb->data, net_buf_tailroom(nb), 0); in img_upload_response()
86 zcbor_new_encode_state(zse, ARRAY_SIZE(zse), nb->data, net_buf_tailroom(nb), 0); in img_fail_response()
110 zcbor_new_encode_state(zse, ARRAY_SIZE(zse), nb->data, net_buf_tailroom(nb), 0); in img_read_response()
159 zcbor_new_encode_state(zse, ARRAY_SIZE(zse), nb->data, net_buf_tailroom(nb), 0); in img_erase_response()
Dos_gr_stub.c52 zcbor_new_encode_state(zse, ARRAY_SIZE(zse), nb->data, net_buf_tailroom(nb), 0); in os_echo_response()
/Zephyr-latest/samples/subsys/usb/webusb-next/src/
Dwebusb.h79 MIN(net_buf_tailroom(buf), sizeof(webusb_origin_url))); in webusb_to_host_cb()
Dmsosv2.h127 MIN(net_buf_tailroom(buf), sizeof(msosv2_desc))); in msosv2_to_host_cb()
/Zephyr-latest/tests/bluetooth/at/src/
Dmain.c62 zassert_true(net_buf_tailroom(buf) >= len, in ZTEST()
/Zephyr-latest/samples/bluetooth/hci_ipc/src/
Dmain.c79 if (remaining > net_buf_tailroom(buf)) { in hci_ipc_cmd_recv()
116 if (remaining > net_buf_tailroom(buf)) { in hci_ipc_acl_recv()
153 if (remaining > net_buf_tailroom(buf)) { in hci_ipc_iso_recv()
/Zephyr-latest/drivers/bluetooth/hci/
Dhci_esp32.c91 buf_tailroom = net_buf_tailroom(buf); in bt_esp_evt_recv()
132 buf_tailroom = net_buf_tailroom(buf); in bt_esp_acl_recv()
174 buf_tailroom = net_buf_tailroom(buf); in bt_esp_iso_recv()
Dipc.c106 buf_tailroom = net_buf_tailroom(buf); in bt_ipc_evt_recv()
147 buf_tailroom = net_buf_tailroom(buf); in bt_ipc_acl_recv()
197 buf_tailroom = net_buf_tailroom(buf); in bt_ipc_iso_recv()
Dhci_stm32wba.c138 buf_tailroom = net_buf_tailroom(buf); in treat_evt()
179 buf_tailroom = net_buf_tailroom(buf); in treat_acl()
221 buf_tailroom = net_buf_tailroom(buf); in treat_iso()
Dhci_da1469x.c233 if (rx.remaining > net_buf_tailroom(rx.buf)) { in rx_thread()
303 buf_tailroom = net_buf_tailroom(rx.buf); in read_payload()
369 if (rx.remaining > net_buf_tailroom(rx.buf)) { in read_header()
Dhci_stm32wb0.c325 if (len > net_buf_tailroom(buf)) { in get_rx()
338 if (len > net_buf_tailroom(buf)) { in get_rx()
356 if (len > net_buf_tailroom(buf)) { in get_rx()
Dhci_ambiq.c240 buf_tailroom = net_buf_tailroom(buf); in bt_hci_evt_recv()
280 buf_tailroom = net_buf_tailroom(buf); in bt_hci_acl_recv()
Dhci_nxp.c262 space_in_buffer = net_buf_tailroom(buf); in bt_evt_recv()
302 if (len > net_buf_tailroom(buf)) { in bt_acl_recv()
Dspi.c215 if (len > net_buf_tailroom(buf)) { in bt_spi_rx_buf_construct()
226 if (len > net_buf_tailroom(buf)) { in bt_spi_rx_buf_construct()
Dhci_spi_st.c448 if (len > net_buf_tailroom(buf)) { in bt_spi_rx_buf_construct()
466 if (len > net_buf_tailroom(buf)) { in bt_spi_rx_buf_construct()
485 if (len > net_buf_tailroom(buf)) { in bt_spi_rx_buf_construct()
Dh4.c243 if (h4->rx.remaining > net_buf_tailroom(h4->rx.buf)) { in rx_thread()
314 buf_tailroom = net_buf_tailroom(h4->rx.buf); in read_payload()
384 if (h4->rx.remaining > net_buf_tailroom(h4->rx.buf)) { in read_header()
/Zephyr-latest/drivers/usb/uhc/
Duhc_virtual.c104 length = MIN(net_buf_tailroom(buf), xfer->mps); in vrt_xfer_control()
163 length = MIN(net_buf_tailroom(buf), xfer->mps); in vrt_xfer_bulk()
239 length = MIN(net_buf_tailroom(buf), pkt->length); in vrt_hrslt_success()
246 LOG_DBG("IN chunk %zu out of %zu", length, net_buf_tailroom(buf)); in vrt_hrslt_success()
247 if (pkt->length < xfer->mps || !net_buf_tailroom(buf)) { in vrt_hrslt_success()
Duhc_max3421e.c279 LOG_DBG("bulk in %p %u", buf, net_buf_tailroom(buf)); in max3421e_xfer_data()
478 if (bc > net_buf_tailroom(buf)) { in max3421e_hrslt_success()
480 bc - net_buf_tailroom(buf)); in max3421e_hrslt_success()
483 len = MIN(net_buf_tailroom(buf), bc); in max3421e_hrslt_success()
490 LOG_INF("bc %u tr %u", bc, net_buf_tailroom(buf)); in max3421e_hrslt_success()
492 if (bc < MAX3421E_MAX_EP_SIZE || !net_buf_tailroom(buf)) { in max3421e_hrslt_success()
/Zephyr-latest/subsys/mgmt/mcumgr/grp/img_mgmt_client/src/
Dimg_mgmt_client.c375 net_buf_tailroom(nb), 0); in img_mgmt_client_upload()
475 zcbor_new_encode_state(zse, ARRAY_SIZE(zse), nb->data + nb->len, net_buf_tailroom(nb), 0); in img_mgmt_client_state_write()
540 zcbor_new_encode_state(zse, ARRAY_SIZE(zse), nb->data + nb->len, net_buf_tailroom(nb), 0); in img_mgmt_client_state_read()
583 zcbor_new_encode_state(zse, ARRAY_SIZE(zse), nb->data + nb->len, net_buf_tailroom(nb), 0); in img_mgmt_client_erase()
/Zephyr-latest/samples/boards/st/bluetooth/interactive_gui/src/
Dmain.c149 if (len > net_buf_tailroom(buf)) { in send_evt()
300 if (remaining > net_buf_tailroom(buf)) { in rx_isr()
/Zephyr-latest/subsys/mgmt/mcumgr/grp/os_mgmt_client/src/
Dos_mgmt_client.c138 zcbor_new_encode_state(zse, ARRAY_SIZE(zse), nb->data + nb->len, net_buf_tailroom(nb), 0); in os_mgmt_client_echo()
/Zephyr-latest/subsys/bluetooth/host/classic/shell/
Drfcomm.c207 len = MIN(rfcomm_dlc.mtu, net_buf_tailroom(buf) - 1); in cmd_send()
/Zephyr-latest/subsys/mgmt/mcumgr/transport/src/
Dsmp_shell.c159 if (data->buf && net_buf_tailroom(data->buf) > 0) { in smp_shell_rx_bytes()
/Zephyr-latest/drivers/usb/udc/
Dudc_virtual.c181 min_len = MIN(pkt->length, net_buf_tailroom(buf)); in vrt_handle_out()
184 LOG_DBG("Handle data OUT, %zu | %zu", pkt->length, net_buf_tailroom(buf)); in vrt_handle_out()
186 if (net_buf_tailroom(buf) == 0 || pkt->length < udc_mps_ep_size(ep_cfg)) { in vrt_handle_out()

1234