Lines Matching full:gp
158 static struct amd_gpio gp = { variable
197 err = pci_read_config_dword(pdev, 0x58, &gp.pmbase); in amd_gpio_init()
201 gp.pmbase &= 0x0000FF00; in amd_gpio_init()
202 if (gp.pmbase == 0) in amd_gpio_init()
204 if (!devm_request_region(&pdev->dev, gp.pmbase + PMBASE_OFFSET, in amd_gpio_init()
207 gp.pmbase + PMBASE_OFFSET); in amd_gpio_init()
211 gp.pm = ioport_map(gp.pmbase + PMBASE_OFFSET, PMBASE_SIZE); in amd_gpio_init()
212 if (!gp.pm) { in amd_gpio_init()
217 gp.pdev = pdev; in amd_gpio_init()
218 gp.chip.parent = &pdev->dev; in amd_gpio_init()
220 spin_lock_init(&gp.lock); in amd_gpio_init()
223 err = gpiochip_add_data(&gp.chip, &gp); in amd_gpio_init()
226 ioport_unmap(gp.pm); in amd_gpio_init()
238 gpiochip_remove(&gp.chip); in amd_gpio_exit()
239 ioport_unmap(gp.pm); in amd_gpio_exit()
240 pci_dev_put(gp.pdev); in amd_gpio_exit()