Lines Matching refs:cs_pins
88 if (sc->cs_pins[cs] == NULL) { in qcom_spi_set_chipsel()
112 gpio_pin_set_active(sc->cs_pins[cs], pinactive); in qcom_spi_set_chipsel()
113 gpio_pin_is_active(sc->cs_pins[cs], &pinactive); in qcom_spi_set_chipsel()
244 for (idx = 0; idx < nitems(sc->cs_pins); idx++) { in qcom_spi_attach_gpios()
246 "cs-gpios", idx, &sc->cs_pins[idx]); in qcom_spi_attach_gpios()
248 err = gpio_pin_setflags(sc->cs_pins[idx], in qcom_spi_attach_gpios()
262 gpio_pin_set_active(sc->cs_pins[idx], 1); in qcom_spi_attach_gpios()
263 gpio_pin_is_active(sc->cs_pins[idx], &tmp); in qcom_spi_attach_gpios()
268 sc->cs_pins[idx] = NULL; in qcom_spi_attach_gpios()
450 if (sc->cs_pins[i] != NULL) in qcom_spi_attach()
451 gpio_pin_release(sc->cs_pins[i]); in qcom_spi_attach()
779 if (sc->cs_pins[cs_val & ~SPIBUS_CS_HIGH] == NULL) in qcom_spi_transfer()
811 if (sc->cs_pins[cs_val & ~SPIBUS_CS_HIGH] == NULL) in qcom_spi_transfer()
857 if (sc->cs_pins[i] != NULL) in qcom_spi_detach()
858 gpio_pin_release(sc->cs_pins[i]); in qcom_spi_detach()