Lines Matching defs:crp
200 const struct pinmux_cfg_reg *crp,
207 *mapped_regp = sh_pfc_phys_to_virt(pfc, crp->reg);
209 if (crp->field_width) {
210 *maskp = (1 << crp->field_width) - 1;
211 *posp = crp->reg_width - ((in_pos + 1) * crp->field_width);
213 *maskp = (1 << crp->var_field_width[in_pos]) - 1;
214 *posp = crp->reg_width;
216 *posp -= abs(crp->var_field_width[k]);
221 const struct pinmux_cfg_reg *crp,
228 sh_pfc_config_reg_helper(pfc, crp, field, &mapped_reg, &mask, &pos);
232 crp->reg, value, field, crp->reg_width, hweight32(mask));
237 data = sh_pfc_read_raw_reg(mapped_reg, crp->reg_width);
241 sh_pfc_unlock_reg(pfc, crp->reg, data);
242 sh_pfc_write_raw_reg(mapped_reg, crp->reg_width, data);
246 const struct pinmux_cfg_reg **crp,
279 *crp = config_reg;