Lines Matching refs:crp
201 const struct pinmux_cfg_reg *crp, in sh_pfc_config_reg_helper() argument
208 *mapped_regp = sh_pfc_phys_to_virt(pfc, crp->reg); in sh_pfc_config_reg_helper()
210 if (crp->field_width) { in sh_pfc_config_reg_helper()
211 *maskp = (1 << crp->field_width) - 1; in sh_pfc_config_reg_helper()
212 *posp = crp->reg_width - ((in_pos + 1) * crp->field_width); in sh_pfc_config_reg_helper()
214 *maskp = (1 << crp->var_field_width[in_pos]) - 1; in sh_pfc_config_reg_helper()
215 *posp = crp->reg_width; in sh_pfc_config_reg_helper()
217 *posp -= abs(crp->var_field_width[k]); in sh_pfc_config_reg_helper()
222 const struct pinmux_cfg_reg *crp, in sh_pfc_write_config_reg() argument
229 sh_pfc_config_reg_helper(pfc, crp, field, &mapped_reg, &mask, &pos); in sh_pfc_write_config_reg()
233 crp->reg, value, field, crp->reg_width, hweight32(mask)); in sh_pfc_write_config_reg()
238 data = sh_pfc_read_raw_reg(mapped_reg, crp->reg_width); in sh_pfc_write_config_reg()
242 sh_pfc_unlock_reg(pfc, crp->reg, data); in sh_pfc_write_config_reg()
243 sh_pfc_write_raw_reg(mapped_reg, crp->reg_width, data); in sh_pfc_write_config_reg()
247 const struct pinmux_cfg_reg **crp, in sh_pfc_get_config_reg() argument
280 *crp = config_reg; in sh_pfc_get_config_reg()