Lines Matching refs:offset
90 static inline int pinctrl_b91_get_offset(uint32_t pin, uint8_t *offset) in pinctrl_b91_get_offset() argument
94 *offset = B91_PIN_0_FUNC_POS; in pinctrl_b91_get_offset()
97 *offset = B91_PIN_1_FUNC_POS; in pinctrl_b91_get_offset()
100 *offset = B91_PIN_2_FUNC_POS; in pinctrl_b91_get_offset()
103 *offset = B91_PIN_3_FUNC_POS; in pinctrl_b91_get_offset()
106 *offset = B91_PIN_4_FUNC_POS; in pinctrl_b91_get_offset()
109 *offset = B91_PIN_5_FUNC_POS; in pinctrl_b91_get_offset()
112 *offset = B91_PIN_6_FUNC_POS; in pinctrl_b91_get_offset()
115 *offset = B91_PIN_7_FUNC_POS; in pinctrl_b91_get_offset()
130 uint8_t offset = 0; in pinctrl_configure_pin() local
137 status = pinctrl_b91_get_offset(pin, &offset); in pinctrl_configure_pin()
141 mask = (uint8_t) ~(BIT(offset) | BIT(offset + 1)); in pinctrl_configure_pin()
147 func = func << offset; in pinctrl_configure_pin()
151 pull = pull << offset; in pinctrl_configure_pin()