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.
29 * struct geni_se - GENI Serial Engine
178 /* GENI_/TX/RX/RX_RFR/_WATERMARK_REG fields */
237 * geni_se_read_proto() - Read the protocol configured for a serial engine
246 val = readl_relaxed(se->base + GENI_FW_REVISION_RO); in geni_se_read_proto()
252 * geni_se_setup_m_cmd() - Setup the primary sequencer
265 writel_relaxed(m_cmd, se->base + SE_GENI_M_CMD0); in geni_se_setup_m_cmd()
269 * geni_se_setup_s_cmd() - Setup the secondary sequencer
281 s_cmd = readl_relaxed(se->base + SE_GENI_S_CMD0); in geni_se_setup_s_cmd()
285 writel_relaxed(s_cmd, se->base + SE_GENI_S_CMD0); in geni_se_setup_s_cmd()
289 * geni_se_cancel_m_cmd() - Cancel the command configured in the primary
298 writel_relaxed(M_GENI_CMD_CANCEL, se->base + SE_GENI_M_CMD_CTRL_REG); in geni_se_cancel_m_cmd()
302 * geni_se_cancel_s_cmd() - Cancel the command configured in the secondary
311 writel_relaxed(S_GENI_CMD_CANCEL, se->base + SE_GENI_S_CMD_CTRL_REG); in geni_se_cancel_s_cmd()
315 * geni_se_abort_m_cmd() - Abort the command configured in the primary sequencer
323 writel_relaxed(M_GENI_CMD_ABORT, se->base + SE_GENI_M_CMD_CTRL_REG); in geni_se_abort_m_cmd()
327 * geni_se_abort_s_cmd() - Abort the command configured in the secondary
336 writel_relaxed(S_GENI_CMD_ABORT, se->base + SE_GENI_S_CMD_CTRL_REG); in geni_se_abort_s_cmd()
340 * geni_se_get_tx_fifo_depth() - Get the TX fifo depth of the serial engine
343 * This function is used to get the depth i.e. number of elements in the
344 * TX fifo of the serial engine.
346 * Return: TX fifo depth in units of FIFO words.
352 val = readl_relaxed(se->base + SE_HW_PARAM_0); in geni_se_get_tx_fifo_depth()
358 * geni_se_get_tx_fifo_width() - Get the TX fifo width of the serial engine
362 * TX fifo of the serial engine.
364 * Return: TX fifo width in bits
370 val = readl_relaxed(se->base + SE_HW_PARAM_0); in geni_se_get_tx_fifo_width()
376 * geni_se_get_rx_fifo_depth() - Get the RX fifo depth of the serial engine
379 * This function is used to get the depth i.e. number of elements in the
380 * RX fifo of the serial engine.
382 * Return: RX fifo depth in units of FIFO words
388 val = readl_relaxed(se->base + SE_HW_PARAM_1); in geni_se_get_rx_fifo_depth()