Home
last modified time | relevance | path

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

/arch/powerpc/platforms/83xx/
Dmcu_mpc8349emitx.c39 struct of_gpio_chip of_gc; member
58 struct of_gpio_chip *of_gc = to_of_gpio_chip(gc); in mcu_gpio_set() local
59 struct mcu *mcu = container_of(of_gc, struct mcu, of_gc); in mcu_gpio_set()
81 struct of_gpio_chip *of_gc = &mcu->of_gc; in mcu_gpiochip_add() local
82 struct gpio_chip *gc = &of_gc->gc; in mcu_gpiochip_add()
96 of_gc->gpio_cells = 2; in mcu_gpiochip_add()
97 of_gc->xlate = of_gpio_simple_xlate; in mcu_gpiochip_add()
99 np->data = of_gc; in mcu_gpiochip_add()
116 ret = gpiochip_remove(&mcu->of_gc.gc); in mcu_gpiochip_remove()
/arch/powerpc/platforms/86xx/
Dgef_gpio.c122 gef_gpio_chip->of_gc.gpio_cells = 2; in gef_gpio_init()
123 gef_gpio_chip->of_gc.gc.ngpio = NUM_GPIO; in gef_gpio_init()
124 gef_gpio_chip->of_gc.gc.direction_input = gef_gpio_dir_in; in gef_gpio_init()
125 gef_gpio_chip->of_gc.gc.direction_output = gef_gpio_dir_out; in gef_gpio_init()
126 gef_gpio_chip->of_gc.gc.get = gef_gpio_get; in gef_gpio_init()
127 gef_gpio_chip->of_gc.gc.set = gef_gpio_set; in gef_gpio_init()
/arch/powerpc/sysdev/qe_lib/
Dgpio.c141 struct of_gpio_chip *of_gc = NULL; in qe_pin_request() local
169 of_gc = gc->data; in qe_pin_request()
170 if (!of_gc) { in qe_pin_request()
179 *gpio_cells != of_gc->gpio_cells) { in qe_pin_request()
186 err = of_gc->xlate(of_gc, np, gpio_spec, NULL); in qe_pin_request()
190 mm_gc = to_of_mm_gpio_chip(&of_gc->gc); in qe_pin_request()
309 struct of_gpio_chip *of_gc; in qe_add_gpiochips() local
321 of_gc = &mm_gc->of_gc; in qe_add_gpiochips()
322 gc = &of_gc->gc; in qe_add_gpiochips()
325 of_gc->gpio_cells = 2; in qe_add_gpiochips()
/arch/powerpc/sysdev/
Dsimple_gpio.c93 struct of_gpio_chip *of_gc; in u8_simple_gpiochip_add() local
103 of_gc = &mm_gc->of_gc; in u8_simple_gpiochip_add()
104 gc = &of_gc->gc; in u8_simple_gpiochip_add()
107 of_gc->gpio_cells = 2; in u8_simple_gpiochip_add()
Dmpc8xxx_gpio.c118 struct of_gpio_chip *of_gc; in mpc8xxx_add_controller() local
131 of_gc = &mm_gc->of_gc; in mpc8xxx_add_controller()
132 gc = &of_gc->gc; in mpc8xxx_add_controller()
135 of_gc->gpio_cells = 2; in mpc8xxx_add_controller()
Dppc4xx_gpio.c183 struct of_gpio_chip *of_gc; in ppc4xx_add_gpiochips() local
195 of_gc = &mm_gc->of_gc; in ppc4xx_add_gpiochips()
196 gc = &of_gc->gc; in ppc4xx_add_gpiochips()
198 of_gc->gpio_cells = 2; in ppc4xx_add_gpiochips()
Dcpm_common.c324 struct of_gpio_chip *of_gc; in cpm2_gpiochip_add32() local
334 of_gc = &mm_gc->of_gc; in cpm2_gpiochip_add32()
335 gc = &of_gc->gc; in cpm2_gpiochip_add32()
338 of_gc->gpio_cells = 2; in cpm2_gpiochip_add32()
Dcpm1.c616 struct of_gpio_chip *of_gc; in cpm1_gpiochip_add16() local
626 of_gc = &mm_gc->of_gc; in cpm1_gpiochip_add16()
627 gc = &of_gc->gc; in cpm1_gpiochip_add16()
630 of_gc->gpio_cells = 2; in cpm1_gpiochip_add16()
740 struct of_gpio_chip *of_gc; in cpm1_gpiochip_add32() local
750 of_gc = &mm_gc->of_gc; in cpm1_gpiochip_add32()
751 gc = &of_gc->gc; in cpm1_gpiochip_add32()
754 of_gc->gpio_cells = 2; in cpm1_gpiochip_add32()
/arch/powerpc/platforms/52xx/
Dmpc52xx_gpio.c161 ofchip = &chip->mmchip.of_gc; in mpc52xx_wkup_gpiochip_probe()
322 ofchip = &chip->mmchip.of_gc; in mpc52xx_simple_gpiochip_probe()
413 chip = &mmchip->of_gc; in mpc52xx_gpt_gpiochip_probe()