Lines Matching refs:base
46 void __iomem *reg = chip->base + 0x08; in samsung_gpio_setpull_updown()
61 void __iomem *reg = chip->base + 0x08; in samsung_gpio_getpull_updown()
115 void __iomem *reg = chip->base + 0x08; in s3c24xx_gpio_setpull_1()
133 void __iomem *reg = chip->base + 0x08; in s3c24xx_gpio_getpull_1()
181 void __iomem *reg = chip->base; in samsung_gpio_setcfg_2bit()
216 con = __raw_readl(chip->base); in samsung_gpio_getcfg_2bit()
244 void __iomem *reg = chip->base; in samsung_gpio_setcfg_4bit()
279 void __iomem *reg = chip->base; in samsung_gpio_getcfg_4bit()
309 void __iomem *reg = chip->base; in s3c24xx_gpio_setcfg_abank()
349 con = __raw_readl(chip->base); in s3c24xx_gpio_getcfg_abank()
434 void __iomem *base = ourchip->base; in samsung_gpiolib_2bit_input() local
440 con = __raw_readl(base + 0x00); in samsung_gpiolib_2bit_input()
443 __raw_writel(con, base + 0x00); in samsung_gpiolib_2bit_input()
453 void __iomem *base = ourchip->base; in samsung_gpiolib_2bit_output() local
460 dat = __raw_readl(base + 0x04); in samsung_gpiolib_2bit_output()
464 __raw_writel(dat, base + 0x04); in samsung_gpiolib_2bit_output()
466 con = __raw_readl(base + 0x00); in samsung_gpiolib_2bit_output()
470 __raw_writel(con, base + 0x00); in samsung_gpiolib_2bit_output()
471 __raw_writel(dat, base + 0x04); in samsung_gpiolib_2bit_output()
497 void __iomem *base = ourchip->base; in samsung_gpiolib_4bit_input() local
500 con = __raw_readl(base + GPIOCON_OFF); in samsung_gpiolib_4bit_input()
505 __raw_writel(con, base + GPIOCON_OFF); in samsung_gpiolib_4bit_input()
507 pr_debug("%s: %p: CON now %08lx\n", __func__, base, con); in samsung_gpiolib_4bit_input()
516 void __iomem *base = ourchip->base; in samsung_gpiolib_4bit_output() local
520 con = __raw_readl(base + GPIOCON_OFF); in samsung_gpiolib_4bit_output()
524 dat = __raw_readl(base + GPIODAT_OFF); in samsung_gpiolib_4bit_output()
531 __raw_writel(dat, base + GPIODAT_OFF); in samsung_gpiolib_4bit_output()
532 __raw_writel(con, base + GPIOCON_OFF); in samsung_gpiolib_4bit_output()
533 __raw_writel(dat, base + GPIODAT_OFF); in samsung_gpiolib_4bit_output()
535 pr_debug("%s: %p: CON %08lx, DAT %08lx\n", __func__, base, con, dat); in samsung_gpiolib_4bit_output()
566 void __iomem *base = ourchip->base; in samsung_gpiolib_4bit2_input() local
567 void __iomem *regcon = base; in samsung_gpiolib_4bit2_input()
579 pr_debug("%s: %p: CON %08lx\n", __func__, base, con); in samsung_gpiolib_4bit2_input()
588 void __iomem *base = ourchip->base; in samsung_gpiolib_4bit2_output() local
589 void __iomem *regcon = base; in samsung_gpiolib_4bit2_output()
603 dat = __raw_readl(base + GPIODAT_OFF); in samsung_gpiolib_4bit2_output()
610 __raw_writel(dat, base + GPIODAT_OFF); in samsung_gpiolib_4bit2_output()
612 __raw_writel(dat, base + GPIODAT_OFF); in samsung_gpiolib_4bit2_output()
614 pr_debug("%s: %p: CON %08lx, DAT %08lx\n", __func__, base, con, dat); in samsung_gpiolib_4bit2_output()
631 void __iomem *base = ourchip->base; in s3c24xx_gpiolib_banka_output() local
638 con = __raw_readl(base + 0x00); in s3c24xx_gpiolib_banka_output()
639 dat = __raw_readl(base + 0x04); in s3c24xx_gpiolib_banka_output()
645 __raw_writel(dat, base + 0x04); in s3c24xx_gpiolib_banka_output()
649 __raw_writel(con, base + 0x00); in s3c24xx_gpiolib_banka_output()
650 __raw_writel(dat, base + 0x04); in s3c24xx_gpiolib_banka_output()
661 void __iomem *base = ourchip->base; in samsung_gpiolib_set() local
667 dat = __raw_readl(base + 0x04); in samsung_gpiolib_set()
671 __raw_writel(dat, base + 0x04); in samsung_gpiolib_set()
681 val = __raw_readl(ourchip->base + 0x04); in samsung_gpiolib_get()
708 gpn = chip->chip.base; in s3c_gpiolib_track()
731 BUG_ON(!chip->base); in samsung_gpiolib_add()
762 int nr_chips, void __iomem *base) in s3c24xx_gpiolib_add_chips() argument
769 if (chip->chip.base >= S3C_GPIO_END) in s3c24xx_gpiolib_add_chips()
776 if ((base != NULL) && (chip->base == NULL)) in s3c24xx_gpiolib_add_chips()
777 chip->base = base + ((i) * 0x10); in s3c24xx_gpiolib_add_chips()
789 int nr_chips, void __iomem *base, in samsung_gpiolib_add_2bit_chips() argument
802 if ((base != NULL) && (chip->base == NULL)) in samsung_gpiolib_add_2bit_chips()
803 chip->base = base + ((i) * offset); in samsung_gpiolib_add_2bit_chips()
826 int nr_chips, void __iomem *base) in samsung_gpiolib_add_4bit_chips() argument
838 if ((base != NULL) && (chip->base == NULL)) in samsung_gpiolib_add_4bit_chips()
839 chip->base = base + ((i) * 0x20); in samsung_gpiolib_add_4bit_chips()
904 .base = S3C2410_GPA(0),
913 .base = S3C2410_GPB(0),
920 .base = S3C2410_GPC(0),
927 .base = S3C2410_GPD(0),
934 .base = S3C2410_GPE(0),
941 .base = S3C2410_GPF(0),
950 .base = S3C2410_GPG(0),
958 .base = S3C2410_GPH(0),
966 .base = S3C2440_GPJCON,
968 .base = S3C2410_GPJ(0),
974 .base = S3C2443_GPKCON,
976 .base = S3C2410_GPK(0),
982 .base = S3C2443_GPLCON,
984 .base = S3C2410_GPL(0),
990 .base = S3C2443_GPMCON,
992 .base = S3C2410_GPM(0),
1031 .base = S3C64XX_GPA(0),
1037 .base = S3C64XX_GPB(0),
1043 .base = S3C64XX_GPC(0),
1049 .base = S3C64XX_GPD(0),
1056 .base = S3C64XX_GPE(0),
1061 .base = S3C64XX_GPG_BASE,
1063 .base = S3C64XX_GPG(0),
1068 .base = S3C64XX_GPM_BASE,
1071 .base = S3C64XX_GPM(0),
1083 .base = S3C64XX_GPH_BASE + 0x4,
1085 .base = S3C64XX_GPH(0),
1090 .base = S3C64XX_GPK_BASE + 0x4,
1093 .base = S3C64XX_GPK(0),
1098 .base = S3C64XX_GPL_BASE + 0x4,
1101 .base = S3C64XX_GPL(0),
1113 .base = S3C64XX_GPF_BASE,
1116 .base = S3C64XX_GPF(0),
1123 .base = S3C64XX_GPI(0),
1130 .base = S3C64XX_GPJ(0),
1137 .base = S3C64XX_GPO(0),
1144 .base = S3C64XX_GPP(0),
1151 .base = S3C64XX_GPQ(0),
1156 .base = S3C64XX_GPN_BASE,
1160 .base = S3C64XX_GPN(0),
1214 offset = pin - chip->chip.base; in s3c_gpio_cfgpin()
1263 offset = pin - chip->chip.base; in s3c_gpio_getcfg()
1283 offset = pin - chip->chip.base; in s3c_gpio_setpull()
1301 offset = pin - chip->chip.base; in s3c_gpio_getpull()