Lines Matching refs:dev

1644 	struct se_device *dev = container_of(p, struct se_device, rcu_head);  in tcmu_dev_call_rcu()  local
1645 struct tcmu_dev *udev = TCMU_DEV(dev); in tcmu_dev_call_rcu()
1715 struct se_device *dev = &udev->se_dev; in tcmu_dev_kref_release() local
1747 call_rcu(&dev->rcu_head, tcmu_dev_call_rcu); in tcmu_dev_kref_release()
2197 static int tcmu_configure_device(struct se_device *dev) in tcmu_configure_device() argument
2199 struct tcmu_dev *udev = TCMU_DEV(dev); in tcmu_configure_device()
2265 if (dev->dev_attrib.hw_block_size == 0) in tcmu_configure_device()
2266 dev->dev_attrib.hw_block_size = 512; in tcmu_configure_device()
2268 if (!dev->dev_attrib.hw_max_sectors) in tcmu_configure_device()
2269 dev->dev_attrib.hw_max_sectors = 128; in tcmu_configure_device()
2270 if (!dev->dev_attrib.emulate_write_cache) in tcmu_configure_device()
2271 dev->dev_attrib.emulate_write_cache = 0; in tcmu_configure_device()
2272 dev->dev_attrib.hw_queue_depth = 128; in tcmu_configure_device()
2312 static void tcmu_free_device(struct se_device *dev) in tcmu_free_device() argument
2314 struct tcmu_dev *udev = TCMU_DEV(dev); in tcmu_free_device()
2320 static void tcmu_destroy_device(struct se_device *dev) in tcmu_destroy_device() argument
2322 struct tcmu_dev *udev = TCMU_DEV(dev); in tcmu_destroy_device()
2574 static ssize_t tcmu_set_configfs_dev_params(struct se_device *dev, in tcmu_set_configfs_dev_params() argument
2577 struct tcmu_dev *udev = TCMU_DEV(dev); in tcmu_set_configfs_dev_params()
2610 &(dev->dev_attrib.hw_block_size)); in tcmu_set_configfs_dev_params()
2614 &(dev->dev_attrib.hw_max_sectors)); in tcmu_set_configfs_dev_params()
2643 static ssize_t tcmu_show_configfs_dev_params(struct se_device *dev, char *b) in tcmu_show_configfs_dev_params() argument
2645 struct tcmu_dev *udev = TCMU_DEV(dev); in tcmu_show_configfs_dev_params()
2659 static sector_t tcmu_get_blocks(struct se_device *dev) in tcmu_get_blocks() argument
2661 struct tcmu_dev *udev = TCMU_DEV(dev); in tcmu_get_blocks()
2663 return div_u64(udev->dev_size - dev->dev_attrib.block_size, in tcmu_get_blocks()
2664 dev->dev_attrib.block_size); in tcmu_get_blocks()