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()
1614 struct i2c_dev_desc *i2cdev, *i2ctmp; in i3c_master_detach_free_devs() local
1628 list_for_each_entry_safe(i2cdev, i2ctmp, &master->bus.devs.i2c, in i3c_master_detach_free_devs()
1630 i3c_master_detach_i2c_dev(i2cdev); in i3c_master_detach_free_devs()
1632 i2cdev->addr, in i3c_master_detach_free_devs()
1634 i3c_master_free_i2c_dev(i2cdev); in i3c_master_detach_free_devs()
1675 struct i2c_dev_desc *i2cdev; in i3c_master_bus_init() local
1694 i2cdev = i3c_master_alloc_i2c_dev(master, in i3c_master_bus_init()
1697 if (IS_ERR(i2cdev)) { in i3c_master_bus_init()
1698 ret = PTR_ERR(i2cdev); in i3c_master_bus_init()
1702 ret = i3c_master_attach_i2c_dev(master, i2cdev); in i3c_master_bus_init()
1704 i3c_master_free_i2c_dev(i2cdev); in i3c_master_bus_init()
2189 struct i2c_dev_desc *i2cdev; in i3c_master_i2c_attach() local
2203 i2cdev = i3c_master_alloc_i2c_dev(master, client->addr, in i3c_master_i2c_attach()
2205 if (IS_ERR(i2cdev)) { in i3c_master_i2c_attach()
2206 ret = PTR_ERR(i2cdev); in i3c_master_i2c_attach()
2210 ret = i3c_master_attach_i2c_dev(master, i2cdev); in i3c_master_i2c_attach()
2217 i3c_master_free_i2c_dev(i2cdev); in i3c_master_i2c_attach()
2288 struct i2c_dev_desc *i2cdev; in i3c_master_i2c_adapter_init() local
2310 i2cdev = i3c_master_find_i2c_dev_by_addr(master, in i3c_master_i2c_adapter_init()
2312 if (WARN_ON(!i2cdev)) in i3c_master_i2c_adapter_init()
2314 i2cdev->dev = i2c_new_client_device(adap, &i2cboardinfo->base); in i3c_master_i2c_adapter_init()
2322 struct i2c_dev_desc *i2cdev; in i3c_master_i2c_adapter_cleanup() local
2326 i3c_bus_for_each_i2cdev(&master->bus, i2cdev) in i3c_master_i2c_adapter_cleanup()
2327 i2cdev->dev = NULL; in i3c_master_i2c_adapter_cleanup()