gpiommgpio 51 drivers/gpio/gpio-gpio-mm.c struct gpiomm_gpio *const gpiommgpio = gpiochip_get_data(chip); gpiommgpio 55 drivers/gpio/gpio-gpio-mm.c return !!(gpiommgpio->io_state[port] & mask); gpiommgpio 61 drivers/gpio/gpio-gpio-mm.c struct gpiomm_gpio *const gpiommgpio = gpiochip_get_data(chip); gpiommgpio 64 drivers/gpio/gpio-gpio-mm.c const unsigned int control_addr = gpiommgpio->base + 3 + control_port*4; gpiommgpio 68 drivers/gpio/gpio-gpio-mm.c spin_lock_irqsave(&gpiommgpio->lock, flags); gpiommgpio 74 drivers/gpio/gpio-gpio-mm.c gpiommgpio->io_state[io_port] |= 0xF0; gpiommgpio 75 drivers/gpio/gpio-gpio-mm.c gpiommgpio->control[control_port] |= BIT(3); gpiommgpio 77 drivers/gpio/gpio-gpio-mm.c gpiommgpio->io_state[io_port] |= 0x0F; gpiommgpio 78 drivers/gpio/gpio-gpio-mm.c gpiommgpio->control[control_port] |= BIT(0); gpiommgpio 81 drivers/gpio/gpio-gpio-mm.c gpiommgpio->io_state[io_port] |= 0xFF; gpiommgpio 83 drivers/gpio/gpio-gpio-mm.c gpiommgpio->control[control_port] |= BIT(4); gpiommgpio 85 drivers/gpio/gpio-gpio-mm.c gpiommgpio->control[control_port] |= BIT(1); gpiommgpio 88 drivers/gpio/gpio-gpio-mm.c control = BIT(7) | gpiommgpio->control[control_port]; gpiommgpio 91 drivers/gpio/gpio-gpio-mm.c spin_unlock_irqrestore(&gpiommgpio->lock, flags); gpiommgpio 99 drivers/gpio/gpio-gpio-mm.c struct gpiomm_gpio *const gpiommgpio = gpiochip_get_data(chip); gpiommgpio 103 drivers/gpio/gpio-gpio-mm.c const unsigned int control_addr = gpiommgpio->base + 3 + control_port*4; gpiommgpio 108 drivers/gpio/gpio-gpio-mm.c spin_lock_irqsave(&gpiommgpio->lock, flags); gpiommgpio 114 drivers/gpio/gpio-gpio-mm.c gpiommgpio->io_state[io_port] &= 0x0F; gpiommgpio 115 drivers/gpio/gpio-gpio-mm.c gpiommgpio->control[control_port] &= ~BIT(3); gpiommgpio 117 drivers/gpio/gpio-gpio-mm.c gpiommgpio->io_state[io_port] &= 0xF0; gpiommgpio 118 drivers/gpio/gpio-gpio-mm.c gpiommgpio->control[control_port] &= ~BIT(0); gpiommgpio 121 drivers/gpio/gpio-gpio-mm.c gpiommgpio->io_state[io_port] &= 0x00; gpiommgpio 123 drivers/gpio/gpio-gpio-mm.c gpiommgpio->control[control_port] &= ~BIT(4); gpiommgpio 125 drivers/gpio/gpio-gpio-mm.c gpiommgpio->control[control_port] &= ~BIT(1); gpiommgpio 129 drivers/gpio/gpio-gpio-mm.c gpiommgpio->out_state[io_port] |= mask; gpiommgpio 131 drivers/gpio/gpio-gpio-mm.c gpiommgpio->out_state[io_port] &= ~mask; gpiommgpio 133 drivers/gpio/gpio-gpio-mm.c control = BIT(7) | gpiommgpio->control[control_port]; gpiommgpio 136 drivers/gpio/gpio-gpio-mm.c outb(gpiommgpio->out_state[io_port], gpiommgpio->base + out_port); gpiommgpio 138 drivers/gpio/gpio-gpio-mm.c spin_unlock_irqrestore(&gpiommgpio->lock, flags); gpiommgpio 145 drivers/gpio/gpio-gpio-mm.c struct gpiomm_gpio *const gpiommgpio = gpiochip_get_data(chip); gpiommgpio 152 drivers/gpio/gpio-gpio-mm.c spin_lock_irqsave(&gpiommgpio->lock, flags); gpiommgpio 155 drivers/gpio/gpio-gpio-mm.c if (!(gpiommgpio->io_state[port] & mask)) { gpiommgpio 156 drivers/gpio/gpio-gpio-mm.c spin_unlock_irqrestore(&gpiommgpio->lock, flags); gpiommgpio 160 drivers/gpio/gpio-gpio-mm.c port_state = inb(gpiommgpio->base + in_port); gpiommgpio 162 drivers/gpio/gpio-gpio-mm.c spin_unlock_irqrestore(&gpiommgpio->lock, flags); gpiommgpio 170 drivers/gpio/gpio-gpio-mm.c struct gpiomm_gpio *const gpiommgpio = gpiochip_get_data(chip); gpiommgpio 203 drivers/gpio/gpio-gpio-mm.c port_state = inb(gpiommgpio->base + ports[i]); gpiommgpio 215 drivers/gpio/gpio-gpio-mm.c struct gpiomm_gpio *const gpiommgpio = gpiochip_get_data(chip); gpiommgpio 221 drivers/gpio/gpio-gpio-mm.c spin_lock_irqsave(&gpiommgpio->lock, flags); gpiommgpio 224 drivers/gpio/gpio-gpio-mm.c gpiommgpio->out_state[port] |= mask; gpiommgpio 226 drivers/gpio/gpio-gpio-mm.c gpiommgpio->out_state[port] &= ~mask; gpiommgpio 228 drivers/gpio/gpio-gpio-mm.c outb(gpiommgpio->out_state[port], gpiommgpio->base + out_port); gpiommgpio 230 drivers/gpio/gpio-gpio-mm.c spin_unlock_irqrestore(&gpiommgpio->lock, flags); gpiommgpio 236 drivers/gpio/gpio-gpio-mm.c struct gpiomm_gpio *const gpiommgpio = gpiochip_get_data(chip); gpiommgpio 256 drivers/gpio/gpio-gpio-mm.c spin_lock_irqsave(&gpiommgpio->lock, flags); gpiommgpio 259 drivers/gpio/gpio-gpio-mm.c gpiommgpio->out_state[port] &= ~mask[BIT_WORD(i)]; gpiommgpio 260 drivers/gpio/gpio-gpio-mm.c gpiommgpio->out_state[port] |= bitmask; gpiommgpio 261 drivers/gpio/gpio-gpio-mm.c outb(gpiommgpio->out_state[port], gpiommgpio->base + out_port); gpiommgpio 263 drivers/gpio/gpio-gpio-mm.c spin_unlock_irqrestore(&gpiommgpio->lock, flags); gpiommgpio 285 drivers/gpio/gpio-gpio-mm.c struct gpiomm_gpio *gpiommgpio; gpiommgpio 289 drivers/gpio/gpio-gpio-mm.c gpiommgpio = devm_kzalloc(dev, sizeof(*gpiommgpio), GFP_KERNEL); gpiommgpio 290 drivers/gpio/gpio-gpio-mm.c if (!gpiommgpio) gpiommgpio 299 drivers/gpio/gpio-gpio-mm.c gpiommgpio->chip.label = name; gpiommgpio 300 drivers/gpio/gpio-gpio-mm.c gpiommgpio->chip.parent = dev; gpiommgpio 301 drivers/gpio/gpio-gpio-mm.c gpiommgpio->chip.owner = THIS_MODULE; gpiommgpio 302 drivers/gpio/gpio-gpio-mm.c gpiommgpio->chip.base = -1; gpiommgpio 303 drivers/gpio/gpio-gpio-mm.c gpiommgpio->chip.ngpio = GPIOMM_NGPIO; gpiommgpio 304 drivers/gpio/gpio-gpio-mm.c gpiommgpio->chip.names = gpiomm_names; gpiommgpio 305 drivers/gpio/gpio-gpio-mm.c gpiommgpio->chip.get_direction = gpiomm_gpio_get_direction; gpiommgpio 306 drivers/gpio/gpio-gpio-mm.c gpiommgpio->chip.direction_input = gpiomm_gpio_direction_input; gpiommgpio 307 drivers/gpio/gpio-gpio-mm.c gpiommgpio->chip.direction_output = gpiomm_gpio_direction_output; gpiommgpio 308 drivers/gpio/gpio-gpio-mm.c gpiommgpio->chip.get = gpiomm_gpio_get; gpiommgpio 309 drivers/gpio/gpio-gpio-mm.c gpiommgpio->chip.get_multiple = gpiomm_gpio_get_multiple; gpiommgpio 310 drivers/gpio/gpio-gpio-mm.c gpiommgpio->chip.set = gpiomm_gpio_set; gpiommgpio 311 drivers/gpio/gpio-gpio-mm.c gpiommgpio->chip.set_multiple = gpiomm_gpio_set_multiple; gpiommgpio 312 drivers/gpio/gpio-gpio-mm.c gpiommgpio->base = base[id]; gpiommgpio 314 drivers/gpio/gpio-gpio-mm.c spin_lock_init(&gpiommgpio->lock); gpiommgpio 316 drivers/gpio/gpio-gpio-mm.c err = devm_gpiochip_add_data(dev, &gpiommgpio->chip, gpiommgpio);