Lines Matching defs:drive
10 static int smart_enable(ide_drive_t *drive)
23 return ide_no_data_taskfile(drive, &cmd);
26 static int get_smart_data(ide_drive_t *drive, u8 *buf, u8 sub_cmd)
41 return ide_raw_taskfile(drive, &cmd, buf, 1);
46 ide_drive_t *drive = (ide_drive_t *) m->private;
48 if (drive->dev_flags & IDE_DFLAG_ID_READ)
49 seq_printf(m, "%i\n", drive->id[ATA_ID_BUF_SIZE] / 2);
57 ide_drive_t*drive = (ide_drive_t *)m->private;
59 seq_printf(m, "%llu\n", (long long)ide_gd_capacity(drive));
63 static int __idedisk_proc_show(struct seq_file *m, ide_drive_t *drive, u8 sub_cmd)
71 (void)smart_enable(drive);
73 if (get_smart_data(drive, buf, sub_cmd) == 0) {