• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/ide/

Lines Matching defs:drive

191 	 * + _their_ children == drive objects */
201 * do_drive_get_GTF - get the drive bootup default taskfile settings
202 * @drive: the drive for which the taskfile settings should be retrieved
215 static int do_drive_get_GTF(ide_drive_t *drive,
228 if (!drive->acpidata->obj_handle) {
229 DEBPRINT("No ACPI object found for %s\n", drive->name);
239 status = acpi_evaluate_object(drive->acpidata->obj_handle, "_GTF",
288 * do_drive_set_taskfiles - write the drive taskfile settings from _GTF
289 * @drive: the drive to which the taskfile command should be sent
296 static int do_drive_set_taskfiles(ide_drive_t *drive,
328 err = ide_no_data_taskfile(drive, &cmd);
340 * ide_acpi_exec_tfs - get then write drive taskfile settings
341 * @drive: the drive for which the taskfile settings should be
351 int ide_acpi_exec_tfs(ide_drive_t *drive)
358 DEBPRINT("call get_GTF, drive=%s port=%d\n", drive->name, drive->dn);
360 ret = do_drive_get_GTF(drive, &gtf_length, &gtf_address, &obj_loc);
366 DEBPRINT("call set_taskfiles, drive=%s\n", drive->name);
368 ret = do_drive_set_taskfiles(drive, gtf_length, gtf_address);
461 * Unfortunately drive->id is a mangled version which we can't readily
472 /* Give the GTM buffer + drive Identify data to the channel via the
507 ide_drive_t *drive;
519 ide_port_for_each_present_dev(i, drive, hwif) {
520 if (drive->acpidata->obj_handle)
521 acpi_bus_set_power(drive->acpidata->obj_handle,
533 * The ACPI spec is not quite clear when the drive identify buffer
535 * is not the best of ideas as the drive might already being put to
556 ide_drive_t *drive;
571 ide_port_for_each_present_dev(i, drive, hwif) {
575 drive->name, hwif->channel, drive->dn & 1);
579 drive->dn & 1);
581 DEBPRINT("drive %s handle 0x%p\n", drive->name, dev_handle);
583 drive->acpidata->obj_handle = dev_handle;
587 ide_port_for_each_present_dev(i, drive, hwif) {
588 err = taskfile_lib_get_identify(drive, drive->acpidata->idbuff);
591 drive->name, err);
607 ide_port_for_each_present_dev(i, drive, hwif) {
608 ide_acpi_exec_tfs(drive);