Lines Matching refs:offset

24 	uint32_t offset;  member
46 static int tegra186_gpio_set_out(struct udevice *dev, unsigned offset, in tegra186_gpio_set_out() argument
52 reg = tegra186_gpio_reg(dev, TEGRA186_GPIO_OUTPUT_CONTROL, offset); in tegra186_gpio_set_out()
60 reg = tegra186_gpio_reg(dev, TEGRA186_GPIO_ENABLE_CONFIG, offset); in tegra186_gpio_set_out()
72 static int tegra186_gpio_set_val(struct udevice *dev, unsigned offset, bool val) in tegra186_gpio_set_val() argument
77 reg = tegra186_gpio_reg(dev, TEGRA186_GPIO_OUTPUT_VALUE, offset); in tegra186_gpio_set_val()
88 static int tegra186_gpio_direction_input(struct udevice *dev, unsigned offset) in tegra186_gpio_direction_input() argument
90 return tegra186_gpio_set_out(dev, offset, false); in tegra186_gpio_direction_input()
93 static int tegra186_gpio_direction_output(struct udevice *dev, unsigned offset, in tegra186_gpio_direction_output() argument
98 ret = tegra186_gpio_set_val(dev, offset, value != 0); in tegra186_gpio_direction_output()
101 return tegra186_gpio_set_out(dev, offset, true); in tegra186_gpio_direction_output()
104 static int tegra186_gpio_get_value(struct udevice *dev, unsigned offset) in tegra186_gpio_get_value() argument
109 reg = tegra186_gpio_reg(dev, TEGRA186_GPIO_ENABLE_CONFIG, offset); in tegra186_gpio_get_value()
114 offset); in tegra186_gpio_get_value()
116 reg = tegra186_gpio_reg(dev, TEGRA186_GPIO_INPUT, offset); in tegra186_gpio_get_value()
122 static int tegra186_gpio_set_value(struct udevice *dev, unsigned offset, in tegra186_gpio_set_value() argument
125 return tegra186_gpio_set_val(dev, offset, value != 0); in tegra186_gpio_set_value()
128 static int tegra186_gpio_get_function(struct udevice *dev, unsigned offset) in tegra186_gpio_get_function() argument
133 reg = tegra186_gpio_reg(dev, TEGRA186_GPIO_ENABLE_CONFIG, offset); in tegra186_gpio_get_function()
151 desc->offset = gpio % TEGRA186_GPIO_PER_GPIO_COUNT; in tegra186_gpio_xlate()
194 plat->regs = &(regs[ctlr_data->ports[port].offset / 4]); in tegra186_gpio_bind()