cgpio 41 drivers/gpio/gpio-cadence.c struct cdns_gpio_chip *cgpio = gpiochip_get_data(chip); cgpio 46 drivers/gpio/gpio-cadence.c iowrite32(ioread32(cgpio->regs + CDNS_GPIO_BYPASS_MODE) & ~BIT(offset), cgpio 47 drivers/gpio/gpio-cadence.c cgpio->regs + CDNS_GPIO_BYPASS_MODE); cgpio 55 drivers/gpio/gpio-cadence.c struct cdns_gpio_chip *cgpio = gpiochip_get_data(chip); cgpio 60 drivers/gpio/gpio-cadence.c iowrite32(ioread32(cgpio->regs + CDNS_GPIO_BYPASS_MODE) | cgpio 61 drivers/gpio/gpio-cadence.c (BIT(offset) & cgpio->bypass_orig), cgpio 62 drivers/gpio/gpio-cadence.c cgpio->regs + CDNS_GPIO_BYPASS_MODE); cgpio 70 drivers/gpio/gpio-cadence.c struct cdns_gpio_chip *cgpio = gpiochip_get_data(chip); cgpio 72 drivers/gpio/gpio-cadence.c iowrite32(BIT(d->hwirq), cgpio->regs + CDNS_GPIO_IRQ_DIS); cgpio 78 drivers/gpio/gpio-cadence.c struct cdns_gpio_chip *cgpio = gpiochip_get_data(chip); cgpio 80 drivers/gpio/gpio-cadence.c iowrite32(BIT(d->hwirq), cgpio->regs + CDNS_GPIO_IRQ_EN); cgpio 86 drivers/gpio/gpio-cadence.c struct cdns_gpio_chip *cgpio = gpiochip_get_data(chip); cgpio 95 drivers/gpio/gpio-cadence.c int_value = ioread32(cgpio->regs + CDNS_GPIO_IRQ_VALUE) & ~mask; cgpio 96 drivers/gpio/gpio-cadence.c int_type = ioread32(cgpio->regs + CDNS_GPIO_IRQ_TYPE) & ~mask; cgpio 114 drivers/gpio/gpio-cadence.c iowrite32(int_value, cgpio->regs + CDNS_GPIO_IRQ_VALUE); cgpio 115 drivers/gpio/gpio-cadence.c iowrite32(int_type, cgpio->regs + CDNS_GPIO_IRQ_TYPE); cgpio 125 drivers/gpio/gpio-cadence.c struct cdns_gpio_chip *cgpio = gpiochip_get_data(chip); cgpio 132 drivers/gpio/gpio-cadence.c status = ioread32(cgpio->regs + CDNS_GPIO_IRQ_STATUS) & cgpio 133 drivers/gpio/gpio-cadence.c ~ioread32(cgpio->regs + CDNS_GPIO_IRQ_MASK); cgpio 150 drivers/gpio/gpio-cadence.c struct cdns_gpio_chip *cgpio; cgpio 155 drivers/gpio/gpio-cadence.c cgpio = devm_kzalloc(&pdev->dev, sizeof(*cgpio), GFP_KERNEL); cgpio 156 drivers/gpio/gpio-cadence.c if (!cgpio) cgpio 159 drivers/gpio/gpio-cadence.c cgpio->regs = devm_platform_ioremap_resource(pdev, 0); cgpio 160 drivers/gpio/gpio-cadence.c if (IS_ERR(cgpio->regs)) cgpio 161 drivers/gpio/gpio-cadence.c return PTR_ERR(cgpio->regs); cgpio 177 drivers/gpio/gpio-cadence.c dir_prev = ioread32(cgpio->regs + CDNS_GPIO_DIRECTION_MODE); cgpio 179 drivers/gpio/gpio-cadence.c cgpio->regs + CDNS_GPIO_DIRECTION_MODE); cgpio 181 drivers/gpio/gpio-cadence.c ret = bgpio_init(&cgpio->gc, &pdev->dev, 4, cgpio 182 drivers/gpio/gpio-cadence.c cgpio->regs + CDNS_GPIO_INPUT_VALUE, cgpio 183 drivers/gpio/gpio-cadence.c cgpio->regs + CDNS_GPIO_OUTPUT_VALUE, cgpio 186 drivers/gpio/gpio-cadence.c cgpio->regs + CDNS_GPIO_DIRECTION_MODE, cgpio 194 drivers/gpio/gpio-cadence.c cgpio->gc.label = dev_name(&pdev->dev); cgpio 195 drivers/gpio/gpio-cadence.c cgpio->gc.ngpio = num_gpios; cgpio 196 drivers/gpio/gpio-cadence.c cgpio->gc.parent = &pdev->dev; cgpio 197 drivers/gpio/gpio-cadence.c cgpio->gc.base = -1; cgpio 198 drivers/gpio/gpio-cadence.c cgpio->gc.owner = THIS_MODULE; cgpio 199 drivers/gpio/gpio-cadence.c cgpio->gc.request = cdns_gpio_request; cgpio 200 drivers/gpio/gpio-cadence.c cgpio->gc.free = cdns_gpio_free; cgpio 202 drivers/gpio/gpio-cadence.c cgpio->pclk = devm_clk_get(&pdev->dev, NULL); cgpio 203 drivers/gpio/gpio-cadence.c if (IS_ERR(cgpio->pclk)) { cgpio 204 drivers/gpio/gpio-cadence.c ret = PTR_ERR(cgpio->pclk); cgpio 210 drivers/gpio/gpio-cadence.c ret = clk_prepare_enable(cgpio->pclk); cgpio 224 drivers/gpio/gpio-cadence.c girq = &cgpio->gc.irq; cgpio 240 drivers/gpio/gpio-cadence.c ret = devm_gpiochip_add_data(&pdev->dev, &cgpio->gc, cgpio); cgpio 246 drivers/gpio/gpio-cadence.c cgpio->bypass_orig = ioread32(cgpio->regs + CDNS_GPIO_BYPASS_MODE); cgpio 252 drivers/gpio/gpio-cadence.c cgpio->regs + CDNS_GPIO_OUTPUT_EN); cgpio 253 drivers/gpio/gpio-cadence.c iowrite32(0, cgpio->regs + CDNS_GPIO_BYPASS_MODE); cgpio 255 drivers/gpio/gpio-cadence.c platform_set_drvdata(pdev, cgpio); cgpio 259 drivers/gpio/gpio-cadence.c clk_disable_unprepare(cgpio->pclk); cgpio 262 drivers/gpio/gpio-cadence.c iowrite32(dir_prev, cgpio->regs + CDNS_GPIO_DIRECTION_MODE); cgpio 269 drivers/gpio/gpio-cadence.c struct cdns_gpio_chip *cgpio = platform_get_drvdata(pdev); cgpio 271 drivers/gpio/gpio-cadence.c iowrite32(cgpio->bypass_orig, cgpio->regs + CDNS_GPIO_BYPASS_MODE); cgpio 272 drivers/gpio/gpio-cadence.c clk_disable_unprepare(cgpio->pclk);