Home
last modified time | relevance | path

Searched refs:len (Results 476 – 500 of 2148) sorted by relevance

1...<<11121314151617181920>>...86

/Zephyr-latest/tests/bsim/bluetooth/mesh/src/
Dmesh_test.h161 size_t len; member
189 int bt_mesh_test_recv(uint16_t len, uint16_t dst, const uint8_t *uuid, k_timeout_t timeout);
193 int bt_mesh_test_send(uint16_t addr, const uint8_t *uuid, size_t len,
195 int bt_mesh_test_send_async(uint16_t addr, const uint8_t *uuid, size_t len,
199 int bt_mesh_test_send_data(uint16_t addr, const uint8_t *uuid, uint8_t *data, size_t len,
205 void bt_mesh_test_send_over_adv(void *data, size_t len);
206 void bt_mesh_test_send_over_adv_cb(void *data, size_t len, const struct bt_mesh_send_cb *cb,
/Zephyr-latest/tests/drivers/mspi/flash/src/
Dmain.c27 static void prepare_test_pattern(uint32_t pattern_index, uint8_t *actualf, uint32_t len) in prepare_test_pattern() argument
35 for (uint32_t i = 0; i < len / 4; i++) { in prepare_test_pattern()
41 for (uint32_t i = 0; i < len / 4; i++) { in prepare_test_pattern()
47 for (uint32_t i = 0; i < len; i++) { in prepare_test_pattern()
53 for (uint32_t i = 0; i < len; i++) { in prepare_test_pattern()
59 for (uint32_t i = 0; i < len; i++) { in prepare_test_pattern()
66 for (uint32_t i = 0; i < len; i++) { in prepare_test_pattern()
/Zephyr-latest/drivers/sensor/amd_sb_tsi/
Dsb_tsi_emul.c63 if (msgs->len != 1) { in sb_tsi_emul_transfer_i2c()
64 LOG_ERR("Unexpected msg0 length %d", msgs->len); in sb_tsi_emul_transfer_i2c()
72 switch (msgs->len) { in sb_tsi_emul_transfer_i2c()
78 LOG_ERR("Unexpected msg1 length %d", msgs->len); in sb_tsi_emul_transfer_i2c()
82 if (msgs->len != 1) { in sb_tsi_emul_transfer_i2c()
83 LOG_ERR("Unexpected msg1 length %d", msgs->len); in sb_tsi_emul_transfer_i2c()
/Zephyr-latest/drivers/bbram/
Dbbram_microchip_mcp7940n_emul.c53 if (msgs->len < 1) { in mcp7940n_emul_transfer_i2c()
54 LOG_ERR("Unexpected msg0 length %d", msgs->len); in mcp7940n_emul_transfer_i2c()
76 regn + msgs->len <= in mcp7940n_emul_transfer_i2c()
78 for (int i = 0; i < msgs->len; ++i) { in mcp7940n_emul_transfer_i2c()
91 regn + msgs->len - 1 <= in mcp7940n_emul_transfer_i2c()
93 for (int i = 0; i < msgs->len; ++i) { in mcp7940n_emul_transfer_i2c()
/Zephyr-latest/tests/subsys/fs/fcb/src/
Dmain.c82 uint16_t len; in fcb_test_data_walk_cb() local
88 len = entry_ctx->loc.fe_data_len; in fcb_test_data_walk_cb()
90 zassert_true(len == *var_cnt, ""); in fcb_test_data_walk_cb()
94 test_data, len); in fcb_test_data_walk_cb()
97 for (i = 0; i < len; i++) { in fcb_test_data_walk_cb()
98 zassert_true(test_data[i] == fcb_test_append_data(len, i), in fcb_test_data_walk_cb()
/Zephyr-latest/soc/nxp/imxrt/imxrt7xx/hifi4/
Dlinker.ld23 len = MEM_RESET_TEXT_SIZE
26 len = MEM_RESET_LIT_SIZE
29 len = MEM_VECBASE_LIT_SIZE
32 len = MEM_VECT_LIT_SIZE
35 len = MEM_VECT_TEXT_SIZE
38 len = MEM_VECT_LIT_SIZE
41 len = MEM_VECT_TEXT_SIZE
44 len = MEM_VECT_LIT_SIZE
47 len = MEM_VECT_TEXT_SIZE
50 len = MEM_VECT_LIT_SIZE
[all …]
/Zephyr-latest/soc/intel/intel_adsp/cavs/include/
Dxtensa-cavs-linker.ld62 len = MEM_VECBASE_LIT_SIZE
65 len = MEM_VECT_LIT_SIZE
68 len = MEM_VECT_TEXT_SIZE
71 len = MEM_VECT_LIT_SIZE
74 len = MEM_VECT_TEXT_SIZE
77 len = MEM_VECT_LIT_SIZE
80 len = MEM_VECT_TEXT_SIZE
83 len = MEM_VECT_LIT_SIZE
86 len = MEM_VECT_TEXT_SIZE
89 len = MEM_VECT_LIT_SIZE
[all …]
/Zephyr-latest/drivers/sensor/meas/ms5607/
Dms5607_spi.c25 .len = 1, in ms5607_spi_raw_cmd()
56 .len = 3, in ms5607_spi_read_prom()
70 .len = 3, in ms5607_spi_read_prom()
106 .len = 4, in ms5607_spi_read_adc()
118 .len = 4, in ms5607_spi_read_adc()
/Zephyr-latest/include/zephyr/logging/
Dlog_multidomain_helper.h145 int (*send)(struct log_multidomain_link *link, void *data, size_t len);
154 size_t *len; member
186 int (*send)(struct log_multidomain_backend *backend, void *data, size_t len);
209 const void *data, size_t len);
232 const void *data, size_t len);
/Zephyr-latest/tests/bsim/bluetooth/host/adv/chain/src/
Dmain.c62 uint8_t len; in data_cb() local
67 len = MIN(data->data_len, NAME_LEN - 1); in data_cb()
68 (void)memcpy(name, data->data, len); in data_cb()
69 name[len] = '\0'; in data_cb()
90 data_len = buf->len; in scan_recv()
/Zephyr-latest/tests/net/lib/http_server/crime/src/
Dmain.c70 size_t len; in test_crime() local
108 len = sizeof(index_html_gz); in test_crime()
110 while (recv_len < len) { in test_crime()
122 zassert_equal(len, sizeof(compressed_inc_file), "Invalid compressed file size"); in test_crime()
124 ret = memcmp(data, compressed_inc_file, len); in test_crime()
/Zephyr-latest/subsys/usb/device/class/audio/
Daudio.c529 int32_t *len, uint8_t **data, in handle_fu_mute_req() argument
540 if (*len != LEN(1, MUTE)) { in handle_fu_mute_req()
546 evt->val_len = *len; in handle_fu_mute_req()
547 memcpy(control_val, *data, *len); in handle_fu_mute_req()
553 *len = LEN(1, MUTE); in handle_fu_mute_req()
563 struct usb_setup_packet *setup, int32_t *len, uint8_t **data, in handle_fu_volume_req() argument
575 if (*len != LEN(1, VOLUME)) { in handle_fu_volume_req()
576 LOG_ERR("*len: %d, LEN(1, VOLUME): %d", *len, LEN(1, VOLUME)); in handle_fu_volume_req()
593 evt->val_len = *len; in handle_fu_volume_req()
598 *len = LEN(ch_cnt, VOLUME); in handle_fu_volume_req()
[all …]
/Zephyr-latest/subsys/bluetooth/mesh/
Ddelayable_msg.c39 uint16_t len; member
170 uint16_t len; in push_msg_from_delayable_msgs() local
177 len = msg->len; in push_msg_from_delayable_msgs()
182 uint16_t tmp = MIN((uint16_t)CONFIG_BT_MESH_ACCESS_DELAYABLE_MSG_CHUNK_SIZE, len); in push_msg_from_delayable_msgs()
186 len -= tmp; in push_msg_from_delayable_msgs()
229 uint16_t len = buf->len; in bt_mesh_delayable_msg_manage() local
263 uint16_t tmp = MIN(CONFIG_BT_MESH_ACCESS_DELAYABLE_MSG_CHUNK_SIZE, buf->len); in bt_mesh_delayable_msg_manage()
278 msg->len = len; in bt_mesh_delayable_msg_manage()
Dpb_gatt_srv.c45 const void *data, uint16_t len,
67 uint16_t len, uint16_t offset, uint8_t flags) in gatt_recv() argument
76 if (len < 1) { in gatt_recv()
86 return bt_mesh_proxy_msg_recv(conn, buf, len); in gatt_recv()
257 const void *data, uint16_t len, in gatt_send() argument
260 LOG_DBG("%u bytes: %s", len, bt_hex(data, len)); in gatt_send()
264 .len = len, in gatt_send()
/Zephyr-latest/subsys/usb/device_next/
Dusbd_ch9.c471 uint16_t len; in sreq_get_desc_cfg() local
519 len = MIN(net_buf_tailroom(buf), (*dhp)->bLength); in sreq_get_desc_cfg()
520 net_buf_add_mem(buf, *dhp, len); in sreq_get_desc_cfg()
525 if (buf->len > setup->wLength) { in sreq_get_desc_cfg()
526 net_buf_remove_mem(buf, buf->len - setup->wLength); in sreq_get_desc_cfg()
529 LOG_DBG("Get Configuration descriptor %u, len %u", idx, buf->len); in sreq_get_desc_cfg()
572 size_t len; in string_ascii7_to_utf16le() local
593 len = MIN(net_buf_tailroom(buf), MIN(head.bLength, wLength)); in string_ascii7_to_utf16le()
596 net_buf_add_mem(buf, &head, MIN(len, sizeof(head))); in string_ascii7_to_utf16le()
597 len -= MIN(len, sizeof(head)); in string_ascii7_to_utf16le()
[all …]
/Zephyr-latest/lib/utils/
Dutf8.c19 const size_t len = strlen(utf8_str); in utf8_trunc() local
21 if (len == 0U) { in utf8_trunc()
26 char *last_byte_p = utf8_str + len - 1U; in utf8_trunc()
/Zephyr-latest/subsys/net/l2/ieee802154/
Dieee802154_6lo_fragment.c100 uint8_t pos = frag->len; in set_up_frag_hdr()
124 uint8_t capacity = frag->size - frag->len; in calc_payload_capacity()
132 uint8_t remainder = ctx->buf->len - (ctx->pos - ctx->buf->data); in copy_data()
135 memcpy(frame_buf->data + frame_buf->len, ctx->pos, move); in copy_data()
143 uint8_t remainder = (ctx->buf->len - (ctx->pos - ctx->buf->data)); in update_fragment_ctx()
241 ipv6->len = htons(size - NET_IPV6H_LEN); in update_protocol_header_lengths()
251 udp->len = htons(size - NET_IPV6H_LEN); in update_protocol_header_lengths()
360 size_t len = 0U; in fragment_cached_pkt_len() local
373 len += frag->len - frag_hdr_len; in fragment_cached_pkt_len()
392 return len + hdr_diff; in fragment_cached_pkt_len()
[all …]
/Zephyr-latest/subsys/net/
Dhostname.c46 int net_hostname_set(char *host, size_t len) in net_hostname_set() argument
48 if (len > NET_HOSTNAME_MAX_LEN) { in net_hostname_set()
52 memcpy(hostname, host, len); in net_hostname_set()
53 hostname[len] = 0; in net_hostname_set()
/Zephyr-latest/drivers/firmware/scmi/
Dpower.c35 msg.len = sizeof(domain_id); in scmi_power_state_get()
39 reply.len = sizeof(reply_buffer); in scmi_power_state_get()
78 msg.len = sizeof(*cfg); in scmi_power_state_set()
82 reply.len = sizeof(status); in scmi_power_state_set()
/Zephyr-latest/include/zephyr/net/
Dcoap_client.h53 size_t offset, const uint8_t *payload, size_t len,
65 size_t len; /**< Length of the payload */ member
80 uint16_t len; member
85 uint8_t len; member
/Zephyr-latest/subsys/settings/src/
Dsettings_priv.h52 size_t len; /* len of line without len value */ member
100 off_t src_off, size_t len);
103 size_t *len),
105 size_t len),
/Zephyr-latest/samples/subsys/mgmt/osdp/control_panel/src/
Dmain.c31 int key_press_callback(int pd, uint8_t *data, int len) in key_press_callback() argument
37 int card_read_callback(int pd, int format, uint8_t *data, int len) in card_read_callback() argument
42 pd, format, len); in card_read_callback()
44 for (i = 0; i < len; i++) { in card_read_callback()
/Zephyr-latest/tests/subsys/mgmt/mcumgr/zcbor_bulk/src/
Dmain.c27 zassert_equal(map_one[0].key.len, sizeof("hello") - 1); in ZTEST()
32 zassert_equal(map_one[0].key.len, map_two[0].key.len); in ZTEST()
71 zassert_equal(sizeof("world") - 1, world.len, "Expected length %d", in ZTEST()
73 zassert_equal(0, memcmp(world.value, "world", world.len), in ZTEST()
74 "Expected \"world\", got %.*s", (int)world.len, world.value); in ZTEST()
112 zassert_equal(sizeof("world") - 1, world.len, "Expected length %d", in ZTEST()
114 zassert_equal(0, memcmp(world.value, "world", world.len), in ZTEST()
115 "Expected \"world\", got %.*s", (int)world.len, world.value); in ZTEST()
185 zassert_equal(0, world.len, "Expected to be unmodified"); in ZTEST()
222 zassert_equal(sizeof("world") - 1, world.len, "Expected length %d", in ZTEST()
[all …]
/Zephyr-latest/subsys/mgmt/osdp/src/
Dosdp_common.h413 int (*send)(void *data, uint8_t *buf, int len);
515 int len, int max_len);
516 int osdp_phy_check_packet(struct osdp_pd *pd, uint8_t *buf, int len,
518 int osdp_phy_decode_packet(struct osdp_pd *p, uint8_t *buf, int len,
527 void osdp_dump(const char *head, uint8_t *buf, int len);
528 uint16_t osdp_compute_crc16(const uint8_t *buf, size_t len);
539 void osdp_encrypt(uint8_t *key, uint8_t *iv, uint8_t *data, int len);
540 void osdp_decrypt(uint8_t *key, uint8_t *iv, uint8_t *data, int len);
551 int osdp_decrypt_data(struct osdp_pd *pd, int is_cmd, uint8_t *data, int len);
552 int osdp_encrypt_data(struct osdp_pd *pd, int is_cmd, uint8_t *data, int len);
[all …]
/Zephyr-latest/subsys/bluetooth/host/shell/
Dgatt.c37 uint32_t len; member
42 static void update_write_stats(uint16_t len) in update_write_stats() argument
55 write_stats.total += len; in update_write_stats()
61 write_stats.len = 0U; in update_write_stats()
65 write_stats.len += len; in update_write_stats()
66 write_stats.rate = ((uint64_t)write_stats.len << 3) * in update_write_stats()
474 uint16_t len = POINTER_TO_UINT(user_data); in write_without_rsp_cb() local
476 update_write_stats(len); in write_without_rsp_cb()
487 uint16_t len; in cmd_write_without_rsp() local
506 len = 1U; in cmd_write_without_rsp()
[all …]

1...<<11121314151617181920>>...86