Searched refs:hcg (Results 1 - 2 of 2) sorted by relevance
/kernel/linux/linux-5.10/drivers/gpio/ |
H A D | gpio-creg-snps.c | 32 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 in creg_gpio_validate_pg() 81 creg_gpio_validate(struct device *dev, struct creg_gpio *hcg, u32 ngpios) creg_gpio_validate() argument 139 struct creg_gpio *hcg; creg_gpio_probe() local [all...] |
/kernel/linux/linux-6.6/drivers/gpio/ |
H A D | gpio-creg-snps.c | 32 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 in creg_gpio_validate_pg() 81 creg_gpio_validate(struct device *dev, struct creg_gpio *hcg, u32 ngpios) creg_gpio_validate() argument 139 struct creg_gpio *hcg; creg_gpio_probe() local [all...] |
Completed in 1 milliseconds