Lines Matching refs:port
209 unsigned int port = (gpio_mode & GPIO_PORT_MASK) >> GPIO_PORT_SHIFT; in imx_gpio_mode() local
217 writel(readl(®s->port[port].puen) | (1 << pin), in imx_gpio_mode()
218 ®s->port[port].puen); in imx_gpio_mode()
220 writel(readl(®s->port[port].puen) & ~(1 << pin), in imx_gpio_mode()
221 ®s->port[port].puen); in imx_gpio_mode()
226 writel(readl(®s->port[port].gpio_dir) | 1 << pin, in imx_gpio_mode()
227 ®s->port[port].gpio_dir); in imx_gpio_mode()
229 writel(readl(®s->port[port].gpio_dir) & ~(1 << pin), in imx_gpio_mode()
230 ®s->port[port].gpio_dir); in imx_gpio_mode()
235 writel(readl(®s->port[port].gpr) | (1 << pin), in imx_gpio_mode()
236 ®s->port[port].gpr); in imx_gpio_mode()
238 writel(readl(®s->port[port].gpr) & ~(1 << pin), in imx_gpio_mode()
239 ®s->port[port].gpr); in imx_gpio_mode()
244 writel(readl(®s->port[port].gius) | (1 << pin), in imx_gpio_mode()
245 ®s->port[port].gius); in imx_gpio_mode()
247 writel(readl(®s->port[port].gius) & ~(1 << pin), in imx_gpio_mode()
248 ®s->port[port].gius); in imx_gpio_mode()
253 tmp = readl(®s->port[port].ocr1); in imx_gpio_mode()
256 writel(tmp, ®s->port[port].ocr1); in imx_gpio_mode()
258 writel(readl(®s->port[port].iconfa1) & ~(3 << (pin * 2)), in imx_gpio_mode()
259 ®s->port[port].iconfa1); in imx_gpio_mode()
260 writel(readl(®s->port[port].iconfa1) | aout << (pin * 2), in imx_gpio_mode()
261 ®s->port[port].iconfa1); in imx_gpio_mode()
262 writel(readl(®s->port[port].iconfb1) & ~(3 << (pin * 2)), in imx_gpio_mode()
263 ®s->port[port].iconfb1); in imx_gpio_mode()
264 writel(readl(®s->port[port].iconfb1) | bout << (pin * 2), in imx_gpio_mode()
265 ®s->port[port].iconfb1); in imx_gpio_mode()
269 tmp = readl(®s->port[port].ocr2); in imx_gpio_mode()
272 writel(tmp, ®s->port[port].ocr2); in imx_gpio_mode()
274 writel(readl(®s->port[port].iconfa2) & ~(3 << (pin * 2)), in imx_gpio_mode()
275 ®s->port[port].iconfa2); in imx_gpio_mode()
276 writel(readl(®s->port[port].iconfa2) | aout << (pin * 2), in imx_gpio_mode()
277 ®s->port[port].iconfa2); in imx_gpio_mode()
278 writel(readl(®s->port[port].iconfb2) & ~(3 << (pin * 2)), in imx_gpio_mode()
279 ®s->port[port].iconfb2); in imx_gpio_mode()
280 writel(readl(®s->port[port].iconfb2) | bout << (pin * 2), in imx_gpio_mode()
281 ®s->port[port].iconfb2); in imx_gpio_mode()