/Zephyr-latest/tests/drivers/sensor/bmi160/include/ |
D | checks.h | 18 __ASSERT_NO_MSG(msgs[0].len == 1); in bmi160_i2c_is_touching_reg() 22 return (start_reg <= reg) && (reg < start_reg + msgs[1].len); in bmi160_i2c_is_touching_reg() 33 return (start_reg <= reg) && (reg < start_reg + tx_data->len); in bmi160_spi_is_touching_reg()
|
/Zephyr-latest/subsys/net/lib/http/ |
D | http_server_core.c | 80 socklen_t len; in http_server_init() local 121 len = sizeof(*addr.addr6); in http_server_init() 128 len = sizeof(*addr.addr4); in http_server_init() 135 len = sizeof(*addr.addr6); in http_server_init() 141 len = sizeof(*addr.addr4); in http_server_init() 212 if (zsock_bind(fd, addr.addr, len) < 0) { in http_server_init() 221 len = sizeof(addr_storage); in http_server_init() 222 if (zsock_getsockname(fd, addr.addr, &len) < 0) { in http_server_init() 725 int len = 0; in path_len_without_query() local 727 while ((path[len] != '\0') && (path[len] != '?')) { in path_len_without_query() [all …]
|
/Zephyr-latest/subsys/bluetooth/mesh/ |
D | crypto.c | 27 size_t len, uint8_t mac[16]) in bt_mesh_aes_cmac_one_raw_key() argument 29 struct bt_mesh_sg sg = {.data = m, .len = len}; in bt_mesh_aes_cmac_one_raw_key() 35 size_t len, uint8_t mac[16]) in bt_mesh_aes_cmac_one_mesh_key() argument 37 struct bt_mesh_sg sg = {.data = m, .len = len}; in bt_mesh_aes_cmac_one_mesh_key() 42 static int bt_mesh_sha256_hmac_one_raw_key(const uint8_t key[32], const void *m, size_t len, in bt_mesh_sha256_hmac_one_raw_key() argument 45 struct bt_mesh_sg sg = {.data = m, .len = len}; in bt_mesh_sha256_hmac_one_raw_key() 103 sg[0].len = 0; in bt_mesh_k2() 105 sg[1].len = p_len; in bt_mesh_k2() 107 sg[2].len = sizeof(pad); in bt_mesh_k2() 117 sg[0].len = sizeof(out); in bt_mesh_k2() [all …]
|
/Zephyr-latest/tests/lib/ringbuffer/src/ |
D | main.c | 745 uint32_t len; in ZTEST() local 752 len = 3; in ZTEST() 753 out_len = ring_buf_put(&ringbuf_raw, indata, len); in ZTEST() 754 zassert_equal(out_len, len); in ZTEST() 756 out_len = ring_buf_get(&ringbuf_raw, outdata, len); in ZTEST() 757 zassert_equal(out_len, len); in ZTEST() 851 uint32_t len; in ZTEST() local 860 len = ring_buf_put(&ringbuf_raw, indata, req_len); in ZTEST() 861 zassert_equal(req_len, len); in ZTEST() 863 len = ring_buf_get(&ringbuf_raw, outdata, req_len); in ZTEST() [all …]
|
/Zephyr-latest/subsys/mgmt/ec_host_cmd/backends/ |
D | ec_host_cmd_backend_simulator.c | 67 int ec_host_cmd_backend_sim_data_received(const uint8_t *buffer, size_t len) in ec_host_cmd_backend_sim_data_received() argument 71 memcpy(hc_sim->rx_ctx->buf, buffer, len); in ec_host_cmd_backend_sim_data_received() 72 hc_sim->rx_ctx->len = len; in ec_host_cmd_backend_sim_data_received()
|
/Zephyr-latest/include/zephyr/sd/ |
D | sdio.h | 122 uint32_t len); 139 uint32_t len); 189 uint32_t len); 206 uint32_t len);
|
/Zephyr-latest/tests/bsim/bluetooth/ll/edtt/gatt_test_app/src/gatt/ |
D | service_d_1.c | 56 uint16_t len, uint16_t offset) in read_value_v12() argument 60 return bt_gatt_attr_read(conn, attr, buf, len, offset, value, in read_value_v12() 78 void *buf, uint16_t len, uint16_t offset) in read_value_v11__128_bit_uuid() argument 86 return bt_gatt_attr_read(conn, attr, buf, len, offset, value, in read_value_v11__128_bit_uuid()
|
/Zephyr-latest/samples/drivers/lcd_cyclonev_socdk/src/ |
D | main.c | 34 void send_string(uint8_t *str_ptr, int len) in send_string() argument 38 ret = i2c_write(i2c, str_ptr, len, LCD_ADDRESS); in send_string() 91 int len = strlen((const unsigned char *) &string); in main() local 103 send_string((uint8_t *)&string, len); in main()
|
/Zephyr-latest/samples/subsys/usb/webusb/src/ |
D | main.c | 256 int32_t *len, uint8_t **data) in custom_handle_req() argument 265 *len = sizeof(msos1_string_descriptor); in custom_handle_req() 286 int32_t *len, uint8_t **data) in vendor_handle_req() argument 295 *len = sizeof(webusb_allowed_origins); in vendor_handle_req() 309 *len = sizeof(webusb_origin_url); in vendor_handle_req() 318 *len = sizeof(msosv2_descriptor); in vendor_handle_req() 329 *len = sizeof(msos1_compatid_descriptor); in vendor_handle_req()
|
/Zephyr-latest/subsys/fs/fcb/ |
D | fcb_append.c | 60 fcb_append(struct fcb *fcb, uint16_t len, struct fcb_entry *append_loc) in fcb_append() argument 71 cnt = fcb_put_len(fcb, tmp_str, len); in fcb_append() 76 len = fcb_len_in_flash(fcb, len) + fcb_len_in_flash(fcb, FCB_CRC_SZ); in fcb_append() 85 if (active->fe_elem_off + len + cnt > active->fe_sector->fs_size) { in fcb_append() 88 fcb_len_in_flash(fcb, sizeof(struct fcb_disk_area)) + len + cnt)) { in fcb_append() 110 active->fe_elem_off = append_loc->fe_data_off + len; in fcb_append()
|
/Zephyr-latest/samples/boards/phytec/reel_board/mesh_badge/src/ |
D | main.c | 31 void *buf, uint16_t len, uint16_t offset) in read_name() argument 35 return bt_gatt_attr_read(conn, attr, buf, len, offset, value, in read_name() 40 const void *buf, uint16_t len, uint16_t offset, in write_name() argument 50 if (len >= CONFIG_BT_DEVICE_NAME_MAX) { in write_name() 54 memcpy(name, buf, len); in write_name() 55 name[len] = '\0'; in write_name() 64 return len; in write_name()
|
/Zephyr-latest/lib/net_buf/ |
D | buf.c | 498 clone->len = buf->len; in net_buf_clone() 513 net_buf_add_mem(clone, buf->data, buf->len); in net_buf_clone() 610 size_t offset, size_t len) in net_buf_linearize() argument 616 len = MIN(len, dst_len); in net_buf_linearize() 621 while (frag && offset >= frag->len) { in net_buf_linearize() 622 offset -= frag->len; in net_buf_linearize() 628 while (frag && len > 0) { in net_buf_linearize() 629 to_copy = MIN(len, frag->len - offset); in net_buf_linearize() 635 len -= to_copy; in net_buf_linearize() 649 size_t net_buf_append_bytes(struct net_buf *buf, size_t len, in net_buf_append_bytes() argument [all …]
|
/Zephyr-latest/subsys/net/l2/ppp/ |
D | ppp_stats.c | 21 void *data, size_t len) in ppp_stats_get() argument 42 if (len != len_chk || !src) { in ppp_stats_get() 46 memcpy(data, src, len); in ppp_stats_get()
|
/Zephyr-latest/drivers/serial/ |
D | uart_rtt.c | 93 const uint8_t *buf, size_t len, int32_t timeout) in uart_rtt_tx() argument 102 SEGGER_RTT_Write(ch, buf, len); in uart_rtt_tx() 109 .data.tx.len = len in uart_rtt_tx() 126 uint8_t *buf, size_t len, int32_t timeout) in uart_rtt_rx_enable() argument 136 ARG_UNUSED(len); in uart_rtt_rx_enable() 151 uint8_t *buf, size_t len) in uart_rtt_rx_buf_rsp() argument 156 ARG_UNUSED(len); in uart_rtt_rx_buf_rsp()
|
/Zephyr-latest/samples/net/sockets/echo_service/src/ |
D | main.c | 61 int len, out_len; in receive_data() local 64 len = recvfrom(client, buf, buflen, 0, in receive_data() 66 if (len <= 0) { in receive_data() 67 if (len < 0) { in receive_data() 91 out_len = sendto(client, p, len, 0, in receive_data() 94 out_len = send(client, p, len, 0); in receive_data() 103 len -= out_len; in receive_data() 104 } while (len); in receive_data()
|
/Zephyr-latest/tests/drivers/uart/uart_mix_fifo_poll/src/ |
D | main.c | 172 int len; in rx_isr() local 175 len = uart_fifo_read(uart_dev, buf, BUF_SIZE); in rx_isr() 176 for (int i = 0; i < len; i++) { in rx_isr() 179 } while (len); in rx_isr() 185 int len = uart_fifo_fill(uart_dev, buf, 1); in tx_isr() local 187 int_async_data.cnt += len; in tx_isr() 189 k_busy_wait(len ? 4 : 2); in tx_isr() 213 for (int i = 0; i < evt->data.rx.len; i++) { in async_callback() 269 size_t len = (idx < BUF_SIZE / 2) ? 5 : 1; /* Try various lengths */ in int_async_thread_func() local 270 len = MIN(len, data->max - data->cnt); in int_async_thread_func() [all …]
|
/Zephyr-latest/samples/subsys/settings/src/ |
D | main.c | 37 int alpha_handle_set(const char *name, size_t len, settings_read_cb read_cb, 43 int beta_handle_set(const char *name, size_t len, settings_read_cb read_cb, 64 int alpha_handle_set(const char *name, size_t len, settings_read_cb read_cb, in alpha_handle_set() argument 72 if (len != sizeof(angle_val)) { in alpha_handle_set() 115 int beta_handle_set(const char *name, size_t len, settings_read_cb read_cb, in beta_handle_set() argument 132 if (len > sizeof(source_name_val) - 1) { in beta_handle_set() 270 static int direct_loader(const char *name, size_t len, settings_read_cb read_cb, in direct_loader() argument 333 size_t len; member 338 static int direct_loader_immediate_value(const char *name, size_t len, in direct_loader_immediate_value() argument 351 if (len == one_value->len) { in direct_loader_immediate_value() [all …]
|
/Zephyr-latest/subsys/bluetooth/audio/ |
D | aics.c | 48 const void *buf, uint16_t len, uint16_t offset, 53 const void *buf, uint16_t len, 61 void *buf, uint16_t len, uint16_t offset); 64 void *buf, uint16_t len, 67 void *buf, uint16_t len, uint16_t offset); 72 void *buf, uint16_t len, uint16_t offset); 77 uint16_t len, uint16_t offset); 125 uint16_t len, uint16_t offset) in read_aics_state() argument 132 return bt_gatt_attr_read(conn, attr, buf, len, offset, &inst->srv.state, in read_aics_state() 138 void *buf, uint16_t len, uint16_t offset) in read_aics_gain_settings() argument [all …]
|
/Zephyr-latest/subsys/net/l2/wifi/ |
D | wifi_mgmt.c | 357 void *data, size_t len) in wifi_connect() argument 435 void *data, size_t len) in wifi_scan() argument 464 void *data, size_t len) in wifi_disconnect() argument 506 void *data, size_t len) in wifi_start_roaming() argument 549 void *data, size_t len) in wifi_neighbor_rep_complete() argument 598 size_t len = 0; in wifi_mgmt_raise_neighbor_rep_recv_event() local 616 len = strnlen(bssid, sizeof(bssid) - 1); in wifi_mgmt_raise_neighbor_rep_recv_event() 617 roaming_params.neighbor_rep.neighbor_ap[idx].bssid[len] = (uint8_t)'\0'; in wifi_mgmt_raise_neighbor_rep_recv_event() 622 len = strnlen(bssid_info, sizeof(bssid_info) - 1); in wifi_mgmt_raise_neighbor_rep_recv_event() 623 roaming_params.neighbor_rep.neighbor_ap[idx].bssid_info[len] = in wifi_mgmt_raise_neighbor_rep_recv_event() [all …]
|
/Zephyr-latest/modules/nrf_wifi/bus/ |
D | qspi_if.c | 169 size_t len; member 591 tx_len = cmd->tx_buf->len; in qspi_send_cmd() 596 rx_len = cmd->rx_buf->len; in qspi_send_cmd() 639 .len = sizeof(sr), in qspi_rdsr() 777 .len = sizeof(sr), in qspi_nrfx_configure() 1025 .len = sizeof(p_cfg->nonce[1]) }; in qspi_cmd_encryption() 1054 .len = sizeof(sr), in qspi_RDSR2() 1100 .len = sizeof(sr), in qspi_RDSR1() 1155 .len = sizeof(data), in qspi_WRSR2() 1215 void qspi_update_nonce(unsigned int addr, int len, int hlread) in qspi_update_nonce() argument [all …]
|
/Zephyr-latest/modules/openthread/platform/ |
D | settings.c | 38 static int ot_setting_delete_cb(const char *key, size_t len, in ot_setting_delete_cb() argument 47 ARG_UNUSED(len); in ot_setting_delete_cb() 116 static int ot_setting_exists_cb(const char *key, size_t len, in ot_setting_exists_cb() argument 122 ARG_UNUSED(len); in ot_setting_exists_cb() 160 static int ot_setting_read_cb(const char *key, size_t len, in ot_setting_read_cb() argument 167 ARG_UNUSED(len); in ot_setting_read_cb() 182 if (*(ctx->length) < len) { in ot_setting_read_cb() 183 len = *(ctx->length); in ot_setting_read_cb() 186 ret = read_cb(cb_arg, ctx->value, len); in ot_setting_read_cb() 195 *(ctx->length) = len; in ot_setting_read_cb()
|
/Zephyr-latest/subsys/net/l2/ethernet/ |
D | ethernet_stats.c | 21 void *data, size_t len) in eth_stats_get() argument 43 if (len != len_chk || !src) { in eth_stats_get() 47 memcpy(data, src, len); in eth_stats_get()
|
/Zephyr-latest/tests/boards/mec172xevb_assy6906/qspi/src/ |
D | main.c | 133 spi_bufs[0].len = 1U; in spi_flash_read_status() 135 spi_bufs[1].len = 1U; in spi_flash_read_status() 169 spi_bufs[0].len = 2U; in spi_flash_write_status() 192 spi_bufs[0].len = 1U; in spi_flash_tx_one_byte_cmd() 224 spi_bufs[0].len = 1U; in ZTEST_USER() 226 spi_bufs[1].len = 3U; in ZTEST_USER() 269 spi_bufs[0].len = 4; in ZTEST_USER() 313 spi_bufs[0].len = 4U + BUF_SIZE; in test_spi_single_write() 367 spi_bufs[cnt].len = 4U; in ZTEST_USER() 373 spi_bufs[cnt].len = spi_clocks_to_bytes(((spi_opcode >> 8) & 0xffU), 1u); in ZTEST_USER() [all …]
|
/Zephyr-latest/subsys/logging/ |
D | log_multidomain_link.c | 31 const void *data, size_t len) in log_multidomain_link_on_recv_cb() argument 46 len - offsetof(struct log_multidomain_msg, data)); in log_multidomain_link_on_recv_cb() 56 size_t slen = MIN(len - 1, *link_remote->dst.name.len - 1); in log_multidomain_link_on_recv_cb() 58 *link_remote->dst.name.len = len - 1; in log_multidomain_link_on_recv_cb() 65 size_t slen = MIN(len - 1, *link_remote->dst.name.len - 1); in log_multidomain_link_on_recv_cb() 67 *link_remote->dst.name.len = len - 1; in log_multidomain_link_on_recv_cb() 227 link_remote->dst.name.len = length; in link_remote_get_domain_name() 254 link_remote->dst.name.len = length; in link_remote_get_source_name()
|
/Zephyr-latest/drivers/bluetooth/hci/ |
D | hci_nxp_setup.c | 80 static unsigned char fw_upload_crc8(unsigned char *array, unsigned char len) in fw_upload_crc8() argument 84 crc_8 = crc8(array, len, DI, crc_8, false); in fw_upload_crc8() 204 static int fw_upload_read_data(uint8_t *buffer, uint32_t len) in fw_upload_read_data() argument 208 while (len > 0) { in fw_upload_read_data() 219 len--; in fw_upload_read_data() 268 static void fw_upload_write_data(const uint8_t *buffer, uint32_t len) in fw_upload_write_data() argument 270 for (int i = 0; i < len; i++) { in fw_upload_write_data() 321 uint32_t len; in fw_upload_wait_req() local 327 len = A6REQ_PAYLOAD_LEN + 1; in fw_upload_wait_req() 330 len = AbREQ_PAYLOAD_LEN + 1; in fw_upload_wait_req() [all …]
|