Lines Matching refs:i2cdev

1027 	struct i2c_dev_desc *i2cdev;  in i3c_master_defslvs_locked()  local
1052 i3c_bus_for_each_i2cdev(bus, i2cdev) in i3c_master_defslvs_locked()
1068 i3c_bus_for_each_i2cdev(bus, i2cdev) { in i3c_master_defslvs_locked()
1069 desc->lvr = i2cdev->lvr; in i3c_master_defslvs_locked()
1070 desc->static_addr = i2cdev->addr << 1; in i3c_master_defslvs_locked()
1757 struct i2c_dev_desc *i2cdev, *i2ctmp; in i3c_master_detach_free_devs() local
1771 list_for_each_entry_safe(i2cdev, i2ctmp, &master->bus.devs.i2c, in i3c_master_detach_free_devs()
1773 i3c_master_detach_i2c_dev(i2cdev); in i3c_master_detach_free_devs()
1775 i2cdev->addr, in i3c_master_detach_free_devs()
1777 i3c_master_free_i2c_dev(i2cdev); in i3c_master_detach_free_devs()
1818 struct i2c_dev_desc *i2cdev; in i3c_master_bus_init() local
1837 i2cdev = i3c_master_alloc_i2c_dev(master, in i3c_master_bus_init()
1840 if (IS_ERR(i2cdev)) { in i3c_master_bus_init()
1841 ret = PTR_ERR(i2cdev); in i3c_master_bus_init()
1845 ret = i3c_master_attach_i2c_dev(master, i2cdev); in i3c_master_bus_init()
1847 i3c_master_free_i2c_dev(i2cdev); in i3c_master_bus_init()
2344 struct i2c_dev_desc *i2cdev; in i3c_master_i2c_attach() local
2358 i2cdev = i3c_master_alloc_i2c_dev(master, client->addr, in i3c_master_i2c_attach()
2360 if (IS_ERR(i2cdev)) { in i3c_master_i2c_attach()
2361 ret = PTR_ERR(i2cdev); in i3c_master_i2c_attach()
2365 ret = i3c_master_attach_i2c_dev(master, i2cdev); in i3c_master_i2c_attach()
2372 i3c_master_free_i2c_dev(i2cdev); in i3c_master_i2c_attach()
2443 struct i2c_dev_desc *i2cdev; in i3c_master_i2c_adapter_init() local
2465 i2cdev = i3c_master_find_i2c_dev_by_addr(master, in i3c_master_i2c_adapter_init()
2467 if (WARN_ON(!i2cdev)) in i3c_master_i2c_adapter_init()
2469 i2cdev->dev = i2c_new_client_device(adap, &i2cboardinfo->base); in i3c_master_i2c_adapter_init()
2477 struct i2c_dev_desc *i2cdev; in i3c_master_i2c_adapter_cleanup() local
2481 i3c_bus_for_each_i2cdev(&master->bus, i2cdev) in i3c_master_i2c_adapter_cleanup()
2482 i2cdev->dev = NULL; in i3c_master_i2c_adapter_cleanup()