/Zephyr-latest/arch/x86/zefi/ |
D | printf.h | 19 int len; member 29 if (r->idx <= r->len) { in pc() 65 if (r->buf && r->idx < r->len) { in endrec() 150 static inline int snprintf(char *buf, unsigned long len, const char *f, ...) in snprintf() argument 153 struct _pfr r = { .buf = buf, .len = len }; in snprintf() 162 struct _pfr r = { .buf = buf, .len = 0x7fffffff }; in sprintf()
|
/Zephyr-latest/tests/bluetooth/controller/ctrl_isoal/src/ |
D | isoal_test_debug.c | 62 pdu_meta->pdu->len); in isoal_test_debug_print_rx_pdu() 64 for (uint8_t i = 0U; i < pdu->len; i++) { in isoal_test_debug_print_rx_pdu() 120 uint16_t len = sdu_frag->sdu_frag_size; in isoal_test_debug_print_rx_sdu() local 128 len); in isoal_test_debug_print_rx_sdu() 129 for (int i = 0; i < len; i++) { in isoal_test_debug_print_rx_sdu() 136 (sdu->total_sdu_size != len || in isoal_test_debug_print_rx_sdu() 166 pdu->len); in isoal_test_debug_print_tx_pdu() 168 for (int i = 0; i < pdu->len; i++) { in isoal_test_debug_print_tx_pdu() 214 uint16_t len; in isoal_test_debug_print_tx_sdu() local 219 len = tx_sdu->size; in isoal_test_debug_print_tx_sdu() [all …]
|
/Zephyr-latest/tests/subsys/logging/log_api/src/ |
D | mock_backend.c | 81 int len = strlen(str); in mock_log_backend_generic_record() local 83 __ASSERT_NO_MSG(len < sizeof(exp->str)); in mock_log_backend_generic_record() 85 memcpy(exp->str, str, len); in mock_log_backend_generic_record() 86 exp->str[len] = 0; in mock_log_backend_generic_record() 166 size_t len; in process() local 170 data = log_msg_get_data(&msg->log, &len); in process() 172 zassert_equal(exp->data_len, len); in process() 174 zassert_equal(memcmp(data, exp->data, len), 0); in process() 180 data = log_msg_get_package(&msg->log, &len); in process() 190 len = cbpprintf(out, &s, data); in process() [all …]
|
/Zephyr-latest/drivers/entropy/ |
D | entropy_cc13xx_cc26xx.c | 95 uint16_t len) in entropy_cc13xx_cc26xx_get_entropy() argument 112 while (len) { in entropy_cc13xx_cc26xx_get_entropy() 114 cnt = ring_buf_get(&data->pool, buf, len); in entropy_cc13xx_cc26xx_get_entropy() 119 len -= cnt; in entropy_cc13xx_cc26xx_get_entropy() 170 uint8_t *buf, uint16_t len, in entropy_cc13xx_cc26xx_get_entropy_isr() argument 175 uint16_t read = len; in entropy_cc13xx_cc26xx_get_entropy_isr() 181 cnt = ring_buf_get(&data->pool, buf, len); in entropy_cc13xx_cc26xx_get_entropy_isr() 184 if ((cnt == len) || ((flags & ENTROPY_BUSYWAIT) == 0U)) { in entropy_cc13xx_cc26xx_get_entropy_isr() 188 len -= cnt; in entropy_cc13xx_cc26xx_get_entropy_isr() 191 while (len) { in entropy_cc13xx_cc26xx_get_entropy_isr() [all …]
|
/Zephyr-latest/tests/bsim/bluetooth/mesh/src/ |
D | test_transport.c | 121 uint16_t len; member 124 {.len = 1, .flags = 0}, 125 {.len = 1, .flags = FORCE_SEGMENTATION}, 126 {.len = BT_MESH_APP_SEG_SDU_MAX, .flags = 0}, 127 {.len = BT_MESH_APP_SEG_SDU_MAX, .flags = FORCE_SEGMENTATION}, 130 {.len = BT_MESH_APP_SEG_SDU_MAX + 1, .flags = 0}, 131 {.len = 256, .flags = LONG_MIC}, 132 {.len = BT_MESH_TX_SDU_MAX - BT_MESH_MIC_SHORT, .flags = 0}, 144 err = bt_mesh_test_send(rx_cfg.addr, NULL, test_vector[i].len, in test_tx_unicast() 161 err = bt_mesh_test_send(GROUP_ADDR, NULL, test_vector[i].len, in test_tx_group() [all …]
|
/Zephyr-latest/tests/bsim/bluetooth/host/gatt/settings/src/ |
D | settings.c | 30 int len; member 57 static ssize_t settings_line_read_cb(void *cb_arg, void *data, size_t len) in settings_line_read_cb() argument 61 if ((valctx->len / 2) > len) { in settings_line_read_cb() 67 len = valctx->len / 2; in settings_line_read_cb() 69 for (int i = 0; i < len; i++, n++) { in settings_line_read_cb() 75 return len; in settings_line_read_cb() 111 valctx.len = vallen; in settings_custom_load()
|
/Zephyr-latest/subsys/logging/frontends/ |
D | log_frontend_dict_uart.c | 18 uint16_t len: 12; member 53 return (uint32_t)hdr->hdr.len; in get_wlen() 109 size_t len = sizeof(uint32_t) * pkt->hdr.len - pkt->hdr.noff - in tx() local 113 for (int i = 0; i < len; i++) { in tx() 118 int err = uart_tx(uart_dev, pkt->data, len, SYS_FOREVER_US); in tx() 130 size_t len = sizeof(struct log_frontend_uart_dropped_pkt); in add_drop_msg() local 131 size_t wlen = DIV_ROUND_UP(len, sizeof(uint32_t)); in add_drop_msg() 144 pkt->hdr.len = wlen; in add_drop_msg() 145 pkt->hdr.noff = sizeof(uint32_t) * wlen - len; in add_drop_msg() 201 size_t len = sizeof(uint32_t) * pkt->hdr.len - pkt->hdr.noff - in uart_isr_callback() local [all …]
|
/Zephyr-latest/drivers/bluetooth/hci/ |
D | ipc.c | 100 if (remaining != hdr.len) { in bt_ipc_evt_recv() 101 LOG_ERR("Event payload length is not correct (%u != %u)", remaining, hdr.len); in bt_ipc_evt_recv() 104 LOG_DBG("len %u", hdr.len); in bt_ipc_evt_recv() 154 if (remaining != sys_le16_to_cpu(hdr.len)) { in bt_ipc_acl_recv() 156 sys_le16_to_cpu(hdr.len)); in bt_ipc_acl_recv() 205 if (remaining != bt_iso_hdr_len(sys_le16_to_cpu(hdr.len))) { in bt_ipc_iso_recv() 207 bt_iso_hdr_len(sys_le16_to_cpu(hdr.len))); in bt_ipc_iso_recv() 225 static void bt_ipc_rx(const struct device *dev, const uint8_t *data, size_t len) in bt_ipc_rx() argument 230 size_t remaining = len; in bt_ipc_rx() 232 LOG_HEXDUMP_DBG(data, len, "ipc data:"); in bt_ipc_rx() [all …]
|
/Zephyr-latest/subsys/net/l2/ppp/ |
D | options.c | 24 uint8_t len, void *user_data), in ppp_parse_options() argument 109 uint8_t code, uint8_t len, in ppp_parse_option_conf_req_unsupported() argument 123 code, len); in ppp_parse_option_conf_req_unsupported() 132 net_pkt_write_u8(ret_pkt, len + sizeof(code) + sizeof(len)); in ppp_parse_option_conf_req_unsupported() 134 if (len > 0) { in ppp_parse_option_conf_req_unsupported() 135 net_pkt_copy(ret_pkt, pkt, len); in ppp_parse_option_conf_req_unsupported() 142 uint8_t code, uint8_t len, in ppp_parse_option_conf_req_supported() argument 258 struct net_pkt *pkt, uint8_t len, 285 uint8_t len, void *user_data) in ppp_my_option_parse() argument 298 return d->handle(ctx, pkt, len, info, data); in ppp_my_option_parse() [all …]
|
/Zephyr-latest/tests/subsys/rtio/rtio_i2c/src/ |
D | main.cpp | 48 .len = ARRAY_SIZE(data), in ZTEST() 55 zassert_equal(msg.len, msgs[0].len); in ZTEST() 56 zassert_mem_equal(msg.buf, msgs[0].buf, msg.len); in ZTEST() 100 zassert_equal(ARRAY_SIZE(data), msgs[0].len); in ZTEST() 101 zassert_mem_equal(data, msgs[0].buf, msgs[0].len); in ZTEST() 126 .len = ARRAY_SIZE(buffer), in ZTEST() 133 zassert_equal(msg.len, msgs[0].len); in ZTEST() 135 for (uint8_t i = 0; i < msg.len; ++i) { in ZTEST() 231 .len = 2, in ZTEST() 236 .len = 2, in ZTEST() [all …]
|
/Zephyr-latest/subsys/bluetooth/host/ |
D | gatt.c | 97 void *buf, uint16_t len, uint16_t offset) in read_name() argument 101 return bt_gatt_attr_read(conn, attr, buf, len, offset, name, in read_name() 108 uint16_t len, uint16_t offset, uint8_t flags) in write_name() argument 117 if (offset + len > CONFIG_BT_DEVICE_NAME_MAX) { in write_name() 121 memcpy(value, buf, len); in write_name() 123 value[len] = '\0'; in write_name() 127 return len; in write_name() 134 uint16_t len, uint16_t offset) in read_appearance() argument 138 return bt_gatt_attr_read(conn, attr, buf, len, offset, &appearance, in read_appearance() 144 const void *buf, uint16_t len, uint16_t offset, in write_appearance() argument [all …]
|
/Zephyr-latest/drivers/sensor/st/stts751/ |
D | stts751_i2c.c | 24 uint16_t len) in stts751_i2c_read() argument 28 return i2c_burst_read_dt(&cfg->i2c, reg_addr, value, len); in stts751_i2c_read() 32 uint16_t len) in stts751_i2c_write() argument 36 return i2c_burst_write_dt(&cfg->i2c, reg_addr, value, len); in stts751_i2c_write()
|
/Zephyr-latest/tests/bluetooth/at/src/ |
D | main.c | 51 int len; in ZTEST() local 60 len = strlen(example_data); in ZTEST() 62 zassert_true(net_buf_tailroom(buf) >= len, in ZTEST() 64 net_buf_add_mem(buf, example_data, len); in ZTEST()
|
/Zephyr-latest/tests/subsys/mgmt/mcumgr/mcumgr_client/src/ |
D | img_gr_stub.c | 70 nb->len = zse->payload - nb->data; in img_upload_response() 94 nb->len = zse->payload - nb->data; in img_fail_response() 143 nb->len = zse->payload - nb->data; in img_read_response() 167 nb->len = zse->payload - nb->data; in img_erase_response() 184 zcbor_new_decode_state(zsd, ARRAY_SIZE(zsd), nb->data + sizeof(struct smp_hdr), nb->len, 1, in img_state_write_verify() 190 hash.len = 0; in img_state_write_verify() 198 if (hash.len) { in img_state_write_verify() 199 printf("HASH %d", hash.len); in img_state_write_verify() 236 zcbor_new_decode_state(zsd, ARRAY_SIZE(zsd), nb->data + sizeof(struct smp_hdr), nb->len, 1, in img_upload_init_verify() 241 sha.len = 0; in img_upload_init_verify() [all …]
|
/Zephyr-latest/drivers/w1/ |
D | w1_handlers.c | 51 uint8_t *buffer, size_t len) in z_vrfy_w1_read_block() argument 54 K_OOPS(K_SYSCALL_MEMORY_WRITE(buffer, len)); in z_vrfy_w1_read_block() 57 (uint8_t *)buffer, (size_t)len); in z_vrfy_w1_read_block() 62 const uint8_t *buffer, size_t len) in z_vrfy_w1_write_block() argument 65 K_OOPS(K_SYSCALL_MEMORY_READ(buffer, len)); in z_vrfy_w1_write_block() 68 (const uint8_t *)buffer, (size_t)len); in z_vrfy_w1_write_block()
|
/Zephyr-latest/drivers/charger/ |
D | emul_sbs_charger.c | 87 if (msgs->len != 1) { in sbs_charger_emul_transfer_i2c() 88 LOG_ERR("Unexpected msg0 length %d", msgs->len); in sbs_charger_emul_transfer_i2c() 96 switch (msgs->len - 1) { in sbs_charger_emul_transfer_i2c() 108 LOG_ERR("Unexpected msg1 length %d", msgs->len); in sbs_charger_emul_transfer_i2c() 113 if (msgs->len != 2) { in sbs_charger_emul_transfer_i2c() 114 LOG_ERR("Unexpected msg1 length %d", msgs->len); in sbs_charger_emul_transfer_i2c()
|
/Zephyr-latest/samples/bluetooth/observer/src/ |
D | observer.c | 21 addr_str, rssi, type, ad->len); in device_found() 28 uint8_t len; in data_cb() local 33 len = MIN(data->data_len, NAME_LEN - 1); in data_cb() 34 (void)memcpy(name, data->data, len); in data_cb() 35 name[len] = '\0'; in data_cb() 63 data_len = buf->len; in scan_recv()
|
/Zephyr-latest/drivers/console/ |
D | uart_mcumgr.c | 128 int len; in uart_mcumgr_async() local 137 len = evt->data.rx.len; in uart_mcumgr_async() 140 for (int i = 0; i < len; i++) { in uart_mcumgr_async() 203 static int uart_mcumgr_send_raw(const void *data, int len) in uart_mcumgr_send_raw() argument 208 while (len--) { in uart_mcumgr_send_raw() 215 int uart_mcumgr_send(const uint8_t *data, int len) in uart_mcumgr_send() argument 217 return mcumgr_serial_tx_pkt(data, len, uart_mcumgr_send_raw); in uart_mcumgr_send()
|
/Zephyr-latest/subsys/bluetooth/audio/ |
D | vocs.c | 51 void *buf, uint16_t len, uint16_t offset) in read_offset_state() argument 56 return bt_gatt_attr_read(conn, attr, buf, len, offset, &inst->state, in read_offset_state() 94 const struct bt_uuid *uuid, const void *data, uint16_t len) in notify() argument 98 err = bt_gatt_notify_uuid(NULL, uuid, inst->service_p->attrs, data, len); in notify() 135 const void *buf, uint16_t len, uint16_t offset, uint8_t flags) in write_location() argument 144 if (len != sizeof(inst->location)) { in write_location() 165 return len; in write_location() 170 void *buf, uint16_t len, uint16_t offset) in read_location() argument 175 return bt_gatt_attr_read(conn, attr, buf, len, offset, &inst->location, in read_location() 181 const void *buf, uint16_t len, uint16_t offset, uint8_t flags) in write_vocs_control() argument [all …]
|
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/openisa/lll/ |
D | lll_test.c | 200 uint8_t ll_test_tx(uint8_t chan, uint8_t len, uint8_t type, uint8_t phy, in ll_test_tx() argument 231 memcpy(payload, prbs9, len); in ll_test_tx() 235 memset(payload, 0x0f, len); in ll_test_tx() 239 memset(payload, 0x55, len); in ll_test_tx() 243 memcpy(payload, prbs15, len); in ll_test_tx() 247 memset(payload, 0xff, len); in ll_test_tx() 251 memset(payload, 0x00, len); in ll_test_tx() 255 memset(payload, 0xf0, len); in ll_test_tx() 259 memset(payload, 0xaa, len); in ll_test_tx() 264 pdu[1] = len; in ll_test_tx()
|
/Zephyr-latest/subsys/bluetooth/mesh/ |
D | gatt_cli.c | 161 const void *data, uint16_t len, in bt_mesh_gatt_send() argument 166 LOG_DBG("%u bytes: %s", len, bt_hex(data, len)); in bt_mesh_gatt_send() 169 data, len, false, end, user_data); in bt_mesh_gatt_send() 276 if (buf->len < 3) { in gatt_advertising_recv() 309 while (buf->len > 1) { in scan_recv() 311 uint8_t len, type; in scan_recv() local 313 len = net_buf_simple_pull_u8(buf); in scan_recv() 315 if (len == 0U) { in scan_recv() 319 if (len > buf->len) { in scan_recv() 328 buf->len = len - 1; in scan_recv() [all …]
|
/Zephyr-latest/tests/subsys/ipc/pbuf/src/ |
D | main.c | 26 printk("cfg->len: %u\n", pb->cfg->len); in print_pbuf_info() 200 static int check_buffer(char *buf, uint16_t len, char exp) in check_buffer() argument 202 for (uint16_t i = 0; i < len; i++) { in check_buffer() 215 int len; in stress_read() local 219 len = pbuf_read(ctx->pbuf, buf, (uint16_t)sizeof(buf)); in stress_read() 220 if (len == 0) { in stress_read() 224 if (len < 0) { in stress_read() 225 zassert_true(false, "Unexpected error: %d, cnt:%d", len, ctx->rd_cnt); in stress_read() 228 zassert_ok(check_buffer(buf, len, ctx->rd_cnt)); in stress_read() 240 uint16_t len = STRESS_LEN_MIN + (sys_rand8_get() % STRESS_LEN_MOD); in stress_write() local [all …]
|
/Zephyr-latest/samples/tfm_integration/tfm_secure_partition/src/ |
D | dummy_partition.c | 23 { .base = &secret_index, .len = sizeof(secret_index) }, in dp_secret_digest() 27 { .base = p_digest, .len = digest_size } in dp_secret_digest() 50 { .base = &secret_index, .len = sizeof(secret_index) }, in dp_secret_digest() 54 { .base = p_digest, .len = digest_size } in dp_secret_digest()
|
/Zephyr-latest/lib/crc/ |
D | crc4_sw.c | 9 uint8_t crc4(const uint8_t *src, size_t len, uint8_t polynomial, uint8_t initial_value, in crc4() argument 15 for (i = 0; i < len; i++) { in crc4() 40 uint8_t crc4_ti(uint8_t seed, const uint8_t *src, size_t len) in crc4_ti() argument 45 for (size_t i = 0; i < len; i++) { in crc4_ti()
|
/Zephyr-latest/tests/net/socket/socketpair/src/ |
D | fionread.c | 10 #define read(fd, buf, len) zsock_recv(fd, buf, len, 0) argument 13 #define write(fd, buf, len) zsock_send(fd, buf, len, 0) argument
|