Lines Matching refs:pin_num
165 int pin_num, struct regmap **regmap, in rk3328_calc_pull_reg_and_bit() argument
173 *reg += ((pin_num / ROCKCHIP_PULL_PINS_PER_REG) * 4); in rk3328_calc_pull_reg_and_bit()
175 *bit = (pin_num % ROCKCHIP_PULL_PINS_PER_REG); in rk3328_calc_pull_reg_and_bit()
180 int pin_num, int pull) in rk3328_set_pull() argument
190 rk3328_calc_pull_reg_and_bit(bank, pin_num, ®map, ®, &bit); in rk3328_set_pull()
191 type = bank->pull_type[pin_num / 8]; in rk3328_set_pull()
209 int pin_num, struct regmap **regmap, in rk3328_calc_drv_reg_and_bit() argument
217 *reg += ((pin_num / ROCKCHIP_DRV_PINS_PER_REG) * 4); in rk3328_calc_drv_reg_and_bit()
219 *bit = (pin_num % ROCKCHIP_DRV_PINS_PER_REG); in rk3328_calc_drv_reg_and_bit()
224 int pin_num, int strength) in rk3328_set_drive() argument
230 int type = bank->drv[pin_num / 8].drv_type; in rk3328_set_drive()
232 rk3328_calc_drv_reg_and_bit(bank, pin_num, ®map, ®, &bit); in rk3328_set_drive()
253 int pin_num, in rk3328_calc_schmitt_reg_and_bit() argument
263 *reg += ((pin_num / RK3328_SCHMITT_PINS_PER_REG) * 4); in rk3328_calc_schmitt_reg_and_bit()
264 *bit = pin_num % RK3328_SCHMITT_PINS_PER_REG; in rk3328_calc_schmitt_reg_and_bit()
270 int pin_num, int enable) in rk3328_set_schmitt() argument
277 rk3328_calc_schmitt_reg_and_bit(bank, pin_num, ®map, ®, &bit); in rk3328_set_schmitt()