Lines Matching refs:dev
450 struct device dev; member
583 static void rbd_root_dev_release(struct device *dev) in rbd_root_dev_release() argument
676 (void) get_device(&rbd_dev->dev); in rbd_open()
691 put_device(&rbd_dev->dev); in rbd_release()
5018 static struct rbd_device *dev_to_rbd_dev(struct device *dev) in dev_to_rbd_dev() argument
5020 return container_of(dev, struct rbd_device, dev); in dev_to_rbd_dev()
5023 static ssize_t rbd_size_show(struct device *dev, in rbd_size_show() argument
5026 struct rbd_device *rbd_dev = dev_to_rbd_dev(dev); in rbd_size_show()
5032 static ssize_t rbd_features_show(struct device *dev, in rbd_features_show() argument
5035 struct rbd_device *rbd_dev = dev_to_rbd_dev(dev); in rbd_features_show()
5040 static ssize_t rbd_major_show(struct device *dev, in rbd_major_show() argument
5043 struct rbd_device *rbd_dev = dev_to_rbd_dev(dev); in rbd_major_show()
5051 static ssize_t rbd_minor_show(struct device *dev, in rbd_minor_show() argument
5054 struct rbd_device *rbd_dev = dev_to_rbd_dev(dev); in rbd_minor_show()
5059 static ssize_t rbd_client_addr_show(struct device *dev, in rbd_client_addr_show() argument
5062 struct rbd_device *rbd_dev = dev_to_rbd_dev(dev); in rbd_client_addr_show()
5070 static ssize_t rbd_client_id_show(struct device *dev, in rbd_client_id_show() argument
5073 struct rbd_device *rbd_dev = dev_to_rbd_dev(dev); in rbd_client_id_show()
5079 static ssize_t rbd_cluster_fsid_show(struct device *dev, in rbd_cluster_fsid_show() argument
5082 struct rbd_device *rbd_dev = dev_to_rbd_dev(dev); in rbd_cluster_fsid_show()
5087 static ssize_t rbd_config_info_show(struct device *dev, in rbd_config_info_show() argument
5090 struct rbd_device *rbd_dev = dev_to_rbd_dev(dev); in rbd_config_info_show()
5098 static ssize_t rbd_pool_show(struct device *dev, in rbd_pool_show() argument
5101 struct rbd_device *rbd_dev = dev_to_rbd_dev(dev); in rbd_pool_show()
5106 static ssize_t rbd_pool_id_show(struct device *dev, in rbd_pool_id_show() argument
5109 struct rbd_device *rbd_dev = dev_to_rbd_dev(dev); in rbd_pool_id_show()
5115 static ssize_t rbd_pool_ns_show(struct device *dev, in rbd_pool_ns_show() argument
5118 struct rbd_device *rbd_dev = dev_to_rbd_dev(dev); in rbd_pool_ns_show()
5123 static ssize_t rbd_name_show(struct device *dev, in rbd_name_show() argument
5126 struct rbd_device *rbd_dev = dev_to_rbd_dev(dev); in rbd_name_show()
5134 static ssize_t rbd_image_id_show(struct device *dev, in rbd_image_id_show() argument
5137 struct rbd_device *rbd_dev = dev_to_rbd_dev(dev); in rbd_image_id_show()
5146 static ssize_t rbd_snap_show(struct device *dev, in rbd_snap_show() argument
5150 struct rbd_device *rbd_dev = dev_to_rbd_dev(dev); in rbd_snap_show()
5155 static ssize_t rbd_snap_id_show(struct device *dev, in rbd_snap_id_show() argument
5158 struct rbd_device *rbd_dev = dev_to_rbd_dev(dev); in rbd_snap_id_show()
5168 static ssize_t rbd_parent_show(struct device *dev, in rbd_parent_show() argument
5172 struct rbd_device *rbd_dev = dev_to_rbd_dev(dev); in rbd_parent_show()
5198 static ssize_t rbd_image_refresh(struct device *dev, in rbd_image_refresh() argument
5203 struct rbd_device *rbd_dev = dev_to_rbd_dev(dev); in rbd_image_refresh()
5264 static void rbd_dev_release(struct device *dev);
5328 static void rbd_dev_release(struct device *dev) in rbd_dev_release() argument
5330 struct rbd_device *rbd_dev = dev_to_rbd_dev(dev); in rbd_dev_release()
5389 rbd_dev->dev.bus = &rbd_bus_type; in __rbd_dev_create()
5390 rbd_dev->dev.type = &rbd_device_type; in __rbd_dev_create()
5391 rbd_dev->dev.parent = &rbd_root_dev; in __rbd_dev_create()
5392 device_initialize(&rbd_dev->dev); in __rbd_dev_create()
5443 put_device(&rbd_dev->dev); in rbd_dev_destroy()
6816 ret = dev_set_name(&rbd_dev->dev, "%d", rbd_dev->dev_id); in rbd_dev_device_setup()
7160 rc = device_add(&rbd_dev->dev); in do_rbd_add()
7164 rc = device_add_disk(&rbd_dev->dev, rbd_dev->disk, NULL); in do_rbd_add()
7299 device_del(&rbd_dev->dev); in do_rbd_remove()