Lines Matching refs:chip
38 static void bcm63xx_gpio_set(struct gpio_chip *chip, in bcm63xx_gpio_set() argument
46 BUG_ON(gpio >= chip->ngpio); in bcm63xx_gpio_set()
67 static int bcm63xx_gpio_get(struct gpio_chip *chip, unsigned gpio) in bcm63xx_gpio_get() argument
72 BUG_ON(gpio >= chip->ngpio); in bcm63xx_gpio_get()
85 static int bcm63xx_gpio_set_direction(struct gpio_chip *chip, in bcm63xx_gpio_set_direction() argument
93 BUG_ON(gpio >= chip->ngpio); in bcm63xx_gpio_set_direction()
115 static int bcm63xx_gpio_direction_input(struct gpio_chip *chip, unsigned gpio) in bcm63xx_gpio_direction_input() argument
117 return bcm63xx_gpio_set_direction(chip, gpio, BCM63XX_GPIO_DIR_IN); in bcm63xx_gpio_direction_input()
120 static int bcm63xx_gpio_direction_output(struct gpio_chip *chip, in bcm63xx_gpio_direction_output() argument
123 bcm63xx_gpio_set(chip, gpio, value); in bcm63xx_gpio_direction_output()
124 return bcm63xx_gpio_set_direction(chip, gpio, BCM63XX_GPIO_DIR_OUT); in bcm63xx_gpio_direction_output()