Lines Matching refs:shift
651 u32 *reg, u32 *width, u32 *mask, u32 *shift, in tz1090_pdc_pinconf_reg() argument
675 *shift = REG_GPIO_CONTROL2_PU_PD_S + pin*2; in tz1090_pdc_pinconf_reg()
679 *mask = (BIT(*width) - 1) << *shift; in tz1090_pdc_pinconf_reg()
690 u32 reg, width, mask, shift, val, tmp, arg; in tz1090_pdc_pinconf_get() local
694 ®, &width, &mask, &shift, &val); in tz1090_pdc_pinconf_get()
700 arg = ((tmp & mask) >> shift) == val; in tz1090_pdc_pinconf_get()
720 u32 reg, width, mask, shift, val, tmp; in tz1090_pdc_pinconf_set() local
733 ®, &width, &mask, &shift, &val); in tz1090_pdc_pinconf_set()
749 tmp |= val << shift; in tz1090_pdc_pinconf_set()
773 u32 *mask, u32 *shift, const int **map) in tz1090_pdc_pinconf_group_reg() argument
788 *shift = REG_GPIO_CONTROL2_PDC_SCHMITT_S; in tz1090_pdc_pinconf_group_reg()
793 *shift = REG_GPIO_CONTROL2_PDC_DR_S; in tz1090_pdc_pinconf_group_reg()
798 *shift = REG_GPIO_CONTROL2_PDC_POS_S; in tz1090_pdc_pinconf_group_reg()
807 *mask = (BIT(*width) - 1) << *shift; in tz1090_pdc_pinconf_group_reg()
820 u32 reg, width, mask, shift, val; in tz1090_pdc_pinconf_group_get() local
825 ®, &width, &mask, &shift, &map); in tz1090_pdc_pinconf_group_get()
831 arg = map[(val & mask) >> shift]; in tz1090_pdc_pinconf_group_get()
852 u32 reg, width, mask, shift, val; in tz1090_pdc_pinconf_group_set() local
865 ®, &width, &mask, &shift, in tz1090_pdc_pinconf_group_set()
890 val |= i << shift; in tz1090_pdc_pinconf_group_set()