Lines Matching defs:nullb_device
53 struct nullb_device { struct
54 struct nullb *nullb;
55 struct config_group group;
57 struct fault_config timeout_config;
58 struct fault_config requeue_config;
59 struct fault_config init_hctx_fault_config;
61 struct radix_tree_root data; /* data stored in the disk */
62 struct radix_tree_root cache; /* disk cache data */
63 unsigned long flags; /* device flags */
64 unsigned int curr_cache;
65 struct badblocks badblocks;
66 bool badblocks_once;
67 bool badblocks_partial_io;
69 unsigned int nr_zones;
70 unsigned int nr_zones_imp_open;
71 unsigned int nr_zones_exp_open;
72 unsigned int nr_zones_closed;
73 unsigned int imp_close_zone_no;
74 struct nullb_zone *zones;
75 sector_t zone_size_sects;
76 bool need_zone_res_mgmt;
77 spinlock_t zone_res_lock;
79 unsigned long size; /* device size in MB */
80 unsigned long completion_nsec; /* time in ns to complete a request */
81 unsigned long cache_size; /* disk cache size in MB */
82 unsigned long zone_size; /* zone size in MB if device is zoned */
83 unsigned long zone_capacity; /* zone capacity in MB if device is zoned */
84 unsigned int zone_nr_conv; /* number of conventional zones */
85 unsigned int zone_max_open; /* max number of open zones */
86 unsigned int zone_max_active; /* max number of active zones */
87 unsigned int zone_append_max_sectors; /* Max sectors per zone append command */
88 unsigned int submit_queues; /* number of submission queues */
89 unsigned int prev_submit_queues; /* number of submission queues before change */
90 unsigned int poll_queues; /* number of IOPOLL submission queues */
91 unsigned int prev_poll_queues; /* number of IOPOLL submission queues before change */
92 unsigned int home_node; /* home node for the device */
116 struct nullb_device *dev; argument