Home
last modified time | relevance | path

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

/linux-6.1.9/arch/powerpc/platforms/8xx/
Dcpm1.c382 struct of_mm_gpio_chip mm_gc; member
392 static void cpm1_gpio16_save_regs(struct of_mm_gpio_chip *mm_gc) in cpm1_gpio16_save_regs() argument
395 container_of(mm_gc, struct cpm1_gpio16_chip, mm_gc); in cpm1_gpio16_save_regs()
396 struct cpm_ioport16 __iomem *iop = mm_gc->regs; in cpm1_gpio16_save_regs()
403 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in cpm1_gpio16_get() local
404 struct cpm_ioport16 __iomem *iop = mm_gc->regs; in cpm1_gpio16_get()
412 static void __cpm1_gpio16_set(struct of_mm_gpio_chip *mm_gc, u16 pin_mask, in __cpm1_gpio16_set() argument
415 struct cpm1_gpio16_chip *cpm1_gc = gpiochip_get_data(&mm_gc->gc); in __cpm1_gpio16_set()
416 struct cpm_ioport16 __iomem *iop = mm_gc->regs; in __cpm1_gpio16_set()
428 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in cpm1_gpio16_set() local
[all …]
/linux-6.1.9/drivers/gpio/
Dgpio-altera.c40 struct of_mm_gpio_chip *mm_gc; in altera_gpio_irq_unmask() local
45 mm_gc = &altera_gc->mmchip; in altera_gpio_irq_unmask()
48 intmask = readl(mm_gc->regs + ALTERA_GPIO_IRQ_MASK); in altera_gpio_irq_unmask()
51 writel(intmask, mm_gc->regs + ALTERA_GPIO_IRQ_MASK); in altera_gpio_irq_unmask()
58 struct of_mm_gpio_chip *mm_gc; in altera_gpio_irq_mask() local
63 mm_gc = &altera_gc->mmchip; in altera_gpio_irq_mask()
66 intmask = readl(mm_gc->regs + ALTERA_GPIO_IRQ_MASK); in altera_gpio_irq_mask()
69 writel(intmask, mm_gc->regs + ALTERA_GPIO_IRQ_MASK); in altera_gpio_irq_mask()
108 struct of_mm_gpio_chip *mm_gc; in altera_gpio_get() local
110 mm_gc = to_of_mm_gpio_chip(gc); in altera_gpio_get()
[all …]
Dgpio-mpc5200.c46 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in mpc52xx_wkup_gpio_get() local
47 struct mpc52xx_gpio_wkup __iomem *regs = mm_gc->regs; in mpc52xx_wkup_gpio_get()
60 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in __mpc52xx_wkup_gpio_set() local
62 struct mpc52xx_gpio_wkup __iomem *regs = mm_gc->regs; in __mpc52xx_wkup_gpio_set()
88 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in mpc52xx_wkup_gpio_dir_in() local
90 struct mpc52xx_gpio_wkup __iomem *regs = mm_gc->regs; in mpc52xx_wkup_gpio_dir_in()
111 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in mpc52xx_wkup_gpio_dir_out() local
112 struct mpc52xx_gpio_wkup __iomem *regs = mm_gc->regs; in mpc52xx_wkup_gpio_dir_out()
210 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in mpc52xx_simple_gpio_get() local
211 struct mpc52xx_gpio __iomem *regs = mm_gc->regs; in mpc52xx_simple_gpio_get()
[all …]
Dgpiolib-of.c815 struct of_mm_gpio_chip *mm_gc, in of_mm_gpiochip_add_data() argument
819 struct gpio_chip *gc = &mm_gc->gc; in of_mm_gpiochip_add_data()
825 mm_gc->regs = of_iomap(np, 0); in of_mm_gpiochip_add_data()
826 if (!mm_gc->regs) in of_mm_gpiochip_add_data()
831 if (mm_gc->save_regs) in of_mm_gpiochip_add_data()
832 mm_gc->save_regs(mm_gc); in of_mm_gpiochip_add_data()
834 of_node_put(mm_gc->gc.of_node); in of_mm_gpiochip_add_data()
835 mm_gc->gc.of_node = of_node_get(np); in of_mm_gpiochip_add_data()
844 iounmap(mm_gc->regs); in of_mm_gpiochip_add_data()
857 void of_mm_gpiochip_remove(struct of_mm_gpio_chip *mm_gc) in of_mm_gpiochip_remove() argument
[all …]
Dgpio-mm-lantiq.c90 static void ltq_mm_save_regs(struct of_mm_gpio_chip *mm_gc) in ltq_mm_save_regs() argument
93 container_of(mm_gc, struct ltq_mm, mmchip); in ltq_mm_save_regs()
/linux-6.1.9/arch/powerpc/sysdev/
Dcpm_common.c102 struct of_mm_gpio_chip mm_gc; member
109 static void cpm2_gpio32_save_regs(struct of_mm_gpio_chip *mm_gc) in cpm2_gpio32_save_regs() argument
112 container_of(mm_gc, struct cpm2_gpio32_chip, mm_gc); in cpm2_gpio32_save_regs()
113 struct cpm2_ioports __iomem *iop = mm_gc->regs; in cpm2_gpio32_save_regs()
120 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in cpm2_gpio32_get() local
121 struct cpm2_ioports __iomem *iop = mm_gc->regs; in cpm2_gpio32_get()
129 static void __cpm2_gpio32_set(struct of_mm_gpio_chip *mm_gc, u32 pin_mask, in __cpm2_gpio32_set() argument
132 struct cpm2_gpio32_chip *cpm2_gc = gpiochip_get_data(&mm_gc->gc); in __cpm2_gpio32_set()
133 struct cpm2_ioports __iomem *iop = mm_gc->regs; in __cpm2_gpio32_set()
145 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in cpm2_gpio32_set() local
[all …]
/linux-6.1.9/drivers/soc/fsl/qe/
Dgpio.c25 struct of_mm_gpio_chip mm_gc; member
38 static void qe_gpio_save_regs(struct of_mm_gpio_chip *mm_gc) in qe_gpio_save_regs() argument
41 container_of(mm_gc, struct qe_gpio_chip, mm_gc); in qe_gpio_save_regs()
42 struct qe_pio_regs __iomem *regs = mm_gc->regs; in qe_gpio_save_regs()
55 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in qe_gpio_get() local
56 struct qe_pio_regs __iomem *regs = mm_gc->regs; in qe_gpio_get()
64 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in qe_gpio_set() local
66 struct qe_pio_regs __iomem *regs = mm_gc->regs; in qe_gpio_set()
85 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in qe_gpio_set_multiple() local
87 struct qe_pio_regs __iomem *regs = mm_gc->regs; in qe_gpio_set_multiple()
[all …]
/linux-6.1.9/arch/powerpc/platforms/4xx/
Dgpio.c48 struct of_mm_gpio_chip mm_gc; member
60 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in ppc4xx_gpio_get() local
61 struct ppc4xx_gpio __iomem *regs = mm_gc->regs; in ppc4xx_gpio_get()
69 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in __ppc4xx_gpio_set() local
70 struct ppc4xx_gpio __iomem *regs = mm_gc->regs; in __ppc4xx_gpio_set()
95 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in ppc4xx_gpio_dir_in() local
97 struct ppc4xx_gpio __iomem *regs = mm_gc->regs; in ppc4xx_gpio_dir_in()
125 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in ppc4xx_gpio_dir_out() local
127 struct ppc4xx_gpio __iomem *regs = mm_gc->regs; in ppc4xx_gpio_dir_out()
164 struct of_mm_gpio_chip *mm_gc; in ppc4xx_add_gpiochips() local
[all …]
/linux-6.1.9/include/linux/
Dof_gpio.h44 void (*save_regs)(struct of_mm_gpio_chip *mm_gc);
57 struct of_mm_gpio_chip *mm_gc,
60 struct of_mm_gpio_chip *mm_gc) in of_mm_gpiochip_add() argument
62 return of_mm_gpiochip_add_data(np, mm_gc, NULL); in of_mm_gpiochip_add()
64 extern void of_mm_gpiochip_remove(struct of_mm_gpio_chip *mm_gc);