Lines Matching refs:bank
14 static int rk3368_set_mux(struct rockchip_pin_bank *bank, int pin, int mux) in rk3368_set_mux() argument
16 struct rockchip_pinctrl_priv *priv = bank->priv; in rk3368_set_mux()
23 regmap = (bank->iomux[iomux_num].type & IOMUX_SOURCE_PMU) in rk3368_set_mux()
27 mux_type = bank->iomux[iomux_num].type; in rk3368_set_mux()
28 reg = bank->iomux[iomux_num].offset; in rk3368_set_mux()
41 static void rk3368_calc_pull_reg_and_bit(struct rockchip_pin_bank *bank, in rk3368_calc_pull_reg_and_bit() argument
45 struct rockchip_pinctrl_priv *priv = bank->priv; in rk3368_calc_pull_reg_and_bit()
48 if (bank->bank_num == 0) { in rk3368_calc_pull_reg_and_bit()
57 *reg += bank->bank_num * ROCKCHIP_PULL_BANK_STRIDE; in rk3368_calc_pull_reg_and_bit()
66 static int rk3368_set_pull(struct rockchip_pin_bank *bank, in rk3368_set_pull() argument
77 rk3368_calc_pull_reg_and_bit(bank, pin_num, ®map, ®, &bit); in rk3368_set_pull()
78 type = bank->pull_type[pin_num / 8]; in rk3368_set_pull()
96 static void rk3368_calc_drv_reg_and_bit(struct rockchip_pin_bank *bank, in rk3368_calc_drv_reg_and_bit() argument
100 struct rockchip_pinctrl_priv *priv = bank->priv; in rk3368_calc_drv_reg_and_bit()
103 if (bank->bank_num == 0) { in rk3368_calc_drv_reg_and_bit()
112 *reg += bank->bank_num * ROCKCHIP_DRV_BANK_STRIDE; in rk3368_calc_drv_reg_and_bit()
120 static int rk3368_set_drive(struct rockchip_pin_bank *bank, in rk3368_set_drive() argument
127 int type = bank->drv[pin_num / 8].drv_type; in rk3368_set_drive()
129 rk3368_calc_drv_reg_and_bit(bank, pin_num, ®map, ®, &bit); in rk3368_set_drive()