Lines Matching refs:devdata
30 const struct visconti_pinctrl_devdata *devdata; member
42 const struct visconti_desc_pin *pin = &priv->devdata->pins[_pin]; in visconti_pin_config_set()
132 pins = priv->devdata->groups[selector].pins; in visconti_pin_config_group_set()
133 num_pins = priv->devdata->groups[selector].nr_pins; in visconti_pin_config_group_set()
159 return priv->devdata->nr_groups; in visconti_get_groups_count()
167 return priv->devdata->groups[selector].name; in visconti_get_group_name()
177 *pins = priv->devdata->groups[selector].pins; in visconti_get_group_pins()
178 *num_pins = priv->devdata->groups[selector].nr_pins; in visconti_get_group_pins()
196 return priv->devdata->nr_functions; in visconti_get_functions_count()
204 return priv->devdata->functions[selector].name; in visconti_get_function_name()
214 *groups = priv->devdata->functions[selector].groups; in visconti_get_function_groups()
215 *num_groups = priv->devdata->functions[selector].nr_groups; in visconti_get_function_groups()
224 const struct visconti_pin_function *func = &priv->devdata->functions[function]; in visconti_set_mux()
225 const struct visconti_pin_group *grp = &priv->devdata->groups[group]; in visconti_set_mux()
253 const struct visconti_mux *gpio_mux = &priv->devdata->gpio_mux[pin]; in visconti_gpio_request_enable()
280 const struct visconti_pinctrl_devdata *devdata) in visconti_pinctrl_probe() argument
292 priv->devdata = devdata; in visconti_pinctrl_probe()
301 pins = devm_kcalloc(dev, devdata->nr_pins, in visconti_pinctrl_probe()
306 for (i = 0; i < devdata->nr_pins; i++) in visconti_pinctrl_probe()
307 pins[i] = devdata->pins[i].pin; in visconti_pinctrl_probe()
312 priv->pctl_desc.npins = devdata->nr_pins; in visconti_pinctrl_probe()
324 if (devdata->unlock) in visconti_pinctrl_probe()
325 devdata->unlock(priv->base); in visconti_pinctrl_probe()