Lines Matching refs:crp
103 struct pinmux_cfg_reg *crp, in config_reg_helper() argument
115 *mapped_regp = pfc_phys_to_virt(gpioc, crp->reg); in config_reg_helper()
117 if (crp->field_width) { in config_reg_helper()
118 *maskp = (1 << crp->field_width) - 1; in config_reg_helper()
119 *posp = crp->reg_width - ((in_pos + 1) * crp->field_width); in config_reg_helper()
121 *maskp = (1 << crp->var_field_width[in_pos]) - 1; in config_reg_helper()
122 *posp = crp->reg_width; in config_reg_helper()
124 *posp -= crp->var_field_width[k]; in config_reg_helper()
129 struct pinmux_cfg_reg *crp, in read_config_reg() argument
136 config_reg_helper(gpioc, crp, field, &mapped_reg, &mask, &pos); in read_config_reg()
140 crp->reg, field, crp->reg_width, crp->field_width); in read_config_reg()
142 return (gpio_read_raw_reg(mapped_reg, crp->reg_width) >> pos) & mask; in read_config_reg()
146 struct pinmux_cfg_reg *crp, in write_config_reg() argument
152 config_reg_helper(gpioc, crp, field, &mapped_reg, &mask, &pos); in write_config_reg()
156 crp->reg, value, field, crp->reg_width, crp->field_width); in write_config_reg()
161 data = gpio_read_raw_reg(mapped_reg, crp->reg_width); in write_config_reg()
169 gpio_write_raw_reg(mapped_reg, crp->reg_width, data); in write_config_reg()
245 struct pinmux_cfg_reg **crp, in get_config_reg() argument
274 *crp = config_reg; in get_config_reg()