Lines Matching refs:dir
25 void __iomem *dir[2]; member
38 u32 dir = ioread32(ctrl->dir[gpio / 16]); in airoha_dir_set() local
43 dir |= mask; in airoha_dir_set()
46 dir &= ~mask; in airoha_dir_set()
50 iowrite32(dir, ctrl->dir[gpio / 16]); in airoha_dir_set()
74 u32 dir = ioread32(ctrl->dir[gpio / 16]); in airoha_get_dir() local
77 return (dir & mask) ? GPIO_LINE_DIRECTION_OUT : GPIO_LINE_DIRECTION_IN; in airoha_get_dir()
94 ctrl->dir[0] = devm_platform_ioremap_resource(pdev, 1); in airoha_gpio_probe()
95 if (IS_ERR(ctrl->dir[0])) in airoha_gpio_probe()
96 return PTR_ERR(ctrl->dir[0]); in airoha_gpio_probe()
98 ctrl->dir[1] = devm_platform_ioremap_resource(pdev, 2); in airoha_gpio_probe()
99 if (IS_ERR(ctrl->dir[1])) in airoha_gpio_probe()
100 return PTR_ERR(ctrl->dir[1]); in airoha_gpio_probe()