Home
last modified time | relevance | path

Searched full:gpiochip (Results 1 – 25 of 86) sorted by relevance

1234

/linux/drivers/gpio/
H A Dgpio-msc313.c614 struct gpio_chip *gpiochip; in msc313_gpio_probe() local
648 gpiochip = devm_kzalloc(dev, sizeof(*gpiochip), GFP_KERNEL); in msc313_gpio_probe()
649 if (!gpiochip) in msc313_gpio_probe()
652 gpiochip->label = DRIVER_NAME; in msc313_gpio_probe()
653 gpiochip->parent = dev; in msc313_gpio_probe()
654 gpiochip->request = gpiochip_generic_request; in msc313_gpio_probe()
655 gpiochip->free = gpiochip_generic_free; in msc313_gpio_probe()
656 gpiochip->direction_input = msc313_gpio_direction_input; in msc313_gpio_probe()
657 gpiochip->direction_output = msc313_gpio_direction_output; in msc313_gpio_probe()
658 gpiochip->get = msc313_gpio_get; in msc313_gpio_probe()
[all …]
H A Dgpio-sama5d2-piobu.c112 * sama5d2_piobu_get_direction() - gpiochip get_direction
127 * sama5d2_piobu_direction_input() - gpiochip direction_input
136 * sama5d2_piobu_direction_output() - gpiochip direction_output
151 * sama5d2_piobu_get() - gpiochip get
170 * sama5d2_piobu_set() - gpiochip set
213 dev_err(&pdev->dev, "Failed to add gpiochip %d\n", ret); in sama5d2_piobu_probe()
H A Dgpio-ixp4xx.c57 * @gc: gpiochip for this instance
315 * the fixed gpiochip base. in ixp4xx_gpio_probe()
331 dev_err(dev, "failed to add SoC gpiochip\n"); in ixp4xx_gpio_probe()
H A Dgpiolib.c539 * is using more than one gpiochip per the same device. We have to stop in gpiochip_set_names()
546 …dev_warn(dev, "gpio-line-names too short (length %d), cannot map names for the gpiochip at offset … in gpiochip_set_names()
564 * When more that one gpiochip per device is used, 'count' can in gpiochip_set_names()
1187 * The gpiochip side puts its use of the device to rest here: in gpiochip_remove()
1379 * to a gpiochip
1380 * @gc: the gpiochip to set the irqchip hierarchical handler to
1699 * @hwirq: the local IRQ/GPIO line offset on this gpiochip
1702 * gpiochip by assigning the gpiochip as chip data, and using the irqchip
1703 * stored inside the gpiochip.
1785 * i.e. while gpiochip is still being brought up. in gpiochip_to_irq()
[all …]
H A Dgpiolib.h22 #define GPIOCHIP_NAME "gpiochip"
32 * @chip: pointer to the corresponding gpiochip, holding static
H A Dgpio-imx-scu.c5 * The driver exports a standard gpiochip interface
H A Dgpio-twl6040.c96 dev_err(&pdev->dev, "could not register gpiochip, %d\n", ret); in gpo_twl6040_probe()
H A Dgpio-lp873x.c151 dev_err(&pdev->dev, "Could not register gpiochip, %d\n", ret); in lp873x_gpio_probe()
H A Dgpio-mlxbf.c81 dev_err(&pdev->dev, "Failed adding memory mapped gpiochip\n"); in mlxbf_gpio_probe()
H A Dgpio-lp87565.c163 dev_err(&pdev->dev, "Could not register gpiochip, %d\n", ret); in lp87565_gpio_probe()
H A Dgpio-pisosr.c157 dev_err(dev, "Unable to register gpiochip\n"); in pisosr_gpio_probe()
/linux/tools/gpio/
H A Dgpio-utils.c25 * Provide the api of gpiochip for chardev interface. There are two
37 * gpiotools_request_line() - request gpio lines in a gpiochip
38 * @device_name: The name of gpiochip without prefix "/dev/",
151 * gpiotools_release_line() - Release the line(s) of gpiochip
173 * @device_name: The name of gpiochip without prefix "/dev/",
195 * @device_name: The name of gpiochip without prefix "/dev/",
200 * @values: The array of values get from gpiochip.
234 * @device_name: The name of gpiochip without prefix "/dev/",
252 * @device_name: The name of gpiochip without prefix "/dev/",
257 * @values: The array of values set to gpiochip, must be
H A Dgpio-watch.c37 perror("unable to open gpiochip"); in main()
98 printf("%s: <gpiochip> <line0> <line1> ...\n", argv[0]); in main()
/linux/drivers/iio/dac/
H A Dad5592r-base.c136 st->gpiochip.label = dev_name(st->dev); in ad5592r_gpio_init()
137 st->gpiochip.base = -1; in ad5592r_gpio_init()
138 st->gpiochip.ngpio = 8; in ad5592r_gpio_init()
139 st->gpiochip.parent = st->dev; in ad5592r_gpio_init()
140 st->gpiochip.can_sleep = true; in ad5592r_gpio_init()
141 st->gpiochip.direction_input = ad5592r_gpio_direction_input; in ad5592r_gpio_init()
142 st->gpiochip.direction_output = ad5592r_gpio_direction_output; in ad5592r_gpio_init()
143 st->gpiochip.get = ad5592r_gpio_get; in ad5592r_gpio_init()
144 st->gpiochip.set = ad5592r_gpio_set; in ad5592r_gpio_init()
145 st->gpiochip.request = ad5592r_gpio_request; in ad5592r_gpio_init()
[all …]
H A Dad5592r-base.h55 struct gpio_chip gpiochip; member
/linux/drivers/pinctrl/mediatek/
H A Dpinctrl-airoha.c387 struct airoha_pinctrl_gpiochip gpiochip; member
2276 regmap_update_bits(pinctrl->regmap, pinctrl->gpiochip.data[index], in airoha_gpio_set()
2288 pinctrl->gpiochip.data[index], &val); in airoha_gpio_get()
2313 struct airoha_pinctrl_gpiochip *gpiochip; in airoha_irq_unmask() local
2317 gpiochip = irq_data_get_irq_chip_data(data); in airoha_irq_unmask()
2318 if (WARN_ON_ONCE(data->hwirq >= ARRAY_SIZE(gpiochip->irq_type))) in airoha_irq_unmask()
2321 pinctrl = container_of(gpiochip, struct airoha_pinctrl, gpiochip); in airoha_irq_unmask()
2322 switch (gpiochip->irq_type[data->hwirq]) { in airoha_irq_unmask()
2327 regmap_update_bits(pinctrl->regmap, gpiochip->level[index], in airoha_irq_unmask()
2334 regmap_update_bits(pinctrl->regmap, gpiochip->edge[index], in airoha_irq_unmask()
[all …]
/linux/Documentation/ABI/testing/
H A Dgpio-cdev1 What: /dev/gpiochip[0-9]+
6 The character device files /dev/gpiochip* are the interface
/linux/drivers/media/i2c/
H A Dmax96717.c282 static int max96717_gpiochip_get(struct gpio_chip *gpiochip, in max96717_gpiochip_get() argument
285 struct max96717_priv *priv = gpiochip_get_data(gpiochip); in max96717_gpiochip_get()
300 static void max96717_gpiochip_set(struct gpio_chip *gpiochip, in max96717_gpiochip_set() argument
303 struct max96717_priv *priv = gpiochip_get_data(gpiochip); in max96717_gpiochip_set()
309 static int max96717_gpio_get_direction(struct gpio_chip *gpiochip, in max96717_gpio_get_direction() argument
312 struct max96717_priv *priv = gpiochip_get_data(gpiochip); in max96717_gpio_get_direction()
323 static int max96717_gpio_direction_out(struct gpio_chip *gpiochip, in max96717_gpio_direction_out() argument
326 struct max96717_priv *priv = gpiochip_get_data(gpiochip); in max96717_gpio_direction_out()
333 static int max96717_gpio_direction_in(struct gpio_chip *gpiochip, in max96717_gpio_direction_in() argument
336 struct max96717_priv *priv = gpiochip_get_data(gpiochip); in max96717_gpio_direction_in()
[all …]
/linux/tools/testing/selftests/gpio/
H A Dgpio-mockup.sh281 # For each gpiochip the fence post lines, 0 and n-1, are tested, and the
285 # gpiochip is tested as well.
297 gpiochip=$(find "$DEBUGFS/$module/" -name gpiochip* -type d | sort)
298 for chip in $gpiochip; do
H A Dgpio-mockup-cdev.c93 printf("Usage: %s [-l] [-b <bias>] [-s <value>] [-u <uAPI>] <gpiochip> <offset>\n", prog); in usage()
/linux/Documentation/admin-guide/gpio/
H A Dgpio-aggregator.rst13 GPIO controllers are exported to userspace using /dev/gpiochip* character
104 After that, a new gpiochip "door" has been created:
/linux/drivers/platform/x86/
H A Dsilicom-platform.c69 struct gpio_chip *gpiochip; member
487 .gpiochip = &silicom_gpio_chip,
620 .gpiochip = &silicom_gpio_chip,
916 dev_err(&device->dev, "Failed to register gpiochip: %d\n", err); in silicom_platform_probe()
937 silicom_gpiochip = info->gpiochip; in silicom_platform_info_init()
/linux/Documentation/devicetree/bindings/power/supply/
H A Dbq24190.yaml86 interrupt-parent = <&gpiochip>;
/linux/arch/mips/bcm63xx/
H A Dsetup.c172 /* register gpiochip */ in bcm63xx_register_devices()
/linux/arch/x86/platform/geode/
H A Dgeode-common.c55 * because it registers gpiochip software node used by both gpio-keys and

1234