Home
last modified time | relevance | path

Searched refs:i3cdev (Results 1 – 4 of 4) sorted by relevance

/Linux-v6.1/drivers/iio/imu/st_lsm6dsx/
Dst_lsm6dsx_i3c.c25 static int st_lsm6dsx_i3c_probe(struct i3c_device *i3cdev) in st_lsm6dsx_i3c_probe() argument
31 const struct i3c_device_id *id = i3c_device_match_id(i3cdev, in st_lsm6dsx_i3c_probe()
35 regmap = devm_regmap_init_i3c(i3cdev, &st_lsm6dsx_i3c_regmap_config); in st_lsm6dsx_i3c_probe()
37 dev_err(&i3cdev->dev, "Failed to register i3c regmap %ld\n", PTR_ERR(regmap)); in st_lsm6dsx_i3c_probe()
41 return st_lsm6dsx_probe(&i3cdev->dev, 0, (uintptr_t)id->data, regmap); in st_lsm6dsx_i3c_probe()
/Linux-v6.1/drivers/i3c/
Dmaster.c278 struct i3c_device *i3cdev = dev_to_i3cdev(dev); in i3c_device_uevent() local
282 i3c_device_get_info(i3cdev, &devinfo); in i3c_device_uevent()
303 struct i3c_device *i3cdev; in i3c_device_match() local
309 i3cdev = dev_to_i3cdev(dev); in i3c_device_match()
311 if (i3c_device_match_id(i3cdev, i3cdrv->id_table)) in i3c_device_match()
319 struct i3c_device *i3cdev = dev_to_i3cdev(dev); in i3c_device_probe() local
322 return driver->probe(i3cdev); in i3c_device_probe()
327 struct i3c_device *i3cdev = dev_to_i3cdev(dev); in i3c_device_remove() local
331 driver->remove(i3cdev); in i3c_device_remove()
333 i3c_device_free_ibi(i3cdev); in i3c_device_remove()
[all …]
Ddevice.c185 struct device *i3cdev_to_dev(struct i3c_device *i3cdev) in i3cdev_to_dev() argument
187 return &i3cdev->dev; in i3cdev_to_dev()
211 i3c_device_match_id(struct i3c_device *i3cdev, in i3c_device_match_id() argument
219 i3c_device_get_info(i3cdev, &devinfo); in i3c_device_match_id()
/Linux-v6.1/include/linux/i3c/
Ddevice.h188 struct device *i3cdev_to_dev(struct i3c_device *i3cdev);
192 i3c_device_match_id(struct i3c_device *i3cdev,
195 static inline void i3cdev_set_drvdata(struct i3c_device *i3cdev, in i3cdev_set_drvdata() argument
198 struct device *dev = i3cdev_to_dev(i3cdev); in i3cdev_set_drvdata()
203 static inline void *i3cdev_get_drvdata(struct i3c_device *i3cdev) in i3cdev_get_drvdata() argument
205 struct device *dev = i3cdev_to_dev(i3cdev); in i3cdev_get_drvdata()