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()
203 gp.pmbase &= 0x0000FF00; in amd_gpio_init()
204 if (gp.pmbase == 0) in amd_gpio_init()
206 if (!devm_request_region(&pdev->dev, gp.pmbase + PMBASE_OFFSET, in amd_gpio_init()
209 gp.pmbase + PMBASE_OFFSET); in amd_gpio_init()
213 gp.pm = ioport_map(gp.pmbase + PMBASE_OFFSET, PMBASE_SIZE); in amd_gpio_init()
214 if (!gp.pm) { in amd_gpio_init()
219 gp.pdev = pdev; in amd_gpio_init()
220 gp.chip.parent = &pdev->dev; in amd_gpio_init()
222 spin_lock_init(&gp.lock); in amd_gpio_init()
225 err = gpiochip_add_data(&gp.chip, &gp); in amd_gpio_init()
228 ioport_unmap(gp.pm); in amd_gpio_init()
240 gpiochip_remove(&gp.chip); in amd_gpio_exit()
241 ioport_unmap(gp.pm); in amd_gpio_exit()
242 pci_dev_put(gp.pdev); in amd_gpio_exit()