Lines Matching defs:bus
68 * the bus, so the order is:
81 struct iicmux_bus * const bus = v;
82 struct iicmux_softc * const sc = bus->mux;
90 error = sc->sc_config->acquire_bus(bus, flags);
101 struct iicmux_bus * const bus = v;
102 struct iicmux_softc * const sc = bus->mux;
104 sc->sc_config->release_bus(bus, flags);
113 struct iicmux_bus * const bus = v;
114 struct iicmux_softc * const sc = bus->mux;
138 * of the i2c bus children. Stash its phandle
156 struct iicmux_bus * const bus = &sc->sc_busses[busidx];
158 bus->mux = sc;
159 bus->busidx = busidx;
160 bus->devhandle = bus_devhandle;
162 bus->bus_data = sc->sc_config->get_bus_info(bus);
163 if (bus->bus_data == NULL) {
165 "unable to get info for bus %d\n", busidx);
169 iic_tag_init(&bus->controller);
170 bus->controller.ic_cookie = bus;
171 bus->controller.ic_channel = busidx;
172 bus->controller.ic_acquire_bus = iicmux_acquire_bus;
173 bus->controller.ic_release_bus = iicmux_release_bus;
174 bus->controller.ic_exec = iicmux_exec;
176 iicbus_attach_with_devhandle(sc->sc_dev, &bus->controller,
177 bus->devhandle);
257 * We start out assuming that the i2c bus nodes are children of
260 * then it's that node that is the parent of the i2c bus children.