Lines Matching defs:coff
906 * This function assumes that 'coff' is in the capabilities region of the
1291 int coff, idx, needcfg;
1301 coff = cfgoff + (port - CONF1_DATA_PORT);
1305 in ? "read" : "write", coff, bytes, cfgbus, cfgslot, cfgfunc);
1312 if (pi == NULL || (coff & (bytes - 1)) != 0) {
1327 coff, bytes, eax);
1334 *eax = pci_get_cfgdata8(pi, coff);
1336 *eax = pci_get_cfgdata16(pi, coff);
1338 *eax = pci_get_cfgdata32(pi, coff);
1341 pci_emul_hdrtype_fixup(cfgslot, coff, bytes, eax);
1345 (*pe->pe_cfgwrite)(ctx, vcpu, pi, coff, bytes, *eax) == 0)
1351 if (coff >= PCIR_BAR(0) && coff < PCIR_BAR(PCI_BARMAX + 1)) {
1356 if (bytes != 4 || (coff & 0x3) != 0)
1358 idx = (coff - PCIR_BAR(0)) / 4;
1405 pci_set_cfgdata32(pi, coff, bar);
1407 } else if (pci_emul_iscap(pi, coff)) {
1408 pci_emul_capwrite(pi, coff, bytes, *eax);
1409 } else if (coff == PCIR_COMMAND) {
1412 CFGWRITE(pi, coff, *eax, bytes);