Searched refs:hdr_buf (Results 1 – 5 of 5) sorted by relevance
/Zephyr-latest/samples/bluetooth/hci_uart_async/src/ |
D | hci_uart_async.c | 76 static uint32_t hci_payload_size(const uint8_t *hdr_buf, uint8_t h4_type) in hci_payload_size() argument 80 return ((const struct bt_hci_cmd_hdr *)hdr_buf)->param_len; in hci_payload_size() 82 return sys_le16_to_cpu(((const struct bt_hci_acl_hdr *)hdr_buf)->len); in hci_payload_size() 85 sys_le16_to_cpu(((const struct bt_hci_iso_hdr *)hdr_buf)->len)); in hci_payload_size() 208 uint8_t *hdr_buf; in h2c_h4_transport() local 235 hdr_buf = net_buf_add(buf, hdr_size); in h2c_h4_transport() 237 err = uart_h2c_rx(hdr_buf, hdr_size); in h2c_h4_transport() 242 LOG_HEXDUMP_DBG(hdr_buf, hdr_size, "h2c: hci hdr"); in h2c_h4_transport() 245 payload_size = hci_payload_size(hdr_buf, h4_type); in h2c_h4_transport()
|
/Zephyr-latest/samples/bluetooth/hci_uart/src/ |
D | main.c | 80 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-latest/samples/boards/st/bluetooth/interactive_gui/src/ |
D | main.c | 174 static uint32_t get_len(const uint8_t *hdr_buf, uint8_t type) in get_len() argument 178 return ((const struct bt_hci_cmd_hdr *)hdr_buf)->param_len; in get_len() 180 return ((const struct bt_hci_ext_cmd_hdr *)hdr_buf)->param_len; in get_len() 182 return ((const struct bt_vendor_cmd_hdr *)hdr_buf)->param_len; in get_len() 185 sys_le16_to_cpu(((const struct bt_hci_iso_hdr *)hdr_buf)->len)); in get_len() 187 return sys_le16_to_cpu(((const struct bt_hci_acl_hdr *)hdr_buf)->len); in get_len() 245 static uint8_t hdr_buf[MAX(sizeof(struct bt_hci_cmd_hdr), sizeof(struct bt_hci_acl_hdr))]; in rx_isr() local 269 read = h4_read(hci_uart_dev, &hdr_buf[hdr_len(type) - remaining], in rx_isr() 287 remaining = get_len(hdr_buf, type); in rx_isr() 299 net_buf_add_mem(buf, hdr_buf, header_length); in rx_isr()
|
/Zephyr-latest/subsys/net/lib/http/ |
D | http_server_http2.c | 1216 struct http_hpack_header_buf *hdr_buf) in check_user_request_headers_http2() argument 1224 required_len = hdr_buf->name_len + hdr_buf->value_len + 2; in check_user_request_headers_http2() 1226 if (hdr_buf->name_len == strlen(header->name) && in check_user_request_headers_http2() 1227 (strncasecmp(hdr_buf->name, header->name, hdr_buf->name_len) == 0)) { in check_user_request_headers_http2() 1244 memcpy(dest, header->name, hdr_buf->name_len); in check_user_request_headers_http2() 1245 dest[hdr_buf->name_len] = '\0'; in check_user_request_headers_http2() 1247 ctx->cursor += (hdr_buf->name_len + 1); in check_user_request_headers_http2() 1248 dest += (hdr_buf->name_len + 1); in check_user_request_headers_http2() 1251 memcpy(dest, hdr_buf->value, hdr_buf->value_len); in check_user_request_headers_http2() 1252 dest[hdr_buf->value_len] = '\0'; in check_user_request_headers_http2() [all …]
|
/Zephyr-latest/drivers/ieee802154/ |
D | ieee802154_dw1000.c | 155 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()
|