/Zephyr-latest/drivers/spi/ |
D | spi_rtio.c | 95 rx_bufs[i].len = sqe->rx.buf_len; in spi_rtio_iodev_default_submit_sync() 97 tx_bufs[i].len = sqe->rx.buf_len; in spi_rtio_iodev_default_submit_sync() 101 rx_bufs[i].len = sqe->tx.buf_len; in spi_rtio_iodev_default_submit_sync() 103 tx_bufs[i].len = sqe->tx.buf_len; in spi_rtio_iodev_default_submit_sync() 107 rx_bufs[i].len = sqe->tiny_tx.buf_len; in spi_rtio_iodev_default_submit_sync() 109 tx_bufs[i].len = sqe->tiny_tx.buf_len; in spi_rtio_iodev_default_submit_sync() 113 rx_bufs[i].len = sqe->txrx.buf_len; in spi_rtio_iodev_default_submit_sync() 115 tx_bufs[i].len = sqe->txrx.buf_len; in spi_rtio_iodev_default_submit_sync() 184 tx_len = tx_bufs->buffers[tx].len; in spi_rtio_copy() 187 tx_len = rx_bufs->buffers[rx].len; in spi_rtio_copy() [all …]
|
/Zephyr-latest/include/zephyr/net/ |
D | coap.h | 334 uint16_t len; member 337 uint8_t len; /**< Option length */ member 382 uint16_t len; /**< Length of the CoAP packet */ member 472 uint16_t *len); 504 int coap_packet_parse(struct coap_packet *cpkt, uint8_t *data, uint16_t len, 616 const uint8_t *value, uint16_t len); 1038 struct coap_observer *observers, size_t len, 1056 struct coap_observer *observers, size_t len, 1074 struct coap_observer *observers, size_t len, 1087 struct coap_observer *observers, size_t len); [all …]
|
/Zephyr-latest/modules/openthread/platform/ |
D | ble.c | 73 uint16_t len, uint16_t offset, uint8_t flags); 120 uint16_t len = 0; in ot_plat_ble_queue_msg() local 128 len = sizeof(aLen) + sizeof(aRssi) + ((aLen <= PLAT_BLE_MSG_DATA_MAX) ? aLen : 0); in ot_plat_ble_queue_msg() 130 if (ring_buf_space_get(&ot_plat_ble_ring_buf) >= len) { in ot_plat_ble_queue_msg() 152 uint16_t len; in ot_plat_ble_thread() local 160 ring_buf_get(&ot_plat_ble_ring_buf, (uint8_t *)&len, sizeof(len)); in ot_plat_ble_thread() 162 if (len <= PLAT_BLE_MSG_DATA_MAX) { in ot_plat_ble_thread() 163 ring_buf_get(&ot_plat_ble_ring_buf, ot_plat_ble_msg_buf, len); in ot_plat_ble_thread() 168 if (len <= PLAT_BLE_MSG_DATA_MAX) { in ot_plat_ble_thread() 174 my_packet.mLength = len; in ot_plat_ble_thread() [all …]
|
/Zephyr-latest/drivers/wifi/esp_at/ |
D | esp_socket.c | 105 size_t offset, size_t len) in esp_socket_prepare_pkt() argument 112 pkt = net_pkt_rx_alloc_with_buffer(data->net_iface, len, AF_UNSPEC, in esp_socket_prepare_pkt() 121 while (frag && offset >= frag->len) { in esp_socket_prepare_pkt() 122 offset -= frag->len; in esp_socket_prepare_pkt() 127 while (frag && len > 0) { in esp_socket_prepare_pkt() 128 to_copy = MIN(len, frag->len - offset); in esp_socket_prepare_pkt() 135 len -= to_copy; in esp_socket_prepare_pkt() 154 size_t offset, size_t len) argument 175 pkt = esp_socket_prepare_pkt(sock, buf, offset, len); 177 LOG_ERR("Failed to get net_pkt: len %zu", len);
|
/Zephyr-latest/tests/subsys/logging/log_frontend_stmesp_demux/src/ |
D | main.c | 15 #define TOTAL_LEN(len) \ argument 16 ROUND_UP(len + offsetof(struct log_frontend_stmesp_demux_log, data), 2 * sizeof(uint32_t)) 17 #define TOTAL_WLEN(len) (TOTAL_LEN(len) / sizeof(uint32_t)) argument 153 static void packet_data(uint16_t *m_id, uint16_t *c_id, uint8_t *data, size_t len) in packet_data() argument 163 log_frontend_stmesp_demux_data(data, len); in packet_data() 179 static void write_data(uint16_t len, uint8_t id) in write_data() argument 181 for (int i = 0; i < len; i++) { in write_data() 188 static void write_packet(uint16_t m_id, uint16_t c_id, uint64_t ts, uint16_t len, uint8_t id) in write_packet() argument 190 union log_frontend_stmesp_demux_header hdr = {.log = {.total_len = len}}; in write_packet() 196 write_data(len, id); in write_packet() [all …]
|
/Zephyr-latest/drivers/modem/ |
D | hl7800.c | 545 bool (*func)(struct net_buf **buf, uint16_t len); 1493 actual_send_len += frag->len; in send_data() 1494 mdm_receiver_send(&iface_ctx.mdm_ctx, frag->data, frag->len); in send_data() 1540 if (!(*buf)->len) { in net_buf_skipcrlf() 1548 uint16_t len = 0U, pos = 0U; in net_buf_findcrlf() local 1551 if (pos + 1 >= buf->len) { in net_buf_findcrlf() 1552 len += buf->len; in net_buf_findcrlf() 1561 len += pos; in net_buf_findcrlf() 1563 return len; in net_buf_findcrlf() 1573 if (!(*buf)->len) { in net_buf_get_u8() [all …]
|
/Zephyr-latest/subsys/bluetooth/mesh/ |
D | adv.c | 262 LOG_DBG("type 0x%02x len %u: %s", adv->ctx.type, adv->b.len, in bt_mesh_adv_send() 263 bt_hex(adv->b.data, adv->b.len)); in bt_mesh_adv_send() 319 LOG_DBG("len %u: %s", buf->len, bt_hex(buf->data, buf->len)); in bt_mesh_scan_cb() 321 while (buf->len > 1) { in bt_mesh_scan_cb() 323 uint8_t len, type; in bt_mesh_scan_cb() local 325 len = net_buf_simple_pull_u8(buf); in bt_mesh_scan_cb() 327 if (len == 0U) { in bt_mesh_scan_cb() 331 if (len > buf->len) { in bt_mesh_scan_cb() 340 buf->len = len - 1; in bt_mesh_scan_cb() 360 bt_mesh_sol_recv(buf, len - 1); in bt_mesh_scan_cb() [all …]
|
D | dfu_metadata.c | 18 if (buf->len < 12) { in bt_mesh_dfu_metadata_decode() 30 if (buf->len < 6) { in bt_mesh_dfu_metadata_decode() 38 metadata->user_data = buf->len > 0 ? buf->data : NULL; in bt_mesh_dfu_metadata_decode() 39 metadata->user_data_len = buf->len; in bt_mesh_dfu_metadata_decode() 78 struct bt_mesh_sg sg = {.data = buf->data, .len = buf->len}; in bt_mesh_dfu_metadata_comp_hash_get()
|
D | pb_adv.c | 189 LOG_WRN("No memory to send unacked PDU: %s", bt_hex(adv->b.data, adv->b.len)); in send_unacked() 270 static uint8_t last_seg(uint16_t len) in last_seg() argument 272 if (len <= START_PAYLOAD_MAX) { in last_seg() 276 len -= START_PAYLOAD_MAX; in last_seg() 278 return 1 + (len / CONT_PAYLOAD_MAX); in last_seg() 490 LOG_DBG("len %u, seg_index %u", buf->len, seg); in gen_prov_cont() 529 if (XACT_SEG_OFFSET(seg) + buf->len > RX_BUFFER_MAX) { in gen_prov_cont() 534 memcpy(XACT_SEG_DATA(seg), buf->data, buf->len); in gen_prov_cont() 540 expect_len = (link.rx.buf->len - 20U - in gen_prov_cont() 542 if (expect_len != buf->len) { in gen_prov_cont() [all …]
|
/Zephyr-latest/samples/bluetooth/peripheral_csc/src/ |
D | main.c | 101 uint16_t len, uint16_t offset) in read_location() argument 105 return bt_gatt_attr_read(conn, attr, buf, len, offset, value, in read_location() 111 uint16_t len, uint16_t offset) in read_csc_feature() argument 115 return bt_gatt_attr_read(conn, attr, buf, len, offset, in read_csc_feature() 132 const void *buf, uint16_t len, uint16_t offset, in write_ctrl_point() argument 143 if (!len) { in write_ctrl_point() 149 if (len != sizeof(req->op) + sizeof(req->cwr)) { in write_ctrl_point() 158 if (len != sizeof(req->op) + sizeof(req->location)) { in write_ctrl_point() 183 if (len != sizeof(req->op)) { in write_ctrl_point() 193 return len; in write_ctrl_point() [all …]
|
/Zephyr-latest/subsys/usb/device_next/class/ |
D | usbd_dfu_flash.c | 42 int len; in dfu_flash_read() local 71 len = to_upload; in dfu_flash_read() 73 len = size; in dfu_flash_read() 76 ret = flash_area_read(fa, data->uploaded, buf, len); in dfu_flash_read() 84 LOG_DBG("uploaded %u block %u len %u", data->uploaded, block, len); in dfu_flash_read() 86 return len; in dfu_flash_read()
|
/Zephyr-latest/drivers/sensor/st/iis2mdc/ |
D | iis2mdc_i2c.c | 23 uint8_t *value, uint16_t len) in iis2mdc_i2c_read() argument 27 return i2c_burst_read_dt(&cfg->i2c, reg_addr, value, len); in iis2mdc_i2c_read() 31 uint8_t *value, uint16_t len) in iis2mdc_i2c_write() argument 35 return i2c_burst_write_dt(&cfg->i2c, reg_addr, value, len); in iis2mdc_i2c_write()
|
/Zephyr-latest/drivers/sensor/st/ism330dhcx/ |
D | ism330dhcx_i2c.c | 24 uint8_t len) in ism330dhcx_i2c_read() argument 28 return i2c_burst_read_dt(&cfg->i2c, reg_addr, value, len); in ism330dhcx_i2c_read() 32 uint8_t len) in ism330dhcx_i2c_write() argument 36 return i2c_burst_write_dt(&cfg->i2c, reg_addr, value, len); in ism330dhcx_i2c_write()
|
/Zephyr-latest/subsys/bluetooth/services/ots/ |
D | ots_oacp_internal.h | 81 uint32_t len; member 85 uint32_t len; member 89 uint32_t len; member 109 const void *buf, uint16_t len,
|
/Zephyr-latest/include/zephyr/sys/ |
D | winstream.h | 26 uint32_t len; /* Length of data[] in bytes */ member 50 struct sys_winstream *ws = buf, tmp = { .len = buflen - sizeof(*ws) }; in sys_winstream_init() 70 const char *data, uint32_t len);
|
/Zephyr-latest/subsys/net/l2/ieee802154/ |
D | ieee802154_mgmt.c | 56 ctx->scan_ctx->len = IEEE802154_SHORT_ADDR_LENGTH; in ieee802154_handle_beacon() 60 ctx->scan_ctx->len = IEEE802154_EXT_ADDR_LENGTH; in ieee802154_handle_beacon() 78 void *data, size_t len) in ieee802154_cancel_scan() argument 83 ARG_UNUSED(len); in ieee802154_cancel_scan() 98 void *data, size_t len) in ieee802154_scan() argument 107 if (len != sizeof(struct ieee802154_req_params) || !data) { in ieee802154_scan() 127 params.dst.len = IEEE802154_SHORT_ADDR_LENGTH; in ieee802154_scan() 241 net_if_set_link_addr(iface, ctx->linkaddr.addr, ctx->linkaddr.len, ctx->linkaddr.type); in update_net_if_link_addr() 251 ctx->linkaddr.len = IEEE802154_EXT_ADDR_LENGTH; in set_linkaddr_to_ext_addr() 273 ctx->linkaddr.len = IEEE802154_SHORT_ADDR_LENGTH; in set_association() [all …]
|
/Zephyr-latest/drivers/sensor/bosch/bmi323/ |
D | bmi323_spi.c | 26 transmit_buffer.len = sizeof(address); in bosch_bmi323_spi_read_words() 32 receive_buffers[0].len = 2; in bosch_bmi323_spi_read_words() 34 receive_buffers[1].len = (words_count * 2); in bosch_bmi323_spi_read_words() 58 transmit_buffers[0].len = 1; in bosch_bmi323_spi_write_words() 60 transmit_buffers[1].len = (words_count * 2); in bosch_bmi323_spi_write_words()
|
/Zephyr-latest/drivers/wifi/eswifi/ |
D | eswifi_socket_offload.c | 110 size_t len, int val, void *data) in __eswifi_socket_accept_cb() argument 114 memcpy(addr_target, addr, len); in __eswifi_socket_accept_cb() 209 "PG=%d,%d,%d\r", 0, id, cert->len); in map_credentials() 211 memcpy(&eswifi->buf[bytes], cert->buf, cert->len); in map_credentials() 212 bytes += cert->len; in map_credentials() 213 LOG_DBG("cert write len %d\n", cert->len); in map_credentials() 265 static ssize_t eswifi_socket_send(void *obj, const void *buf, size_t len, in eswifi_socket_send() argument 288 snprintk(eswifi->buf, sizeof(eswifi->buf), "S3=%u\r", len); in eswifi_socket_send() 292 memcpy(&eswifi->buf[offset], buf, len); in eswifi_socket_send() 293 offset += len; in eswifi_socket_send() [all …]
|
/Zephyr-latest/drivers/flash/ |
D | spi_flash_at45.c | 117 .len = sizeof(opcode), in check_jedec_id() 122 .len = sizeof(opcode), in check_jedec_id() 126 .len = sizeof(read_id), in check_jedec_id() 164 .len = sizeof(opcode), in read_status_register() 169 .len = sizeof(opcode), in read_status_register() 173 .len = sizeof(uint16_t), in read_status_register() 211 .len = sizeof(conf_binary_page_size), in configure_page_size() 245 void *data, size_t len) in spi_flash_at45_read() argument 250 if (!is_valid_request(offset, len, cfg->chip_size)) { in spi_flash_at45_read() 263 .len = sizeof(op_and_addr), in spi_flash_at45_read() [all …]
|
/Zephyr-latest/tests/bsim/bluetooth/host/misc/hfc_multilink/tester/src/ |
D | tester.c | 154 LOG_HEXDUMP_ERR(buf->data, buf->len, "HCI META EVT"); in handle_meta_event() 235 __ASSERT_NO_MSG(buf->len == hdr->len); in handle_l2cap() 236 LOG_DBG("Packet for CID %u len %u", cid, buf->len); in handle_l2cap() 237 LOG_HEXDUMP_DBG(buf->data, buf->len, "l2cap"); in handle_l2cap() 254 uint16_t len, handle; in handle_acl() local 258 len = sys_le16_to_cpu(hdr->len); in handle_acl() 267 LOG_DBG("ACL: conn %d len %d flags %d", handle, len, flags); in handle_acl() 268 LOG_HEXDUMP_DBG(buf->data, buf->len, "HCI ACL"); in handle_acl() 275 LOG_HEXDUMP_DBG(buf->data, buf->len, "HCI RX"); in recv() 296 LOG_HEXDUMP_ERR(buf->data, buf->len, "HCI EVT"); in recv() [all …]
|
/Zephyr-latest/drivers/entropy/ |
D | entropy_stm32.c | 70 #define RNG_POOL_DEFINE(name, len) uint8_t name[sizeof(struct rng_pool) + (len)] argument 365 static uint16_t generate_from_isr(uint8_t *buf, uint16_t len) in generate_from_isr() argument 367 uint16_t remaining_len = len; in generate_from_isr() 431 return len; in generate_from_isr() 485 uint16_t len) in rng_pool_get() argument 505 if (available < len) { in rng_pool_get() 506 len = available; in rng_pool_get() 513 rngp->first_alloc = (first + len) & mask; in rng_pool_get() 516 while (likely(len--)) { in rng_pool_get() 532 len = dst - buf; in rng_pool_get() [all …]
|
/Zephyr-latest/tests/subsys/mgmt/mcumgr/os_mgmt_echo/src/ |
D | main.c | 58 zassert_equal(sizeof(expected_response), nb->len, in ZTEST() 60 nb->len); in ZTEST() 62 zassert_mem_equal(expected_response, nb->data, nb->len, in ZTEST()
|
/Zephyr-latest/drivers/bluetooth/hci/ |
D | hci_silabs_efr32.c | 117 static struct net_buf *slz_bt_recv_evt(const uint8_t *data, const int16_t len) in slz_bt_recv_evt() argument 123 const int16_t params_len = len - sizeof(*hdr); in slz_bt_recv_evt() 125 if (len < sizeof(*hdr)) { in slz_bt_recv_evt() 137 net_buf_add_mem(buf, data, len); in slz_bt_recv_evt() 142 static struct net_buf *slz_bt_recv_acl(const uint8_t *data, const int16_t len) in slz_bt_recv_acl() argument 146 net_buf_add_mem(buf, data, len); in slz_bt_recv_acl() 158 uint32_t hci_common_transport_transmit(uint8_t *data, int16_t len) in hci_common_transport_transmit() argument 163 LOG_HEXDUMP_DBG(data, len, "host packet data:"); in hci_common_transport_transmit() 165 if (len < 1) { in hci_common_transport_transmit() 173 len -= 1; in hci_common_transport_transmit() [all …]
|
/Zephyr-latest/samples/bluetooth/channel_sounding/src/ |
D | connected_cs_initiator.c | 28 const void *buf, uint16_t len, uint16_t offset, uint8_t flags); 46 const void *buf, uint16_t len, uint16_t offset, uint8_t flags) in on_attr_write_cb() argument 56 if (len != sizeof(latest_local_steps)) { in on_attr_write_cb() 63 memcpy(latest_peer_steps, &data[offset], len); in on_attr_write_cb() 67 return len; in on_attr_write_cb() 76 if (result->step_data_buf->len <= STEP_DATA_BUF_LEN) { in subevent_result_cb() 78 result->step_data_buf->len); in subevent_result_cb() 79 latest_step_data_len = result->step_data_buf->len; in subevent_result_cb() 82 result->step_data_buf->len, STEP_DATA_BUF_LEN); in subevent_result_cb() 173 uint8_t len; in data_cb() local [all …]
|
/Zephyr-latest/subsys/jwt/ |
D | jwt.c | 67 if (st->len < 2) { in base64_outch() 73 st->len--; in base64_outch() 112 static int base64_append_bytes(const char *bytes, size_t len, in base64_append_bytes() argument 117 while (len-- > 0) { in base64_append_bytes() 155 if (jwt_header_len > builder->len) { in jwt_add_header() 161 builder->len -= jwt_header_len - 1; in jwt_add_header() 210 builder->len = buffer_size; in jwt_init_builder()
|