Searched refs:cspins (Results 1 – 1 of 1) sorted by relevance
128 gpio_pin_t cspins[CS_MAX]; member224 gpio_pin_set_active(sc->cspins[cs & ~SPIBUS_CS_HIGH], pinactive); in spi_set_chipsel()225 gpio_pin_is_active(sc->cspins[cs & ~SPIBUS_CS_HIGH], &pinactive); in spi_set_chipsel()418 if (cs > CS_MAX || sc->cspins[cs] == NULL) { in spi_transfer()479 for (idx = 0; idx < nitems(sc->cspins); ++idx) { in spi_detach()480 if (sc->cspins[idx] != NULL) in spi_detach()481 gpio_pin_release(sc->cspins[idx]); in spi_detach()543 for (idx = 0; idx < nitems(sc->cspins); ++idx) { in spi_attach()545 idx, &sc->cspins[idx]); in spi_attach()547 gpio_pin_setflags(sc->cspins[idx], GPIO_PIN_OUTPUT); in spi_attach()