Home
last modified time | relevance | path

Searched refs:dir_shadow (Results 1 – 3 of 3) sorted by relevance

/arch/cris/arch-v32/drivers/mach-fs/
Dgpio.c526 unsigned long dir_shadow; in setget_input() local
529 dir_shadow = *dir_oe[priv->minor]; in setget_input()
530 dir_shadow &= ~(arg & changeable_dir[priv->minor]); in setget_input()
531 *dir_oe[priv->minor] = dir_shadow; in setget_input()
535 dir_shadow ^= 0xFF; /* Only 8 bits */ in setget_input()
538 dir_shadow ^= 0xFFFF; /* Only 16 bits */ in setget_input()
541 dir_shadow ^= 0x3FFFF; /* Only 18 bits */ in setget_input()
542 return dir_shadow; in setget_input()
549 unsigned long dir_shadow; in setget_output() local
552 dir_shadow = *dir_oe[priv->minor]; in setget_output()
[all …]
/arch/cris/arch-v32/drivers/mach-a3/
Dgpio.c484 unsigned long dir_shadow; in setget_input() local
488 dir_shadow = readl(dir_oe[priv->minor]) & in setget_input()
490 writel(dir_shadow, dir_oe[priv->minor]); in setget_input()
495 dir_shadow ^= 0xFFFF; /* Only 16 bits */ in setget_input()
498 dir_shadow ^= 0xFFFF; /* Only 16 bits */ in setget_input()
501 dir_shadow ^= 0xFFFFFFFF; /* PA, PB and PD 32 bits */ in setget_input()
503 return dir_shadow; in setget_input()
511 unsigned long dir_shadow; in setget_output() local
515 dir_shadow = readl(dir_oe[priv->minor]) | in setget_output()
517 writel(dir_shadow, dir_oe[priv->minor]); in setget_output()
[all …]
/arch/cris/arch-v10/drivers/
Dgpio.c60 volatile unsigned char *dir, *dir_shadow; member
124 static volatile unsigned char *dir_shadow[NUM_PORTS] = { variable
332 priv->dir_shadow = dir_shadow[p]; in gpio_open()
339 priv->dir_shadow = NULL; in gpio_open()
407 *priv->dir = *priv->dir_shadow &= in setget_input()
409 return ~(*priv->dir_shadow) & 0xFF; /* Only 8 bits */ in setget_input()
456 *priv->dir = *priv->dir_shadow |= in setget_output()
458 return *priv->dir_shadow; in setget_output()
588 ret = *priv->dir_shadow; in gpio_ioctl()
637 (priv->clk_mask & *priv->dir_shadow) && in gpio_ioctl()
[all …]