• Home
  • Raw
  • Download

Lines Matching refs:i3cdev

256 	struct i3c_device *i3cdev = dev_to_i3cdev(dev);  in i3c_device_uevent()  local
260 i3c_device_get_info(i3cdev, &devinfo); in i3c_device_uevent()
281 struct i3c_device *i3cdev; in i3c_device_match() local
287 i3cdev = dev_to_i3cdev(dev); in i3c_device_match()
289 if (i3c_device_match_id(i3cdev, i3cdrv->id_table)) in i3c_device_match()
297 struct i3c_device *i3cdev = dev_to_i3cdev(dev); in i3c_device_probe() local
300 return driver->probe(i3cdev); in i3c_device_probe()
305 struct i3c_device *i3cdev = dev_to_i3cdev(dev); in i3c_device_remove() local
309 ret = driver->remove(i3cdev); in i3c_device_remove()
313 i3c_device_free_ibi(i3cdev); in i3c_device_remove()
704 struct i3c_device *i3cdev = dev_to_i3cdev(dev); in i3c_device_release() local
706 WARN_ON(i3cdev->desc); in i3c_device_release()
708 of_node_put(i3cdev->dev.of_node); in i3c_device_release()
709 kfree(i3cdev); in i3c_device_release()
880 struct i3c_dev_desc *i3cdev; in i3c_master_defslvs_locked() local
891 i3c_bus_for_each_i3cdev(bus, i3cdev) { in i3c_master_defslvs_locked()
894 if (i3cdev == master->this) in i3c_master_defslvs_locked()
897 if (I3C_BCR_DEVICE_ROLE(i3cdev->info.bcr) == in i3c_master_defslvs_locked()
928 i3c_bus_for_each_i3cdev(bus, i3cdev) { in i3c_master_defslvs_locked()
930 if (i3cdev == master->this) in i3c_master_defslvs_locked()
933 desc->bcr = i3cdev->info.bcr; in i3c_master_defslvs_locked()
934 desc->dcr = i3cdev->info.dcr; in i3c_master_defslvs_locked()
935 desc->dyn_addr = i3cdev->info.dyn_addr << 1; in i3c_master_defslvs_locked()
936 desc->static_addr = i3cdev->info.static_addr << 1; in i3c_master_defslvs_locked()
1539 struct i3c_dev_desc *i3cdev; in i3c_master_set_info() local
1552 i3cdev = i3c_master_alloc_i3c_dev(master, info); in i3c_master_set_info()
1553 if (IS_ERR(i3cdev)) in i3c_master_set_info()
1554 return PTR_ERR(i3cdev); in i3c_master_set_info()
1556 master->this = i3cdev; in i3c_master_set_info()
1559 ret = i3c_master_attach_i3c_dev(master, i3cdev); in i3c_master_set_info()
1566 i3c_master_free_i3c_dev(i3cdev); in i3c_master_set_info()
1574 struct i3c_dev_desc *i3cdev, *i3ctmp; in i3c_master_detach_free_devs() local
1577 list_for_each_entry_safe(i3cdev, i3ctmp, &master->bus.devs.i3c, in i3c_master_detach_free_devs()
1579 i3c_master_detach_i3c_dev(i3cdev); in i3c_master_detach_free_devs()
1581 if (i3cdev->boardinfo && i3cdev->boardinfo->init_dyn_addr) in i3c_master_detach_free_devs()
1583 i3cdev->boardinfo->init_dyn_addr, in i3c_master_detach_free_devs()
1586 i3c_master_free_i3c_dev(i3cdev); in i3c_master_detach_free_devs()
1634 struct i3c_dev_desc *i3cdev; in i3c_master_bus_init() local
1680 i3cdev = i3c_master_alloc_i3c_dev(master, &info); in i3c_master_bus_init()
1681 if (IS_ERR(i3cdev)) { in i3c_master_bus_init()
1682 ret = PTR_ERR(i3cdev); in i3c_master_bus_init()
1686 i3cdev->boardinfo = i3cboardinfo; in i3c_master_bus_init()
1688 ret = i3c_master_attach_i3c_dev(master, i3cdev); in i3c_master_bus_init()
1690 i3c_master_free_i3c_dev(i3cdev); in i3c_master_bus_init()
1733 i3c_bus_for_each_i3cdev(&master->bus, i3cdev) in i3c_master_bus_init()
1734 i3c_master_pre_assign_dyn_addr(i3cdev); in i3c_master_bus_init()
1767 struct i3c_dev_desc *i3cdev; in i3c_master_search_i3c_dev_duplicate() local
1769 i3c_bus_for_each_i3cdev(&master->bus, i3cdev) { in i3c_master_search_i3c_dev_duplicate()
1770 if (i3cdev != refdev && i3cdev->info.pid == refdev->info.pid) in i3c_master_search_i3c_dev_duplicate()
1771 return i3cdev; in i3c_master_search_i3c_dev_duplicate()
2158 struct i3c_dev_desc *i3cdev; in i3c_master_unregister_i3c_devs() local
2160 i3c_bus_for_each_i3cdev(&master->bus, i3cdev) { in i3c_master_unregister_i3c_devs()
2161 if (!i3cdev->dev) in i3c_master_unregister_i3c_devs()
2164 i3cdev->dev->desc = NULL; in i3c_master_unregister_i3c_devs()
2165 if (device_is_registered(&i3cdev->dev->dev)) in i3c_master_unregister_i3c_devs()
2166 device_unregister(&i3cdev->dev->dev); in i3c_master_unregister_i3c_devs()
2168 put_device(&i3cdev->dev->dev); in i3c_master_unregister_i3c_devs()
2169 i3cdev->dev = NULL; in i3c_master_unregister_i3c_devs()