Home
last modified time | relevance | path

Searched refs:mtk_pinctrl (Results 1 - 16 of 16) sorted by relevance

/kernel/linux/linux-5.10/drivers/pinctrl/mediatek/
H A 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 *h
244 struct mtk_pinctrl { global() struct
[all...]
H A 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 *h
[all...]
H A 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()
189 struct mtk_pinctrl *hw = pinctrl_dev_get_drvdata(pctldev); in mtk_pinconf_set()
302 mtk_pctrl_find_group_by_pin(struct mtk_pinctrl *hw, u32 pin) in mtk_pctrl_find_group_by_pin()
317 mtk_pctrl_find_function_by_pin(struct mtk_pinctrl *hw, u32 pin_num, u32 fnum) in mtk_pctrl_find_function_by_pin()
331 static bool mtk_pctrl_is_function_valid(struct mtk_pinctrl *hw, u32 pin_num, in mtk_pctrl_is_function_valid()
355 static int mtk_pctrl_dt_node_to_map_func(struct mtk_pinctrl *pctl, in mtk_pctrl_dt_node_to_map_func()
389 struct mtk_pinctrl *hw = pinctrl_dev_get_drvdata(pctldev); in mtk_pctrl_dt_subnode_to_map()
511 struct mtk_pinctrl *h in mtk_pctrl_get_groups_count()
[all...]
H A 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 *pct in mtk_pconf_group_get()
[all...]
H A 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 *h
[all...]
H A Dpinctrl-paris.h63 ssize_t mtk_pctrl_show_one_pin(struct mtk_pinctrl *hw,
H A Dpinctrl-mtk-common.h259 struct mtk_pinctrl { struct
H A Dpinctrl-mt7623.c1404 struct mtk_pinctrl *hw = platform_get_drvdata(pdev); in mt7623_bonding_disable()
/kernel/linux/linux-6.6/drivers/pinctrl/mediatek/
H A Dpinctrl-mtk-common-v2.h231 struct mtk_pinctrl;
255 int (*bias_disable_set)(struct mtk_pinctrl *hw,
257 int (*bias_disable_get)(struct mtk_pinctrl *hw,
259 int (*bias_set)(struct mtk_pinctrl *hw,
261 int (*bias_get)(struct mtk_pinctrl *hw,
264 int (*bias_set_combo)(struct mtk_pinctrl *hw,
266 int (*bias_get_combo)(struct mtk_pinctrl *hw,
269 int (*drive_set)(struct mtk_pinctrl *hw,
271 int (*drive_get)(struct mtk_pinctrl *hw,
274 int (*adv_pull_set)(struct mtk_pinctrl *h
289 struct mtk_pinctrl { global() struct
[all...]
H A 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()
72 static int mtk_hw_pin_field_lookup(struct mtk_pinctrl *hw, in mtk_hw_pin_field_lookup()
145 static int mtk_hw_pin_field_get(struct mtk_pinctrl *hw, in mtk_hw_pin_field_get()
163 static void mtk_hw_write_cross_field(struct mtk_pinctrl *hw, in mtk_hw_write_cross_field()
177 static void mtk_hw_read_cross_field(struct mtk_pinctrl *hw, in mtk_hw_read_cross_field()
192 int mtk_hw_set_value(struct mtk_pinctrl *hw, const struct mtk_pin_desc *desc, in mtk_hw_set_value()
215 int mtk_hw_get_value(struct mtk_pinctrl *hw, const struct mtk_pin_desc *desc, in mtk_hw_get_value()
235 static int mtk_xt_find_eint_num(struct mtk_pinctrl *h
[all...]
H A Dpinctrl-mtk-common.c50 static struct regmap *mtk_get_regmap(struct mtk_pinctrl *pctl, in mtk_get_regmap()
58 static unsigned int mtk_get_port(struct mtk_pinctrl *pctl, unsigned long pin) in mtk_get_port()
71 struct mtk_pinctrl *pctl = pinctrl_dev_get_drvdata(pctldev); in mtk_pmx_gpio_set_direction()
93 struct mtk_pinctrl *pctl = gpiochip_get_data(chip); in mtk_gpio_set()
106 static int mtk_pconf_set_ies_smt(struct mtk_pinctrl *pctl, unsigned pin, in mtk_pconf_set_ies_smt()
195 struct mtk_pinctrl *pctl, unsigned long pin) { in mtk_find_pin_drv_grp_by_pin()
208 static int mtk_pconf_set_driving(struct mtk_pinctrl *pctl, in mtk_pconf_set_driving()
301 static int mtk_pconf_set_pull_select(struct mtk_pinctrl *pctl, in mtk_pconf_set_pull_select()
371 struct mtk_pinctrl *pctl = pinctrl_dev_get_drvdata(pctldev); in mtk_pconf_parse_conf()
409 struct mtk_pinctrl *pct in mtk_pconf_group_get()
[all...]
H A Dpinctrl-paris.c107 struct mtk_pinctrl *hw = pinctrl_dev_get_drvdata(pctldev); in mtk_pinmux_gpio_request_enable()
120 struct mtk_pinctrl *hw = pinctrl_dev_get_drvdata(pctldev); in mtk_pinmux_gpio_set_direction()
132 struct mtk_pinctrl *hw = pinctrl_dev_get_drvdata(pctldev); in mtk_pinconf_get()
258 struct mtk_pinctrl *hw = pinctrl_dev_get_drvdata(pctldev); in mtk_pinconf_set()
368 mtk_pctrl_find_group_by_pin(struct mtk_pinctrl *hw, u32 pin) in mtk_pctrl_find_group_by_pin()
383 mtk_pctrl_find_function_by_pin(struct mtk_pinctrl *hw, u32 pin_num, u32 fnum) in mtk_pctrl_find_function_by_pin()
397 static bool mtk_pctrl_is_function_valid(struct mtk_pinctrl *hw, u32 pin_num, in mtk_pctrl_is_function_valid()
421 static int mtk_pctrl_dt_node_to_map_func(struct mtk_pinctrl *pctl, in mtk_pctrl_dt_node_to_map_func()
455 struct mtk_pinctrl *hw = pinctrl_dev_get_drvdata(pctldev); in mtk_pctrl_dt_subnode_to_map()
577 struct mtk_pinctrl *h in mtk_pctrl_get_groups_count()
[all...]
H A Dpinctrl-moore.c45 struct mtk_pinctrl *hw = pinctrl_dev_get_drvdata(pctldev); in mtk_pinmux_set_mux()
81 struct mtk_pinctrl *hw = pinctrl_dev_get_drvdata(pctldev); in mtk_pinmux_gpio_request_enable()
96 struct mtk_pinctrl *hw = pinctrl_dev_get_drvdata(pctldev); in mtk_pinmux_gpio_set_direction()
110 struct mtk_pinctrl *hw = pinctrl_dev_get_drvdata(pctldev); in mtk_pinconf_get()
249 struct mtk_pinctrl *hw = pinctrl_dev_get_drvdata(pctldev); in mtk_pinconf_set()
481 struct mtk_pinctrl *hw = gpiochip_get_data(chip); in mtk_gpio_get()
498 struct mtk_pinctrl *hw = gpiochip_get_data(chip); in mtk_gpio_set()
525 struct mtk_pinctrl *hw = gpiochip_get_data(chip); in mtk_gpio_to_irq()
542 struct mtk_pinctrl *hw = gpiochip_get_data(chip); in mtk_gpio_set_config()
560 static int mtk_build_gpiochip(struct mtk_pinctrl *h
[all...]
H A Dpinctrl-paris.h62 ssize_t mtk_pctrl_show_one_pin(struct mtk_pinctrl *hw,
H A Dpinctrl-mtk-common.h282 struct mtk_pinctrl { struct
H A Dpinctrl-mt7623.c1405 struct mtk_pinctrl *hw = platform_get_drvdata(pdev); in mt7623_bonding_disable()

Completed in 17 milliseconds