Home
last modified time | relevance | path

Searched refs:hdr_buf (Results 1 – 3 of 3) sorted by relevance

/Zephyr-Core-3.5.0/samples/bluetooth/hci_uart_async/src/
Dhci_uart_async.c85 static uint32_t hci_payload_size(const uint8_t *hdr_buf, enum h4_type type) in hci_payload_size() argument
89 return ((const struct bt_hci_cmd_hdr *)hdr_buf)->param_len; in hci_payload_size()
91 return sys_le16_to_cpu(((const struct bt_hci_acl_hdr *)hdr_buf)->len); in hci_payload_size()
94 sys_le16_to_cpu(((const struct bt_hci_iso_hdr *)hdr_buf)->len)); in hci_payload_size()
216 uint8_t *hdr_buf; in h2c_h4_transport() local
243 hdr_buf = net_buf_add(buf, hdr_size); in h2c_h4_transport()
245 err = uart_h2c_rx(hdr_buf, hdr_size); in h2c_h4_transport()
250 LOG_HEXDUMP_DBG(hdr_buf, hdr_size, "h2c: hci hdr"); in h2c_h4_transport()
253 payload_size = hci_payload_size(hdr_buf, h4_type); in h2c_h4_transport()
/Zephyr-Core-3.5.0/samples/bluetooth/hci_uart/src/
Dmain.c80 static uint32_t get_len(const uint8_t *hdr_buf, uint8_t type) in get_len() argument
84 return ((const struct bt_hci_cmd_hdr *)hdr_buf)->param_len; in get_len()
87 sys_le16_to_cpu(((const struct bt_hci_iso_hdr *)hdr_buf)->len)); in get_len()
89 return sys_le16_to_cpu(((const struct bt_hci_acl_hdr *)hdr_buf)->len); in get_len()
118 static uint8_t hdr_buf[MAX(sizeof(struct bt_hci_cmd_hdr), in rx_isr() local
144 &hdr_buf[hdr_len(type) - remaining], in rx_isr()
161 remaining = get_len(hdr_buf, type); in rx_isr()
163 net_buf_add_mem(buf, hdr_buf, hdr_len(type)); in rx_isr()
/Zephyr-Core-3.5.0/drivers/ieee802154/
Dieee802154_dw1000.c155 uint16_t hdr_len, const uint8_t *hdr_buf, in dwt_spi_read() argument
161 .buf = (uint8_t *)hdr_buf, in dwt_spi_read()
185 LOG_HEXDUMP_DBG(hdr_buf, (uint16_t)hdr_len, "rd: header"); in dwt_spi_read()
199 uint16_t hdr_len, const uint8_t *hdr_buf, in dwt_spi_write() argument
205 {.buf = (uint8_t *)hdr_buf, .len = hdr_len}, in dwt_spi_write()
212 LOG_HEXDUMP_DBG(hdr_buf, (uint16_t)hdr_len, "wr: header"); in dwt_spi_write()