Lines Matching refs:crp
139 const struct pinmux_cfg_reg *crp, in sh_pfc_config_reg_helper() argument
146 *mapped_regp = (void __iomem *)(uintptr_t)crp->reg; in sh_pfc_config_reg_helper()
148 if (crp->field_width) { in sh_pfc_config_reg_helper()
149 *maskp = (1 << crp->field_width) - 1; in sh_pfc_config_reg_helper()
150 *posp = crp->reg_width - ((in_pos + 1) * crp->field_width); in sh_pfc_config_reg_helper()
152 *maskp = (1 << crp->var_field_width[in_pos]) - 1; in sh_pfc_config_reg_helper()
153 *posp = crp->reg_width; in sh_pfc_config_reg_helper()
155 *posp -= crp->var_field_width[k]; in sh_pfc_config_reg_helper()
160 const struct pinmux_cfg_reg *crp, in sh_pfc_write_config_reg() argument
169 sh_pfc_config_reg_helper(pfc, crp, field, &mapped_reg, &mask, &pos); in sh_pfc_write_config_reg()
173 crp->reg, value, field, crp->reg_width, crp->field_width); in sh_pfc_write_config_reg()
178 data = sh_pfc_read_raw_reg(mapped_reg, crp->reg_width); in sh_pfc_write_config_reg()
185 sh_pfc_write_raw_reg(mapped_reg, crp->reg_width, data); in sh_pfc_write_config_reg()
189 const struct pinmux_cfg_reg **crp, in sh_pfc_get_config_reg() argument
219 *crp = config_reg; in sh_pfc_get_config_reg()