/Zephyr-latest/tests/bsim/bluetooth/host/att/sequential/tester/src/ |
D | main.c | 154 LOG_HEXDUMP_ERR(buf->data, buf->len, "HCI META EVT"); in handle_meta_event() 181 LOG_INF("Got notification for 0x%04x len %d", handle, buf->len); in handle_att_notification() 182 LOG_HEXDUMP_DBG(buf->data, buf->len, "payload"); in handle_att_notification() 204 LOG_INF("Got write for 0x%04x len %d", handle, buf->len); in handle_att_write() 205 LOG_HEXDUMP_DBG(buf->data, buf->len, "payload"); in handle_att_write() 233 LOG_HEXDUMP_ERR(buf->data, buf->len, "payload"); in handle_att() 247 LOG_DBG("Packet for CID %u len %u", cid, buf->len); in handle_l2cap() 248 LOG_HEXDUMP_DBG(buf->data, buf->len, "l2cap"); in handle_l2cap() 251 TEST_ASSERT(buf->len == hdr->len, "buflen = %d != hdrlen %d", in handle_l2cap() 252 buf->len, hdr->len); in handle_l2cap() [all …]
|
/Zephyr-latest/drivers/ethernet/ |
D | eth_w5500.c | 38 uint8_t *data, size_t len) in w5500_spi_read() argument 50 .len = ARRAY_SIZE(cmd), in w5500_spi_read() 60 .len = 3 in w5500_spi_read() 64 .len = len in w5500_spi_read() 78 uint8_t *data, size_t len) in w5500_spi_write() argument 90 .len = ARRAY_SIZE(cmd), in w5500_spi_write() 94 .len = len, in w5500_spi_write() 108 size_t len) in w5500_readbuf() argument 119 if (offset + len > mem_size) { in w5500_readbuf() 120 remain = (offset + len) % mem_size; in w5500_readbuf() [all …]
|
/Zephyr-latest/drivers/serial/ |
D | uart_bt.c | 60 static void bt_received(struct bt_conn *conn, const void *data, uint16_t len, void *ctx) in bt_received() argument 65 __ASSERT_NO_MSG(len > 0); in bt_received() 72 LOG_DBG("%s() - len: %d, rx_ringbuf space %d", __func__, len, ring_buf_space_get(ringbuf)); in bt_received() 73 LOG_HEXDUMP_DBG(data, len, "data"); in bt_received() 75 put_len = ring_buf_put(ringbuf, (const uint8_t *)data, len); in bt_received() 76 if (put_len < len) { in bt_received() 77 LOG_ERR("RX Ring buffer full. received: %d, added to queue: %d", len, put_len); in bt_received() 131 size_t len; in tx_work_handler() local 142 len = ring_buf_get_claim(dev_data->uart.tx_ringbuf, &data, chunk_size); in tx_work_handler() 143 if (len > 0) { in tx_work_handler() [all …]
|
/Zephyr-latest/drivers/flash/ |
D | flash_simulator.c | 174 size_t len) in flash_range_is_valid() argument 179 (FLASH_SIMULATOR_FLASH_SIZE - offset) < len)) { in flash_range_is_valid() 188 const size_t len) in flash_sim_read() argument 192 if (!flash_range_is_valid(dev, offset, len)) { in flash_sim_read() 198 (len % FLASH_SIMULATOR_PROG_UNIT)) { in flash_sim_read() 205 memcpy(data, MOCK_FLASH(offset), len); in flash_sim_read() 206 FLASH_SIM_STATS_INCN(flash_sim_stats, bytes_read, len); in flash_sim_read() 218 const void *data, const size_t len) in flash_sim_write() argument 223 if (!flash_range_is_valid(dev, offset, len)) { in flash_sim_write() 228 (len % FLASH_SIMULATOR_PROG_UNIT)) { in flash_sim_write() [all …]
|
D | flash_stm32h7x.c | 337 bool flash_stm32_valid_range(const struct device *dev, off_t offset, uint32_t len, bool write) in flash_stm32_valid_range() argument 346 if ((offset < BANK2_OFFSET) && (offset + len > REAL_FLASH_SIZE_KB / 2)) { in flash_stm32_valid_range() 361 return flash_stm32_range_exists(dev, offset, len); in flash_stm32_valid_range() 560 int flash_stm32_block_erase_loop(const struct device *dev, unsigned int offset, unsigned int len) argument 565 for (; address <= offset + len - 1; address += FLASH_SECTOR_SIZE) { 645 unsigned int len) argument 653 for (i = 0; i < len && i + nbytes <= len; i += nbytes, offset += nbytes) { 663 if (i < len) { 665 for (j = 0; j < len - i; ++j) { 721 static void flash_stm32h7_flush_caches(const struct device *dev, off_t offset, size_t len) argument [all …]
|
/Zephyr-latest/subsys/mgmt/mcumgr/grp/settings_mgmt/src/ |
D | settings_mgmt.c | 59 if (!ok || key.len == 0) { in settings_mgmt_read() 66 if (key.len >= CONFIG_MCUMGR_GRP_SETTINGS_NAME_LEN) { in settings_mgmt_read() 78 key_name = (char *)malloc(key.len + 1); in settings_mgmt_read() 90 memcpy(key_name, key.value, key.len); in settings_mgmt_read() 91 key_name[key.len] = 0; in settings_mgmt_read() 180 if (!ok || key.len == 0) { in settings_mgmt_write() 187 if (key.len >= CONFIG_MCUMGR_GRP_SETTINGS_NAME_LEN) { in settings_mgmt_write() 194 key_name = (char *)malloc(key.len + 1); in settings_mgmt_write() 201 memcpy(key_name, key.value, key.len); in settings_mgmt_write() 202 key_name[key.len] = 0; in settings_mgmt_write() [all …]
|
/Zephyr-latest/samples/bluetooth/hci_ipc/src/ |
D | main.c | 113 if (remaining != sys_le16_to_cpu(hdr->len)) { in hci_ipc_acl_recv() 150 if (remaining != bt_iso_hdr_len(sys_le16_to_cpu(hdr->len))) { in hci_ipc_iso_recv() 168 static void hci_ipc_rx(uint8_t *data, size_t len) in hci_ipc_rx() argument 172 size_t remaining = len; in hci_ipc_rx() 174 LOG_HEXDUMP_DBG(data, len, "IPC data:"); in hci_ipc_rx() 200 LOG_HEXDUMP_DBG(buf->data, buf->len, "Final net buffer:"); in hci_ipc_rx() 232 LOG_DBG("buf %p type %u len %u", buf, bt_buf_get_type(buf), buf->len); in hci_ipc_send() 234 LOG_HEXDUMP_DBG(buf->data, buf->len, "Controller buffer:"); in hci_ipc_send() 253 LOG_HEXDUMP_DBG(buf->data, buf->len, "Final HCI buffer:"); in hci_ipc_send() 256 ret = ipc_service_send(&hci_ept, buf->data, buf->len); in hci_ipc_send() [all …]
|
/Zephyr-latest/modules/nrf_wifi/bus/ |
D | spi_if.h | 18 int spim_write(unsigned int addr, const void *data, int len); 20 int spim_read(unsigned int addr, void *data, int len); 22 int spim_hl_read(unsigned int addr, void *data, int len);
|
/Zephyr-latest/soc/amd/acp_6_0/adsp/ |
D | linker.ld | 33 len = MEM_RESET_TEXT_SIZE 36 len = MEM_RESET_LIT_SIZE 39 len = MEM_VECBASE_LIT_SIZE 42 len = MEM_VECT_LIT_SIZE 45 len = MEM_VECT_TEXT_SIZE 48 len = MEM_VECT_LIT_SIZE 51 len = MEM_VECT_TEXT_SIZE 54 len = MEM_VECT_LIT_SIZE 57 len = MEM_VECT_TEXT_SIZE 60 len = MEM_VECT_LIT_SIZE [all …]
|
/Zephyr-latest/subsys/lorawan/services/ |
D | lorawan_services.c | 22 uint8_t len; member 72 err = lorawan_send(msg_copy.port, msg_copy.data, msg_copy.len, LORAWAN_MSG_UNCONFIRMED); in uplink_handler() 118 int lorawan_services_schedule_uplink(uint8_t port, uint8_t *data, uint8_t len, uint32_t timeout) in lorawan_services_schedule_uplink() argument 123 if (len > sizeof(messages[0].data)) { in lorawan_services_schedule_uplink() 124 LOG_ERR("Uplink payload for port %u too long: %u bytes", port, len); in lorawan_services_schedule_uplink() 125 LOG_HEXDUMP_ERR(data, len, "Payload: "); in lorawan_services_schedule_uplink() 135 memcpy(messages[i].data, data, len); in lorawan_services_schedule_uplink() 137 messages[i].len = len; in lorawan_services_schedule_uplink()
|
/Zephyr-latest/subsys/net/lib/shell/ |
D | sockets.c | 98 int len = 0; in walk_socket_services() local 105 len += snprintk(pev_output + len, sizeof(pev_output) - len, in walk_socket_services() 109 if (len > 0) { in walk_socket_services() 110 pev_output[len - 1] = '\0'; in walk_socket_services() 114 len = strlen(svc->owner); in walk_socket_services() 116 int offset = len > sizeof(owner) ? in walk_socket_services() 117 len -= (sizeof(owner) - 3) : 0; in walk_socket_services()
|
/Zephyr-latest/tests/net/socket/service/src/ |
D | main.c | 69 ssize_t len; in run_test_service() local 103 len = send(c_sock_udp, BUF_AND_SIZE(TEST_STR_SMALL), 0); in run_test_service() 104 zassert_equal(len, STRLEN(TEST_STR_SMALL), "invalid send len"); in run_test_service() 111 len = recv(s_sock_udp, BUF_AND_SIZE(buf), 0); in run_test_service() 112 zassert_equal(len, STRLEN(TEST_STR_SMALL), "invalid recv len"); in run_test_service() 126 len = send(c_sock_tcp, BUF_AND_SIZE(TEST_STR_SMALL), 0); in run_test_service() 127 zassert_equal(len, STRLEN(TEST_STR_SMALL), "invalid send len"); in run_test_service() 146 len = recv(new_sock, BUF_AND_SIZE(buf), 0); in run_test_service() 147 zassert_equal(len, STRLEN(TEST_STR_SMALL), "invalid recv len"); in run_test_service()
|
/Zephyr-latest/subsys/fs/fcb/ |
D | fcb_elem_info.c | 26 uint16_t len; in fcb_elem_crc8() local 40 cnt = fcb_get_len(_fcb, tmp_str, &len); in fcb_elem_crc8() 45 loc->fe_data_len = len; in fcb_elem_crc8() 51 end = loc->fe_data_off + len; in fcb_elem_crc8() 78 uint16_t len; in fcb_elem_endmarker_fixed() local 90 cnt = fcb_get_len(_fcb, tmp_str, &len); in fcb_elem_endmarker_fixed() 95 loc->fe_data_len = len; in fcb_elem_endmarker_fixed()
|
D | fcb_priv.h | 56 int fcb_put_len(const struct fcb *fcbp, uint8_t *buf, uint16_t len); 57 int fcb_get_len(const struct fcb *fcbp, uint8_t *buf, uint16_t *len); 59 static inline int fcb_len_in_flash(struct fcb *fcbp, uint16_t len) in fcb_len_in_flash() argument 62 return len; in fcb_len_in_flash() 64 return (len + (fcbp->f_align - 1U)) & ~(fcbp->f_align - 1U); in fcb_len_in_flash()
|
/Zephyr-latest/include/zephyr/settings/ |
D | settings.h | 61 typedef ssize_t (*settings_read_cb)(void *cb_arg, void *data, size_t len); 88 int (*h_set)(const char *key, size_t len, settings_read_cb read_cb, 157 int (*h_set)(const char *key, size_t len, settings_read_cb read_cb, 298 size_t len, 539 size_t len, 609 int settings_runtime_set(const char *name, const void *data, size_t len); 620 int settings_runtime_get(const char *name, void *data, size_t len);
|
/Zephyr-latest/subsys/bluetooth/host/classic/ |
D | l2cap_br.c | 322 LOG_DBG("chan %p buf %p len %u", br_chan, buf, buf->len); in bt_l2cap_br_send_cb() 325 hdr->len = sys_cpu_to_le16(buf->len - sizeof(*hdr)); in bt_l2cap_br_send_cb() 416 bool last_frag = amount >= pdu->len; in l2cap_br_data_pull() 434 *length = pdu->len; in l2cap_br_data_pull() 468 hdr->len = sys_cpu_to_le16(sizeof(*info)); in l2cap_br_get_info() 521 if (buf->len < sizeof(*rsp)) { in l2cap_br_info_rsp() 545 if (buf->len < sizeof(uint32_t)) { in l2cap_br_info_rsp() 560 if (buf->len < sizeof(uint8_t)) { in l2cap_br_info_rsp() 612 if (buf->len < sizeof(*req)) { in l2cap_br_info_req() 633 hdr_info->len = sys_cpu_to_le16(sizeof(*rsp) + sizeof(uint32_t)); in l2cap_br_info_req() [all …]
|
/Zephyr-latest/subsys/bluetooth/host/ |
D | aes_ccm.c | 192 const uint8_t *enc_data, size_t len, const uint8_t *aad, in bt_ccm_decrypt() argument 197 if (aad_len >= 0xff00 || mic_size > sizeof(mic) || len > UINT16_MAX) { in bt_ccm_decrypt() 201 ccm_crypt(key, nonce, enc_data, plaintext, len); in bt_ccm_decrypt() 203 ccm_auth(key, nonce, plaintext, len, aad, aad_len, mic, mic_size); in bt_ccm_decrypt() 205 if (memcmp(mic, enc_data + len, mic_size)) { in bt_ccm_decrypt() 213 const uint8_t *plaintext, size_t len, const uint8_t *aad, in bt_ccm_encrypt() argument 216 uint8_t *mic = enc_data + len; in bt_ccm_encrypt() 220 LOG_DBG("msg (len %zu) %s", len, bt_hex(plaintext, len)); in bt_ccm_encrypt() 224 if (aad_len >= 0xff00 || mic_size > 16 || len > UINT16_MAX) { in bt_ccm_encrypt() 228 ccm_auth(key, nonce, plaintext, len, aad, aad_len, mic, mic_size); in bt_ccm_encrypt() [all …]
|
/Zephyr-latest/subsys/net/lib/mqtt/ |
D | mqtt_rx.c | 65 evt.param.publish.message.payload.len; in mqtt_handle_packet() 69 evt.param.publish.message.payload.len, in mqtt_handle_packet() 152 int len; in mqtt_read_message_chunk() local 172 len = mqtt_transport_read(client, buf->end, remaining, false); in mqtt_read_message_chunk() 173 if (len < 0) { in mqtt_read_message_chunk() 174 if (len != -EAGAIN) { in mqtt_read_message_chunk() 175 NET_ERR("[CID %p]: Transport read error: %d", client, len); in mqtt_read_message_chunk() 177 return len; in mqtt_read_message_chunk() 180 if (len == 0) { in mqtt_read_message_chunk() 185 client->internal.rx_buf_datalen += len; in mqtt_read_message_chunk() [all …]
|
/Zephyr-latest/drivers/sensor/st/iis2dh/ |
D | iis2dh_i2c.c | 23 static int iis2dh_i2c_read(const struct device *dev, uint8_t reg_addr, uint8_t *value, uint16_t len) in iis2dh_i2c_read() argument 27 return i2c_burst_read_dt(&config->i2c, reg_addr | 0x80, value, len); in iis2dh_i2c_read() 31 uint16_t len) in iis2dh_i2c_write() argument 35 return i2c_burst_write_dt(&config->i2c, reg_addr | 0x80, value, len); in iis2dh_i2c_write()
|
/Zephyr-latest/tests/posix/single_process/src/ |
D | confstr.c | 22 size_t len; in ZTEST() member 43 zassert_equal(0, confstr(arg->name, arg->buf, arg->len)); in ZTEST() 50 zassert_true(confstr(arg->name, arg->buf, arg->len) > 0); in ZTEST() 57 zassert_true(confstr(arg->name, arg->buf, arg->len) > 0); in ZTEST()
|
/Zephyr-latest/include/zephyr/drivers/uart/ |
D | uart_internal.h | 45 int (*tx)(const struct device *dev, const uint8_t *buf, size_t len, int32_t timeout); 48 int (*rx_enable)(const struct device *dev, uint8_t *buf, size_t len, int32_t timeout); 49 int (*rx_buf_rsp)(const struct device *dev, uint8_t *buf, size_t len); 53 int (*tx_u16)(const struct device *dev, const uint16_t *buf, size_t len, int32_t timeout); 54 int (*rx_enable_u16)(const struct device *dev, uint16_t *buf, size_t len, int32_t timeout); 55 int (*rx_buf_rsp_u16)(const struct device *dev, uint16_t *buf, size_t len); 81 int (*fifo_fill)(const struct device *dev, const uint8_t *tx_data, int len); 84 int (*fifo_fill_u16)(const struct device *dev, const uint16_t *tx_data, int len); 504 static inline int z_impl_uart_tx(const struct device *dev, const uint8_t *buf, size_t len, in z_impl_uart_tx() argument 511 return api->tx(dev, buf, len, timeout); in z_impl_uart_tx() [all …]
|
/Zephyr-latest/drivers/modem/ |
D | wncm14a2a.c | 163 void (*func)(struct net_buf **buf, uint16_t len); 360 frag->data, frag->len); in send_data() 392 if (!(*buf)->len) { in net_buf_skipcrlf() 401 uint16_t len = 0U, pos = 0U; in net_buf_findcrlf() local 404 if (pos + 1 >= buf->len) { in net_buf_findcrlf() 405 len += buf->len; in net_buf_findcrlf() 414 len += pos; in net_buf_findcrlf() 417 return len; in net_buf_findcrlf() 510 static void on_cmd_atcmdecho(struct net_buf **buf, uint16_t len) in on_cmd_atcmdecho() argument 519 static void on_cmd_atcmdecho_nosock(struct net_buf **buf, uint16_t len) in on_cmd_atcmdecho_nosock() argument [all …]
|
/Zephyr-latest/tests/subsys/mgmt/mcumgr/os_mgmt_info/src/ |
D | limited.c | 84 zcbor_new_decode_state(zsd, 3, nb->data, nb->len, 1, NULL, 0); in ZTEST() 91 zassert_equal((sizeof(response_kernel_name) - 1), output.len, in ZTEST() 93 (sizeof(response_kernel_name) - 1), output.len); in ZTEST() 95 zassert_mem_equal(response_kernel_name, output.value, output.len, in ZTEST() 150 zcbor_new_decode_state(zsd, 3, nb->data, nb->len, 1, NULL, 0); in ZTEST() 158 zcbor_new_decode_state(zsd, 3, nb->data, nb->len, 1, NULL, 0); in ZTEST() 163 zassert_equal(output.len, 0, "Expected to receive 0 bytes but got %d\n", output.len); in ZTEST()
|
/Zephyr-latest/subsys/net/lib/tls_credentials/ |
D | tls_credentials.c | 109 int credential_digest(struct tls_credential *credential, void *dest, size_t *len) in credential_digest() argument 111 return credential_digest_raw(credential, dest, len); in credential_digest() 147 credential->len = credlen; in tls_credential_add() 170 if (credential->len > *credlen) { in tls_credential_get() 176 tag, (int)type, (int)credential->len); in tls_credential_get() 177 *credlen = credential->len; in tls_credential_get() 181 *credlen = credential->len; in tls_credential_get() 182 memcpy(cred, credential->buf, credential->len); in tls_credential_get()
|
/Zephyr-latest/subsys/stats/ |
D | stats.c | 60 int len; in stats_gen_name() local 64 len = 0; in stats_gen_name() 66 dst[len++] = '0' + idx % 10; in stats_gen_name() 69 dst[len++] = 's'; in stats_gen_name() 72 for (i = 0; i < len / 2; i++) { in stats_gen_name() 74 dst[i] = dst[len - i - 1]; in stats_gen_name() 75 dst[len - i - 1] = c; in stats_gen_name() 77 dst[len] = '\0'; in stats_gen_name()
|