/Zephyr-latest/boards/renesas/da1469x_dk_pro/dts/ |
D | da1469x_dk_pro_psram.overlay | 4 * SPDX-License-Identifier: Apache-2.0 9 sram-ext = &memc; 17 /* QSPIC settings for the APS6404L-3SQR QSPI PSRAM memory in QPI mode. */ 20 is-ram; 21 dev-size = <DT_SIZE_M(64)>; 22 dev-type = <0x5D>; 23 dev-id = <0x0D>; 24 dev-density = <0xE040>; 25 reset-delay-us = <50>; 26 read-cs-idle-min-ns = <18>; [all …]
|
/Zephyr-latest/dts/bindings/memory-controllers/ |
D | renesas,smartbond-nor-psram.yaml | 2 # SPDX-License-Identifier: Apache-2.0 8 compatible: "renesas,smartbond-nor-psram" 14 is-ram: 19 dev-size: 25 dev-type: 31 dev-density: 40 dev-id: 46 reset-delay-us: 52 read-cs-idle-min-ns: 59 erase-cs-idle-min-ns: [all …]
|
/Zephyr-latest/drivers/sensor/bosch/bmi270/ |
D | bmi270_spi.c | 4 * SPDX-License-Identifier: Apache-2.0 8 * Bus-specific functionality for BMI270s accessed via SPI. 19 return spi_is_ready_dt(&bus->spi) ? 0 : -ENODEV; in bmi270_bus_check_spi() 26 uint8_t addr; in bmi270_reg_read_spi() local 29 .buf = &addr, in bmi270_reg_read_spi() 32 const struct spi_buf_set tx = { in bmi270_reg_read_spi() local 48 addr = start | 0x80; in bmi270_reg_read_spi() 50 ret = spi_transceive_dt(&bus->spi, &tx, &rx); in bmi270_reg_read_spi() 64 uint8_t addr; in bmi270_reg_write_spi() local 66 {.buf = &addr, .len = sizeof(addr)}, in bmi270_reg_write_spi() [all …]
|
/Zephyr-latest/drivers/misc/ft8xx/ |
D | ft8xx_drv.c | 4 * SPDX-License-Identifier: Apache-2.0 40 #define MAX_READ_LEN (UINT16_MAX - ADDR_SIZE - DUMMY_READ_SIZE) 41 #define MAX_WRITE_LEN (UINT16_MAX - ADDR_SIZE) 47 static void insert_addr(uint32_t addr, uint8_t *buff) in insert_addr() argument 49 buff[0] = (addr >> 16) & 0x3f; in insert_addr() 50 buff[1] = (addr >> 8) & 0xff; in insert_addr() 51 buff[2] = (addr) & 0xff; in insert_addr() 59 LOG_ERR("SPI bus %s not ready", spi.bus->name); in ft8xx_drv_init() 60 return -ENODEV; in ft8xx_drv_init() 64 * If not, use polling mode. in ft8xx_drv_init() [all …]
|
/Zephyr-latest/drivers/ethernet/ |
D | eth_w5500.c | 1 /* W5500 Stand-alone Ethernet Controller with SPI 6 * SPDX-License-Identifier: Apache-2.0 32 #define W5500_SPI_BLOCK_SELECT(addr) (((addr) >> 16) & 0x1f) argument 33 #define W5500_SPI_READ_CONTROL(addr) (W5500_SPI_BLOCK_SELECT(addr) << 3) argument 34 #define W5500_SPI_WRITE_CONTROL(addr) \ argument 35 ((W5500_SPI_BLOCK_SELECT(addr) << 3) | BIT(2)) 37 static int w5500_spi_read(const struct device *dev, uint32_t addr, in w5500_spi_read() argument 40 const struct w5500_config *cfg = dev->config; in w5500_spi_read() 44 addr >> 8, in w5500_spi_read() 45 addr, in w5500_spi_read() [all …]
|
D | eth_enc424j600.c | 1 /* ENC424J600 Stand-alone Ethernet Controller with SPI 7 * SPDX-License-Identifier: Apache-2.0 29 const struct enc424j600_config *config = dev->config; in enc424j600_write_sbc() 35 const struct spi_buf_set tx = { in enc424j600_write_sbc() local 40 spi_write_dt(&config->spi, &tx); in enc424j600_write_sbc() 43 static void enc424j600_write_sfru(const struct device *dev, uint8_t addr, in enc424j600_write_sfru() argument 46 const struct enc424j600_config *config = dev->config; in enc424j600_write_sfru() 52 const struct spi_buf_set tx = { in enc424j600_write_sfru() local 58 buf[1] = addr; in enc424j600_write_sfru() 62 spi_write_dt(&config->spi, &tx); in enc424j600_write_sfru() [all …]
|
D | eth_lan9250.c | 1 /* LAN9250 Stand-alone Ethernet Controller with SPI 5 * SPDX-License-Identifier: Apache-2.0 26 const struct lan9250_config *config = dev->config; in lan9250_write_sys_reg() 28 uint8_t addr[2]; in lan9250_write_sys_reg() local 31 const struct spi_buf_set tx = {.buffers = tx_buf, .count = 3}; in lan9250_write_sys_reg() local 33 sys_put_be16(address, addr); in lan9250_write_sys_reg() 38 tx_buf[1].buf = addr; in lan9250_write_sys_reg() 39 tx_buf[1].len = ARRAY_SIZE(addr); in lan9250_write_sys_reg() 43 return spi_write_dt(&config->spi, &tx); in lan9250_write_sys_reg() 48 const struct lan9250_config *config = dev->config; in lan9250_read_sys_reg() [all …]
|
/Zephyr-latest/subsys/bluetooth/mesh/ |
D | blob_cli.c | 4 * SPDX-License-Identifier: Apache-2.0 19 SYS_SLIST_FOR_EACH_CONTAINER((sys_slist_t *)&(cli)->inputs->targets, \ 22 /* The Maximum BLOB Poll Interval - T_MBPI */ 25 #define CLIENT_TIMEOUT_MSEC(cli) (10 * MSEC_PER_SEC * (cli->inputs->timeout_base + 2) + \ 26 100 * cli->inputs->ttl) 30 #define SENDING_CHUNKS_IN_PULL_MODE(cli) ((cli)->state == BT_MESH_BLOB_CLI_STATE_BLOCK_SEND && \ 31 (cli)->xfer->mode == BT_MESH_BLOB_XFER_MODE_PULL) 32 #define UNICAST_MODE(cli) ((cli)->inputs->group == BT_MESH_ADDR_UNASSIGNED || \ 33 (cli)->tx.ctx.force_unicast) 65 int64_t next_timeout_ms = cli->tx.cli_timestamp; in start_retry_timer() [all …]
|
D | dfu_cli.c | 4 * SPDX-License-Identifier: Apache-2.0 22 (sys_slist_t *)&((cli)->blob.inputs)->targets, target, blob.n) 26 .app_idx = (cli)->blob.inputs->app_idx, .addr = dst, \ 27 .send_ttl = (cli)->blob.inputs->ttl, \ 72 uint16_t addr) in target_get() argument 77 if (addr == target->blob.addr) { in target_get() 89 target->status = status; in target_failed() 91 LOG_ERR("Target 0x%04x failed: %u", target->blob.addr, status); in target_failed() 96 if (target->blob.status == BT_MESH_BLOB_SUCCESS) { in target_failed() 97 target->blob.status = BT_MESH_BLOB_ERR_INTERNAL; in target_failed() [all …]
|
D | transport.c | 4 * SPDX-License-Identifier: Apache-2.0 54 #define BLOCK_COMPLETE(seg_n) (uint32_t)(((uint64_t)1 << (seg_n + 1)) - 1) 85 uint8_t blocked:1, /* Blocked by ongoing tx */ 119 static int send_unseg(struct bt_mesh_net_tx *tx, struct net_buf_simple *sdu, in send_unseg() argument 126 tx->xmit, BUF_TIMEOUT); in send_unseg() 129 return -ENOBUFS; in send_unseg() 132 net_buf_simple_reserve(&adv->b, BT_MESH_NET_HDR_LEN); in send_unseg() 135 net_buf_simple_add_u8(&adv->b, TRANS_CTL_HDR(*ctl_op, 0)); in send_unseg() 136 } else if (BT_MESH_IS_DEV_KEY(tx->ctx->app_idx)) { in send_unseg() 137 net_buf_simple_add_u8(&adv->b, UNSEG_HDR(0, 0)); in send_unseg() [all …]
|
D | net.c | 4 * SPDX-License-Identifier: Apache-2.0 128 val = sys_get_be32(tail - 4) ^ sys_get_be32(tail - 8); in check_dup() 131 if (dup_cache[--i] == val) { in check_dup() 137 if (dup_cache[--i] == val) { in check_dup() 153 if (msg_cache[--i].src == SRC(pdu->data) && in msg_cache_match() 154 msg_cache[i].seq == (SEQ(pdu->data) & BIT_MASK(17))) { in msg_cache_match() 160 if (msg_cache[--i].src == SRC(pdu->data) && in msg_cache_match() 161 msg_cache[i].seq == (SEQ(pdu->data) & BIT_MASK(17))) { in msg_cache_match() 172 msg_cache[msg_cache_next].src = rx->ctx.addr; in msg_cache_add() 173 msg_cache[msg_cache_next].seq = rx->seq; in msg_cache_add() [all …]
|
/Zephyr-latest/tests/subsys/modbus/src/ |
D | test_modbus_server.c | 4 * SPDX-License-Identifier: Apache-2.0 25 static int coil_rd(uint16_t addr, bool *state) in coil_rd() argument 27 if (addr >= (sizeof(coils) * 8)) { in coil_rd() 28 return -ENOTSUP; in coil_rd() 31 if (coils & BIT(addr)) { in coil_rd() 37 LOG_DBG("Coil read, addr %u, %d", addr, (int)*state); in coil_rd() 42 static int coil_wr(uint16_t addr, bool state) in coil_wr() argument 44 if (addr >= (sizeof(coils) * 8)) { in coil_wr() 45 return -ENOTSUP; in coil_wr() 49 coils |= BIT(addr); in coil_wr() [all …]
|
/Zephyr-latest/drivers/ethernet/eth_nxp_enet_qos/ |
D | eth_nxp_enet_qos_mac.c | 4 * SPDX-License-Identifier: Apache-2.0 43 struct nxp_enet_qos_mac_data *data = dev->data; in eth_nxp_enet_qos_iface_init() 45 net_if_set_link_addr(iface, data->mac_addr.addr, in eth_nxp_enet_qos_iface_init() 46 sizeof(((struct net_eth_addr *)NULL)->addr), NET_LINK_ETHERNET); in eth_nxp_enet_qos_iface_init() 48 if (data->iface == NULL) { in eth_nxp_enet_qos_iface_init() 49 data->iface = iface; in eth_nxp_enet_qos_iface_init() 57 const struct nxp_enet_qos_mac_config *config = dev->config; in eth_nxp_enet_qos_tx() 58 struct nxp_enet_qos_mac_data *data = dev->data; in eth_nxp_enet_qos_tx() 59 enet_qos_t *base = config->base; in eth_nxp_enet_qos_tx() 61 volatile union nxp_enet_qos_tx_desc *tx_desc_ptr = data->tx.descriptors; in eth_nxp_enet_qos_tx() [all …]
|
/Zephyr-latest/tests/bsim/bluetooth/mesh/src/ |
D | test_blob.c | 4 * SPDX-License-Identifier: Apache-2.0 39 .option = "use-pull-mode", in test_args_parse() 40 .descript = "Set transfer type to pull mode" in test_args_parse() 46 .option = "msg-fail-type", in test_args_parse() 52 .name = "{inactive, start, wait-block, wait-chunk, complete, suspended}", in test_args_parse() 53 .option = "expected-phase", in test_args_parse() 63 enum bt_mesh_blob_io_mode mode) in blob_io_open() argument 79 partial_block += chunk->size; in blob_chunk_wr() 80 ASSERT_TRUE_MSG(partial_block <= block->size, "Received block is too large\n"); in blob_chunk_wr() 83 if (partial_block == block->size) { in blob_chunk_wr() [all …]
|
D | test_transport.c | 4 * SPDX-License-Identifier: Apache-2.0 23 * This file contains tests for sending and receiving messages end-to-end in 25 * - Address resolution 26 * - Segmented messages 27 * - Single segment 28 * - Max length 29 * - Groups 30 * - Virtual addresses 31 * - Loopback 50 .addr = 0x0001, [all …]
|
/Zephyr-latest/drivers/can/ |
D | can_mcan.c | 2 * Copyright (c) 2022-2023 Vestas Wind Systems A/S 5 * SPDX-License-Identifier: Apache-2.0 22 const struct can_mcan_config *config = dev->config; in can_mcan_read_reg() 25 err = config->ops->read_reg(dev, reg, val); in can_mcan_read_reg() 35 const struct can_mcan_config *config = dev->config; in can_mcan_write_reg() 38 err = config->ops->write_reg(dev, reg, val); in can_mcan_write_reg() 48 struct can_mcan_data *data = dev->data; in can_mcan_exit_sleep_mode() 53 k_mutex_lock(&data->lock, K_FOREVER); in can_mcan_exit_sleep_mode() 75 if (k_cycle_get_32() - start_time > k_ms_to_cyc_ceil32(CAN_INIT_TIMEOUT_MS)) { in can_mcan_exit_sleep_mode() 82 err = -EAGAIN; in can_mcan_exit_sleep_mode() [all …]
|
/Zephyr-latest/dts/bindings/mspi/ |
D | mspi-device.yaml | 2 # SPDX-License-Identifier: Apache-2.0 8 on-bus: mspi 14 mspi-max-frequency: 22 mspi-io-mode: 25 - "MSPI_IO_MODE_SINGLE" 26 - "MSPI_IO_MODE_DUAL" 27 - "MSPI_IO_MODE_DUAL_1_1_2" 28 - "MSPI_IO_MODE_DUAL_1_2_2" 29 - "MSPI_IO_MODE_QUAD" 30 - "MSPI_IO_MODE_QUAD_1_1_4" [all …]
|
/Zephyr-latest/doc/connectivity/networking/ |
D | eth_bridge_native_sim_setup.rst | 14 :kconfig:option:`CONFIG_NET_ETHERNET_BRIDGE` Kconfig option. In this setup, the net-tools 20 .. code-block:: console 22 cd $ZEPHYR_BASE/../tools/net-tools 23 ./net-setup.sh -c zeth-multiface.conf -i zeth0 -t 2 25 The ``-c`` tells which configuration file to use, where ``zeth-multiface.conf`` is tailored 27 The ``-i`` option tells what is the first host interface name. The ``-t`` tells how 32 .. code-block:: console 41 TX packets 49 bytes 4092 (4.0 KB) 42 TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 51 TX packets 45 bytes 3916 (3.9 KB) [all …]
|
/Zephyr-latest/drivers/wifi/nrf_wifi/src/ |
D | net_if.c | 4 * SPDX-License-Identifier: Apache-2.0 9 * Zephyr OS layer of the Wi-Fi driver. 62 vif_ctx_zep->set_if_event_received = true; in nrf_wifi_set_iface_event_handler() 63 vif_ctx_zep->set_if_status = event->return_value; in nrf_wifi_set_iface_event_handler() 84 if (!vif_ctx_zep->zep_net_if_ctx) { in nrf_wifi_rpu_recovery_work_handler() 89 rpu_ctx_zep = vif_ctx_zep->rpu_ctx_zep; in nrf_wifi_rpu_recovery_work_handler() 90 if (!rpu_ctx_zep || !rpu_ctx_zep->rpu_ctx) { in nrf_wifi_rpu_recovery_work_handler() 95 if (rpu_ctx_zep->rpu_recovery_in_progress) { in nrf_wifi_rpu_recovery_work_handler() 104 if (rpu_ctx_zep->last_rpu_recovery_time_ms && in nrf_wifi_rpu_recovery_work_handler() 105 ((k_uptime_get() - rpu_ctx_zep->last_rpu_recovery_time_ms) < in nrf_wifi_rpu_recovery_work_handler() [all …]
|
/Zephyr-latest/drivers/i2c/ |
D | i2c_andes_atciic100.c | 4 * SPDX-License-Identifier: Apache-2.0 27 uint16_t addr, const uint8_t *data, uint32_t num, uint8_t flags); 29 uint16_t addr, uint8_t *data, uint32_t num, uint8_t flags); 44 struct i2c_atciic100_dev_data_t *dev_data = dev->data; in i2c_atciic100_default_control() 47 k_sem_init(&dev_data->bus_lock, 1, 1); in i2c_atciic100_default_control() 48 k_sem_init(&dev_data->device_sync_sem, 0, 1); in i2c_atciic100_default_control() 60 dev_data->fifo_depth = 2; in i2c_atciic100_default_control() 63 dev_data->fifo_depth = 4; in i2c_atciic100_default_control() 66 dev_data->fifo_depth = 8; in i2c_atciic100_default_control() 69 dev_data->fifo_depth = 16; in i2c_atciic100_default_control() [all …]
|
/Zephyr-latest/subsys/bluetooth/controller/include/ |
D | ll.h | 2 * Copyright (c) 2016-2021 Nordic Semiconductor ASA 5 * SPDX-License-Identifier: Apache-2.0 81 uint8_t ll_adv_aux_random_addr_set(uint8_t handle, uint8_t const *const addr); 141 uint8_t ll_past_param(uint16_t conn_handle, uint8_t mode, uint16_t skip, uint16_t timeout, 143 uint8_t ll_default_past_param(uint8_t mode, uint16_t skip, uint16_t timeout, uint8_t cte_type); 175 /* Must be implemented by vendor if vendor-specific data path is supported */ 213 uint8_t ll_fal_add(bt_addr_le_t *addr); 214 uint8_t ll_fal_remove(bt_addr_le_t *addr); 218 uint8_t ll_pal_add(const bt_addr_le_t *const addr, const uint8_t sid); 219 uint8_t ll_pal_remove(const bt_addr_le_t *const addr, const uint8_t sid); [all …]
|
/Zephyr-latest/soc/sensry/ganymed/sy1xx/common/ |
D | udma.h | 2 * SPDX-License-Identifier: Apache-2.0 30 * For each channel, the RX and TX part have the following registers 31 * The offsets are given relative to the offset of the RX or TX part 44 * The configuration register of the RX and TX parts for each channel can be accessed using the 60 /* Configure for 8-bits transfer */ 62 /* Configure for 16-bits transfer */ 64 /* Configure for 32-bits transfer */ 66 /* Configure for continuous mode */ 71 /* Clock-gating control register */ 140 #define SY1XX_UDMA_START_RX(base, addr, size, cfg) \ argument [all …]
|
/Zephyr-latest/tests/boards/intel_adsp/ssp/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 87 TC_PRINT("tx callback status %d\n", status); in dma_callback() 89 TC_PRINT("tx giving up\n"); in dma_callback() 106 dma_cfg.dma_slot = props->dma_hs_id; in config_output_dma() 124 return -1; in config_output_dma() 131 dma_block_cfgs[i].dest_address = props->fifo_address; in config_output_dma() 132 TC_PRINT("dma block %d block_size %d, source addr %x, dest addr %x\n", in config_output_dma() 135 if (i < XFERS - 1) { in config_output_dma() 146 dma_cfg_rx.dma_slot = props->dma_hs_id; in config_input_dma() 164 return -1; in config_input_dma() [all …]
|
/Zephyr-latest/drivers/sensor/adi/adxl345/ |
D | adxl345.c | 4 * SPDX-License-Identifier: Apache-2.0 23 return device_is_ready(bus->i2c.bus); in adxl345_bus_is_ready_i2c() 29 const struct adxl345_dev_config *cfg = dev->config; in adxl345_reg_access_i2c() 32 return i2c_burst_read_dt(&cfg->bus.i2c, reg_addr, data, length); in adxl345_reg_access_i2c() 34 return i2c_burst_write_dt(&cfg->bus.i2c, reg_addr, data, length); in adxl345_reg_access_i2c() 42 return spi_is_ready_dt(&bus->spi); in adxl345_bus_is_ready_spi() 48 const struct adxl345_dev_config *cfg = dev->config; in adxl345_reg_access_spi() 52 struct spi_buf_set tx = { in adxl345_reg_access_spi() local 59 tx.count = 1; in adxl345_reg_access_spi() 60 ret = spi_transceive_dt(&cfg->bus.spi, &tx, &rx); in adxl345_reg_access_spi() [all …]
|
/Zephyr-latest/subsys/bluetooth/mesh/shell/ |
D | blob.c | 4 * SPDX-License-Identifier: Apache-2.0 28 enum bt_mesh_blob_io_mode mode) in blob_io_open() argument 42 for (i = 0; i < chunk->size; ++i) { in blob_chunk_wr() 43 blob_rx_sum += chunk->data[i]; in blob_chunk_wr() 44 if (chunk->data[i] != in blob_chunk_wr() 45 blob_data[(i + chunk->offset) % sizeof(blob_data)]) { in blob_chunk_wr() 58 for (int i = 0; i < chunk->size; ++i) { in blob_chunk_rd() 59 chunk->data[i] = in blob_chunk_rd() 60 blob_data[(i + chunk->offset) % sizeof(blob_data)]; in blob_chunk_rd() 89 target->addr, reason); in blob_cli_lost_target() [all …]
|