Lines Matching defs:gpio_chip
232 struct gpio_chip { struct
238 int (*request)(struct gpio_chip *chip, argument
240 void (*free)(struct gpio_chip *chip, argument
242 int (*get_direction)(struct gpio_chip *chip, argument
244 int (*direction_input)(struct gpio_chip *chip, argument
246 int (*direction_output)(struct gpio_chip *chip, argument
248 int (*get)(struct gpio_chip *chip, argument
250 int (*get_multiple)(struct gpio_chip *chip, argument
253 void (*set)(struct gpio_chip *chip, argument
255 void (*set_multiple)(struct gpio_chip *chip, argument
258 int (*set_config)(struct gpio_chip *chip, argument
261 int (*to_irq)(struct gpio_chip *chip, argument
265 struct gpio_chip *chip); argument
266 int base;
267 u16 ngpio;
268 const char *const *names;
269 bool can_sleep;
272 unsigned long (*read_reg)(void __iomem *reg);
273 void (*write_reg)(void __iomem *reg, unsigned long data);
274 bool be_bits;
275 void __iomem *reg_dat;
276 void __iomem *reg_set;
277 void __iomem *reg_clr;
278 void __iomem *reg_dir;
279 bool bgpio_dir_inverted;
280 int bgpio_bits;
281 spinlock_t bgpio_lock;
282 unsigned long bgpio_data;
283 unsigned long bgpio_dir;
298 struct gpio_irq_chip irq;
306 bool need_valid_mask;
314 unsigned long *valid_mask;
342 int (*of_xlate)(struct gpio_chip *gc, argument