Lines Matching defs:port

125   int port;
183 grub_dprintf ("ahci", "found device ahci%d (port %d)\n", dev->num, dev->port);
185 dev->hba->ports[dev->port].command &= ~GRUB_AHCI_HBA_PORT_CMD_FRE;
187 while ((dev->hba->ports[dev->port].command & GRUB_AHCI_HBA_PORT_CMD_FR))
194 dev->hba->ports[dev->port].command &= ~GRUB_AHCI_HBA_PORT_CMD_ST;
196 while ((dev->hba->ports[dev->port].command & GRUB_AHCI_HBA_PORT_CMD_CR))
203 dev->hba->ports[dev->port].fbs = 2;
209 dev->hba->ports[dev->port].fis_base = grub_dma_get_phys (dev->rfis);
210 dev->hba->ports[dev->port].command_list_base
212 dev->hba->ports[dev->port].command |= GRUB_AHCI_HBA_PORT_CMD_FRE;
213 while (!(dev->hba->ports[dev->port].command & GRUB_AHCI_HBA_PORT_CMD_FR))
217 dev->hba->ports[dev->port].command &= ~GRUB_AHCI_HBA_PORT_CMD_FRE;
220 dev->hba->ports[dev->port].command |= GRUB_AHCI_HBA_PORT_CMD_ST;
221 while (!(dev->hba->ports[dev->port].command & GRUB_AHCI_HBA_PORT_CMD_CR))
225 dev->hba->ports[dev->port].command &= ~GRUB_AHCI_HBA_PORT_CMD_CR;
229 dev->hba->ports[dev->port].command
230 = (dev->hba->ports[dev->port].command & 0x0fffffff) | (1 << 28) | 2 | 4;
241 dev->hba->ports[dev->port].command &= ~GRUB_AHCI_HBA_PORT_CMD_FRE;
243 while ((dev->hba->ports[dev->port].command & GRUB_AHCI_HBA_PORT_CMD_FR))
376 adev->port = i;
409 dev->hba->ports[dev->port].command &= ~GRUB_AHCI_HBA_PORT_CMD_FRE;
411 while ((dev->hba->ports[dev->port].command & GRUB_AHCI_HBA_PORT_CMD_FR))
418 dev->hba->ports[dev->port].command &= ~GRUB_AHCI_HBA_PORT_CMD_ST;
420 while ((dev->hba->ports[dev->port].command & GRUB_AHCI_HBA_PORT_CMD_CR))
479 if (dev->hda->ports[dev->port].command_issue & (1 << i))
481 if (dev->hda->ports[dev->port].sata_active & (1 << i))
517 dev->hba->ports[dev->port].task_file_data);
519 if ((dev->hba->ports[dev->port].task_file_data & 0x80))
521 dev->hba->ports[dev->port].command &= ~GRUB_AHCI_HBA_PORT_CMD_ST;
523 while ((dev->hba->ports[dev->port].command & GRUB_AHCI_HBA_PORT_CMD_CR))
529 dev->hba->ports[dev->port].command |= GRUB_AHCI_HBA_PORT_CMD_ST;
531 while (!(dev->hba->ports[dev->port].command & GRUB_AHCI_HBA_PORT_CMD_CR))
539 dev->hba->ports[dev->port].sata_error = dev->hba->ports[dev->port].sata_error;
553 dev->hba->ports[dev->port].command |= 8;
556 dev->hba->ports[dev->port].task_file_data);
557 /* FIXME: support port multipliers. */
611 dev->hba->ports[dev->port].task_file_data);
612 dev->hba->ports[dev->port].inten = 0xffffffff;//(1 << 2) | (1 << 5);
613 dev->hba->ports[dev->port].intstatus = 0xffffffff;//(1 << 2) | (1 << 5);
615 dev->hba->ports[dev->port].task_file_data);
616 dev->hba->ports[dev->port].command_issue |= 1;
617 grub_dprintf ("ahci", "AHCI sig = %x\n", dev->hba->ports[dev->port].sig);
619 dev->hba->ports[dev->port].task_file_data);
622 while ((dev->hba->ports[dev->port].command_issue & 1))
626 dev->hba->ports[dev->port].command_issue,
627 dev->hba->ports[dev->port].intstatus,
628 dev->hba->ports[dev->port].task_file_data);
634 dev->hba->ports[dev->port].command_issue,
635 dev->hba->ports[dev->port].intstatus,
636 dev->hba->ports[dev->port].task_file_data,
638 dev->hba->ports[dev->port].sata_error,