Searched refs:of_gc (Results 1 – 9 of 9) sorted by relevance
39 struct of_gpio_chip of_gc; member58 struct of_gpio_chip *of_gc = to_of_gpio_chip(gc); in mcu_gpio_set() local59 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() local82 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()
122 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()
141 struct of_gpio_chip *of_gc = NULL; in qe_pin_request() local169 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() local321 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()
93 struct of_gpio_chip *of_gc; in u8_simple_gpiochip_add() local103 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()
118 struct of_gpio_chip *of_gc; in mpc8xxx_add_controller() local131 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()
183 struct of_gpio_chip *of_gc; in ppc4xx_add_gpiochips() local195 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()
324 struct of_gpio_chip *of_gc; in cpm2_gpiochip_add32() local334 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()
616 struct of_gpio_chip *of_gc; in cpm1_gpiochip_add16() local626 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() local750 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()
161 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()