Lines Matching +full:tx +full:- +full:fifo +full:- +full:depth

1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright (c) 2017-2018, The Linux Foundation. All rights reserved.
42 * struct geni_se - GENI Serial Engine
197 /* GENI_/TX/RX/RX_RFR/_WATERMARK_REG fields */
274 * geni_se_read_proto() - Read the protocol configured for a serial engine
283 val = readl_relaxed(se->base + GENI_FW_REVISION_RO); in geni_se_read_proto()
289 * geni_se_setup_m_cmd() - Setup the primary sequencer
302 writel(m_cmd, se->base + SE_GENI_M_CMD0); in geni_se_setup_m_cmd()
306 * geni_se_setup_s_cmd() - Setup the secondary sequencer
318 s_cmd = readl_relaxed(se->base + SE_GENI_S_CMD0); in geni_se_setup_s_cmd()
322 writel(s_cmd, se->base + SE_GENI_S_CMD0); in geni_se_setup_s_cmd()
326 * geni_se_cancel_m_cmd() - Cancel the command configured in the primary
335 writel_relaxed(M_GENI_CMD_CANCEL, se->base + SE_GENI_M_CMD_CTRL_REG); in geni_se_cancel_m_cmd()
339 * geni_se_cancel_s_cmd() - Cancel the command configured in the secondary
348 writel_relaxed(S_GENI_CMD_CANCEL, se->base + SE_GENI_S_CMD_CTRL_REG); in geni_se_cancel_s_cmd()
352 * geni_se_abort_m_cmd() - Abort the command configured in the primary sequencer
360 writel_relaxed(M_GENI_CMD_ABORT, se->base + SE_GENI_M_CMD_CTRL_REG); in geni_se_abort_m_cmd()
364 * geni_se_abort_s_cmd() - Abort the command configured in the secondary
373 writel_relaxed(S_GENI_CMD_ABORT, se->base + SE_GENI_S_CMD_CTRL_REG); in geni_se_abort_s_cmd()
377 * geni_se_get_tx_fifo_depth() - Get the TX fifo depth of the serial engine
380 * This function is used to get the depth i.e. number of elements in the
381 * TX fifo of the serial engine.
383 * Return: TX fifo depth in units of FIFO words.
389 val = readl_relaxed(se->base + SE_HW_PARAM_0); in geni_se_get_tx_fifo_depth()
395 * geni_se_get_tx_fifo_width() - Get the TX fifo width of the serial engine
399 * TX fifo of the serial engine.
401 * Return: TX fifo width in bits
407 val = readl_relaxed(se->base + SE_HW_PARAM_0); in geni_se_get_tx_fifo_width()
413 * geni_se_get_rx_fifo_depth() - Get the RX fifo depth of the serial engine
416 * This function is used to get the depth i.e. number of elements in the
417 * RX fifo of the serial engine.
419 * Return: RX fifo depth in units of FIFO words
425 val = readl_relaxed(se->base + SE_HW_PARAM_1); in geni_se_get_rx_fifo_depth()