Home
last modified time | relevance | path

Searched refs:cs_gpios (Results 1 - 8 of 8) sorted by relevance

/kernel/linux/linux-5.10/drivers/spi/
H A Dspi-gpio.c38 struct gpio_desc **cs_gpios; member
208 if (spi_gpio->cs_gpios) { in spi_gpio_chipselect()
209 struct gpio_desc *cs = spi_gpio->cs_gpios[spi->chip_select]; in spi_gpio_chipselect()
226 if (spi_gpio->cs_gpios) { in spi_gpio_setup()
227 cs = spi_gpio->cs_gpios[spi->chip_select]; in spi_gpio_setup()
347 spi_gpio->cs_gpios = devm_kcalloc(dev, master->num_chipselect, in spi_gpio_probe_pdata()
348 sizeof(*spi_gpio->cs_gpios), in spi_gpio_probe_pdata()
350 if (!spi_gpio->cs_gpios) in spi_gpio_probe_pdata()
354 spi_gpio->cs_gpios[i] = devm_gpiod_get_index(dev, "cs", i, in spi_gpio_probe_pdata()
356 if (IS_ERR(spi_gpio->cs_gpios[ in spi_gpio_probe_pdata()
[all...]
H A Dspi-mt65xx.c772 if (!master->cs_gpios && master->num_chipselect > 1) { in mtk_spi_probe()
774 "cs_gpios not specified and num_chipselect > 1\n"); in mtk_spi_probe()
779 if (master->cs_gpios) { in mtk_spi_probe()
782 master->cs_gpios[i], in mtk_spi_probe()
H A Dspi.c597 else if (ctlr->cs_gpios) in spi_add_device()
598 spi->cs_gpio = ctlr->cs_gpios[spi->chip_select]; in spi_add_device()
2530 ctlr->cs_gpios = cs; in of_spi_get_gpio_numbers()
2532 if (!ctlr->cs_gpios) in of_spi_get_gpio_numbers()
/kernel/linux/linux-6.6/drivers/spi/
H A Dspi-gpio.c37 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[ in spi_gpio_probe_pdata()
[all...]
H A Dspi-at91-usart.c484 struct gpio_descs *cs_gpios; in at91_usart_gpio_setup() local
486 cs_gpios = devm_gpiod_get_array_optional(&pdev->dev, "cs", GPIOD_OUT_LOW); in at91_usart_gpio_setup()
488 return PTR_ERR_OR_ZERO(cs_gpios); in at91_usart_gpio_setup()
/kernel/linux/linux-5.10/drivers/usb/dwc3/
H A Ddwc3-pci.c73 static const struct acpi_gpio_params cs_gpios = { 1, 0, false }; variable
77 { "cs-gpios", &cs_gpios, 1 },
/kernel/linux/linux-6.6/drivers/usb/dwc3/
H A Ddwc3-pci.c87 static const struct acpi_gpio_params cs_gpios = { 1, 0, false }; variable
91 { "cs-gpios", &cs_gpios, 1 },
/kernel/linux/linux-5.10/include/linux/spi/
H A Dspi.h421 * @cs_gpios: LEGACY: array of GPIO descs to use as chip select lines; one per
430 * driver. This will fill in @cs_gpiods and @cs_gpios should not be used,
650 int *cs_gpios; member

Completed in 14 milliseconds