Lines Matching refs:upm
17 static void fsl_upm_start_pattern(struct fsl_upm *upm, u32 pat_offset) in fsl_upm_start_pattern() argument
19 clrsetbits_be32(upm->mxmr, MxMR_MAD_MSK, MxMR_OP_RUNP | pat_offset); in fsl_upm_start_pattern()
20 (void)in_be32(upm->mxmr); in fsl_upm_start_pattern()
23 static void fsl_upm_end_pattern(struct fsl_upm *upm) in fsl_upm_end_pattern() argument
25 clrbits_be32(upm->mxmr, MxMR_OP_RUNP); in fsl_upm_end_pattern()
27 while (in_be32(upm->mxmr) & MxMR_OP_RUNP) in fsl_upm_end_pattern()
31 static void fsl_upm_run_pattern(struct fsl_upm *upm, int width, in fsl_upm_run_pattern() argument
34 out_be32(upm->mar, mar); in fsl_upm_run_pattern()
35 (void)in_be32(upm->mar); in fsl_upm_run_pattern()
72 fun->upm.io_addr + fun->chip_offset * chip_nr; in fun_select_chip()
87 fsl_upm_end_pattern(&fun->upm); in fun_cmd_ctrl()
97 fsl_upm_start_pattern(&fun->upm, fun->upm_addr_offset); in fun_cmd_ctrl()
99 fsl_upm_start_pattern(&fun->upm, fun->upm_cmd_offset); in fun_cmd_ctrl()
103 io_addr = fun->upm.io_addr; in fun_cmd_ctrl()
111 fsl_upm_run_pattern(&fun->upm, fun->width, io_addr, mar); in fun_cmd_ctrl()