Lines Matching refs:gpioreg
491 u8 gpioreg = readb_relaxed(gpio->base + gpio->gpio_data->offsets[offset]); in msc313_gpio_set() local
494 gpioreg |= MSC313_GPIO_OUT; in msc313_gpio_set()
496 gpioreg &= ~MSC313_GPIO_OUT; in msc313_gpio_set()
498 writeb_relaxed(gpioreg, gpio->base + gpio->gpio_data->offsets[offset]); in msc313_gpio_set()
511 u8 gpioreg = readb_relaxed(gpio->base + gpio->gpio_data->offsets[offset]); in msc313_gpio_direction_input() local
513 gpioreg |= MSC313_GPIO_OEN; in msc313_gpio_direction_input()
514 writeb_relaxed(gpioreg, gpio->base + gpio->gpio_data->offsets[offset]); in msc313_gpio_direction_input()
522 u8 gpioreg = readb_relaxed(gpio->base + gpio->gpio_data->offsets[offset]); in msc313_gpio_direction_output() local
524 gpioreg &= ~MSC313_GPIO_OEN; in msc313_gpio_direction_output()
526 gpioreg |= MSC313_GPIO_OUT; in msc313_gpio_direction_output()
528 gpioreg &= ~MSC313_GPIO_OUT; in msc313_gpio_direction_output()
529 writeb_relaxed(gpioreg, gpio->base + gpio->gpio_data->offsets[offset]); in msc313_gpio_direction_output()