Lines Matching refs:behavior
329 const struct pci_bridge_reg_behavior *behavior; in pci_bridge_emul_conf_read() local
345 behavior = bridge->pcie_cap_regs_behavior; in pci_bridge_emul_conf_read()
349 behavior = bridge->pci_regs_behavior; in pci_bridge_emul_conf_read()
364 *value &= behavior[reg / 4].ro | behavior[reg / 4].rw | in pci_bridge_emul_conf_read()
365 behavior[reg / 4].w1c; in pci_bridge_emul_conf_read()
391 const struct pci_bridge_reg_behavior *behavior; in pci_bridge_emul_conf_write() local
418 behavior = bridge->pcie_cap_regs_behavior; in pci_bridge_emul_conf_write()
422 behavior = bridge->pci_regs_behavior; in pci_bridge_emul_conf_write()
426 new = old & (~mask | ~behavior[reg / 4].rw); in pci_bridge_emul_conf_write()
429 new |= (value << shift) & (behavior[reg / 4].rw & mask); in pci_bridge_emul_conf_write()
432 new &= ~((value << shift) & (behavior[reg / 4].w1c & mask)); in pci_bridge_emul_conf_write()
441 new &= ~(behavior[reg / 4].w1c & ~mask); in pci_bridge_emul_conf_write()
447 new |= (value << shift) & (behavior[reg / 4].w1c & mask); in pci_bridge_emul_conf_write()