Lines Matching refs:port
210 unsigned int port = (gpio_mode & GPIO_PORT_MASK) >> GPIO_PORT_SHIFT; in imx_gpio_mode() local
218 writel(readl(®s->port[port].puen) | (1 << pin), in imx_gpio_mode()
219 ®s->port[port].puen); in imx_gpio_mode()
221 writel(readl(®s->port[port].puen) & ~(1 << pin), in imx_gpio_mode()
222 ®s->port[port].puen); in imx_gpio_mode()
227 writel(readl(®s->port[port].gpio_dir) | 1 << pin, in imx_gpio_mode()
228 ®s->port[port].gpio_dir); in imx_gpio_mode()
230 writel(readl(®s->port[port].gpio_dir) & ~(1 << pin), in imx_gpio_mode()
231 ®s->port[port].gpio_dir); in imx_gpio_mode()
236 writel(readl(®s->port[port].gpr) | (1 << pin), in imx_gpio_mode()
237 ®s->port[port].gpr); in imx_gpio_mode()
239 writel(readl(®s->port[port].gpr) & ~(1 << pin), in imx_gpio_mode()
240 ®s->port[port].gpr); in imx_gpio_mode()
245 writel(readl(®s->port[port].gius) | (1 << pin), in imx_gpio_mode()
246 ®s->port[port].gius); in imx_gpio_mode()
248 writel(readl(®s->port[port].gius) & ~(1 << pin), in imx_gpio_mode()
249 ®s->port[port].gius); in imx_gpio_mode()
254 tmp = readl(®s->port[port].ocr1); in imx_gpio_mode()
257 writel(tmp, ®s->port[port].ocr1); in imx_gpio_mode()
259 writel(readl(®s->port[port].iconfa1) & ~(3 << (pin * 2)), in imx_gpio_mode()
260 ®s->port[port].iconfa1); in imx_gpio_mode()
261 writel(readl(®s->port[port].iconfa1) | aout << (pin * 2), in imx_gpio_mode()
262 ®s->port[port].iconfa1); in imx_gpio_mode()
263 writel(readl(®s->port[port].iconfb1) & ~(3 << (pin * 2)), in imx_gpio_mode()
264 ®s->port[port].iconfb1); in imx_gpio_mode()
265 writel(readl(®s->port[port].iconfb1) | bout << (pin * 2), in imx_gpio_mode()
266 ®s->port[port].iconfb1); in imx_gpio_mode()
270 tmp = readl(®s->port[port].ocr2); in imx_gpio_mode()
273 writel(tmp, ®s->port[port].ocr2); in imx_gpio_mode()
275 writel(readl(®s->port[port].iconfa2) & ~(3 << (pin * 2)), in imx_gpio_mode()
276 ®s->port[port].iconfa2); in imx_gpio_mode()
277 writel(readl(®s->port[port].iconfa2) | aout << (pin * 2), in imx_gpio_mode()
278 ®s->port[port].iconfa2); in imx_gpio_mode()
279 writel(readl(®s->port[port].iconfb2) & ~(3 << (pin * 2)), in imx_gpio_mode()
280 ®s->port[port].iconfb2); in imx_gpio_mode()
281 writel(readl(®s->port[port].iconfb2) | bout << (pin * 2), in imx_gpio_mode()
282 ®s->port[port].iconfb2); in imx_gpio_mode()