• Home
  • Raw
  • Download

Lines Matching +full:has +full:- +full:chip +full:- +full:id

1 /* SPDX-License-Identifier: GPL-2.0 */
22 * struct gpio_device - internal state container for GPIO devices
23 * @id: numerical ID number for the GPIO chip
29 * @chip: pointer to the corresponding gpiochip, holding static
37 * or name of the IP component in a System on Chip.
38 * @data: per-instance data assigned by the driver
43 * GPIO chip has been removed, if it is still being used from
47 int id; member
52 struct gpio_chip *chip; member
78 struct gpio_chip *chip; member
107 #define FLAG_ACTIVE_LOW 6 /* value has active low */
114 #define FLAG_PULL_UP 13 /* GPIO has pull up enabled */
115 #define FLAG_PULL_DOWN 14 /* GPIO has pull down enabled */
116 #define FLAG_BIAS_DISABLE 15 /* GPIO has pull disabled */
141 * Return the GPIO number of the passed descriptor relative to its chip
145 return desc - &desc->gdev->descs[0]; in gpio_chip_hwgpio()
151 pr_emerg("gpio-%d (%s): " fmt, desc_to_gpio(desc), desc->label ? : "?",\
154 pr_crit("gpio-%d (%s): " fmt, desc_to_gpio(desc), desc->label ? : "?", \
157 pr_err("gpio-%d (%s): " fmt, desc_to_gpio(desc), desc->label ? : "?", \
160 pr_warn("gpio-%d (%s): " fmt, desc_to_gpio(desc), desc->label ? : "?", \
163 pr_info("gpio-%d (%s): " fmt, desc_to_gpio(desc), desc->label ? : "?", \
166 pr_debug("gpio-%d (%s): " fmt, desc_to_gpio(desc), desc->label ? : "?",\
169 /* With chip prefix */
172 dev_emerg(&gc->gpiodev->dev, "(%s): " fmt, gc->label, ##__VA_ARGS__)
174 dev_crit(&gc->gpiodev->dev, "(%s): " fmt, gc->label, ##__VA_ARGS__)
176 dev_err(&gc->gpiodev->dev, "(%s): " fmt, gc->label, ##__VA_ARGS__)
178 dev_warn(&gc->gpiodev->dev, "(%s): " fmt, gc->label, ##__VA_ARGS__)
180 dev_info(&gc->gpiodev->dev, "(%s): " fmt, gc->label, ##__VA_ARGS__)
182 dev_dbg(&gc->gpiodev->dev, "(%s): " fmt, gc->label, ##__VA_ARGS__)