Lines Matching refs:upm
19 static void fsl_upm_start_pattern(struct fsl_upm *upm, u32 pat_offset) in fsl_upm_start_pattern() argument
21 clrsetbits_be32(upm->mxmr, MxMR_MAD_MSK, MxMR_OP_RUNP | pat_offset); in fsl_upm_start_pattern()
22 (void)in_be32(upm->mxmr); in fsl_upm_start_pattern()
25 static void fsl_upm_end_pattern(struct fsl_upm *upm) in fsl_upm_end_pattern() argument
27 clrbits_be32(upm->mxmr, MxMR_OP_RUNP); in fsl_upm_end_pattern()
29 while (in_be32(upm->mxmr) & MxMR_OP_RUNP) in fsl_upm_end_pattern()
33 static void fsl_upm_run_pattern(struct fsl_upm *upm, int width, in fsl_upm_run_pattern() argument
36 out_be32(upm->mar, mar); in fsl_upm_run_pattern()
37 (void)in_be32(upm->mar); in fsl_upm_run_pattern()
74 fun->upm.io_addr + fun->chip_offset * chip_nr; in fun_select_chip()
89 fsl_upm_end_pattern(&fun->upm); in fun_cmd_ctrl()
99 fsl_upm_start_pattern(&fun->upm, fun->upm_addr_offset); in fun_cmd_ctrl()
101 fsl_upm_start_pattern(&fun->upm, fun->upm_cmd_offset); in fun_cmd_ctrl()
105 io_addr = fun->upm.io_addr; in fun_cmd_ctrl()
113 fsl_upm_run_pattern(&fun->upm, fun->width, io_addr, mar); in fun_cmd_ctrl()