/Zephyr-latest/tests/bsim/bluetooth/ll/edtt/gatt_test_app/src/gatt/ |
D | service_b_4_2.c | 46 uint16_t len, uint16_t offset, uint8_t flags) in write_value_v7() argument 53 if (offset + len > sizeof(value_v7_value)) { in write_value_v7() 57 memcpy(value + offset, buf, len); in write_value_v7() 59 return len; in write_value_v7()
|
D | service_b_4_3.c | 46 uint16_t len, uint16_t offset, uint8_t flags) in write_value_v7() argument 53 if (offset + len > sizeof(value_v7_value)) { in write_value_v7() 57 memcpy(value + offset, buf, len); in write_value_v7() 59 return len; in write_value_v7()
|
D | service_b_4_1.c | 46 uint16_t len, uint16_t offset, uint8_t flags) in write_value_v7() argument 53 if (offset + len > sizeof(value_v7_value)) { in write_value_v7() 57 memcpy(value + offset, buf, len); in write_value_v7() 59 return len; in write_value_v7()
|
/Zephyr-latest/samples/net/openthread/coap/src/ |
D | coap_utils.h | 22 int coap_resp_send(otMessage *req, const otMessageInfo *req_info, uint8_t *buf, int len); 23 int coap_put_req_send(const char *addr, const char *uri, uint8_t *buf, int len, 25 int coap_get_req_send(const char *addr, const char *uri, uint8_t *buf, int len, 28 int coap_get_data(otMessage *msg, void *buf, int *len);
|
/Zephyr-latest/drivers/hwinfo/ |
D | hwinfo_renesas_ra.c | 13 size_t len = MIN(length, sizeof(unique_id->unique_id_bytes)); in z_impl_hwinfo_get_device_id() local 15 memcpy(buffer, &unique_id->unique_id_bytes[0], len); in z_impl_hwinfo_get_device_id() 17 return len; in z_impl_hwinfo_get_device_id()
|
/Zephyr-latest/drivers/entropy/ |
D | entropy_handlers.c | 12 uint16_t len) in z_vrfy_entropy_get_entropy() argument 15 K_OOPS(K_SYSCALL_MEMORY_WRITE(buffer, len)); in z_vrfy_entropy_get_entropy() 18 len); in z_vrfy_entropy_get_entropy()
|
/Zephyr-latest/drivers/flash/ |
D | flash_handlers.c | 12 void *data, size_t len) in z_vrfy_flash_read() argument 15 K_OOPS(K_SYSCALL_MEMORY_WRITE(data, len)); in z_vrfy_flash_read() 18 len); in z_vrfy_flash_read() 23 const void *data, size_t len) in z_vrfy_flash_write() argument 26 K_OOPS(K_SYSCALL_MEMORY_READ(data, len)); in z_vrfy_flash_write() 28 (const void *)data, len); in z_vrfy_flash_write() 116 void *data, size_t len) in z_vrfy_flash_sfdp_read() argument 119 K_OOPS(K_SYSCALL_MEMORY_WRITE(data, len)); in z_vrfy_flash_sfdp_read() 120 return z_impl_flash_sfdp_read(dev, offset, data, len); in z_vrfy_flash_sfdp_read()
|
/Zephyr-latest/include/zephyr/sys/ |
D | cbprintf.h | 47 uint8_t len; member 313 typedef int (*cbprintf_convert_cb)(const void *buf, size_t len, void *ctx); 432 size_t len, 472 size_t len, 528 static inline int z_cbprintf_cpy(const void *buf, size_t len, void *ctx) in z_cbprintf_cpy() argument 532 if ((desc->size - desc->off) < len) { in z_cbprintf_cpy() 536 memcpy(&((uint8_t *)desc->buf)[desc->off], buf, len); in z_cbprintf_cpy() 537 desc->off += len; in z_cbprintf_cpy() 539 return len; in z_cbprintf_cpy() 575 size_t len, in cbprintf_package_copy() argument [all …]
|
/Zephyr-latest/drivers/sensor/bosch/bme680/ |
D | bme680_spi.c | 38 .len = 1, in bme680_set_mem_page() 46 { .buf = NULL, .len = 1 }, in bme680_set_mem_page() 47 { .buf = &buf[1], .len = 1 }, in bme680_set_mem_page() 67 tx_buf.len = 2; in bme680_set_mem_page() 87 .len = sizeof(cmd) in bme680_reg_write_spi() 112 .len = 1 in bme680_reg_read_spi() 125 rx_buf[0].len = 1; in bme680_reg_read_spi() 129 rx_buf[1].len = size; in bme680_reg_read_spi()
|
/Zephyr-latest/drivers/eeprom/ |
D | eeprom_at2x_emul.c | 60 unsigned int len; in at24_emul_transfer() local 92 len = MIN(msgs->len - 1, cfg->size - data->cur_reg); in at24_emul_transfer() 93 memcpy(&cfg->buf[data->cur_reg], &msgs->buf[1], len); in at24_emul_transfer() 115 len = MIN(msgs->len, cfg->size - data->cur_reg); in at24_emul_transfer() 116 memcpy(msgs->buf, &cfg->buf[data->cur_reg], len); in at24_emul_transfer() 117 data->cur_reg += len; in at24_emul_transfer()
|
/Zephyr-latest/drivers/ethernet/ |
D | eth_ivshmem_queue.c | 18 #define ETH_IVSHMEM_FRAME_SIZE(len) ROUND_UP(18 + (len), L1_CACHE_BYTES) argument 26 static uint32_t tx_buffer_advance(uint32_t max_len, uint32_t *position, uint32_t *len); 91 int eth_ivshmem_queue_tx_get_buff(struct eth_ivshmem_queue *q, void **data, size_t len) in eth_ivshmem_queue_tx_get_buff() argument 105 uint32_t consumed_len = len; in eth_ivshmem_queue_tx_get_buff() 115 tx_desc->len = len; in eth_ivshmem_queue_tx_get_buff() 157 int eth_ivshmem_queue_rx(struct eth_ivshmem_queue *q, const void **data, size_t *len) in eth_ivshmem_queue_rx() argument 160 *len = 0; in eth_ivshmem_queue_rx() 174 uint32_t rx_len = desc->len; in eth_ivshmem_queue_rx() 183 *len = desc->len; in eth_ivshmem_queue_rx() 201 q->rx.vring.used->ring[used_idx].len = 1; in eth_ivshmem_queue_rx_complete() [all …]
|
/Zephyr-latest/drivers/firmware/scmi/ |
D | clk.c | 53 msg.len = sizeof(clk_id); in scmi_clock_rate_get() 57 reply.len = sizeof(reply_buffer); in scmi_clock_rate_get() 94 msg.len = sizeof(*cfg); in scmi_clock_rate_set() 98 reply.len = sizeof(status); in scmi_clock_rate_set() 130 msg.len = sizeof(clk_id); in scmi_clock_parent_get() 134 reply.len = sizeof(reply_buffer); in scmi_clock_parent_get() 168 msg.len = sizeof(cfg); in scmi_clock_parent_set() 172 reply.len = sizeof(status); in scmi_clock_parent_set() 219 msg.len = sizeof(*cfg); in scmi_clock_config_set() 223 reply.len = sizeof(status); in scmi_clock_config_set() [all …]
|
/Zephyr-latest/drivers/bluetooth/hci/ |
D | hci_spi_st.c | 113 uint16_t len; member 157 spi_tx_buf.len = (size_t)tx_len; in bt_spi_transceive() 159 spi_rx_buf.len = (size_t)rx_len; in bt_spi_transceive() 394 static uint16_t len; in bt_spi_rx_buf_construct() local 401 net_buf_add_mem(buf, msg, MIN(size, len - buf->len)); in bt_spi_rx_buf_construct() 402 if (buf->len >= len) { in bt_spi_rx_buf_construct() 416 if (sys_le16_to_cpu(evt->len) > 0xff) { in bt_spi_rx_buf_construct() 420 memmove(msg + (1 + sizeof(*evt2)), msg + (1 + sizeof(*evt)), evt2->len); in bt_spi_rx_buf_construct() 447 len = sizeof(struct bt_hci_evt_hdr) + msg[EVT_HEADER_SIZE]; in bt_spi_rx_buf_construct() 448 if (len > net_buf_tailroom(buf)) { in bt_spi_rx_buf_construct() [all …]
|
D | spi.c | 106 spi_tx_buf.len = (size_t)tx_len; in bt_spi_transceive() 108 spi_rx_buf.len = (size_t)rx_len; in bt_spi_transceive() 188 int len; in bt_spi_rx_buf_construct() local 214 len = sizeof(struct bt_hci_evt_hdr) + msg[EVT_HEADER_SIZE]; in bt_spi_rx_buf_construct() 215 if (len > net_buf_tailroom(buf)) { in bt_spi_rx_buf_construct() 216 LOG_ERR("Event too long: %d", len); in bt_spi_rx_buf_construct() 220 net_buf_add_mem(buf, &msg[1], len); in bt_spi_rx_buf_construct() 225 len = sizeof(acl_hdr) + sys_le16_to_cpu(acl_hdr.len); in bt_spi_rx_buf_construct() 226 if (len > net_buf_tailroom(buf)) { in bt_spi_rx_buf_construct() 227 LOG_ERR("ACL too long: %d", len); in bt_spi_rx_buf_construct() [all …]
|
/Zephyr-latest/drivers/mfd/ |
D | mfd_ad559x_spi.c | 14 static int mfd_ad559x_spi_read_raw(const struct device *dev, uint8_t *val, size_t len) in mfd_ad559x_spi_read_raw() argument 19 struct spi_buf tx_buf[] = {{.buf = &nop_msg, .len = sizeof(nop_msg)}}; in mfd_ad559x_spi_read_raw() 23 struct spi_buf rx_buf[] = {{.buf = val, .len = len}}; in mfd_ad559x_spi_read_raw() 30 static int mfd_ad559x_spi_write_raw(const struct device *dev, uint8_t *val, size_t len) in mfd_ad559x_spi_write_raw() argument 34 struct spi_buf tx_buf[] = {{.buf = val, .len = len}}; in mfd_ad559x_spi_write_raw()
|
/Zephyr-latest/tests/bluetooth/host/cs/bt_le_cs_step_data_parse/src/ |
D | main.c | 105 size_t len; member 114 zassert_true(ud->len-- > 0); in bt_le_cs_step_data_parse_func_custom_fake() 119 zassert_true(ud->len-- > 0); in bt_le_cs_step_data_parse_func_custom_fake() 124 zassert_true(ud->len-- > 0); in bt_le_cs_step_data_parse_func_custom_fake() 129 zassert_true(ud->len >= step->data_len); in bt_le_cs_step_data_parse_func_custom_fake() 132 ud->len -= step->data_len; in bt_le_cs_step_data_parse_func_custom_fake() 160 .len = ARRAY_SIZE(data), in ZTEST()
|
/Zephyr-latest/drivers/serial/ |
D | uart_pipe.c | 68 int uart_pipe_send(const uint8_t *data, int len) in uart_pipe_send() argument 70 LOG_HEXDUMP_DBG(data, len, "TX"); in uart_pipe_send() 72 while (len--) { in uart_pipe_send() 96 void uart_pipe_register(uint8_t *buf, size_t len, uart_pipe_recv_cb cb) in uart_pipe_register() argument 99 recv_buf_len = len; in uart_pipe_register()
|
/Zephyr-latest/include/zephyr/bluetooth/services/ |
D | nus.h | 55 void (*received)(struct bt_conn *conn, const void *data, uint16_t len, void *ctx); 96 uint16_t len); 125 static inline int bt_nus_send(struct bt_conn *conn, const void *data, uint16_t len) in bt_nus_send() argument 127 return bt_nus_inst_send(conn, NULL, data, len); in bt_nus_send()
|
/Zephyr-latest/subsys/mgmt/mcumgr/grp/fs_mgmt/src/ |
D | fs_mgmt_hash_checksum_crc32.c | 20 size_t *out_len, size_t len) in fs_mgmt_hash_checksum_crc32() argument 32 if ((read_size + *out_len) >= len) { in fs_mgmt_hash_checksum_crc32() 34 read_size = len - *out_len; in fs_mgmt_hash_checksum_crc32() 46 } while (bytes_read > 0 && *out_len < len); in fs_mgmt_hash_checksum_crc32()
|
D | fs_mgmt.c | 93 size_t len; member 127 fs_mgmt_ctxt.len = 0; in fs_mgmt_cleanup() 192 if (fs_mgmt_ctxt.len > 0 && fs_mgmt_ctxt.off >= fs_mgmt_ctxt.len) { in fs_mgmt_upload_download_finish_check() 236 if (!ok || off == ULLONG_MAX || name.len == 0 || name.len > (sizeof(path) - 1)) { in fs_mgmt_file_download() 240 memcpy(path, name.value, name.len); in fs_mgmt_file_download() 241 path[name.len] = '\0'; in fs_mgmt_file_download() 272 rc = fs_mgmt_filelen(path, &fs_mgmt_ctxt.len); in fs_mgmt_file_download() 336 (zcbor_tstr_put_lit(zse, "len") && zcbor_uint64_put(zse, fs_mgmt_ctxt.len))); in fs_mgmt_file_download() 353 unsigned long long len = ULLONG_MAX; in fs_mgmt_file_upload() local 368 ZCBOR_MAP_DECODE_KEY_DECODER("len", zcbor_uint64_decode, &len), in fs_mgmt_file_upload() [all …]
|
/Zephyr-latest/lib/libc/minimal/source/string/ |
D | strstr.c | 44 size_t len; in strstr() local 48 len = strlen(find); in strstr() 56 } while (strncmp(s, find, len) != 0); in strstr()
|
/Zephyr-latest/include/zephyr/logging/ |
D | log_backend_net.h | 55 void log_backend_net_hostname_set(char *hostname, size_t len); 57 static inline void log_backend_net_hostname_set(const char *hostname, size_t len) in log_backend_net_hostname_set() argument 60 ARG_UNUSED(len); in log_backend_net_hostname_set()
|
/Zephyr-latest/subsys/mgmt/mcumgr/transport/src/ |
D | smp_lorawan.c | 20 uint8_t len, const uint8_t *hex_data); 68 size = msg->nb->len; in smp_lorawan_uplink_thread() 126 uint8_t len, const uint8_t *hex_data) in smp_lorawan_downlink() argument 136 if (len == 0) { in smp_lorawan_downlink() 140 rc = smp_reassembly_collect(&smp_lorawan_transport, hex_data, len); in smp_lorawan_downlink() 160 if (len > sizeof(struct smp_hdr)) { in smp_lorawan_downlink() 170 net_buf_add_mem(nb, hex_data, len); in smp_lorawan_downlink() 199 if (nb->len > data_size) { in smp_lorawan_uplink() 201 nb->len, data_size); in smp_lorawan_uplink() 203 rc = lorawan_send(CONFIG_MCUMGR_TRANSPORT_LORAWAN_FRAME_PORT, nb->data, nb->len, in smp_lorawan_uplink()
|
/Zephyr-latest/subsys/bluetooth/host/ |
D | monitor.c | 106 static void monitor_send(const void *data, size_t len) in monitor_send() argument 115 drop = rtt_buf_offset + len > sizeof(rtt_buf); in monitor_send() 117 (void)memcpy(rtt_buf + rtt_buf_offset, data, len); in monitor_send() 120 rtt_buf_offset += len; in monitor_send() 167 static void monitor_send(const void *data, size_t len) in monitor_send() argument 171 while (len--) { in monitor_send() 203 uint16_t opcode, uint16_t len) in encode_hdr() argument 225 hdr->data_len = sys_cpu_to_le16(4 + hdr->hdr_len + len); in encode_hdr() 228 void bt_monitor_send(uint16_t opcode, const void *data, size_t len) in bt_monitor_send() argument 237 encode_hdr(&hdr, monitor_ts_get(), opcode, len); in bt_monitor_send() [all …]
|
/Zephyr-latest/subsys/shell/backends/ |
D | shell_telnet.c | 68 static void telnet_command_send_reply(uint8_t *msg, uint16_t len) in telnet_command_send_reply() argument 74 while (len > 0) { in telnet_command_send_reply() 77 ret = zsock_send(sh_telnet->fds[SOCK_ID_CLIENT].fd, msg, len, 0); in telnet_command_send_reply() 85 len -= ret; in telnet_command_send_reply() 165 sh_telnet->line_out.len = 0; in telnet_reply_command() 188 uint16_t len = sh_telnet->line_out.len; in telnet_send() local 190 if (sh_telnet->line_out.len == 0) { in telnet_send() 198 while (len > 0) { in telnet_send() 199 ret = zsock_send(sh_telnet->fds[SOCK_ID_CLIENT].fd, msg, len, in telnet_send() 205 memmove(sh_telnet->line_out.buf, msg, len); in telnet_send() [all …]
|