Lines Matching refs:pctldev
114 static int spear_pinctrl_get_groups_cnt(struct pinctrl_dev *pctldev) in spear_pinctrl_get_groups_cnt() argument
116 struct spear_pmx *pmx = pinctrl_dev_get_drvdata(pctldev); in spear_pinctrl_get_groups_cnt()
121 static const char *spear_pinctrl_get_group_name(struct pinctrl_dev *pctldev, in spear_pinctrl_get_group_name() argument
124 struct spear_pmx *pmx = pinctrl_dev_get_drvdata(pctldev); in spear_pinctrl_get_group_name()
129 static int spear_pinctrl_get_group_pins(struct pinctrl_dev *pctldev, in spear_pinctrl_get_group_pins() argument
132 struct spear_pmx *pmx = pinctrl_dev_get_drvdata(pctldev); in spear_pinctrl_get_group_pins()
140 static void spear_pinctrl_pin_dbg_show(struct pinctrl_dev *pctldev, in spear_pinctrl_pin_dbg_show() argument
146 static int spear_pinctrl_dt_node_to_map(struct pinctrl_dev *pctldev, in spear_pinctrl_dt_node_to_map() argument
151 struct spear_pmx *pmx = pinctrl_dev_get_drvdata(pctldev); in spear_pinctrl_dt_node_to_map()
198 static void spear_pinctrl_dt_free_map(struct pinctrl_dev *pctldev, in spear_pinctrl_dt_free_map() argument
214 static int spear_pinctrl_get_funcs_count(struct pinctrl_dev *pctldev) in spear_pinctrl_get_funcs_count() argument
216 struct spear_pmx *pmx = pinctrl_dev_get_drvdata(pctldev); in spear_pinctrl_get_funcs_count()
221 static const char *spear_pinctrl_get_func_name(struct pinctrl_dev *pctldev, in spear_pinctrl_get_func_name() argument
224 struct spear_pmx *pmx = pinctrl_dev_get_drvdata(pctldev); in spear_pinctrl_get_func_name()
229 static int spear_pinctrl_get_func_groups(struct pinctrl_dev *pctldev, in spear_pinctrl_get_func_groups() argument
233 struct spear_pmx *pmx = pinctrl_dev_get_drvdata(pctldev); in spear_pinctrl_get_func_groups()
241 static int spear_pinctrl_endisable(struct pinctrl_dev *pctldev, in spear_pinctrl_endisable() argument
244 struct spear_pmx *pmx = pinctrl_dev_get_drvdata(pctldev); in spear_pinctrl_endisable()
275 static int spear_pinctrl_set_mux(struct pinctrl_dev *pctldev, unsigned function, in spear_pinctrl_set_mux() argument
278 return spear_pinctrl_endisable(pctldev, function, group, true); in spear_pinctrl_set_mux()
303 static int gpio_request_endisable(struct pinctrl_dev *pctldev, in gpio_request_endisable() argument
306 struct spear_pmx *pmx = pinctrl_dev_get_drvdata(pctldev); in gpio_request_endisable()
329 static int gpio_request_enable(struct pinctrl_dev *pctldev, in gpio_request_enable() argument
332 return gpio_request_endisable(pctldev, range, offset, true); in gpio_request_enable()
335 static void gpio_disable_free(struct pinctrl_dev *pctldev, in gpio_disable_free() argument
338 gpio_request_endisable(pctldev, range, offset, false); in gpio_disable_free()