Home
last modified time | relevance | path

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

1234

/Zephyr-latest/subsys/usb/device_next/
Dusbd_ch9.c444 if (net_buf_tailroom(buf) < setup->wLength) { in sreq_get_status()
508 net_buf_add_mem(buf, cfg_desc, MIN(net_buf_tailroom(buf), cfg_desc->bLength)); in sreq_get_desc_cfg()
519 len = MIN(net_buf_tailroom(buf), (*dhp)->bLength); in sreq_get_desc_cfg()
591 wLength, head.bLength, net_buf_tailroom(buf)); in string_ascii7_to_utf16le()
593 len = MIN(net_buf_tailroom(buf), MIN(head.bLength, wLength)); in string_ascii7_to_utf16le()
618 len = MIN(setup->wLength, net_buf_tailroom(buf)); in sreq_get_desc_dev()
659 len = MIN(setup->wLength, net_buf_tailroom(buf)); in sreq_get_desc_str()
700 len = MIN(setup->wLength, net_buf_tailroom(buf)); in sreq_get_dev_qualifier()
751 len = MIN(net_buf_tailroom(buf), MIN(setup->wLength, bos.wTotalLength)); in sreq_get_desc_bos()
754 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/subsys/dap/src/
Dwebusb.h81 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/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.c119 buf_tailroom = net_buf_tailroom(buf); in bt_ipc_evt_recv()
161 buf_tailroom = net_buf_tailroom(buf); in bt_ipc_acl_recv()
212 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_silabs_siwx91x.c101 if (buf && (len <= net_buf_tailroom(buf))) { in siwx91x_bt_resp_rcvd()
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.c260 space_in_buffer = net_buf_tailroom(buf); in bt_evt_recv()
300 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()
/Zephyr-latest/samples/bluetooth/hci_ipc/src/
Dmain.c82 if (remaining > net_buf_tailroom(buf)) { in hci_ipc_cmd_recv()
119 if (remaining > net_buf_tailroom(buf)) { in hci_ipc_acl_recv()
156 if (remaining > net_buf_tailroom(buf)) { in hci_ipc_iso_recv()
/Zephyr-latest/lib/utils/
Dcobs.c19 if (net_buf_tailroom(dst) < max_encoded_size) { in cobs_encode()
/Zephyr-latest/drivers/usb/uhc/
Duhc_virtual.c116 length = MIN(net_buf_tailroom(buf), xfer->mps); in vrt_xfer_control()
173 length = MIN(net_buf_tailroom(buf), xfer->mps); in vrt_xfer_bulk()
321 length = MIN(net_buf_tailroom(buf), pkt->length); in vrt_hrslt_success()
328 LOG_DBG("IN chunk %zu out of %zu", length, net_buf_tailroom(buf)); in vrt_hrslt_success()
329 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()
489 if (bc > net_buf_tailroom(buf)) { in max3421e_hrslt_success()
491 bc - net_buf_tailroom(buf)); in max3421e_hrslt_success()
494 len = MIN(net_buf_tailroom(buf), bc); in max3421e_hrslt_success()
501 LOG_INF("bc %u tr %u", bc, net_buf_tailroom(buf)); in max3421e_hrslt_success()
503 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()

1234