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