Lines Matching defs:conf
281 struct aw_gpio_conf *conf;
345 if (pin > sc->conf->padconf->npins)
347 bank = sc->conf->padconf->pins[pin].port;
348 pin = sc->conf->padconf->pins[pin].pin;
362 if (sc->conf->padconf->pins[pin].functions[f] == NULL)
368 bank = sc->conf->padconf->pins[pin].port;
369 pin = sc->conf->padconf->pins[pin].pin;
388 bank = sc->conf->padconf->pins[pin].port;
389 pin = sc->conf->padconf->pins[pin].pin;
408 bank = sc->conf->padconf->pins[pin].port;
409 pin = sc->conf->padconf->pins[pin].pin;
426 bank = sc->conf->padconf->pins[pin].port;
427 pin = sc->conf->padconf->pins[pin].pin;
446 bank = sc->conf->padconf->pins[pin].port;
447 pin = sc->conf->padconf->pins[pin].pin;
465 if (pin > sc->conf->padconf->npins)
520 *maxpin = sc->conf->padconf->npins - 1;
530 if (pin >= sc->conf->padconf->npins)
534 if (sc->conf->padconf->pins[pin].eint_func != 0)
548 if (pin >= sc->conf->padconf->npins)
588 if (pin >= sc->conf->padconf->npins)
592 sc->conf->padconf->pins[pin].name);
605 if (pin > sc->conf->padconf->npins)
623 if (pin > sc->conf->padconf->npins)
626 bank = sc->conf->padconf->pins[pin].port;
627 pin = sc->conf->padconf->pins[pin].pin;
662 if (pin > sc->conf->padconf->npins)
665 bank = sc->conf->padconf->pins[pin].port;
666 pin = sc->conf->padconf->pins[pin].pin;
765 if (pin > sc->conf->padconf->npins)
768 bank = sc->conf->padconf->pins[pin].port;
769 pin = sc->conf->padconf->pins[pin].pin;
791 if (first_pin > sc->conf->padconf->npins)
800 bank = sc->conf->padconf->pins[first_pin].port;
801 pin = sc->conf->padconf->pins[first_pin].pin;
827 if (first_pin > sc->conf->padconf->npins)
830 bank = sc->conf->padconf->pins[first_pin].port;
831 if (sc->conf->padconf->pins[first_pin].pin != 0)
860 for (i = 0; i < sc->conf->padconf->npins; i++)
861 if (sc->conf->padconf->pins[i].port == gpios[0] &&
862 sc->conf->padconf->pins[i].pin == gpios[1]) {
876 for (i = 0; i < sc->conf->padconf->npins; i++)
877 if (!strcmp(pinname, sc->conf->padconf->pins[i].name))
889 if (sc->conf->padconf->pins[pin].functions[i] &&
890 !strcmp(func, sc->conf->padconf->pins[pin].functions[i]))
967 nbanks = strlen(sc->conf->banks);
970 sc->conf->banks[i]);
976 sc->conf->banks[i]);
980 sc->conf->banks[i]);
1035 sc->conf = (struct aw_gpio_conf *)ofw_bus_search_compatible(dev,
1166 for (nirqs = 0, pin = 0; pin < sc->conf->padconf->npins; pin++) {
1167 if (sc->conf->padconf->pins[pin].eint_func == 0)
1175 for (nirqs = 0, pin = 0; pin < sc->conf->padconf->npins; pin++) {
1176 if (sc->conf->padconf->pins[pin].eint_func == 0)
1180 sc->gpio_pic_irqsrc[nirqs].bank = sc->conf->padconf->pins[pin].eint_bank;
1181 sc->gpio_pic_irqsrc[nirqs].intnum = sc->conf->padconf->pins[pin].eint_num;
1182 sc->gpio_pic_irqsrc[nirqs].intfunc = sc->conf->padconf->pins[pin].eint_func;
1188 sc->conf->padconf->pins[pin].functions[sc->conf->padconf->pins[pin].eint_func]);