Home
last modified time | relevance | path

Searched refs:gpiod_count (Results 1 – 25 of 27) sorted by relevance

12

/openbmc/linux/arch/mips/lantiq/xway/
H A Dvmmc.c39 gpio_count = gpiod_count(&pdev->dev, NULL); in vmmc_probe()
/openbmc/linux/drivers/mux/
H A Dgpio.c57 pins = gpiod_count(dev, "mux"); in mux_gpio_probe()
/openbmc/linux/drivers/input/keyboard/
H A Dclps711x-keypad.c103 priv->row_count = gpiod_count(dev, "row"); in clps711x_keypad_probe()
H A Dmatrix_keypad.c421 pdata->num_row_gpios = nrow = gpiod_count(dev, "row"); in matrix_keypad_parse_dt()
422 pdata->num_col_gpios = ncol = gpiod_count(dev, "col"); in matrix_keypad_parse_dt()
/openbmc/linux/drivers/watchdog/
H A Dmena21_wdt.c141 num_gpios = gpiod_count(dev, NULL); in a21_wdt_probe()
/openbmc/linux/include/linux/gpio/
H A Dconsumer.h60 int gpiod_count(struct device *dev, const char *con_id);
192 static inline int gpiod_count(struct device *dev, const char *con_id) in gpiod_count() function
/openbmc/linux/drivers/platform/surface/
H A Dsurface_hotplug.c213 if (gpiod_count(&pdev->dev, NULL) < 0) in surface_hotplug_probe()
/openbmc/linux/drivers/i2c/busses/
H A Di2c-cbus-gpio.c224 if (gpiod_count(&pdev->dev, NULL) != 3) in cbus_i2c_probe()
/openbmc/linux/drivers/leds/
H A Dleds-netxbig.c356 ret = gpiod_count(gpio_ext_dev, "addr"); in netxbig_gpio_ext_get()
385 ret = gpiod_count(gpio_ext_dev, "data"); in netxbig_gpio_ext_get()
/openbmc/linux/drivers/i2c/muxes/
H A Di2c-mux-gpio.c146 ngpios = gpiod_count(&pdev->dev, "mux"); in i2c_mux_gpio_probe()
/openbmc/linux/drivers/hsi/clients/
H A Dnokia-modem.c77 gpio_count = gpiod_count(dev, NULL); in nokia_modem_gpio_probe()
/openbmc/linux/drivers/auxdisplay/
H A Dhd44780.c210 ifwidth = gpiod_count(dev, "data"); in hd44780_probe()
/openbmc/linux/drivers/regulator/
H A Dgpio-regulator.c164 ngpios = gpiod_count(dev, NULL); in of_get_gpio_regulator_config()
/openbmc/linux/drivers/platform/surface/aggregator/
H A Dcore.c626 if (gpiod_count(&serdev->dev, NULL) < 0) in ssam_serial_hub_probe()
/openbmc/linux/drivers/input/misc/
H A Dsoc_button_array.c457 error = gpiod_count(dev, NULL); in soc_button_probe()
/openbmc/linux/drivers/gpio/
H A Dgpio-max3191x.c337 int found = gpiod_count(dev, con_id); in devm_gpiod_get_array_optional_count()
H A Dgpio-aggregator.c576 n = gpiod_count(dev, NULL); in gpio_aggregator_probe()
H A Dgpiolib.c4124 int gpiod_count(struct device *dev, const char *con_id) in gpiod_count() function
4141 EXPORT_SYMBOL_GPL(gpiod_count);
4379 count = gpiod_count(dev, con_id); in gpiod_get_array()
/openbmc/linux/drivers/hwmon/
H A Dgpio-fan.c426 fan_data->num_gpios = gpiod_count(dev, NULL); in gpio_fan_get_of_data()
/openbmc/linux/drivers/spi/
H A Dspi-mpc52xx.c443 ms->gpio_cs_count = gpiod_count(&op->dev, NULL); in mpc52xx_spi_probe()
H A Dspi-fsl-spi.c673 ret = gpiod_count(dev, "cs"); in of_fsl_spi_probe()
H A Dspi-stm32-qspi.c656 if (mode && gpiod_count(qspi->dev, "cs") == -ENOENT) { in stm32_qspi_setup()
/openbmc/linux/drivers/pci/controller/dwc/
H A Dpcie-kirin.c373 ret = gpiod_count(dev, "hisilicon,clken"); in kirin_pcie_get_gpio_enable()
/openbmc/linux/drivers/video/fbdev/
H A Datmel_lcdfb.c968 for (i = 0; i < gpiod_count(dev, "atmel,power-control"); i++) { in atmel_lcdfb_of_init()
/openbmc/linux/sound/pci/hda/
H A Dcs35l41_hda.c1384 count = gpiod_count(dev, "spk-id"); in cs35l41_get_speaker_id()

12