Lines Matching defs:rdev
25 struct rio_dev *rdev = to_rio_dev(dev); \
27 return sprintf(buf, format_string, rdev->field); \
39 struct rio_dev *rdev = to_rio_dev(dev);
43 if (!rdev->rswitch)
47 if (rdev->rswitch->route_table[i] == RIO_INVALID_ROUTE)
51 rdev->rswitch->route_table[i]);
209 * @rdev: device whose entries should be created
211 * Create files when @rdev is added to sysfs.
213 int rio_create_sysfs_dev_files(struct rio_dev *rdev)
215 sysfs_create_bin_file(&rdev->dev.kobj, &rio_config_attr);
222 * @rdev: device whose entries we should free
224 * Cleanup when @rdev is removed from sysfs.
226 void rio_remove_sysfs_dev_files(struct rio_dev *rdev)
228 sysfs_remove_bin_file(&rdev->dev.kobj, &rio_config_attr);