Home
last modified time | relevance | path

Searched refs:crp (Results 1 – 1 of 1) sorted by relevance

/rk3399_rockchip-uboot/drivers/gpio/
H A Dsh_pfc.c103 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()
[all …]