Lines Matching defs:offset
164 * @off: The offset for the GPIO being configured.
201 * @off: The offset for the GPIO being configured.
224 * @off: The offset for the GPIO being configured.
264 * @off: The offset for the GPIO being configured.
295 * @off: The offset for the GPIO being configured.
332 * @off: The offset for the GPIO being configured.
428 static int samsung_gpiolib_2bit_input(struct gpio_chip *chip, unsigned offset)
438 con &= ~(3 << (offset * 2));
447 unsigned offset, int value)
458 dat &= ~(1 << offset);
460 dat |= 1 << offset;
464 con &= ~(3 << (offset * 2));
465 con |= 1 << (offset * 2);
491 unsigned int offset)
498 if (ourchip->bitmap_gpio_int & BIT(offset))
499 con |= 0xf << con_4bit_shift(offset);
501 con &= ~(0xf << con_4bit_shift(offset));
510 unsigned int offset, int value)
518 con &= ~(0xf << con_4bit_shift(offset));
519 con |= 0x1 << con_4bit_shift(offset);
524 dat |= 1 << offset;
526 dat &= ~(1 << offset);
560 unsigned int offset)
567 if (offset > 7)
568 offset -= 8;
573 con &= ~(0xf << con_4bit_shift(offset));
582 unsigned int offset, int value)
589 unsigned con_offset = offset;
603 dat |= 1 << offset;
605 dat &= ~(1 << offset);
619 static int s3c24xx_gpiolib_banka_input(struct gpio_chip *chip, unsigned offset)
625 unsigned offset, int value)
638 dat &= ~(1 << offset);
640 dat |= 1 << offset;
644 con &= ~(1 << offset);
655 unsigned offset, int value)
665 dat &= ~(1 << offset);
667 dat |= 1 << offset;
673 static int samsung_gpiolib_get(struct gpio_chip *chip, unsigned offset)
679 val >>= offset;
787 unsigned int offset)
800 chip->base = base + ((i) * offset);
860 int samsung_gpiolib_to_irq(struct gpio_chip *chip, unsigned int offset)
864 return samsung_chip->irq_base + offset;
868 static int s3c24xx_gpiolib_fbank_to_irq(struct gpio_chip *chip, unsigned offset)
870 if (offset < 4) {
872 return IRQ_EINT0_2412 + offset;
874 return IRQ_EINT0 + offset;
877 if (offset < 8)
878 return IRQ_EINT4 + offset - 4;
1204 int offset;
1210 offset = pin - chip->chip.base;
1213 ret = samsung_gpio_do_setcfg(chip, offset, config);
1256 int offset;
1259 offset = pin - chip->chip.base;
1262 ret = samsung_gpio_do_getcfg(chip, offset);
1274 int offset, ret;
1279 offset = pin - chip->chip.base;
1282 ret = samsung_gpio_do_setpull(chip, offset, pull);
1293 int offset;
1297 offset = pin - chip->chip.base;
1300 pup = samsung_gpio_do_getpull(chip, offset);