ahci_pread
mask = ahci_pread(ap, AHCI_PREG_CI);
mask |= ahci_pread(ap, AHCI_PREG_SACT);
r = ahci_pread(ap, AHCI_PREG_CMD);
s = ahci_pread(ap, AHCI_PREG_SERR);
is = ahci_pread(ap, AHCI_PREG_IS);
tfd = ahci_pread(ap, AHCI_PREG_TFD);
r = ahci_pread(ap, AHCI_PREG_CMD) & ~AHCI_PREG_CMD_ICC;
cmd = ahci_pread(ap, AHCI_PREG_CMD) & ~AHCI_PREG_CMD_ICC;
AHCI_PFMT_CMD, ahci_pread(ap, AHCI_PREG_CMD));
if (ahci_pread(ap, AHCI_PREG_TFD) &
AHCI_PFMT_TFD_STS, ahci_pread(ap, AHCI_PREG_TFD));
if (ahci_pread(ap, AHCI_PREG_TFD) &
cmd = ahci_pread(ap, AHCI_PREG_FBS);
cmd = ahci_pread(ap, AHCI_PREG_CMD) & ~AHCI_PREG_CMD_ICC;
r = ahci_pread(ap, AHCI_PREG_SSTS);
AHCI_PFMT_TFD_STS, ahci_pread(ap, AHCI_PREG_TFD));
data = ahci_pread(ap, AHCI_PREG_SSTS);
cmd = ahci_pread(ap, AHCI_PREG_CMD);
cmd = ahci_pread(ap, AHCI_PREG_CMD);
r = ahci_pread(ap, AHCI_PREG_SERR);
sig = ahci_pread(ap, AHCI_PREG_SIG);
AHCI_PFMT_CMD, ahci_pread(ap, AHCI_PREG_CMD),
AHCI_PFMT_TFD_STS, ahci_pread(ap, AHCI_PREG_TFD),
AHCI_PFMT_SERR, ahci_pread(ap, AHCI_PREG_SERR));
is = ahci_pread(ap, AHCI_PREG_IS);
ci_saved = ahci_pread(ap, AHCI_PREG_SACT);
ci_saved = ahci_pread(ap, AHCI_PREG_CI);
ap->ap_active, ahci_pread(ap, AHCI_PREG_CI),
ap->ap_sactive, ahci_pread(ap, AHCI_PREG_SACT));
tfd = ahci_pread(ap, AHCI_PREG_TFD);
serr = ahci_pread(ap, AHCI_PREG_SERR);
err_slot = AHCI_PREG_CMD_CCS(ahci_pread(ap, AHCI_PREG_CMD));
tfd = ahci_pread(ap, AHCI_PREG_TFD);
cmd = ahci_pread(ap, AHCI_PREG_CMD);
ahci_pread(ap, AHCI_PREG_CMD));
data = ahci_pread(ap, AHCI_PREG_SNTF);
u_int32_t serr = ahci_pread(ap, AHCI_PREG_SERR);
switch (ahci_pread(ap, AHCI_PREG_SSTS) & AHCI_PREG_SSTS_DET) {
serr = ahci_pread(ap, AHCI_PREG_SERR);
cmd = ahci_pread(ap, AHCI_PREG_CMD);
(ahci_pread(ap, AHCI_PREG_SCTL) & AHCI_PREG_SCTL_DET)) {
sact = ahci_pread(ap, AHCI_PREG_SACT);
ci = ahci_pread(ap, AHCI_PREG_CI);
sact = ahci_pread(ap, AHCI_PREG_SACT);
ci = ahci_pread(ap, AHCI_PREG_CI);
cmd = ahci_pread(ap, AHCI_PREG_CMD) & ~AHCI_PREG_CMD_ICC;
if ((ahci_pread(ap, r) & mask) == target)
if ((ahci_pread(ap, r) & mask) == target)
AHCI_PFMT_CMD, ahci_pread(ap, AHCI_PREG_CMD),
AHCI_PFMT_IS, ahci_pread(ap, AHCI_PREG_IS),
ahci_pread(ap, AHCI_PREG_SACT),
ahci_pread(ap, AHCI_PREG_CI),
AHCI_PFMT_TFD_STS, ahci_pread(ap, AHCI_PREG_TFD)
if ((ahci_pread(ap, AHCI_PREG_CMD) & AHCI_PREG_CMD_ST) &&
ci_saved = (ap->ap_sactive) ? ahci_pread(ap, AHCI_PREG_SACT) :
ahci_pread(ap, AHCI_PREG_CI);
if (ahci_pread(ap, AHCI_PREG_TFD) &
cmd = ahci_pread(ap, AHCI_PREG_CMD) & ~AHCI_PREG_CMD_ICC;
sctl = ahci_pread(ap, AHCI_PREG_SCTL);
cmd = ahci_pread(ap, AHCI_PREG_CMD);
sctl = ahci_pread(ap, AHCI_PREG_SCTL);
cmd = ahci_pread(ap, AHCI_PREG_CMD);
cmd = ahci_pread(ap, AHCI_PREG_CMD);
sctl = ahci_pread(ap, AHCI_PREG_SCTL);
r = ahci_pread(ap, AHCI_PREG_SSTS);
ahci_pwrite(ap, AHCI_PREG_IS, ahci_pread(ap, AHCI_PREG_IS));
u_int32_t ahci_pread(struct ahci_port *, bus_size_t);
switch(ahci_pread(ap, AHCI_PREG_SSTS) &
fbs = ahci_pread(ap, AHCI_PREG_FBS);
fbs = ahci_pread(ap, AHCI_PREG_FBS);
AHCI_PFMT_TFD_STS, ahci_pread(ap, AHCI_PREG_TFD));
AHCI_PFMT_TFD_STS, ahci_pread(ap, AHCI_PREG_TFD));
fbs = ahci_pread(ap, AHCI_PREG_FBS);
cmd = ahci_pread(ap, AHCI_PREG_CMD) & ~AHCI_PREG_CMD_ICC;
cmd = ahci_pread(ap, AHCI_PREG_CMD) & ~AHCI_PREG_CMD_ICC;