Lines Matching refs:desc
72 const struct axp20x_pctrl_desc *desc; member
150 return !!(val & BIT(offset + pctl->desc->gpio_status_offset)); in axp20x_gpio_get()
292 mask = pctl->desc->ldo_mask; in axp20x_pmx_set_mux()
294 mask = pctl->desc->adc_mask; in axp20x_pmx_set_mux()
338 return pctl->desc->npins; in axp20x_groups_cnt()
346 *pins = (unsigned int *)&pctl->desc->pins[selector]; in axp20x_group_pins()
357 return pctl->desc->pins[selector].name; in axp20x_group_name()
398 int i, ret, pin, npins = pctl->desc->npins; in axp20x_build_funcs_groups()
410 pctl->funcs[AXP20X_FUNC_ADC].muxval = pctl->desc->adc_mux; in axp20x_build_funcs_groups()
421 pctl->funcs[i].groups[pin] = pctl->desc->pins[pin].name; in axp20x_build_funcs_groups()
424 ret = axp20x_funcs_groups_from_mask(&pdev->dev, pctl->desc->ldo_mask, in axp20x_build_funcs_groups()
426 pctl->desc->pins); in axp20x_build_funcs_groups()
430 ret = axp20x_funcs_groups_from_mask(&pdev->dev, pctl->desc->adc_mask, in axp20x_build_funcs_groups()
432 pctl->desc->pins); in axp20x_build_funcs_groups()
480 pctl->desc = of_device_get_match_data(dev); in axp20x_pctl_probe()
482 pctl->chip.ngpio = pctl->desc->npins; in axp20x_pctl_probe()
501 pctrl_desc->pins = pctl->desc->pins; in axp20x_pctl_probe()
502 pctrl_desc->npins = pctl->desc->npins; in axp20x_pctl_probe()
519 pctl->desc->pins->number, in axp20x_pctl_probe()
520 pctl->desc->pins->number, in axp20x_pctl_probe()
521 pctl->desc->npins); in axp20x_pctl_probe()