Home | History | Annotate | Download | only in fdt

Lines Matching refs:gc

55 	struct fdtbus_gpio_controller *gc;
57 gc = kmem_alloc(sizeof(*gc), KM_SLEEP);
58 gc->gc_dev = dev;
59 gc->gc_phandle = phandle;
60 gc->gc_funcs = funcs;
62 LIST_INSERT_HEAD(&fdtbus_gpio_controllers, gc, gc_next);
70 struct fdtbus_gpio_controller *gc;
72 LIST_FOREACH(gc, &fdtbus_gpio_controllers, gc_next) {
73 if (gc->gc_phandle == phandle)
74 return gc;
114 struct fdtbus_gpio_controller *gc;
131 gc = fdtbus_get_gpio_controller(gc_phandle);
132 if (gc == NULL)
135 gp->gp_gc = gc;
136 gp->gp_priv = gc->gc_funcs->acquire(gc->gc_dev,
154 struct fdtbus_gpio_controller *gc = gp->gp_gc;
156 gc->gc_funcs->release(gc->gc_dev, gp->gp_priv);
163 struct fdtbus_gpio_controller *gc = gp->gp_gc;
165 return gc->gc_funcs->read(gc->gc_dev, gp->gp_priv, false);
171 struct fdtbus_gpio_controller *gc = gp->gp_gc;
173 gc->gc_funcs->write(gc->gc_dev, gp->gp_priv, val, false);
179 struct fdtbus_gpio_controller *gc = gp->gp_gc;
181 return gc->gc_funcs->read(gc->gc_dev, gp->gp_priv, true);
187 struct fdtbus_gpio_controller *gc = gp->gp_gc;
189 gc->gc_funcs->write(gc->gc_dev, gp->gp_priv, val, true);