Home
last modified time | relevance | path

Searched refs:mtk_pinctrl (Results 1 – 8 of 8) sorted by relevance

/kernel/linux/linux-5.10/drivers/pinctrl/mediatek/
Dpinctrl-mtk-common-v2.h189 struct mtk_pinctrl;
210 int (*bias_disable_set)(struct mtk_pinctrl *hw,
212 int (*bias_disable_get)(struct mtk_pinctrl *hw,
214 int (*bias_set)(struct mtk_pinctrl *hw,
216 int (*bias_get)(struct mtk_pinctrl *hw,
219 int (*bias_set_combo)(struct mtk_pinctrl *hw,
221 int (*bias_get_combo)(struct mtk_pinctrl *hw,
224 int (*drive_set)(struct mtk_pinctrl *hw,
226 int (*drive_get)(struct mtk_pinctrl *hw,
229 int (*adv_pull_set)(struct mtk_pinctrl *hw,
[all …]
Dpinctrl-mtk-common-v2.c47 static void mtk_w32(struct mtk_pinctrl *pctl, u8 i, u32 reg, u32 val) in mtk_w32()
52 static u32 mtk_r32(struct mtk_pinctrl *pctl, u8 i, u32 reg) in mtk_r32()
57 void mtk_rmw(struct mtk_pinctrl *pctl, u8 i, u32 reg, u32 mask, u32 set) in mtk_rmw()
67 static int mtk_hw_pin_field_lookup(struct mtk_pinctrl *hw, in mtk_hw_pin_field_lookup()
140 static int mtk_hw_pin_field_get(struct mtk_pinctrl *hw, in mtk_hw_pin_field_get()
158 static void mtk_hw_write_cross_field(struct mtk_pinctrl *hw, in mtk_hw_write_cross_field()
172 static void mtk_hw_read_cross_field(struct mtk_pinctrl *hw, in mtk_hw_read_cross_field()
187 int mtk_hw_set_value(struct mtk_pinctrl *hw, const struct mtk_pin_desc *desc, in mtk_hw_set_value()
210 int mtk_hw_get_value(struct mtk_pinctrl *hw, const struct mtk_pin_desc *desc, in mtk_hw_get_value()
230 static int mtk_xt_find_eint_num(struct mtk_pinctrl *hw, unsigned long eint_n) in mtk_xt_find_eint_num()
[all …]
Dpinctrl-mtk-common.c53 static struct regmap *mtk_get_regmap(struct mtk_pinctrl *pctl, in mtk_get_regmap()
61 static unsigned int mtk_get_port(struct mtk_pinctrl *pctl, unsigned long pin) in mtk_get_port()
74 struct mtk_pinctrl *pctl = pinctrl_dev_get_drvdata(pctldev); in mtk_pmx_gpio_set_direction()
96 struct mtk_pinctrl *pctl = gpiochip_get_data(chip); in mtk_gpio_set()
109 static int mtk_pconf_set_ies_smt(struct mtk_pinctrl *pctl, unsigned pin, in mtk_pconf_set_ies_smt()
181 struct mtk_pinctrl *pctl, unsigned long pin) { in mtk_find_pin_drv_grp_by_pin()
194 static int mtk_pconf_set_driving(struct mtk_pinctrl *pctl, in mtk_pconf_set_driving()
285 static int mtk_pconf_set_pull_select(struct mtk_pinctrl *pctl, in mtk_pconf_set_pull_select()
339 struct mtk_pinctrl *pctl = pinctrl_dev_get_drvdata(pctldev); in mtk_pconf_parse_conf()
377 struct mtk_pinctrl *pctl = pinctrl_dev_get_drvdata(pctldev); in mtk_pconf_group_get()
[all …]
Dpinctrl-paris.c55 struct mtk_pinctrl *hw = pinctrl_dev_get_drvdata(pctldev); in mtk_pinmux_gpio_request_enable()
68 struct mtk_pinctrl *hw = pinctrl_dev_get_drvdata(pctldev); in mtk_pinmux_gpio_set_direction()
80 struct mtk_pinctrl *hw = pinctrl_dev_get_drvdata(pctldev); in mtk_pinconf_get()
194 struct mtk_pinctrl *hw = pinctrl_dev_get_drvdata(pctldev); in mtk_pinconf_set()
307 mtk_pctrl_find_group_by_pin(struct mtk_pinctrl *hw, u32 pin) in mtk_pctrl_find_group_by_pin()
322 mtk_pctrl_find_function_by_pin(struct mtk_pinctrl *hw, u32 pin_num, u32 fnum) in mtk_pctrl_find_function_by_pin()
336 static bool mtk_pctrl_is_function_valid(struct mtk_pinctrl *hw, u32 pin_num, in mtk_pctrl_is_function_valid()
360 static int mtk_pctrl_dt_node_to_map_func(struct mtk_pinctrl *pctl, in mtk_pctrl_dt_node_to_map_func()
394 struct mtk_pinctrl *hw = pinctrl_dev_get_drvdata(pctldev); in mtk_pctrl_dt_subnode_to_map()
516 struct mtk_pinctrl *hw = pinctrl_dev_get_drvdata(pctldev); in mtk_pctrl_get_groups_count()
[all …]
Dpinctrl-moore.c41 struct mtk_pinctrl *hw = pinctrl_dev_get_drvdata(pctldev); in mtk_pinmux_set_mux()
75 struct mtk_pinctrl *hw = pinctrl_dev_get_drvdata(pctldev); in mtk_pinmux_gpio_request_enable()
88 struct mtk_pinctrl *hw = pinctrl_dev_get_drvdata(pctldev); in mtk_pinmux_gpio_set_direction()
100 struct mtk_pinctrl *hw = pinctrl_dev_get_drvdata(pctldev); in mtk_pinconf_get()
215 struct mtk_pinctrl *hw = pinctrl_dev_get_drvdata(pctldev); in mtk_pinconf_set()
433 struct mtk_pinctrl *hw = gpiochip_get_data(chip); in mtk_gpio_get()
448 struct mtk_pinctrl *hw = gpiochip_get_data(chip); in mtk_gpio_set()
471 struct mtk_pinctrl *hw = gpiochip_get_data(chip); in mtk_gpio_to_irq()
488 struct mtk_pinctrl *hw = gpiochip_get_data(chip); in mtk_gpio_set_config()
504 static int mtk_build_gpiochip(struct mtk_pinctrl *hw, struct device_node *np) in mtk_build_gpiochip()
[all …]
Dpinctrl-paris.h63 ssize_t mtk_pctrl_show_one_pin(struct mtk_pinctrl *hw,
Dpinctrl-mtk-common.h259 struct mtk_pinctrl { struct
Dpinctrl-mt7623.c1404 struct mtk_pinctrl *hw = platform_get_drvdata(pdev); in mt7623_bonding_disable()