Home | History | Annotate | Download | only in fdt

Lines Matching refs:i2c

67 #include <dev/i2c/i2cvar.h>
68 #include <dev/i2c/i2c_calls.h>
69 #include <dev/i2c/i2c_enum.h>
85 struct fdtbus_i2c_controller *i2c;
87 i2c = kmem_alloc(sizeof(*i2c), KM_SLEEP);
88 i2c->i2c_tag = tag;
89 i2c->i2c_phandle = phandle;
91 LIST_INSERT_HEAD(&fdtbus_i2c_controllers, i2c, i2c_next);
97 struct fdtbus_i2c_controller *i2c;
99 LIST_FOREACH(i2c, &fdtbus_i2c_controllers, i2c_next) {
100 if (i2c->i2c_phandle == phandle)
101 return i2c;
110 struct fdtbus_i2c_controller *i2c;
112 i2c = fdtbus_get_i2c_controller(phandle);
113 if (i2c == NULL)
116 return i2c->i2c_tag;
146 * child node named "i2c-bus", then that is the node beneath
153 if (strcmp(name, "i2c-bus") == 0) {