Lines Matching refs:i2cdev
899 struct i2c_dev_desc *i2cdev; in i3c_master_defslvs_locked() local
924 i3c_bus_for_each_i2cdev(bus, i2cdev) in i3c_master_defslvs_locked()
940 i3c_bus_for_each_i2cdev(bus, i2cdev) { in i3c_master_defslvs_locked()
941 desc->lvr = i2cdev->lvr; in i3c_master_defslvs_locked()
942 desc->static_addr = i2cdev->addr << 1; in i3c_master_defslvs_locked()
1611 struct i2c_dev_desc *i2cdev, *i2ctmp; in i3c_master_detach_free_devs() local
1625 list_for_each_entry_safe(i2cdev, i2ctmp, &master->bus.devs.i2c, in i3c_master_detach_free_devs()
1627 i3c_master_detach_i2c_dev(i2cdev); in i3c_master_detach_free_devs()
1629 i2cdev->addr, in i3c_master_detach_free_devs()
1631 i3c_master_free_i2c_dev(i2cdev); in i3c_master_detach_free_devs()
1672 struct i2c_dev_desc *i2cdev; in i3c_master_bus_init() local
1691 i2cdev = i3c_master_alloc_i2c_dev(master, in i3c_master_bus_init()
1694 if (IS_ERR(i2cdev)) { in i3c_master_bus_init()
1695 ret = PTR_ERR(i2cdev); in i3c_master_bus_init()
1699 ret = i3c_master_attach_i2c_dev(master, i2cdev); in i3c_master_bus_init()
1701 i3c_master_free_i2c_dev(i2cdev); in i3c_master_bus_init()
2190 struct i2c_dev_desc *i2cdev; in i3c_master_i2c_attach() local
2204 i2cdev = i3c_master_alloc_i2c_dev(master, client->addr, in i3c_master_i2c_attach()
2206 if (IS_ERR(i2cdev)) { in i3c_master_i2c_attach()
2207 ret = PTR_ERR(i2cdev); in i3c_master_i2c_attach()
2211 ret = i3c_master_attach_i2c_dev(master, i2cdev); in i3c_master_i2c_attach()
2218 i3c_master_free_i2c_dev(i2cdev); in i3c_master_i2c_attach()
2289 struct i2c_dev_desc *i2cdev; in i3c_master_i2c_adapter_init() local
2311 i2cdev = i3c_master_find_i2c_dev_by_addr(master, in i3c_master_i2c_adapter_init()
2313 if (WARN_ON(!i2cdev)) in i3c_master_i2c_adapter_init()
2315 i2cdev->dev = i2c_new_client_device(adap, &i2cboardinfo->base); in i3c_master_i2c_adapter_init()
2323 struct i2c_dev_desc *i2cdev; in i3c_master_i2c_adapter_cleanup() local
2327 i3c_bus_for_each_i2cdev(&master->bus, i2cdev) in i3c_master_i2c_adapter_cleanup()
2328 i2cdev->dev = NULL; in i3c_master_i2c_adapter_cleanup()