Lines Matching defs:i2c
534 const struct acpi_i2c *i2c)
566 acpigen_emit_word(ctx, i2c->mode_10bit);
575 acpigen_emit_dword(ctx, i2c->speed);
578 acpigen_emit_word(ctx, i2c->address);
584 acpigen_emit_string(ctx, i2c->resource);
594 * caller has to ensure it stays valid for the lifetime of @i2c.
597 * @i2c: Place to put the new structure
601 static int acpi_device_set_i2c(const struct udevice *dev, struct acpi_i2c *i2c,
607 memset(i2c, '\0', sizeof(*i2c));
608 i2c->address = chip->chip_addr;
609 i2c->mode_10bit = 0;
615 i2c->speed = dev_read_u32_default(bus, "clock-frequency",
617 i2c->resource = scope;
619 return i2c->address;
625 struct acpi_i2c i2c;
631 ret = acpi_device_set_i2c(dev, &i2c, scope);
634 acpi_device_write_i2c(ctx, &i2c);