Lines Matching refs:bit_offset
1015 u32 *regval, u32 bit_offset) in bm1880_pinconf_drv_set() argument
1028 _regval &= ~(width << bit_offset); in bm1880_pinconf_drv_set()
1029 _regval |= (0 << bit_offset); in bm1880_pinconf_drv_set()
1032 _regval &= ~(width << bit_offset); in bm1880_pinconf_drv_set()
1033 _regval |= (1 << bit_offset); in bm1880_pinconf_drv_set()
1036 _regval &= ~(width << bit_offset); in bm1880_pinconf_drv_set()
1037 _regval |= (2 << bit_offset); in bm1880_pinconf_drv_set()
1040 _regval &= ~(width << bit_offset); in bm1880_pinconf_drv_set()
1041 _regval |= (3 << bit_offset); in bm1880_pinconf_drv_set()
1044 _regval &= ~(width << bit_offset); in bm1880_pinconf_drv_set()
1045 _regval |= (4 << bit_offset); in bm1880_pinconf_drv_set()
1048 _regval &= ~(width << bit_offset); in bm1880_pinconf_drv_set()
1049 _regval |= (5 << bit_offset); in bm1880_pinconf_drv_set()
1052 _regval &= ~(width << bit_offset); in bm1880_pinconf_drv_set()
1053 _regval |= (6 << bit_offset); in bm1880_pinconf_drv_set()
1056 _regval &= ~(width << bit_offset); in bm1880_pinconf_drv_set()
1057 _regval |= (7 << bit_offset); in bm1880_pinconf_drv_set()
1065 _regval &= ~(width << bit_offset); in bm1880_pinconf_drv_set()
1066 _regval |= (0 << bit_offset); in bm1880_pinconf_drv_set()
1069 _regval &= ~(width << bit_offset); in bm1880_pinconf_drv_set()
1070 _regval |= (1 << bit_offset); in bm1880_pinconf_drv_set()
1073 _regval &= ~(width << bit_offset); in bm1880_pinconf_drv_set()
1074 _regval |= (2 << bit_offset); in bm1880_pinconf_drv_set()
1077 _regval &= ~(width << bit_offset); in bm1880_pinconf_drv_set()
1078 _regval |= (3 << bit_offset); in bm1880_pinconf_drv_set()
1156 u32 regval, offset, bit_offset; in bm1880_pinconf_cfg_get() local
1164 bit_offset = BM1880_PINCONF_PULLUP(pin); in bm1880_pinconf_cfg_get()
1165 arg = !!(regval & BIT(bit_offset)); in bm1880_pinconf_cfg_get()
1168 bit_offset = BM1880_PINCONF_PULLDOWN(pin); in bm1880_pinconf_cfg_get()
1169 arg = !!(regval & BIT(bit_offset)); in bm1880_pinconf_cfg_get()
1172 bit_offset = BM1880_PINCONF_PULLCTRL(pin); in bm1880_pinconf_cfg_get()
1173 arg = !!(regval & BIT(bit_offset)); in bm1880_pinconf_cfg_get()
1176 bit_offset = BM1880_PINCONF_SCHMITT(pin); in bm1880_pinconf_cfg_get()
1177 arg = !!(regval & BIT(bit_offset)); in bm1880_pinconf_cfg_get()
1180 bit_offset = BM1880_PINCONF_SLEW(pin); in bm1880_pinconf_cfg_get()
1181 arg = !!(regval & BIT(bit_offset)); in bm1880_pinconf_cfg_get()
1184 bit_offset = BM1880_PINCONF_DRV(pin); in bm1880_pinconf_cfg_get()
1186 !!(regval & BIT(bit_offset))); in bm1880_pinconf_cfg_get()
1207 u32 regval, offset, bit_offset; in bm1880_pinconf_cfg_set() local
1219 bit_offset = BM1880_PINCONF_PULLUP(pin); in bm1880_pinconf_cfg_set()
1220 regval |= BIT(bit_offset); in bm1880_pinconf_cfg_set()
1223 bit_offset = BM1880_PINCONF_PULLDOWN(pin); in bm1880_pinconf_cfg_set()
1224 regval |= BIT(bit_offset); in bm1880_pinconf_cfg_set()
1227 bit_offset = BM1880_PINCONF_PULLCTRL(pin); in bm1880_pinconf_cfg_set()
1228 regval |= BIT(bit_offset); in bm1880_pinconf_cfg_set()
1231 bit_offset = BM1880_PINCONF_SCHMITT(pin); in bm1880_pinconf_cfg_set()
1233 regval |= BIT(bit_offset); in bm1880_pinconf_cfg_set()
1235 regval &= ~BIT(bit_offset); in bm1880_pinconf_cfg_set()
1238 bit_offset = BM1880_PINCONF_SLEW(pin); in bm1880_pinconf_cfg_set()
1240 regval |= BIT(bit_offset); in bm1880_pinconf_cfg_set()
1242 regval &= ~BIT(bit_offset); in bm1880_pinconf_cfg_set()
1245 bit_offset = BM1880_PINCONF_DRV(pin); in bm1880_pinconf_cfg_set()
1248 ®val, bit_offset); in bm1880_pinconf_cfg_set()