ahci_pread
r = ahci_pread(ap, SXIAHCI_PREG_DMA);
extern u_int32_t ahci_pread(struct ahci_port *, bus_size_t);
cmd = ahci_pread(ap, AHCI_PREG_CMD) & ~AHCI_PREG_CMD_ICC;
if (ISSET(ahci_pread(ap, AHCI_PREG_TFD), AHCI_PREG_TFD_STS_BSY |
ahci_pwrite(ap, AHCI_PREG_SERR, ahci_pread(ap, AHCI_PREG_SERR));
PORTNAME(ap), ahci_pread(ap, AHCI_PREG_TFD),
r = ahci_pread(ap, AHCI_PREG_SERR);
mask = ahci_pread(ap, AHCI_PREG_CI);
mask |= ahci_pread(ap, AHCI_PREG_SACT);
u_int32_t ahci_pread(struct ahci_port *, bus_size_t);
sig = ahci_pread(ap, AHCI_PREG_SIG);
cmd = ahci_pread(ap, AHCI_PREG_CMD) & ~AHCI_PREG_CMD_ICC;
ap->ap_saved_cmd = ahci_pread(ap, AHCI_PREG_CMD) & ~AHCI_PREG_CMD_ICC;
if ((ahci_pread(ap, AHCI_PREG_SSTS) & AHCI_PREG_SSTS_DET) !=
if (ahci_pread(ap, AHCI_PREG_SSTS) & AHCI_PREG_SSTS_DET) {
ahci_pwrite(ap, AHCI_PREG_SERR, ahci_pread(ap, AHCI_PREG_SERR));
cmd = ahci_pread(ap, AHCI_PREG_CMD) & ~AHCI_PREG_CMD_ICC;
r = ahci_pread(ap, AHCI_PREG_SERR);
r = ahci_pread(ap, AHCI_PREG_SERR);
r = ahci_pread(ap, AHCI_PREG_SERR);
cmd = ahci_pread(ap, AHCI_PREG_CMD) & ~AHCI_PREG_CMD_ICC;
is = ahci_pread(ap, AHCI_PREG_IS);
ci_saved = ahci_pread(ap, AHCI_PREG_SACT);
ci_saved = ahci_pread(ap, AHCI_PREG_CI);
tfd = ahci_pread(ap, AHCI_PREG_TFD);
cmd = ahci_pread(ap, AHCI_PREG_CMD);
serr = ahci_pread(ap, AHCI_PREG_SERR);
tfd = ahci_pread(ap, AHCI_PREG_TFD);
serr = ahci_pread(ap, AHCI_PREG_SERR);
err_slot = AHCI_PREG_CMD_CCS(ahci_pread(ap,
is = ahci_pread(ap, AHCI_PREG_IS);
slot = AHCI_PREG_CMD_CCS(ahci_pread(ap, AHCI_PREG_CMD));
sact = ahci_pread(ap, AHCI_PREG_SACT);
KASSERT(ahci_pread(ap, AHCI_PREG_CI) == 0);
sact = ahci_pread(ap, AHCI_PREG_SACT);
KASSERT(ahci_pread(ap, AHCI_PREG_CI) == 0);
sact = ahci_pread(ap, AHCI_PREG_SACT);
KASSERT(ahci_pread(ap, AHCI_PREG_CI) == 0);
sact = ahci_pread(ap, AHCI_PREG_SACT);
KASSERT(ahci_pread(ap, AHCI_PREG_CI) == 0);
cmd = ahci_pread(ap, AHCI_PREG_CMD) & ~AHCI_PREG_CMD_ICC;
if ((ahci_pread(ap, r) & mask) == target)
} else if (!ISSET(ahci_pread(ap, ncq_cmd ? AHCI_PREG_SACT :
is = ahci_pread(ap, AHCI_PREG_IS);
ci_saved = ahci_pread(ap, AHCI_PREG_CI);
tfd = ahci_pread(ap, AHCI_PREG_TFD);
cmd = ahci_pread(ap, AHCI_PREG_CMD);
cmd = ahci_pread(my->ap, AHCI_PREG_CMD) & ~AHCI_PREG_CMD_ICC;
cmd = ahci_pread(my->ap, AHCI_PREG_CMD) & ~AHCI_PREG_CMD_ICC;
ahci_pwrite(my->ap, AHCI_PREG_IS, ahci_pread(my->ap,
cmd = ahci_pread(ap, AHCI_PREG_CMD);
ISSET(ahci_pread(ap, AHCI_PREG_SCTL), AHCI_PREG_SCTL_DET)) {
cmd = ahci_pread(ap, AHCI_PREG_CMD) & ~AHCI_PREG_CMD_ICC;
cmd = ahci_pread(ap, AHCI_PREG_CMD) & ~AHCI_PREG_CMD_ICC;
switch (ahci_pread(ap, AHCI_PREG_SSTS) & AHCI_PREG_SSTS_DET) {
ahci_pread(ap, AHCI_PREG_TFD), AHCI_PFMT_TFD_STS);
switch(ahci_pread(ap, AHCI_PREG_SSTS) & AHCI_PREG_SSTS_SPD) {
ahci_pwrite(ap, AHCI_PREG_IS, ahci_pread(ap, AHCI_PREG_IS));
ahci_pwrite(ap, AHCI_PREG_IS, ahci_pread(ap, AHCI_PREG_IS));
cmd = ahci_pread(ap, AHCI_PREG_CMD);
ISSET(ahci_pread(ap, AHCI_PREG_SCTL), AHCI_PREG_SCTL_DET)) {
cmd = ahci_pread(ap, AHCI_PREG_CMD) & ~AHCI_PREG_CMD_ICC;
cmd = ahci_pread(ap, AHCI_PREG_CMD) & ~AHCI_PREG_CMD_ICC;
switch (ahci_pread(ap, AHCI_PREG_SSTS) & AHCI_PREG_SSTS_DET) {
ahci_pread(ap, AHCI_PREG_TFD), AHCI_PFMT_TFD_STS);
ahci_pwrite(ap, AHCI_PREG_IS, ahci_pread(ap, AHCI_PREG_IS));
r = ahci_pread(ap, AHCI_PREG_CMD) & ~AHCI_PREG_CMD_ICC;
r = ahci_pread(ap, AHCI_PREG_CMD) & ~AHCI_PREG_CMD_ICC;
cmd = ahci_pread(ap, AHCI_PREG_CMD) & ~AHCI_PREG_CMD_ICC;