Lines Matching refs:device
37 struct dasd_device *device; in dasd_devices_show() local
41 device = dasd_device_from_devindex((unsigned long) v - 1); in dasd_devices_show()
42 if (IS_ERR(device)) in dasd_devices_show()
44 if (device->block) in dasd_devices_show()
45 block = device->block; in dasd_devices_show()
47 dasd_put_device(device); in dasd_devices_show()
51 seq_printf(m, "%s", dev_name(&device->cdev->dev)); in dasd_devices_show()
53 if (device->discipline != NULL) in dasd_devices_show()
54 seq_printf(m, "(%s)", device->discipline->name); in dasd_devices_show()
70 substr = (device->features & DASD_FEATURE_READONLY) ? "(ro)" : " "; in dasd_devices_show()
73 switch (device->state) { in dasd_devices_show()
102 dasd_put_device(device); in dasd_devices_show()
150 struct dasd_device *device; in dasd_stats_all_block_on() local
154 device = dasd_device_from_devindex(i); in dasd_stats_all_block_on()
155 if (IS_ERR(device)) in dasd_stats_all_block_on()
157 if (device->block) in dasd_stats_all_block_on()
158 rc = dasd_profile_on(&device->block->profile); in dasd_stats_all_block_on()
159 dasd_put_device(device); in dasd_stats_all_block_on()
169 struct dasd_device *device; in dasd_stats_all_block_off() local
172 device = dasd_device_from_devindex(i); in dasd_stats_all_block_off()
173 if (IS_ERR(device)) in dasd_stats_all_block_off()
175 if (device->block) in dasd_stats_all_block_off()
176 dasd_profile_off(&device->block->profile); in dasd_stats_all_block_off()
177 dasd_put_device(device); in dasd_stats_all_block_off()
184 struct dasd_device *device; in dasd_stats_all_block_reset() local
187 device = dasd_device_from_devindex(i); in dasd_stats_all_block_reset()
188 if (IS_ERR(device)) in dasd_stats_all_block_reset()
190 if (device->block) in dasd_stats_all_block_reset()
191 dasd_profile_reset(&device->block->profile); in dasd_stats_all_block_reset()
192 dasd_put_device(device); in dasd_stats_all_block_reset()