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 */
134 #define gpiod_not_found(desc) (IS_ERR(desc) && PTR_ERR(desc) == -ENOENT)
145 * Return the GPIO number of the passed descriptor relative to its chip
149 return desc - &desc->gdev->descs[0]; in gpio_chip_hwgpio()
155 pr_emerg("gpio-%d (%s): " fmt, desc_to_gpio(desc), desc->label ? : "?",\
158 pr_crit("gpio-%d (%s): " fmt, desc_to_gpio(desc), desc->label ? : "?", \
161 pr_err("gpio-%d (%s): " fmt, desc_to_gpio(desc), desc->label ? : "?", \
164 pr_warn("gpio-%d (%s): " fmt, desc_to_gpio(desc), desc->label ? : "?", \
167 pr_info("gpio-%d (%s): " fmt, desc_to_gpio(desc), desc->label ? : "?", \
170 pr_debug("gpio-%d (%s): " fmt, desc_to_gpio(desc), desc->label ? : "?",\
173 /* With chip prefix */
176 dev_emerg(&gc->gpiodev->dev, "(%s): " fmt, gc->label, ##__VA_ARGS__)
178 dev_crit(&gc->gpiodev->dev, "(%s): " fmt, gc->label, ##__VA_ARGS__)
180 dev_err(&gc->gpiodev->dev, "(%s): " fmt, gc->label, ##__VA_ARGS__)
182 dev_warn(&gc->gpiodev->dev, "(%s): " fmt, gc->label, ##__VA_ARGS__)
184 dev_info(&gc->gpiodev->dev, "(%s): " fmt, gc->label, ##__VA_ARGS__)
186 dev_dbg(&gc->gpiodev->dev, "(%s): " fmt, gc->label, ##__VA_ARGS__)