Home
last modified time | relevance | path

Searched refs:gpiochip (Results 1 – 15 of 15) sorted by relevance

/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 Dgpiolib-sysfs.c435 ATTRIBUTE_GROUPS(gpiochip);
/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/tools/testing/selftests/gpio/
H A Dgpio-mockup.sh297 gpiochip=$(find "$DEBUGFS/$module/" -name gpiochip* -type d | sort)
298 for chip in $gpiochip; do
/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()
/linux/drivers/platform/x86/
H A Dsilicom-platform.c69 struct gpio_chip *gpiochip; member
487 .gpiochip = &silicom_gpio_chip,
620 .gpiochip = &silicom_gpio_chip,
937 silicom_gpiochip = info->gpiochip; in silicom_platform_info_init()
/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/Documentation/userspace-api/gpio/
H A Dsysfs.rst140 gpiochip nodes (possibly in conjunction with schematics) to determine
/linux/Documentation/driver-api/gpio/
H A Dboard.rst190 The line will be hogged as soon as the gpiochip is created or - in case the
H A Ddriver.rst650 these helpers, we can set .irq.need_valid_mask of the gpiochip before
/linux/drivers/hid/
H A DKconfig273 and gpiochip to expose these functions of the CP2112. The
/linux/Documentation/admin-guide/
H A Dkernel-parameters.txt1752 [HW] Sets the ranges of gpiochip of for this device.