Lines Matching defs:chip
23 * need to extend or change depending on the hardware and the s3c chip
39 void (*save)(struct samsung_gpio_chip *chip);
40 void (*resume)(struct samsung_gpio_chip *chip);
47 * @chip: The chip structure to be exported via gpiolib.
63 * Each chip has its own lock to avoid any contention between different
68 struct gpio_chip chip;
83 return container_of(gpc, struct samsung_gpio_chip, chip);
88 * @chip: The gpio chip that the pin belongs to.
89 * @offset: The offset of the pin in the chip.
91 * This helper returns the irq number calculated from the chip->irq_base and
94 extern int samsung_gpiolib_to_irq(struct gpio_chip *chip, unsigned int offset);
99 static inline struct samsung_gpio_chip *samsung_gpiolib_getchip(unsigned int chip)
101 return (chip < S3C_GPIO_END) ? s3c_gpios[chip] : NULL;
110 struct samsung_gpio_chip *chip;
115 chip = &s3c24xx_gpios[pin/32];
116 return ((pin - chip->chip.base) < chip->chip.ngpio) ? chip : NULL;
119 static inline void s3c_gpiolib_track(struct samsung_gpio_chip *chip) { }