Lines Matching defs:offset
26 int mcf_gpio_direction_input(struct gpio_chip *chip, unsigned offset)
34 dir &= ~mcfgpio_bit(chip->base + offset);
41 int mcf_gpio_get_value(struct gpio_chip *chip, unsigned offset)
45 return mcfgpio_read(mcf_chip->ppdr) & mcfgpio_bit(chip->base + offset);
48 int mcf_gpio_direction_output(struct gpio_chip *chip, unsigned offset,
59 data |= mcfgpio_bit(chip->base + offset);
61 data &= ~mcfgpio_bit(chip->base + offset);
66 data |= mcfgpio_bit(chip->base + offset);
73 void mcf_gpio_set_value(struct gpio_chip *chip, unsigned offset, int value)
83 data |= mcfgpio_bit(chip->base + offset);
85 data &= ~mcfgpio_bit(chip->base + offset);
90 void mcf_gpio_set_value_fast(struct gpio_chip *chip, unsigned offset, int value)
95 mcfgpio_write(mcfgpio_bit(chip->base + offset), mcf_chip->setr);
97 mcfgpio_write(~mcfgpio_bit(chip->base + offset), mcf_chip->clrr);
100 int mcf_gpio_request(struct gpio_chip *chip, unsigned offset)
105 mcf_pinmux_request(mcf_chip->gpio_to_pinmux[offset], 0) : 0;
108 void mcf_gpio_free(struct gpio_chip *chip, unsigned offset)
112 mcf_gpio_direction_input(chip, offset);
115 mcf_pinmux_release(mcf_chip->gpio_to_pinmux[offset], 0);