Lines Matching full:se
49 * @icc_paths: Array of ICC paths for SE
51 * @has_opp_table: Specifies if the SE has an OPP table
65 /* Common SE registers */
251 /* QUP SE VERSION value for major number 2 and minor number 5 */
271 u32 geni_se_get_qup_hw_version(struct geni_se *se);
275 * @se: Pointer to the concerned serial engine.
279 static inline u32 geni_se_read_proto(struct geni_se *se) in geni_se_read_proto() argument
283 val = readl_relaxed(se->base + GENI_FW_REVISION_RO); in geni_se_read_proto()
290 * @se: Pointer to the concerned serial engine.
297 static inline void geni_se_setup_m_cmd(struct geni_se *se, u32 cmd, u32 params) in geni_se_setup_m_cmd() argument
302 writel(m_cmd, se->base + SE_GENI_M_CMD0); in geni_se_setup_m_cmd()
307 * @se: Pointer to the concerned serial engine.
314 static inline void geni_se_setup_s_cmd(struct geni_se *se, u32 cmd, u32 params) in geni_se_setup_s_cmd() argument
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()
328 * @se: Pointer to the concerned serial engine.
333 static inline void geni_se_cancel_m_cmd(struct geni_se *se) in geni_se_cancel_m_cmd() argument
335 writel_relaxed(M_GENI_CMD_CANCEL, se->base + SE_GENI_M_CMD_CTRL_REG); in geni_se_cancel_m_cmd()
341 * @se: Pointer to the concerned serial engine.
346 static inline void geni_se_cancel_s_cmd(struct geni_se *se) in geni_se_cancel_s_cmd() argument
348 writel_relaxed(S_GENI_CMD_CANCEL, se->base + SE_GENI_S_CMD_CTRL_REG); in geni_se_cancel_s_cmd()
353 * @se: Pointer to the concerned serial engine.
358 static inline void geni_se_abort_m_cmd(struct geni_se *se) in geni_se_abort_m_cmd() argument
360 writel_relaxed(M_GENI_CMD_ABORT, se->base + SE_GENI_M_CMD_CTRL_REG); in geni_se_abort_m_cmd()
366 * @se: Pointer to the concerned serial engine.
371 static inline void geni_se_abort_s_cmd(struct geni_se *se) in geni_se_abort_s_cmd() argument
373 writel_relaxed(S_GENI_CMD_ABORT, se->base + SE_GENI_S_CMD_CTRL_REG); in geni_se_abort_s_cmd()
378 * @se: Pointer to the concerned serial engine.
385 static inline u32 geni_se_get_tx_fifo_depth(struct geni_se *se) in geni_se_get_tx_fifo_depth() argument
389 val = readl_relaxed(se->base + SE_HW_PARAM_0); in geni_se_get_tx_fifo_depth()
396 * @se: Pointer to the concerned serial engine.
403 static inline u32 geni_se_get_tx_fifo_width(struct geni_se *se) in geni_se_get_tx_fifo_width() argument
407 val = readl_relaxed(se->base + SE_HW_PARAM_0); in geni_se_get_tx_fifo_width()
414 * @se: Pointer to the concerned serial engine.
421 static inline u32 geni_se_get_rx_fifo_depth(struct geni_se *se) in geni_se_get_rx_fifo_depth() argument
425 val = readl_relaxed(se->base + SE_HW_PARAM_1); in geni_se_get_rx_fifo_depth()
430 void geni_se_init(struct geni_se *se, u32 rx_wm, u32 rx_rfr);
432 void geni_se_select_mode(struct geni_se *se, enum geni_se_xfer_mode mode);
434 void geni_se_config_packing(struct geni_se *se, int bpw, int pack_words,
437 int geni_se_resources_off(struct geni_se *se);
439 int geni_se_resources_on(struct geni_se *se);
441 int geni_se_clk_tbl_get(struct geni_se *se, unsigned long **tbl);
443 int geni_se_clk_freq_match(struct geni_se *se, unsigned long req_freq,
447 int geni_se_tx_dma_prep(struct geni_se *se, void *buf, size_t len,
450 int geni_se_rx_dma_prep(struct geni_se *se, void *buf, size_t len,
453 void geni_se_tx_dma_unprep(struct geni_se *se, dma_addr_t iova, size_t len);
455 void geni_se_rx_dma_unprep(struct geni_se *se, dma_addr_t iova, size_t len);
457 int geni_icc_get(struct geni_se *se, const char *icc_ddr);
459 int geni_icc_set_bw(struct geni_se *se);
460 void geni_icc_set_tag(struct geni_se *se, u32 tag);
462 int geni_icc_enable(struct geni_se *se);
464 int geni_icc_disable(struct geni_se *se);