Home
last modified time | relevance | path

Searched refs:gchip (Results 1 – 3 of 3) sorted by relevance

/Linux-v5.4/drivers/gpio/
Dgpio-mb86s7x.c45 struct mb86s70_gpio_chip *gchip = gpiochip_get_data(gc); in mb86s70_gpio_request() local
49 spin_lock_irqsave(&gchip->lock, flags); in mb86s70_gpio_request()
51 val = readl(gchip->base + PFR(gpio)); in mb86s70_gpio_request()
53 writel(val, gchip->base + PFR(gpio)); in mb86s70_gpio_request()
55 spin_unlock_irqrestore(&gchip->lock, flags); in mb86s70_gpio_request()
62 struct mb86s70_gpio_chip *gchip = gpiochip_get_data(gc); in mb86s70_gpio_free() local
66 spin_lock_irqsave(&gchip->lock, flags); in mb86s70_gpio_free()
68 val = readl(gchip->base + PFR(gpio)); in mb86s70_gpio_free()
70 writel(val, gchip->base + PFR(gpio)); in mb86s70_gpio_free()
72 spin_unlock_irqrestore(&gchip->lock, flags); in mb86s70_gpio_free()
[all …]
Dgpio-siox.c12 struct gpio_chip gchip; member
79 struct irq_domain *irqdomain = ddata->gchip.irq.domain; in gpio_siox_get_data()
147 container_of(chip, struct gpio_siox_ddata, gchip); in gpio_siox_get()
171 container_of(chip, struct gpio_siox_ddata, gchip); in gpio_siox_set()
227 ddata->gchip.base = -1; in gpio_siox_probe()
228 ddata->gchip.can_sleep = 1; in gpio_siox_probe()
229 ddata->gchip.parent = dev; in gpio_siox_probe()
230 ddata->gchip.owner = THIS_MODULE; in gpio_siox_probe()
231 ddata->gchip.get = gpio_siox_get; in gpio_siox_probe()
232 ddata->gchip.set = gpio_siox_set; in gpio_siox_probe()
[all …]
/Linux-v5.4/drivers/mfd/
Dsm501.c1017 struct gpio_chip *gchip = &chip->gpio; in sm501_gpio_register_chip() local
1027 gchip->label = "SM501-HIGH"; in sm501_gpio_register_chip()
1031 gchip->label = "SM501-LOW"; in sm501_gpio_register_chip()
1034 gchip->base = base; in sm501_gpio_register_chip()
1037 return gpiochip_add_data(gchip, chip); in sm501_gpio_register_chip()