Lines Matching refs:port

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