i3cdev 185 drivers/i3c/device.c struct device *i3cdev_to_dev(struct i3c_device *i3cdev) i3cdev 187 drivers/i3c/device.c return &i3cdev->dev; i3cdev 211 drivers/i3c/device.c i3c_device_match_id(struct i3c_device *i3cdev, i3cdev 217 drivers/i3c/device.c i3c_device_get_info(i3cdev, &devinfo); i3cdev 256 drivers/i3c/master.c struct i3c_device *i3cdev = dev_to_i3cdev(dev); i3cdev 260 drivers/i3c/master.c i3c_device_get_info(i3cdev, &devinfo); i3cdev 281 drivers/i3c/master.c struct i3c_device *i3cdev; i3cdev 287 drivers/i3c/master.c i3cdev = dev_to_i3cdev(dev); i3cdev 289 drivers/i3c/master.c if (i3c_device_match_id(i3cdev, i3cdrv->id_table)) i3cdev 297 drivers/i3c/master.c struct i3c_device *i3cdev = dev_to_i3cdev(dev); i3cdev 300 drivers/i3c/master.c return driver->probe(i3cdev); i3cdev 305 drivers/i3c/master.c struct i3c_device *i3cdev = dev_to_i3cdev(dev); i3cdev 309 drivers/i3c/master.c ret = driver->remove(i3cdev); i3cdev 313 drivers/i3c/master.c i3c_device_free_ibi(i3cdev); i3cdev 704 drivers/i3c/master.c struct i3c_device *i3cdev = dev_to_i3cdev(dev); i3cdev 706 drivers/i3c/master.c WARN_ON(i3cdev->desc); i3cdev 708 drivers/i3c/master.c of_node_put(i3cdev->dev.of_node); i3cdev 709 drivers/i3c/master.c kfree(i3cdev); i3cdev 880 drivers/i3c/master.c struct i3c_dev_desc *i3cdev; i3cdev 891 drivers/i3c/master.c i3c_bus_for_each_i3cdev(bus, i3cdev) { i3cdev 894 drivers/i3c/master.c if (i3cdev == master->this) i3cdev 897 drivers/i3c/master.c if (I3C_BCR_DEVICE_ROLE(i3cdev->info.bcr) == i3cdev 928 drivers/i3c/master.c i3c_bus_for_each_i3cdev(bus, i3cdev) { i3cdev 930 drivers/i3c/master.c if (i3cdev == master->this) i3cdev 933 drivers/i3c/master.c desc->bcr = i3cdev->info.bcr; i3cdev 934 drivers/i3c/master.c desc->dcr = i3cdev->info.dcr; i3cdev 935 drivers/i3c/master.c desc->dyn_addr = i3cdev->info.dyn_addr << 1; i3cdev 936 drivers/i3c/master.c desc->static_addr = i3cdev->info.static_addr << 1; i3cdev 1539 drivers/i3c/master.c struct i3c_dev_desc *i3cdev; i3cdev 1552 drivers/i3c/master.c i3cdev = i3c_master_alloc_i3c_dev(master, info); i3cdev 1553 drivers/i3c/master.c if (IS_ERR(i3cdev)) i3cdev 1554 drivers/i3c/master.c return PTR_ERR(i3cdev); i3cdev 1556 drivers/i3c/master.c master->this = i3cdev; i3cdev 1559 drivers/i3c/master.c ret = i3c_master_attach_i3c_dev(master, i3cdev); i3cdev 1566 drivers/i3c/master.c i3c_master_free_i3c_dev(i3cdev); i3cdev 1574 drivers/i3c/master.c struct i3c_dev_desc *i3cdev, *i3ctmp; i3cdev 1577 drivers/i3c/master.c list_for_each_entry_safe(i3cdev, i3ctmp, &master->bus.devs.i3c, i3cdev 1579 drivers/i3c/master.c i3c_master_detach_i3c_dev(i3cdev); i3cdev 1581 drivers/i3c/master.c if (i3cdev->boardinfo && i3cdev->boardinfo->init_dyn_addr) i3cdev 1583 drivers/i3c/master.c i3cdev->boardinfo->init_dyn_addr, i3cdev 1586 drivers/i3c/master.c i3c_master_free_i3c_dev(i3cdev); i3cdev 1634 drivers/i3c/master.c struct i3c_dev_desc *i3cdev; i3cdev 1680 drivers/i3c/master.c i3cdev = i3c_master_alloc_i3c_dev(master, &info); i3cdev 1681 drivers/i3c/master.c if (IS_ERR(i3cdev)) { i3cdev 1682 drivers/i3c/master.c ret = PTR_ERR(i3cdev); i3cdev 1686 drivers/i3c/master.c i3cdev->boardinfo = i3cboardinfo; i3cdev 1688 drivers/i3c/master.c ret = i3c_master_attach_i3c_dev(master, i3cdev); i3cdev 1690 drivers/i3c/master.c i3c_master_free_i3c_dev(i3cdev); i3cdev 1733 drivers/i3c/master.c i3c_bus_for_each_i3cdev(&master->bus, i3cdev) i3cdev 1734 drivers/i3c/master.c i3c_master_pre_assign_dyn_addr(i3cdev); i3cdev 1767 drivers/i3c/master.c struct i3c_dev_desc *i3cdev; i3cdev 1769 drivers/i3c/master.c i3c_bus_for_each_i3cdev(&master->bus, i3cdev) { i3cdev 1770 drivers/i3c/master.c if (i3cdev != refdev && i3cdev->info.pid == refdev->info.pid) i3cdev 1771 drivers/i3c/master.c return i3cdev; i3cdev 2158 drivers/i3c/master.c struct i3c_dev_desc *i3cdev; i3cdev 2160 drivers/i3c/master.c i3c_bus_for_each_i3cdev(&master->bus, i3cdev) { i3cdev 2161 drivers/i3c/master.c if (!i3cdev->dev) i3cdev 2164 drivers/i3c/master.c i3cdev->dev->desc = NULL; i3cdev 2165 drivers/i3c/master.c if (device_is_registered(&i3cdev->dev->dev)) i3cdev 2166 drivers/i3c/master.c device_unregister(&i3cdev->dev->dev); i3cdev 2168 drivers/i3c/master.c put_device(&i3cdev->dev->dev); i3cdev 2169 drivers/i3c/master.c i3cdev->dev = NULL; i3cdev 25 drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_i3c.c static int st_lsm6dsx_i3c_probe(struct i3c_device *i3cdev) i3cdev 31 drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_i3c.c const struct i3c_device_id *id = i3c_device_match_id(i3cdev, i3cdev 35 drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_i3c.c regmap = devm_regmap_init_i3c(i3cdev, &st_lsm6dsx_i3c_regmap_config); i3cdev 37 drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_i3c.c dev_err(&i3cdev->dev, "Failed to register i3c regmap %d\n", i3cdev 42 drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_i3c.c return st_lsm6dsx_probe(&i3cdev->dev, 0, (uintptr_t)id->data, regmap); i3cdev 188 include/linux/i3c/device.h struct device *i3cdev_to_dev(struct i3c_device *i3cdev); i3cdev 192 include/linux/i3c/device.h i3c_device_match_id(struct i3c_device *i3cdev, i3cdev 195 include/linux/i3c/device.h static inline void i3cdev_set_drvdata(struct i3c_device *i3cdev, i3cdev 198 include/linux/i3c/device.h struct device *dev = i3cdev_to_dev(i3cdev); i3cdev 203 include/linux/i3c/device.h static inline void *i3cdev_get_drvdata(struct i3c_device *i3cdev) i3cdev 205 include/linux/i3c/device.h struct device *dev = i3cdev_to_dev(i3cdev);