/Zephyr-latest/soc/cdns/sample_controller32/include/ |
D | xtensa-sample-controller32.ld | 48 dram1_0_seg : org = 0x3FFC0000, len = 0x20000 49 dram0_0_seg : org = 0x3FFE0000, len = 0x20000 50 iram0_0_seg : org = 0x40000000, len = 0x178 51 iram0_1_seg : org = 0x40000178, len = 0x8 52 iram0_2_seg : org = 0x40000180, len = 0x38 53 iram0_3_seg : org = 0x400001B8, len = 0x8 54 iram0_4_seg : org = 0x400001C0, len = 0x38 55 iram0_5_seg : org = 0x400001F8, len = 0x8 56 iram0_6_seg : org = 0x40000200, len = 0x38 57 iram0_7_seg : org = 0x40000238, len = 0x8 [all …]
|
/Zephyr-latest/drivers/can/ |
D | can_tcan4x5x.c | 239 static int tcan4x5x_read(const struct device *dev, uint16_t addr, void *dst, size_t len) in tcan4x5x_read() argument 243 size_t len32 = len / sizeof(uint32_t); in tcan4x5x_read() 249 {.buf = &cmd, .len = sizeof(cmd)}, in tcan4x5x_read() 252 {.buf = &global_status, .len = sizeof(global_status)}, in tcan4x5x_read() 253 {.buf = NULL, .len = 3}, in tcan4x5x_read() 254 {.buf = dst, .len = len}, in tcan4x5x_read() 267 if (len == 0) { in tcan4x5x_read() 272 __ASSERT_NO_MSG(len % 4 == 0); in tcan4x5x_read() 277 LOG_ERR("failed to read addr %u, len %d (err %d)", addr, len, err); in tcan4x5x_read() 290 static int tcan4x5x_write(const struct device *dev, uint16_t addr, const void *src, size_t len) in tcan4x5x_write() argument [all …]
|
/Zephyr-latest/lib/posix/options/ |
D | mprotect.c | 14 int mprotect(void *addr, size_t len, int prot) in mprotect() argument 17 ARG_UNUSED(len); in mprotect()
|
D | confstr.c | 9 size_t confstr(int name, char *buf, size_t len) in confstr() argument 16 if (buf != NULL && len > 0) { in confstr()
|
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/nordic/lll/ |
D | lll_test.c | 464 static uint32_t calculate_tifs(uint8_t len) in calculate_tifs() argument 471 transmit_time = PDU_US((test_cte_len > 0) ? (len + 1) : len, 0, test_phy, test_phy_flags) + in calculate_tifs() 474 transmit_time = PDU_US(len, 0, test_phy, test_phy_flags); in calculate_tifs() 541 static void payload_set(uint8_t type, uint8_t len, uint8_t cte_len, uint8_t cte_type) in payload_set() argument 546 pdu->len = len; in payload_set() 559 (void)memcpy(pdu->payload, prbs9, len); in payload_set() 563 (void)memset(pdu->payload, PAYLOAD_11110000, len); in payload_set() 567 (void)memset(pdu->payload, PAYLOAD_10101010, len); in payload_set() 571 (void)memcpy(pdu->payload, prbs15, len); in payload_set() 575 (void)memset(pdu->payload, PAYLOAD_11111111, len); in payload_set() [all …]
|
/Zephyr-latest/drivers/spi/ |
D | spi_b91.c | 138 len_tx += tx_buf->len; in spi_b91_get_txrx_len() 144 len_rx += rx_buf->len; in spi_b91_get_txrx_len() 153 static void spi_b91_tx(uint8_t peripheral_id, struct spi_context *ctx, uint8_t len) in spi_b91_tx() argument 157 for (int i = 0; i < len; i++) { in spi_b91_tx() 172 static void spi_b91_rx(uint8_t peripheral_id, struct spi_context *ctx, uint8_t len) in spi_b91_rx() argument 176 for (int i = 0; i < len; i++) { in spi_b91_rx() 190 static void spi_b91_txrx(const struct device *dev, uint32_t len) in spi_b91_txrx() argument 199 spi_tx_cnt(cfg->peripheral_id, len); in spi_b91_txrx() 200 spi_rx_cnt(cfg->peripheral_id, len); in spi_b91_txrx() 203 for (int i = 0; i < len; i = i + chunk_size) { in spi_b91_txrx() [all …]
|
/Zephyr-latest/tests/drivers/uart/uart_errors/src/ |
D | main.c | 48 size_t len; member 87 (void *)evt->data.rx.buf, evt->data.rx.len, evt->data.rx.offset); in dut_async_callback() 90 evt->data.rx.len); in dut_async_callback() 91 rx_buffer_cnt += evt->data.rx.len; in dut_async_callback() 141 int len = uart_fifo_read(dev, &rx_buffer[rx_buffer_cnt], rem); in dut_int_callback() local 143 zassert_true(len >= 0); in dut_int_callback() 144 rx_buffer_cnt += len; in dut_int_callback() 172 bool completed = data->curr == data->len; in aux_int_callback() 189 req_len = data->len - data->curr; in aux_int_callback() 236 static void aux_tx(const struct device *dev, const uint8_t *buf, size_t len, int err_byte) in aux_tx() argument [all …]
|
/Zephyr-latest/samples/boards/bbc/microbit/pong/src/ |
D | ble.c | 133 const void *buf, uint16_t len) in notify_func() argument 137 printk("notify_func() data %p len %u\n", data, len); in notify_func() 139 if (!data || !len) { in notify_func() 151 if (len < BALL_INFO_LEN) { in notify_func() 330 static bool pong_uuid_match(const uint8_t *data, uint8_t len) in pong_uuid_match() argument 332 while (len >= 16U) { in pong_uuid_match() 337 len -= 16U; in pong_uuid_match() 372 while (ad_buf->len > 1) { in device_found() 373 uint8_t len = net_buf_simple_pull_u8(ad_buf); in device_found() local 377 if (len == 0U) { in device_found() [all …]
|
/Zephyr-latest/subsys/ipc/ipc_service/backends/ |
D | ipc_icmsg_me_follower.c | 37 const struct backend_data_t *data, const char *name, size_t len) in get_ept_cached_loc() argument 44 MIN(EP_NAME_LEN, len)) == 0) { in get_ept_cached_loc() 53 struct backend_data_t *data, const char *name, size_t len) in get_ept_cached_rmt() argument 55 size_t cmp_len = MIN(EP_NAME_LEN, len); in get_ept_cached_rmt() 60 strlen(data->ept_disc_rmt_cache[i].name) == len) { in get_ept_cached_rmt() 81 size_t len, icmsg_me_ept_id_t id) in cache_ept_rmt() argument 85 size_t copy_len = MIN(EP_NAME_LEN - 1, len); in cache_ept_rmt() 137 static void received(const void *data, size_t len, void *priv) in received() argument 145 __ASSERT_NO_MSG(len > 0); in received() 148 __ASSERT_NO_MSG(len > 1); in received() [all …]
|
/Zephyr-latest/subsys/net/ip/ |
D | icmpv6.c | 117 payload_len = ntohs(ip_hdr->len) - in icmpv6_handle_echo_request() 237 net_pkt_lladdr_src(orig)->len * 2 + in net_icmpv6_send_error() 261 net_pkt_lladdr_src(orig)->len); in net_icmpv6_send_error() 268 net_pkt_lladdr_dst(orig)->len); in net_icmpv6_send_error() 271 net_pkt_lladdr_dst(orig)->len); in net_icmpv6_send_error() 277 net_buf_pull_mem(pkt->buffer, net_pkt_lladdr_dst(orig)->len); in net_icmpv6_send_error() 280 net_pkt_lladdr_src(orig)->len); in net_icmpv6_send_error() 282 net_buf_pull_mem(pkt->buffer, net_pkt_lladdr_src(orig)->len); in net_icmpv6_send_error() 284 net_pkt_lladdr_src(pkt)->len = net_pkt_lladdr_dst(orig)->len; in net_icmpv6_send_error() 285 net_pkt_lladdr_dst(pkt)->len = net_pkt_lladdr_src(orig)->len; in net_icmpv6_send_error()
|
/Zephyr-latest/samples/net/sockets/big_http_download/src/ |
D | big_http_download.c | 101 ssize_t sendall(int sock, const void *buf, size_t len) in sendall() argument 103 while (len) { in sendall() 104 ssize_t out_len = send(sock, buf, len, 0); in sendall() 109 len -= out_len; in sendall() 246 void print_hex(const unsigned char *p, int len) in print_hex() argument 248 while (len--) { in print_hex() 319 int len = recv(sock, response, sizeof(response) - 1, 0); in download() local 321 if (len < 0) { in download() 331 if (len == 0) { in download() 335 mbedtls_md_update(&hash_ctx, response, len); in download() [all …]
|
/Zephyr-latest/drivers/sensor/st/lsm6dsl/ |
D | lsm6dsl_i2c.c | 22 uint8_t *value, uint8_t len) in lsm6dsl_i2c_read_data() argument 26 return i2c_burst_read_dt(&cfg->bus_cfg.i2c, reg_addr, value, len); in lsm6dsl_i2c_read_data() 30 uint8_t *value, uint8_t len) in lsm6dsl_i2c_write_data() argument 34 return i2c_burst_write_dt(&cfg->bus_cfg.i2c, reg_addr, value, len); in lsm6dsl_i2c_write_data()
|
/Zephyr-latest/subsys/bluetooth/audio/ |
D | audio_internal.h | 23 void *buf, uint16_t len, uint16_t offset); 27 const void *buf, uint16_t len, uint16_t offset, 36 void *buf, uint16_t len, uint16_t offset); 40 const void *buf, uint16_t len, uint16_t offset, uint8_t flags);
|
/Zephyr-latest/drivers/sensor/ens160/ |
D | ens160_i2c.c | 24 static int ens160_read_data_i2c(const struct device *dev, uint8_t reg, uint8_t *data, size_t len) in ens160_read_data_i2c() argument 28 return i2c_burst_read_dt(&config->i2c, reg, data, len); in ens160_read_data_i2c() 38 static int ens160_write_data_i2c(const struct device *dev, uint8_t reg, uint8_t *data, size_t len) in ens160_write_data_i2c() argument 42 __ASSERT(len == 2, "Only 2 byte write are supported"); in ens160_write_data_i2c()
|
/Zephyr-latest/subsys/logging/ |
D | log_link_ipc_service.c | 35 static void recv_cb(const void *data, size_t len, void *priv) in recv_cb() argument 39 log_multidomain_link_on_recv_cb(link_remote, data, len); in recv_cb() 43 void *data, size_t len) in link_ipc_service_send() argument 48 return ipc_service_send(&link_ipc_service->ept, data, len); in link_ipc_service_send()
|
/Zephyr-latest/include/zephyr/drivers/i3c/ |
D | hdr_ddr.h | 47 msg.len = num_bytes; in i3c_hdr_ddr_write() 75 msg.len = num_bytes; in i3c_hdr_ddr_read() 109 msg[0].len = num_write; in i3c_hdr_ddr_write_read() 115 msg[1].len = num_read; in i3c_hdr_ddr_write_read()
|
/Zephyr-latest/drivers/mfd/ |
D | mfd_ad559x_i2c.c | 17 static int mfd_ad559x_i2c_read_raw(const struct device *dev, uint8_t *val, size_t len) in mfd_ad559x_i2c_read_raw() argument 21 return i2c_read_dt(&config->i2c, val, len); in mfd_ad559x_i2c_read_raw() 24 static int mfd_ad559x_i2c_write_raw(const struct device *dev, uint8_t *val, size_t len) in mfd_ad559x_i2c_write_raw() argument 28 return i2c_write_dt(&config->i2c, val, len); in mfd_ad559x_i2c_write_raw()
|
/Zephyr-latest/samples/drivers/lora/receive/src/ |
D | main.c | 46 int ret, len; in main() local 76 len = lora_recv(lora_dev, data, MAX_DATA_LEN, K_FOREVER, in main() 78 if (len < 0) { in main() 84 LOG_HEXDUMP_INF(data, len, "LoRa RX payload"); in main()
|
/Zephyr-latest/drivers/ethernet/ |
D | eth_lan9250.c | 37 tx_buf[0].len = ARRAY_SIZE(cmd); in lan9250_write_sys_reg() 39 tx_buf[1].len = ARRAY_SIZE(addr); in lan9250_write_sys_reg() 41 tx_buf[2].len = ARRAY_SIZE(instr); in lan9250_write_sys_reg() 59 tx_buf[0].len = ARRAY_SIZE(cmd); in lan9250_read_sys_reg() 61 tx_buf[1].len = ARRAY_SIZE(addr); in lan9250_read_sys_reg() 63 tx_buf[2].len = sizeof(uint32_t); in lan9250_read_sys_reg() 66 rx_buf[0].len = 1; in lan9250_read_sys_reg() 68 rx_buf[1].len = 2; in lan9250_read_sys_reg() 70 rx_buf[2].len = sizeof(uint32_t); in lan9250_read_sys_reg() 415 tx_buf[0].len = ARRAY_SIZE(cmd); in lan9250_write_buf() [all …]
|
/Zephyr-latest/include/zephyr/net/ |
D | hostname.h | 74 int net_hostname_set(char *host, size_t len); 76 static inline int net_hostname_set(char *host, size_t len) in net_hostname_set() argument 79 ARG_UNUSED(len); in net_hostname_set()
|
/Zephyr-latest/subsys/shell/backends/ |
D | shell_uart.c | 40 uart_async_rx_on_rdy(&sh_uart->async_rx, evt->data.rx.buf, evt->data.rx.len); in async_callback() 46 size_t len = uart_async_rx_get_buf_len(&sh_uart->async_rx); in async_callback() local 49 int err = uart_rx_buf_rsp(dev, buf, len); in async_callback() 73 uint32_t len; in uart_rx_handle() local 81 len = ring_buf_put_claim(&sh_uart->rx_ringbuf, &data, in uart_rx_handle() 84 if (len > 0) { in uart_rx_handle() 85 rd_len = uart_fifo_read(dev, data, len); in uart_rx_handle() 127 } while (rd_len && (rd_len == len)); in uart_rx_handle() 169 uint32_t len; in uart_tx_handle() local 179 len = ring_buf_get_claim(&sh_uart->tx_ringbuf, (uint8_t **)&data, in uart_tx_handle() [all …]
|
/Zephyr-latest/drivers/sensor/nxp/p3t1755/ |
D | p3t1755.c | 19 static int p3t1755_i3c_read_reg(const struct device *dev, uint8_t reg, uint8_t *value, uint8_t len) in p3t1755_i3c_read_reg() argument 23 return i3c_burst_read(data->i3c_dev, reg, value, len); in p3t1755_i3c_read_reg() 26 static int p3t1755_i3c_write_reg(const struct device *dev, uint8_t reg, uint8_t *byte, uint8_t len) in p3t1755_i3c_write_reg() argument 30 return i3c_burst_write(data->i3c_dev, reg, byte, len); in p3t1755_i3c_write_reg() 35 int p3t1755_i2c_read_reg(const struct device *dev, uint8_t reg, uint8_t *value, uint8_t len) in p3t1755_i2c_read_reg() argument 39 return i2c_burst_read_dt(&config->bus_cfg.i2c, reg, value, len); in p3t1755_i2c_read_reg() 42 int p3t1755_i2c_write_reg(const struct device *dev, uint8_t reg, uint8_t *byte, uint8_t len) in p3t1755_i2c_write_reg() argument 46 return i2c_burst_write_dt(&config->bus_cfg.i2c, reg, byte, len); in p3t1755_i2c_write_reg()
|
/Zephyr-latest/drivers/flash/ |
D | flash_gd32_v3.c | 93 bool flash_gd32_valid_range(off_t offset, uint32_t len, bool write) in flash_gd32_valid_range() argument 99 ((offset + len) > SOC_NV_FLASH_SIZE)) { in flash_gd32_valid_range() 106 (len % sizeof(flash_prg_t))) { in flash_gd32_valid_range() 125 if (((offset + len) > cur) && in flash_gd32_valid_range() 126 ((offset + len) < next)) { in flash_gd32_valid_range() 130 if ((offset + len) == next) { in flash_gd32_valid_range() 140 int flash_gd32_write_range(off_t offset, const void *data, size_t len) in flash_gd32_write_range() argument 157 for (size_t i = 0U; i < (len / sizeof(flash_prg_t)); i++) { in flash_gd32_write_range()
|
/Zephyr-latest/include/zephyr/drivers/ |
D | uart.h | 258 size_t len; member 273 size_t len; member 774 size_t len, 795 size_t len, int32_t timeout); 833 size_t len, 858 size_t len, int32_t timeout); 881 size_t len); 905 size_t len);
|
/Zephyr-latest/subsys/usb/device_next/class/ |
D | usbd_hid_api.c | 72 const uint16_t len, uint8_t *const buf) in wrapper_get_report() argument 80 .wLength = len, in wrapper_get_report() 83 int l = len; in wrapper_get_report() 94 const uint16_t len, const uint8_t *const buf) in wrapper_set_report() argument 102 .wLength = len, in wrapper_set_report() 105 int l = len; in wrapper_set_report() 145 const uint16_t len, const uint8_t *const buf) in wrapper_output_report() argument 148 ARG_UNUSED(len); in wrapper_output_report()
|