Lines Matching refs:device
38 struct dasd_device *device; in dasd_devices_show() local
42 device = dasd_device_from_devindex((unsigned long) v - 1); in dasd_devices_show()
43 if (IS_ERR(device)) in dasd_devices_show()
45 if (device->block) in dasd_devices_show()
46 block = device->block; in dasd_devices_show()
48 dasd_put_device(device); in dasd_devices_show()
52 seq_printf(m, "%s", dev_name(&device->cdev->dev)); in dasd_devices_show()
54 if (device->discipline != NULL) in dasd_devices_show()
55 seq_printf(m, "(%s)", device->discipline->name); in dasd_devices_show()
71 substr = (device->features & DASD_FEATURE_READONLY) ? "(ro)" : " "; in dasd_devices_show()
74 switch (device->state) { in dasd_devices_show()
103 dasd_put_device(device); in dasd_devices_show()
138 struct dasd_device *device; in dasd_stats_all_block_on() local
142 device = dasd_device_from_devindex(i); in dasd_stats_all_block_on()
143 if (IS_ERR(device)) in dasd_stats_all_block_on()
145 if (device->block) in dasd_stats_all_block_on()
146 rc = dasd_profile_on(&device->block->profile); in dasd_stats_all_block_on()
147 dasd_put_device(device); in dasd_stats_all_block_on()
157 struct dasd_device *device; in dasd_stats_all_block_off() local
160 device = dasd_device_from_devindex(i); in dasd_stats_all_block_off()
161 if (IS_ERR(device)) in dasd_stats_all_block_off()
163 if (device->block) in dasd_stats_all_block_off()
164 dasd_profile_off(&device->block->profile); in dasd_stats_all_block_off()
165 dasd_put_device(device); in dasd_stats_all_block_off()
172 struct dasd_device *device; in dasd_stats_all_block_reset() local
175 device = dasd_device_from_devindex(i); in dasd_stats_all_block_reset()
176 if (IS_ERR(device)) in dasd_stats_all_block_reset()
178 if (device->block) in dasd_stats_all_block_reset()
179 dasd_profile_reset(&device->block->profile); in dasd_stats_all_block_reset()
180 dasd_put_device(device); in dasd_stats_all_block_reset()