Lines Matching defs:offset
49 unsigned int offset)
52 const unsigned int port = offset / 8;
53 const unsigned int mask = BIT(offset % 8);
62 unsigned int offset)
65 const unsigned int io_port = offset / 8;
76 if (offset % 8 > 3) {
100 unsigned int offset, int value)
103 const unsigned int io_port = offset / 8;
105 const unsigned int mask = BIT(offset % 8);
116 if (offset % 8 > 3) {
146 static int gpiomm_gpio_get(struct gpio_chip *chip, unsigned int offset)
149 const unsigned int port = offset / 8;
150 const unsigned int mask = BIT(offset % 8);
176 unsigned long offset;
184 for_each_set_clump8(offset, gpio_mask, mask, ARRAY_SIZE(ports) * 8) {
185 port_addr = gpiommgpio->base + ports[offset / 8];
188 bitmap_set_value8(bits, port_state, offset);
194 static void gpiomm_gpio_set(struct gpio_chip *chip, unsigned int offset,
198 const unsigned int port = offset / 8;
199 const unsigned int mask = BIT(offset % 8);
219 unsigned long offset;
226 for_each_set_clump8(offset, gpio_mask, mask, ARRAY_SIZE(ports) * 8) {
227 index = offset / 8;
230 bitmask = bitmap_get_value8(bits, offset) & gpio_mask;