Lines Matching refs:rval
50 uint32_t rval; in tegra186_gpio_set_out() local
53 rval = readl(reg); in tegra186_gpio_set_out()
55 rval &= ~TEGRA186_GPIO_OUTPUT_CONTROL_FLOATED; in tegra186_gpio_set_out()
57 rval |= TEGRA186_GPIO_OUTPUT_CONTROL_FLOATED; in tegra186_gpio_set_out()
58 writel(rval, reg); in tegra186_gpio_set_out()
61 rval = readl(reg); in tegra186_gpio_set_out()
63 rval |= TEGRA186_GPIO_ENABLE_CONFIG_OUT; in tegra186_gpio_set_out()
65 rval &= ~TEGRA186_GPIO_ENABLE_CONFIG_OUT; in tegra186_gpio_set_out()
66 rval |= TEGRA186_GPIO_ENABLE_CONFIG_ENABLE; in tegra186_gpio_set_out()
67 writel(rval, reg); in tegra186_gpio_set_out()
75 uint32_t rval; in tegra186_gpio_set_val() local
78 rval = readl(reg); in tegra186_gpio_set_val()
80 rval |= TEGRA186_GPIO_OUTPUT_VALUE_HIGH; in tegra186_gpio_set_val()
82 rval &= ~TEGRA186_GPIO_OUTPUT_VALUE_HIGH; in tegra186_gpio_set_val()
83 writel(rval, reg); in tegra186_gpio_set_val()
107 uint32_t rval; in tegra186_gpio_get_value() local
110 rval = readl(reg); in tegra186_gpio_get_value()
112 if (rval & TEGRA186_GPIO_ENABLE_CONFIG_OUT) in tegra186_gpio_get_value()
118 rval = readl(reg); in tegra186_gpio_get_value()
119 return !!rval; in tegra186_gpio_get_value()
131 uint32_t rval; in tegra186_gpio_get_function() local
134 rval = readl(reg); in tegra186_gpio_get_function()
135 if (rval & TEGRA186_GPIO_ENABLE_CONFIG_OUT) in tegra186_gpio_get_function()