Lines Matching refs:port

173     AHCIPort		*port[AHCI_MAX_PORTS];
234 AHCI_DumpPort(AHCI *ahci, int port)
236 volatile AHCIPort *p = ahci->port[port];
238 kprintf("Port %d\n", port);
254 AHCI_IssueCommand(AHCI *ahci, int port, SGArray *sga, void *cfis, int len)
257 volatile AHCICommandList *cl = ahci->clst[port];
258 volatile AHCICommandTable *ct = ahci->ctbl[port][0];
259 volatile AHCIPort *p = ahci->port[port];
285 AHCI_WaitPort(AHCI *ahci, int port)
287 volatile AHCIPort *p = ahci->port[port];
299 AHCI_IdentifyPort(AHCI *ahci, int port)
301 volatile AHCIPort *p = ahci->port[port];
318 AHCI_IssueCommand(ahci, port, &sga, &fis, sizeof(fis));
319 kprintf("AHCI: Identify Issued Port %d\n", port);
320 AHCI_WaitPort(ahci, port);
322 kprintf("AHCI: Identify Succeeded Port %d\n", port);
324 AHCI_DumpPort(ahci, port);
332 AHCI_ResetPort(AHCI *ahci, int port)
334 volatile AHCIPort *p = ahci->port[port];
348 kprintf("AHCI: failed to reset port %d\n", port);
364 // Check port
367 kprintf("AHCI: Device not present on port %d\n", port);
371 kprintf("AHCI: Phys communication not established on port %d\n", port);
375 kprintf("AHCI: Port %d not enabled\n", port);
379 AHCI_IdentifyPort(ahci, port);
385 int port;
405 for (port = 0; port < AHCI_MAX_PORTS; port++)
407 if (ahci->port[port] != 0) {
408 AHCI_ResetPort(ahci, port);
480 ahci->port[p] = (AHCIPort *)(uintptr_t)(dev.bars[AHCI_ABAR].base +
483 ahci->port[p] = 0;
490 volatile AHCIPort *port = ahci->port[p];
491 if (port != 0) {
504 port->clba = (uint64_t)ahci->clst[p];
509 port->fb = (uint64_t)ahci->rfis[p];