Lines Matching refs:padconf
91 struct allwinner_padconf *padconf;
99 .padconf = &a10_padconf,
108 .padconf = &a13_padconf,
117 .padconf = &a20_padconf,
126 .padconf = &a31_padconf,
135 .padconf = &a31s_padconf,
143 .padconf = &a31_r_padconf,
152 .padconf = &a33_padconf,
162 .padconf = &h3_padconf,
166 .padconf = &h3_r_padconf,
176 .padconf = &a83t_padconf,
180 .padconf = &a83t_r_padconf,
190 .padconf = &a64_padconf,
194 .padconf = &a64_r_padconf,
204 .padconf = &h6_padconf,
208 .padconf = &h6_r_padconf,
352 if (pin > sc->conf->padconf->npins)
354 bank = sc->conf->padconf->pins[pin].port;
355 pin = sc->conf->padconf->pins[pin].pin;
368 /* Check if the function exists in the padconf data */
369 if (sc->conf->padconf->pins[pin].functions[f] == NULL)
375 bank = sc->conf->padconf->pins[pin].port;
376 pin = sc->conf->padconf->pins[pin].pin;
395 bank = sc->conf->padconf->pins[pin].port;
396 pin = sc->conf->padconf->pins[pin].pin;
415 bank = sc->conf->padconf->pins[pin].port;
416 pin = sc->conf->padconf->pins[pin].pin;
433 bank = sc->conf->padconf->pins[pin].port;
434 pin = sc->conf->padconf->pins[pin].pin;
453 bank = sc->conf->padconf->pins[pin].port;
454 pin = sc->conf->padconf->pins[pin].pin;
472 if (pin > sc->conf->padconf->npins)
527 *maxpin = sc->conf->padconf->npins - 1;
537 if (pin >= sc->conf->padconf->npins)
541 if (sc->conf->padconf->pins[pin].eint_func != 0)
555 if (pin >= sc->conf->padconf->npins)
595 if (pin >= sc->conf->padconf->npins)
599 sc->conf->padconf->pins[pin].name);
612 if (pin > sc->conf->padconf->npins)
630 if (pin > sc->conf->padconf->npins)
633 bank = sc->conf->padconf->pins[pin].port;
634 pin = sc->conf->padconf->pins[pin].pin;
669 if (pin > sc->conf->padconf->npins)
672 bank = sc->conf->padconf->pins[pin].port;
673 pin = sc->conf->padconf->pins[pin].pin;
772 if (pin > sc->conf->padconf->npins)
775 bank = sc->conf->padconf->pins[pin].port;
776 pin = sc->conf->padconf->pins[pin].pin;
798 if (first_pin > sc->conf->padconf->npins)
807 bank = sc->conf->padconf->pins[first_pin].port;
808 pin = sc->conf->padconf->pins[first_pin].pin;
834 if (first_pin > sc->conf->padconf->npins)
837 bank = sc->conf->padconf->pins[first_pin].port;
838 if (sc->conf->padconf->pins[first_pin].pin != 0)
867 for (i = 0; i < sc->conf->padconf->npins; i++)
868 if (sc->conf->padconf->pins[i].port == gpios[0] &&
869 sc->conf->padconf->pins[i].pin == gpios[1]) {
883 for (i = 0; i < sc->conf->padconf->npins; i++)
884 if (!strcmp(pinname, sc->conf->padconf->pins[i].name))
896 if (sc->conf->padconf->pins[pin].functions[i] &&
897 !strcmp(func, sc->conf->padconf->pins[pin].functions[i]))
1175 for (nirqs = 0, pin = 0; pin < sc->conf->padconf->npins; pin++) {
1176 if (sc->conf->padconf->pins[pin].eint_func == 0)
1184 for (nirqs = 0, pin = 0; pin < sc->conf->padconf->npins; pin++) {
1185 if (sc->conf->padconf->pins[pin].eint_func == 0)
1189 sc->gpio_pic_irqsrc[nirqs].bank = sc->conf->padconf->pins[pin].eint_bank;
1190 sc->gpio_pic_irqsrc[nirqs].intnum = sc->conf->padconf->pins[pin].eint_num;
1191 sc->gpio_pic_irqsrc[nirqs].intfunc = sc->conf->padconf->pins[pin].eint_func;
1197 sc->conf->padconf->pins[pin].functions[sc->conf->padconf->pins[pin].eint_func]);