Home
last modified time | relevance | path

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

/Linux-v6.6/drivers/gpio/
Dgpio-creg-snps.c32 struct creg_gpio *hcg = gpiochip_get_data(gc); in creg_gpio_set() local
33 const struct creg_layout *layout = hcg->layout; in creg_gpio_set()
38 value = val ? hcg->layout->on[offset] : hcg->layout->off[offset]; in creg_gpio_set()
44 spin_lock_irqsave(&hcg->lock, flags); in creg_gpio_set()
45 reg = readl(hcg->regs); in creg_gpio_set()
48 writel(reg, hcg->regs); in creg_gpio_set()
49 spin_unlock_irqrestore(&hcg->lock, flags); in creg_gpio_set()
59 static int creg_gpio_validate_pg(struct device *dev, struct creg_gpio *hcg, in creg_gpio_validate_pg() argument
62 const struct creg_layout *layout = hcg->layout; in creg_gpio_validate_pg()
81 static int creg_gpio_validate(struct device *dev, struct creg_gpio *hcg, in creg_gpio_validate() argument
[all …]