Lines Matching +full:serial +full:- +full:number

1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright (c) 2017-2018, The Linux Foundation. All rights reserved.
12 * enum geni_se_xfer_mode: Transfer modes supported by Serial Engines
17 * @GENI_SE_DMA: Serial Engine DMA mode. Data is transferred
31 /* Protocols supported by GENI Serial Engines */
56 * struct geni_se - GENI Serial Engine
57 * @base: Base Address of the Serial Engine's register block
58 * @dev: Pointer to the Serial Engine device
60 * @clk: Handle to the core serial engine clock
61 * @num_clk_levels: Number of valid clock levels in clk_perf_tbl
62 * @clk_perf_tbl: Table of clock frequency input to serial engine clock
296 /* QUP SE VERSION value for major number 2 and minor number 5 */
319 * geni_se_read_proto() - Read the protocol configured for a serial engine
320 * @se: Pointer to the concerned serial engine.
322 * Return: Protocol value as configured in the serial engine.
328 val = readl_relaxed(se->base + GENI_FW_REVISION_RO); in geni_se_read_proto()
334 * geni_se_setup_m_cmd() - Setup the primary sequencer
335 * @se: Pointer to the concerned serial engine.
347 writel(m_cmd, se->base + SE_GENI_M_CMD0); in geni_se_setup_m_cmd()
351 * geni_se_setup_s_cmd() - Setup the secondary sequencer
352 * @se: Pointer to the concerned serial engine.
363 s_cmd = readl_relaxed(se->base + SE_GENI_S_CMD0); in geni_se_setup_s_cmd()
367 writel(s_cmd, se->base + SE_GENI_S_CMD0); in geni_se_setup_s_cmd()
371 * geni_se_cancel_m_cmd() - Cancel the command configured in the primary
373 * @se: Pointer to the concerned serial engine.
380 writel_relaxed(M_GENI_CMD_CANCEL, se->base + SE_GENI_M_CMD_CTRL_REG); in geni_se_cancel_m_cmd()
384 * geni_se_cancel_s_cmd() - Cancel the command configured in the secondary
386 * @se: Pointer to the concerned serial engine.
393 writel_relaxed(S_GENI_CMD_CANCEL, se->base + SE_GENI_S_CMD_CTRL_REG); in geni_se_cancel_s_cmd()
397 * geni_se_abort_m_cmd() - Abort the command configured in the primary sequencer
398 * @se: Pointer to the concerned serial engine.
405 writel_relaxed(M_GENI_CMD_ABORT, se->base + SE_GENI_M_CMD_CTRL_REG); in geni_se_abort_m_cmd()
409 * geni_se_abort_s_cmd() - Abort the command configured in the secondary
411 * @se: Pointer to the concerned serial engine.
418 writel_relaxed(S_GENI_CMD_ABORT, se->base + SE_GENI_S_CMD_CTRL_REG); in geni_se_abort_s_cmd()
422 * geni_se_get_tx_fifo_depth() - Get the TX fifo depth of the serial engine
424 * @se: Pointer to the concerned serial engine.
426 * This function is used to get the depth i.e. number of elements in the
427 * TX fifo of the serial engine.
444 val = readl_relaxed(se->base + SE_HW_PARAM_0); in geni_se_get_tx_fifo_depth()
450 * geni_se_get_tx_fifo_width() - Get the TX fifo width of the serial engine
451 * @se: Pointer to the concerned serial engine.
454 * TX fifo of the serial engine.
462 val = readl_relaxed(se->base + SE_HW_PARAM_0); in geni_se_get_tx_fifo_width()
468 * geni_se_get_rx_fifo_depth() - Get the RX fifo depth of the serial engine
470 * @se: Pointer to the concerned serial engine.
472 * This function is used to get the depth i.e. number of elements in the
473 * RX fifo of the serial engine.
490 val = readl_relaxed(se->base + SE_HW_PARAM_1); in geni_se_get_rx_fifo_depth()