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)
46 for (i = 0; i < RIO_MAX_ROUTE_ENTRIES(rdev->net->hport->sys_size);
48 if (rdev->rswitch->route_table[i] == RIO_INVALID_ROUTE)
52 rdev->rswitch->route_table[i]);
213 * @rdev: device whose entries should be created
215 * Create files when @rdev is added to sysfs.
217 int rio_create_sysfs_dev_files(struct rio_dev *rdev)
221 err = sysfs_create_bin_file(&rdev->dev.kobj, &rio_config_attr);
228 * @rdev: device whose entries we should free
230 * Cleanup when @rdev is removed from sysfs.
232 void rio_remove_sysfs_dev_files(struct rio_dev *rdev)
234 sysfs_remove_bin_file(&rdev->dev.kobj, &rio_config_attr);