Lines Matching refs:p

236     volatile AHCIPort *p = ahci->port[port];
239 kprintf("CLBA: 0x%016llx\n", p->clba);
240 kprintf("FB: 0x%016llx\n", p->fb);
241 kprintf("IS: 0x%08x\n", p->is);
242 kprintf("IE: 0x%08x\n", p->ie);
243 kprintf("CMD: 0x%08x\n", p->cmd);
244 kprintf("TFD: 0x%08x\n", p->tfd);
245 kprintf("SIG: 0x%08x\n", p->sig);
246 kprintf("SSTS: 0x%08x\n", p->ssts);
247 kprintf("SCTL: 0x%08x\n", p->sctl);
248 kprintf("SERR: 0x%08x\n", p->serr);
249 kprintf("SACT: 0x%08x\n", p->sact);
250 kprintf("CI: 0x%08x\n", p->ci);
259 volatile AHCIPort *p = ahci->port[port];
279 p->ci = 1;
287 volatile AHCIPort *p = ahci->port[port];
289 uint32_t tfd = p->tfd & AHCIPORT_TFD_BSY;
290 if ((tfd == 0) && (p->ci == 0)) {
301 volatile AHCIPort *p = ahci->port[port];
306 kprintf("AHCI: Signature %08x\n", p->sig);
334 volatile AHCIPort *p = ahci->port[port];
335 uint32_t cmd = p->cmd;
344 p->cmd = cmd;
346 cmd = p->cmd;
354 p->is = 0xFFFFFFFF;
355 p->is = 0x00000000;
358 p->serr = 0xFFFFFFFF;
359 p->serr = 0x00000000;
361 p->cmd |= AHCIPORT_CMD_FRE | AHCIPORT_CMD_ST | AHCIPORT_CMD_SUD |
365 uint32_t ssts = p->ssts;
475 int p;
476 for (p = 0; p < AHCI_MAX_PORTS; p++)
478 if (ports & (1 << p))
480 ahci->port[p] = (AHCIPort *)(uintptr_t)(dev.bars[AHCI_ABAR].base +
481 AHCI_PORT_OFFSET + AHCI_PORT_LENGTH * p);
483 ahci->port[p] = 0;
488 for (p = 0; p < AHCI_MAX_PORTS; p++)
490 volatile AHCIPort *port = ahci->port[p];
495 ahci->ctbl[p][c] = (AHCICommandTable *)PAlloc_AllocPage();
496 memset(ahci->ctbl[p][c], 0, sizeof(AHCICommandTable));
498 ahci->clst[p]->cmds[c].ctba = (uint64_t)ahci->ctbl[p][c];
501 ahci->clst[p] = (AHCICommandList *)PAlloc_AllocPage();
502 memset(ahci->clst[p], 0, sizeof(AHCICommandList));
504 port->clba = (uint64_t)ahci->clst[p];
506 ahci->rfis[p] = (AHCIRecvFIS *)PAlloc_AllocPage();
507 memset(ahci->rfis[p], 0, sizeof(AHCIRecvFIS));
509 port->fb = (uint64_t)ahci->rfis[p];