Lines Matching defs:adapter
62 return container_of(i2c, struct intel_gmbus, adapter);
172 intel_gpio_pre_xfer(struct i2c_adapter *adapter)
174 struct intel_gmbus *bus = container_of(adapter,
176 adapter);
188 intel_gpio_post_xfer(struct i2c_adapter *adapter)
190 struct intel_gmbus *bus = container_of(adapter,
192 adapter);
206 algo = &bus->adapter;
211 bus->adapter.algo_data = algo;
404 gmbus_xfer(struct i2c_adapter *adapter,
408 struct intel_gmbus *bus = container_of(adapter,
410 adapter);
418 ret = i2c_bit_algo.master_xfer(adapter, msgs, num);
461 adapter->name);
475 * adapter must report -ENXIO. It is not clear what to return if no ACK
485 adapter->name);
498 adapter->name, msgs[i].addr,
505 bus->adapter.name, bus->reg0 & 0xff);
510 ret = i2c_bit_algo.master_xfer(adapter, msgs, num);
517 static u32 gmbus_func(struct i2c_adapter *adapter)
519 return adapter->algo->functionality(adapter);
552 snprintf(bus->adapter.name,
553 sizeof(bus->adapter.name),
557 // bus->adapter.dev.parent = &dev->pdev->dev;
560 bus->adapter.algo = &gmbus_algorithm;
583 &dev_priv->gmbus[port - 1].adapter : NULL;
586 void intel_gmbus_set_speed(struct i2c_adapter *adapter, int speed)
588 struct intel_gmbus *bus = to_intel_gmbus(adapter);
593 void intel_gmbus_force_bit(struct i2c_adapter *adapter, bool force_bit)
595 struct intel_gmbus *bus = to_intel_gmbus(adapter);
599 force_bit ? "en" : "dis", adapter->name,
608 // i2c_del_adapter(&bus->adapter);
614 void intel_gmbus_hdmi_set_adapter(struct i2c_adapter *adapter)
616 adapter->getsda = vga_get_data;
617 adapter->getscl = vga_get_clock;