Lines Matching refs:offset
49 * @offset: gpio whose value will be returned
53 static int msp71xx_gpio_get(struct gpio_chip *chip, unsigned offset)
57 return __raw_readl(msp_chip->data_reg) & (1 << offset);
63 * @offset: gpio whose value will be assigned
69 static void msp71xx_gpio_set(struct gpio_chip *chip, unsigned offset, int value)
79 data |= (1 << offset);
81 data &= ~(1 << offset);
90 * @offset: gpio whose value will be assigned
96 unsigned offset, int mode)
99 const unsigned bit_offset = MSP71XX_CFG_OFFSET(offset);
118 * @offset: gpio whose value will be assigned
125 unsigned offset, int value)
127 msp71xx_gpio_set(chip, offset, value);
129 return msp71xx_set_gpio_mode(chip, offset, MSP71XX_GPIO_OUTPUT);
135 * @offset: gpio whose to which the value will be assigned
139 static int msp71xx_direction_input(struct gpio_chip *chip, unsigned offset)
141 return msp71xx_set_gpio_mode(chip, offset, MSP71XX_GPIO_INPUT);