Lines Matching full:con
73 u32 con; in samsung_gpio_setcfg_2bit() local
83 con = __raw_readl(reg); in samsung_gpio_setcfg_2bit()
84 con &= ~(0x3 << shift); in samsung_gpio_setcfg_2bit()
85 con |= cfg; in samsung_gpio_setcfg_2bit()
86 __raw_writel(con, reg); in samsung_gpio_setcfg_2bit()
104 u32 con; in samsung_gpio_getcfg_2bit() local
106 con = __raw_readl(chip->base); in samsung_gpio_getcfg_2bit()
107 con >>= off * 2; in samsung_gpio_getcfg_2bit()
108 con &= 3; in samsung_gpio_getcfg_2bit()
111 return S3C_GPIO_SPECIAL(con); in samsung_gpio_getcfg_2bit()
136 u32 con; in samsung_gpio_setcfg_4bit() local
146 con = __raw_readl(reg); in samsung_gpio_setcfg_4bit()
147 con &= ~(0xf << shift); in samsung_gpio_setcfg_4bit()
148 con |= cfg; in samsung_gpio_setcfg_4bit()
149 __raw_writel(con, reg); in samsung_gpio_setcfg_4bit()
171 u32 con; in samsung_gpio_getcfg_4bit() local
176 con = __raw_readl(reg); in samsung_gpio_getcfg_4bit()
177 con >>= shift; in samsung_gpio_getcfg_4bit()
178 con &= 0xf; in samsung_gpio_getcfg_4bit()
181 return S3C_GPIO_SPECIAL(con); in samsung_gpio_getcfg_4bit()
250 unsigned long con; in samsung_gpiolib_2bit_input() local
254 con = __raw_readl(base + 0x00); in samsung_gpiolib_2bit_input()
255 con &= ~(3 << (offset * 2)); in samsung_gpiolib_2bit_input()
257 __raw_writel(con, base + 0x00); in samsung_gpiolib_2bit_input()
270 unsigned long con; in samsung_gpiolib_2bit_output() local
280 con = __raw_readl(base + 0x00); in samsung_gpiolib_2bit_output()
281 con &= ~(3 << (offset * 2)); in samsung_gpiolib_2bit_output()
282 con |= 1 << (offset * 2); in samsung_gpiolib_2bit_output()
284 __raw_writel(con, base + 0x00); in samsung_gpiolib_2bit_output()
312 unsigned long con; in samsung_gpiolib_4bit_input() local
314 con = __raw_readl(base + GPIOCON_OFF); in samsung_gpiolib_4bit_input()
316 con |= 0xf << con_4bit_shift(offset); in samsung_gpiolib_4bit_input()
318 con &= ~(0xf << con_4bit_shift(offset)); in samsung_gpiolib_4bit_input()
319 __raw_writel(con, base + GPIOCON_OFF); in samsung_gpiolib_4bit_input()
321 pr_debug("%s: %p: CON now %08lx\n", __func__, base, con); in samsung_gpiolib_4bit_input()
331 unsigned long con; in samsung_gpiolib_4bit_output() local
334 con = __raw_readl(base + GPIOCON_OFF); in samsung_gpiolib_4bit_output()
335 con &= ~(0xf << con_4bit_shift(offset)); in samsung_gpiolib_4bit_output()
336 con |= 0x1 << con_4bit_shift(offset); in samsung_gpiolib_4bit_output()
346 __raw_writel(con, base + GPIOCON_OFF); in samsung_gpiolib_4bit_output()
349 pr_debug("%s: %p: CON %08lx, DAT %08lx\n", __func__, base, con, dat); in samsung_gpiolib_4bit_output()
382 unsigned long con; in samsung_gpiolib_4bit2_input() local
389 con = __raw_readl(regcon); in samsung_gpiolib_4bit2_input()
390 con &= ~(0xf << con_4bit_shift(offset)); in samsung_gpiolib_4bit2_input()
391 __raw_writel(con, regcon); in samsung_gpiolib_4bit2_input()
393 pr_debug("%s: %p: CON %08lx\n", __func__, base, con); in samsung_gpiolib_4bit2_input()
404 unsigned long con; in samsung_gpiolib_4bit2_output() local
413 con = __raw_readl(regcon); in samsung_gpiolib_4bit2_output()
414 con &= ~(0xf << con_4bit_shift(con_offset)); in samsung_gpiolib_4bit2_output()
415 con |= 0x1 << con_4bit_shift(con_offset); in samsung_gpiolib_4bit2_output()
425 __raw_writel(con, regcon); in samsung_gpiolib_4bit2_output()
428 pr_debug("%s: %p: CON %08lx, DAT %08lx\n", __func__, base, con, dat); in samsung_gpiolib_4bit2_output()