Lines Matching refs:cs_gpios
37 struct gpio_desc **cs_gpios; member
231 if (spi_gpio->cs_gpios) { in spi_gpio_chipselect()
232 struct gpio_desc *cs = spi_gpio->cs_gpios[spi_get_chipselect(spi, 0)]; in spi_gpio_chipselect()
249 if (spi_gpio->cs_gpios) { in spi_gpio_setup()
250 cs = spi_gpio->cs_gpios[spi_get_chipselect(spi, 0)]; in spi_gpio_setup()
370 spi_gpio->cs_gpios = devm_kcalloc(dev, host->num_chipselect, in spi_gpio_probe_pdata()
371 sizeof(*spi_gpio->cs_gpios), in spi_gpio_probe_pdata()
373 if (!spi_gpio->cs_gpios) in spi_gpio_probe_pdata()
377 spi_gpio->cs_gpios[i] = devm_gpiod_get_index(dev, "cs", i, in spi_gpio_probe_pdata()
379 if (IS_ERR(spi_gpio->cs_gpios[i])) in spi_gpio_probe_pdata()
380 return PTR_ERR(spi_gpio->cs_gpios[i]); in spi_gpio_probe_pdata()