/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/boards/shields/rk055hdmipi4m/boards/ |
D | mimxrt595_evk_mimxrt595s_cm33.overlay | 4 * SPDX-License-Identifier: Apache-2.0 8 * Configure FlexSPI2 to use 1KB of AHB RX buffer for GPU/Display master. 12 rx-buffer-config = <1 7 11 1024>; 15 /* GT911 IRQ GPIO is active low on this board, and needs probing mode */ 17 irq-gpios = <&nxp_mipi_connector 29 GPIO_ACTIVE_LOW>; 18 alt-addr = <0x14>;
|
/Zephyr-latest/boards/shields/rk055hdmipi4ma0/boards/ |
D | mimxrt595_evk_mimxrt595s_cm33.overlay | 4 * SPDX-License-Identifier: Apache-2.0 8 * Configure FlexSPI2 to use 1KB of AHB RX buffer for GPU/Display master. 12 rx-buffer-config = <1 7 11 1024>; 15 /* GT911 IRQ GPIO is active low on this board, and needs probing mode */ 17 irq-gpios = <&nxp_mipi_connector 29 GPIO_ACTIVE_LOW>; 18 alt-addr = <0x14>;
|
/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() 37 const struct spi_buf_set rx = { 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/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/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/ |
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_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 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() 50 uint8_t addr[2]; in lan9250_read_sys_reg() local [all …]
|
/Zephyr-latest/drivers/bluetooth/hci/ |
D | hci_ifx_psoc6_bless.c | 5 * SPDX-License-Identifier: Apache-2.0 102 struct psoc6_bless_data *hci = dev->data; in psoc6_bless_events_handler() 114 switch (hci_rx->packetType) { in psoc6_bless_events_handler() 116 buf = bt_buf_get_evt(hci_rx->data[0], 0, K_NO_WAIT); in psoc6_bless_events_handler() 118 LOG_ERR("Failed to allocate the buffer for RX: EVENT "); in psoc6_bless_events_handler() 126 LOG_ERR("Failed to allocate the buffer for RX: ACL "); in psoc6_bless_events_handler() 139 if (buf_tailroom < hci_rx->dataLength) { in psoc6_bless_events_handler() 140 LOG_WRN("Not enough space for rx data"); in psoc6_bless_events_handler() 143 net_buf_add_mem(buf, hci_rx->data, hci_rx->dataLength); in psoc6_bless_events_handler() 144 hci->recv(dev, buf); in psoc6_bless_events_handler() [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/dts/bindings/spi/ |
D | nxp,imx-flexspi.yaml | 1 # Copyright 2018-2023, NXP 2 # SPDX-License-Identifier: Apache-2.0 6 compatible: "nxp,imx-flexspi" 8 include: [spi-controller.yaml, pinctrl-device.yaml] 17 ahb-bufferable: 23 ahb-cacheable: 29 ahb-prefetch: 34 ahb-read-addr-opt: 40 combination-mode: 43 Combine port A and port B data pins to support octal mode access by [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/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 39 RX packets 33 bytes 2408 (2.4 KB) 40 RX errors 0 dropped 0 overruns 0 frame 0 49 RX packets 21 bytes 1340 (1.3 KB) [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 …]
|
D | i2c_sam_twihs_rtio.c | 6 * SPDX-License-Identifier: Apache-2.0 14 * Only I2C Controller Mode with 7 bit addressing is currently supported. 33 #include "i2c-priv.h" 35 /** I2C bus speed [Hz] in Standard Mode */ 37 /** I2C bus speed [Hz] in Fast Mode */ 39 /** I2C bus speed [Hz] in High Speed Mode */ 70 cl_div = ((SOC_ATMEL_SAM_MCK_FREQ_HZ / (speed * 2U)) - 3) in i2c_clk_set() 82 return -EIO; in i2c_clk_set() 86 twihs->TWIHS_CWGR = TWIHS_CWGR_CLDIV(cl_div) | TWIHS_CWGR_CHDIV(cl_div) in i2c_clk_set() 94 const struct i2c_sam_twihs_dev_cfg *const dev_cfg = dev->config; in i2c_sam_twihs_configure() [all …]
|
/Zephyr-latest/subsys/bluetooth/mesh/ |
D | net.c | 4 * SPDX-License-Identifier: Apache-2.0 62 struct bt_mesh_net_rx *rx; member 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() 169 static void msg_cache_add(struct bt_mesh_net_rx *rx) in msg_cache_add() argument [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) 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() 139 net_buf_simple_add_u8(&adv->b, UNSEG_HDR(1, tx->aid)); in send_unseg() 142 net_buf_simple_add_mem(&adv->b, sdu->data, sdu->len); in send_unseg() [all …]
|
D | friend.c | 4 * SPDX-License-Identifier: Apache-2.0 36 #warning Frienship feature may work unstable when non-deferred log mode is selected. Use the \ 90 return frnd->subnet != NULL; in friend_is_allocated() 93 static bool is_lpn_unicast(struct bt_mesh_friend *frnd, uint16_t addr) in is_lpn_unicast() argument 95 if (frnd->lpn == BT_MESH_ADDR_UNASSIGNED) { in is_lpn_unicast() 99 return (addr >= frnd->lpn && addr < (frnd->lpn + frnd->num_elem)); in is_lpn_unicast() 116 if (established && !frnd->established) { in bt_mesh_friend_find() 121 (!frnd->subnet || frnd->subnet->net_idx != net_idx)) { in bt_mesh_friend_find() 135 return bt_mesh_friend_cred_create(&frnd->cred[idx], frnd->lpn, in friend_cred_create() 137 frnd->lpn_counter, frnd->counter, in friend_cred_create() [all …]
|
/Zephyr-latest/tests/bsim/bluetooth/mesh/src/ |
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/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); 135 uint8_t ll_sync_create_cancel(void **rx); 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); 148 uint8_t ll_big_sync_terminate(uint8_t big_handle, void **rx); 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); [all …]
|
/Zephyr-latest/tests/boards/intel_adsp/ssp/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 97 TC_PRINT("rx callback status %d\n", status); in dma_callback_rx() 99 TC_PRINT("rx giving xfer_sem\n"); in dma_callback_rx() 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/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/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/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 …]
|