Home
last modified time | relevance | path

Searched +full:rx +full:- +full:sync +full:- +full:mode (Results 1 – 25 of 88) sorted by relevance

1234

/Zephyr-latest/dts/bindings/i2s/
Dnxp,mcux-i2s.yaml2 # SPDX-License-Identifier: Apache-2.0
4 description: NXP mcux SAI-I2S controller
6 compatible: "nxp,mcux-i2s"
8 include: [i2s-controller.yaml, pinctrl-device.yaml]
17 dma-names:
20 nxp,tx-dma-channel:
25 nxp,rx-dma-channel:
28 description: rx dma channel number
30 nxp,tx-sync-mode:
32 description: tx sync mode
[all …]
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/
Dull_sync.c2 * Copyright (c) 2020-2021 Nordic Semiconductor ASA
4 * SPDX-License-Identifier: Apache-2.0
72 * allocated using mem interface. timeout_reload being non-zero is used to
73 * indicate that a sync is established. And is used to check for sync being
74 * terminated under race conditions between HCI Tx and Rx thread when
83 static void sync_ticker_cleanup(struct ll_sync_set *sync, ticker_op_func stop_op_cb);
121 struct ll_sync_set *sync; in ll_sync_create() local
126 if (!scan || scan->periodic.sync) { in ll_sync_create()
132 if (!scan_coded || scan_coded->periodic.sync) { in ll_sync_create()
138 /* Do not sync twice to the same peer and same SID */ in ll_sync_create()
[all …]
Dull_df.c4 * SPDX-License-Identifier: Apache-2.0
106 * - Add release of df_adv_cfg when adv_sync is released.
180 adv->df_cfg = NULL; in ull_df_reset()
203 /* Re-initialize the free IQ report mfifo */ in init_reset()
211 /* Allocate free IQ report node rx */ in init_reset()
276 if (!adv->df_cfg) { in ll_df_set_cl_cte_tx_params()
277 adv->df_cfg = df_adv_cfg_acquire(); in ll_df_set_cl_cte_tx_params()
280 cfg = adv->df_cfg; in ll_df_set_cl_cte_tx_params()
282 if (cfg->is_enabled) { in ll_df_set_cl_cte_tx_params()
286 cfg->cte_count = cte_count; in ll_df_set_cl_cte_tx_params()
[all …]
Dull_conn.c2 * Copyright (c) 2018-2021 Nordic Semiconductor ASA
4 * SPDX-License-Identifier: Apache-2.0
195 if (conn->lll.handle != handle) { in ll_connected_get()
230 return -EINVAL; in ll_tx_mem_enqueue()
235 return -ENOBUFS; in ll_tx_mem_enqueue()
238 lll_tx->handle = handle; in ll_tx_mem_enqueue()
239 lll_tx->node = tx; in ll_tx_mem_enqueue()
244 if (ull_ref_get(&conn->ull)) { in ll_tx_mem_enqueue()
249 force_md_cnt = force_md_cnt_calc(&conn->lll, tx_rate); in ll_tx_mem_enqueue()
266 if (IS_ENABLED(CONFIG_BT_PERIPHERAL) && conn->lll.role) { in ll_tx_mem_enqueue()
[all …]
Dull_iso.c4 * SPDX-License-Identifier: Apache-2.0
102 /* Allocate data path pools for RX/TX directions for each stream */
122 /* Declare the ISO rx node RXFIFO. This is a composite pool-backed MFIFO for
124 * - mfifo_iso_rx: FIFO with pointers to PDU buffers
125 * - mem_iso_rx: Backing data pool for PDU buffer elements
126 * - mem_link_iso_rx: Pool of memq_link_t elements
128 * One extra rx buffer is reserved for empty ISO PDU reception.
176 dp = cis->hdr.datapath_in; in ll_read_iso_tx_sync()
180 isoal_tx_get_sync_info(dp->source_hdl, seq, in ll_read_iso_tx_sync()
193 if (!adv_stream || !adv_stream->dp || in ll_read_iso_tx_sync()
[all …]
/Zephyr-latest/dts/bindings/dai/
Dnxp,dai-sai.yaml2 # SPDX-License-Identifier: Apache-2.0
6 compatible: "nxp,dai-sai"
8 include: [base.yaml, pinctrl-device.yaml]
13 mclk-is-output:
21 rx-fifo-watermark:
28 tx-fifo-watermark:
31 Use this property to specify the watermark value for the RX
37 fifo-depth:
49 for tx/rx-fifo-watermark uses DEFAULT_FIFO_DEPTH instead of this
53 dai-index:
[all …]
/Zephyr-latest/drivers/dai/nxp/sai/
Dsai.c4 * SPDX-License-Identifier: Apache-2.0
53 cfg = dev->config; in sai_mclk_config()
54 data = dev->data; in sai_mclk_config()
56 mclk_config.mclkOutputEnable = cfg->mclk_is_output; in sai_mclk_config()
65 ret = get_mclk_rate(&cfg->clk_data, bclk_source, &mclk_rate); in sai_mclk_config()
73 LOG_DBG("target MCLK is %u", bespoke->mclk_rate); in sai_mclk_config()
79 mclk_config.mclkHz = bespoke->mclk_rate; in sai_mclk_config()
82 SAI_SetMasterClockConfig(UINT_TO_I2S(data->regmap), &mclk_config); in sai_mclk_config()
84 set_msel(data->regmap, msel); in sai_mclk_config()
96 data = dev->data; in sai_isr()
[all …]
Dsai.h3 * SPDX-License-Identifier: Apache-2.0
51 /* used to convert the clock-names property into an array of clock names */
72 /* used to convert a clock-names property into an array of clock names. If the
89 /* used to parse the tx-fifo-watermark property. If said property is not
97 /* used to parse the rx-fifo-watermark property. If said property is not
107 POINTER_TO_UINT(&(UINT_TO_I2S(DT_INST_REG_ADDR(inst))->TDR[idx]))
111 POINTER_TO_UINT(&(UINT_TO_I2S(DT_INST_REG_ADDR(inst))->RDR[idx]))
113 /* internal macro used to retrieve the default TX/RX FIFO's size (in FIFO words) */
117 /* used to retrieve the TX/RX FIFO's size (in FIFO words) */
129 /* used to retrieve the synchronization mode of the transmitter. If this
[all …]
/Zephyr-latest/drivers/ethernet/
Doa_tc6.c4 * SPDX-License-Identifier: Apache-2.0
13 * When IPv6 support enabled - the minimal size of network buffer
26 const struct spi_buf_set rx = { .buffers = &rx_buf, .count = 1 }; in oa_tc6_reg_read() local
32 * When non-protected case - we need to decrase them in oa_tc6_reg_read()
34 if (!tc6->protected) { in oa_tc6_reg_read()
35 tx_buf.len -= sizeof(rvn); in oa_tc6_reg_read()
36 rx_buf.len -= sizeof(rvn); in oa_tc6_reg_read()
49 ret = spi_transceive_dt(tc6->spi, &tx, &rx); in oa_tc6_reg_read()
58 return -1; in oa_tc6_reg_read()
63 /* In protected mode read data is followed by its compliment value */ in oa_tc6_reg_read()
[all …]
Deth_xlnx_gem_priv.h7 * SPDX-License-Identifier: Apache-2.0
22 #define ETH_XLNX_BUFFER_ALIGNMENT 4 /* RX/TX buffer alignment (in bytes) */
26 /* Receive Buffer Descriptor bits & masks: comp. Zynq-7000 TRM, Table 16-2. */
30 * [31 .. 02] Mask for effective buffer address -> excludes [1..0]
31 * [01] Wrap bit, last BD in RX BD ring
45 * [24] this bit has different semantics depending on whether RX checksum
47 * [23 .. 22] These bits have different semantics depending on whether RX check-
54 * [15] End-of-frame bit
55 * [14] Start-of-frame bit
56 * [13] FCS status bit for FCS ignore mode
[all …]
/Zephyr-latest/include/zephyr/drivers/
Di2s.h4 * SPDX-License-Identifier: Apache-2.0
9 * @brief Public APIs for the I2S (Inter-IC Sound) bus drivers.
20 * @brief I2S (Inter-IC Sound) Interface
23 * as common non-standard extensions such as PCM Short/Long Frame Sync,
55 * -. .-. .-. .-. .-. .-. .-. .-. .-. .-. .-. .-. .-. .-. .-. .-. .-. .-.
56 * SCK '-' '-' '-' '-' '-' '-' '-' '-' '-' '-' '-' '-' '-' '-' '-' '-' '-' '
57 * -. .-------------------------------.
58 * WS '-------------------------------' '----
59 * -.---.---.---.---.---.---.---.---.---.---.---.---.---.---.---.---.---.
61 * -'---'---'---'---'---'---'---'---'---'---'---'---'---'---'---'---'---'
[all …]
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/nordic/lll/
Dlll_df_types.h4 * SPDX-License-Identifier: Apache-2.0
68 #define RSSI_DBM_TO_DECI_DBM(x) (-(x) * 10)
103 struct node_rx_pdu rx; member
129 /* Double buffer to store DF sync configuration */
136 /* Parameters for reception of Constant Tone Extension in connected mode */
144 /* Double buffer to store receive and sampling configuration for connected mode */
146 /* Stores information if the RX configuration was set at least once.
152 * RX configuration by ISR handlers.
175 /* Configuration for transmission of Constant Tone Extension in connected mode */
/Zephyr-latest/subsys/bluetooth/controller/
DKconfig.ll_sw_split3 # Copyright (c) 2016-2017 Nordic Semiconductor ASA
4 # SPDX-License-Identifier: Apache-2.0
120 # Hidden, Controller's Co-Operative high priority Rx thread stack size.
125 # Hidden, Controller's Co-Operative Rx thread stack size.
152 https://www.bluetooth.com/specifications/assigned-numbers/company-identifiers
167 to Extended Advertising mode, and restore it when switching back to
168 Legacy Non-Directed Advertising mode.
180 zero-based numbering. When using with Zephyr host this option can be
233 module-str = "Bluetooth Controller ISO-AL"
237 bool "ISO-AL verbose debug logging"
[all …]
/Zephyr-latest/drivers/ieee802154/
Dieee802154_dw1000_regs.h4 * SPDX-License-Identifier: Apache-2.0
7 * https://github.com/Decawave/mynewt-dw1000-core.git
14 * Copyright (C) 2017-2018, Decawave Limited, All Rights Reserved
24 * http://www.apache.org/licenses/LICENSE-2.0
75 /* Frame Filtering Behave as a Co-ordinator */
97 /* Disable Double RX Buffer */
106 /* Standard Frame mode */
108 /* Long Frames mode */
112 /* Receiver Mode 110 kbps data rate */
117 * Receiver Auto-Re-enable.
[all …]
/Zephyr-latest/subsys/bluetooth/host/
Ddirection.c2 * Copyright (c) 2020-2021 Nordic Semiconductor ASA
4 * SPDX-License-Identifier: Apache-2.0
58 prepare_cl_cte_rx_enable_cmd_params(struct net_buf **buf, struct bt_le_per_adv_sync *sync,
61 static int hci_df_set_cl_cte_rx_enable(struct bt_le_per_adv_sync *sync, bool enable,
97 if (params->cte_type == BT_DF_CTE_TYPE_AOD_1US || in hci_df_set_cl_cte_tx_params()
98 params->cte_type == BT_DF_CTE_TYPE_AOD_2US) { in hci_df_set_cl_cte_tx_params()
100 return -EINVAL; in hci_df_set_cl_cte_tx_params()
103 if (params->cte_type == BT_DF_CTE_TYPE_AOD_1US && in hci_df_set_cl_cte_tx_params()
105 return -EINVAL; in hci_df_set_cl_cte_tx_params()
108 if (params->num_ant_ids < BT_HCI_LE_SWITCH_PATTERN_LEN_MIN || in hci_df_set_cl_cte_tx_params()
[all …]
/Zephyr-latest/drivers/spi/
Dspi_context.h4 * SPDX-License-Identifier: Apache-2.0
35 struct k_sem sync; member
62 ._ctx_name.sync = Z_SEM_INITIALIZER(_data._ctx_name.sync, 0, 1)
81 return !!(ctx->config == config); in spi_context_configured()
86 return (ctx->config->operation & SPI_OP_MODE_SLAVE); in spi_context_is_slave()
95 if ((spi_cfg->operation & SPI_LOCK_ON) && in spi_context_lock()
96 (k_sem_count_get(&ctx->lock) == 0) && in spi_context_lock()
97 (ctx->owner == spi_cfg)) { in spi_context_lock()
101 k_sem_take(&ctx->lock, K_FOREVER); in spi_context_lock()
102 ctx->owner = spi_cfg; in spi_context_lock()
[all …]
/Zephyr-latest/drivers/sensor/bosch/bmi08x/
Dbmi08x_accel.c5 * SPDX-License-Identifier: Apache-2.0
27 const struct bmi08x_accel_config *bmi08x = dev->config; in bmi08x_accel_transceive_i2c()
30 return i2c_write_read_dt(&bmi08x->bus.i2c, &reg, 1, data, length); in bmi08x_accel_transceive_i2c()
33 return -EINVAL; in bmi08x_accel_transceive_i2c()
39 return i2c_write_dt(&bmi08x->bus.i2c, buf, 1 + length); in bmi08x_accel_transceive_i2c()
88 length -= len1; in bmi08x_write_config_file_i2c()
96 return i2c_is_ready_dt(&bus->i2c) ? 0 : -ENODEV; in bmi08x_bus_check_i2c()
114 const struct bmi08x_accel_config *bmi08x = dev->config; in bmi08x_accel_transceive_spi()
122 const struct spi_buf_set rx = {.buffers = rx_buf, .count = 2}; in bmi08x_accel_transceive_spi() local
124 return spi_transceive_dt(&bmi08x->bus.spi, &tx, &rx); in bmi08x_accel_transceive_spi()
[all …]
Dbmi08x_gyro.c5 * SPDX-License-Identifier: Apache-2.0
26 const struct bmi08x_gyro_config *bmi08x = dev->config; in bmi08x_gyro_transceive_i2c()
29 return i2c_write_read_dt(&bmi08x->bus.i2c, &reg, 1, data, length); in bmi08x_gyro_transceive_i2c()
32 return -EINVAL; in bmi08x_gyro_transceive_i2c()
38 return i2c_write_dt(&bmi08x->bus.i2c, buf, 1 + length); in bmi08x_gyro_transceive_i2c()
43 return i2c_is_ready_dt(&bus->i2c) ? 0 : -ENODEV; in bmi08x_bus_check_i2c()
58 const struct bmi08x_gyro_config *bmi08x = dev->config; in bmi08x_gyro_transceive_spi()
66 const struct spi_buf_set rx = {.buffers = rx_buf, .count = 2}; in bmi08x_gyro_transceive_spi() local
68 return spi_transceive_dt(&bmi08x->bus.spi, &tx, &rx); in bmi08x_gyro_transceive_spi()
71 return spi_write_dt(&bmi08x->bus.spi, &tx); in bmi08x_gyro_transceive_spi()
[all …]
/Zephyr-latest/drivers/sdhc/
Drcar_mmc.c4 * SPDX-License-Identifier: Apache-2.0
109 struct mmc_rcar_data *data = dev->data; in rcar_mmc_reset_and_mask_irqs()
124 k_sem_reset(&data->irq_xref_fin); in rcar_mmc_reset_and_mask_irqs()
138 * @retval -EINVAL: the dev pointer is NULL
145 return -EINVAL; in rcar_mmc_card_busy()
160 * @retval -ETIMEDOUT: timed out while tx/rx
161 * @retval -EIO: I/O error
162 * @retval -EILSEQ: communication out of sync
170 return -ETIMEDOUT; in rcar_mmc_check_errors()
174 LOG_DBG("communication out of sync 0x%08x", info2); in rcar_mmc_check_errors()
[all …]
/Zephyr-latest/drivers/flash/
Dflash_stm32_qspi.c6 * SPDX-License-Identifier: Apache-2.0
58 /* In dual-flash mode, total size is twice the size of one flash component */
110 struct k_sem sync; member
118 enum jesd216_mode_type mode; member
125 * If set addressed operations should use 32-bit rather than
126 * 24-bit addresses.
138 struct flash_stm32_qspi_data *dev_data = dev->data; in qspi_lock_thread()
140 k_sem_take(&dev_data->sem, K_FOREVER); in qspi_lock_thread()
145 struct flash_stm32_qspi_data *dev_data = dev->data; in qspi_unlock_thread()
147 k_sem_give(&dev_data->sem); in qspi_unlock_thread()
[all …]
Dflash_stm32_xspi.c4 * SPDX-License-Identifier: Apache-2.0
23 #include <zephyr/dt-bindings/flash_controller/xspi.h>
59 struct flash_stm32_xspi_data *dev_data = dev->data; in xspi_lock_thread()
61 k_sem_take(&dev_data->sem, K_FOREVER); in xspi_lock_thread()
66 struct flash_stm32_xspi_data *dev_data = dev->data; in xspi_unlock_thread()
68 k_sem_give(&dev_data->sem); in xspi_unlock_thread()
73 struct flash_stm32_xspi_data *dev_data = dev->data; in xspi_send_cmd()
76 LOG_DBG("Instruction 0x%x", cmd->Instruction); in xspi_send_cmd()
78 dev_data->cmd_status = 0; in xspi_send_cmd()
80 hal_ret = HAL_XSPI_Command(&dev_data->hxspi, cmd, HAL_XSPI_TIMEOUT_DEFAULT_VALUE); in xspi_send_cmd()
[all …]
/Zephyr-latest/samples/boards/st/power_mgmt/suspend_to_ram/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
37 /* Data of ADC io-channels specified in devicetree. */
60 static const char spi_tx_data[SPI_BUF_SIZE] = "0123456789abcdef-\0";
94 const struct spi_buf_set rx = { in spi_test() local
101 ret = spi_transceive_dt(&spi_test_dev, &tx, &rx); in spi_test()
112 printk("rx: %s\n", spi_buffer_print_rx); in spi_test()
113 return -1; in spi_test()
143 printk("ADC controller device %s not ready\n", adc_channels[i].dev->name); in adc_test()
158 printk("- %s, channel %d: ", in adc_test()
159 adc_channels[i].dev->name, in adc_test()
[all …]
/Zephyr-latest/drivers/i2s/
Di2s_mcux_sai.c2 * Copyright 2021,2023-2024 NXP Semiconductor INC.
5 * SPDX-License-Identifier: Apache-2.0
22 #include <zephyr/dt-bindings/clock/imx_ccm.h>
52 * This indicates the Tx/Rx stream.
109 struct stream rx; member
124 while (k_msgq_get(&strm->in_queue, &buffer, K_NO_WAIT) == 0) { in i2s_purge_stream_buffers()
130 while (k_msgq_get(&strm->out_queue, &buffer, K_NO_WAIT) == 0) { in i2s_purge_stream_buffers()
138 struct i2s_dev_data *dev_data = dev->data; in i2s_tx_stream_disable()
139 struct stream *strm = &dev_data->tx; in i2s_tx_stream_disable()
140 const struct device *dev_dma = dev_data->dev_dma; in i2s_tx_stream_disable()
[all …]
/Zephyr-latest/drivers/disk/
Dsdmmc_stm32.c4 * SPDX-License-Identifier: Apache-2.0
78 struct k_sem sync; member
100 MMC_TypeDef *sdmmcx = priv->hsd.Instance; in stm32_sdmmc_fc_enable()
102 sdmmcx->CLKCR |= SDMMC_CLKCR_HWFC_EN; in stm32_sdmmc_fc_enable()
108 struct stm32_sdmmc_priv *priv = dev->data; in stm32_sdmmc_isr()
111 HAL_MMC_IRQHandler(&priv->hsd); in stm32_sdmmc_isr()
113 HAL_SD_IRQHandler(&priv->hsd); in stm32_sdmmc_isr()
122 priv->status = hsd->ErrorCode; \
124 k_sem_give(&priv->sync); \
146 (clock_control_subsys_t)&priv->pclken[1], in stm32_sdmmc_clock_enable()
[all …]
/Zephyr-latest/subsys/net/ip/
DKconfig6 # SPDX-License-Identifier: Apache-2.0
61 module-dep = NET_LOG
62 module-str = Log level for PMTU
63 module-help = Enables PMTU to output debug messages.
80 Enables TCP/IP stack to be offload to a co-processor.
92 module-dep = NET_LOG
93 module-str = Log level for offload layer
94 module-help = Enables offload layer to output debug messages.
136 Connect to host system via Qemu's built-in User Networking support. This
149 information etc. This string is appended to the QEMU "-net user" option.
[all …]

1234