Lines Matching refs:cmd
1982 u16 cmd; in do_pci_enable_device() local
2003 pci_read_config_word(dev, PCI_COMMAND, &cmd); in do_pci_enable_device()
2004 if (cmd & PCI_COMMAND_INTX_DISABLE) in do_pci_enable_device()
2006 cmd & ~PCI_COMMAND_INTX_DISABLE); in do_pci_enable_device()
4471 u16 old_cmd, cmd; in __pci_set_master() local
4475 cmd = old_cmd | PCI_COMMAND_MASTER; in __pci_set_master()
4477 cmd = old_cmd & ~PCI_COMMAND_MASTER; in __pci_set_master()
4478 if (cmd != old_cmd) { in __pci_set_master()
4481 pci_write_config_word(dev, PCI_COMMAND, cmd); in __pci_set_master()
4601 u16 cmd; in pci_set_mwi()
4607 pci_read_config_word(dev, PCI_COMMAND, &cmd); in pci_set_mwi()
4608 if (!(cmd & PCI_COMMAND_INVALIDATE)) { in pci_set_mwi()
4610 cmd |= PCI_COMMAND_INVALIDATE; in pci_set_mwi()
4611 pci_write_config_word(dev, PCI_COMMAND, cmd); in pci_set_mwi()
4667 u16 cmd; in pci_clear_mwi() local
4669 pci_read_config_word(dev, PCI_COMMAND, &cmd); in pci_clear_mwi()
4670 if (cmd & PCI_COMMAND_INVALIDATE) { in pci_clear_mwi()
4671 cmd &= ~PCI_COMMAND_INVALIDATE; in pci_clear_mwi()
4672 pci_write_config_word(dev, PCI_COMMAND, cmd); in pci_clear_mwi()
4686 u16 cmd; in pci_disable_parity() local
4688 pci_read_config_word(dev, PCI_COMMAND, &cmd); in pci_disable_parity()
4689 if (cmd & PCI_COMMAND_PARITY) { in pci_disable_parity()
4690 cmd &= ~PCI_COMMAND_PARITY; in pci_disable_parity()
4691 pci_write_config_word(dev, PCI_COMMAND, cmd); in pci_disable_parity()
6138 u16 cmd; in pcix_get_mmrbc() local
6144 if (pci_read_config_word(dev, cap + PCI_X_CMD, &cmd)) in pcix_get_mmrbc()
6147 return 512 << ((cmd & PCI_X_CMD_MAX_READ) >> 2); in pcix_get_mmrbc()
6164 u16 cmd; in pcix_set_mmrbc() local
6181 if (pci_read_config_word(dev, cap + PCI_X_CMD, &cmd)) in pcix_set_mmrbc()
6184 o = (cmd & PCI_X_CMD_MAX_READ) >> 2; in pcix_set_mmrbc()
6189 cmd &= ~PCI_X_CMD_MAX_READ; in pcix_set_mmrbc()
6190 cmd |= v << 2; in pcix_set_mmrbc()
6191 if (pci_write_config_word(dev, cap + PCI_X_CMD, cmd)) in pcix_set_mmrbc()
6531 u16 cmd; in pci_set_vga_state() local
6542 pci_read_config_word(dev, PCI_COMMAND, &cmd); in pci_set_vga_state()
6544 cmd |= command_bits; in pci_set_vga_state()
6546 cmd &= ~command_bits; in pci_set_vga_state()
6547 pci_write_config_word(dev, PCI_COMMAND, cmd); in pci_set_vga_state()
6558 &cmd); in pci_set_vga_state()
6560 cmd |= PCI_BRIDGE_CTL_VGA; in pci_set_vga_state()
6562 cmd &= ~PCI_BRIDGE_CTL_VGA; in pci_set_vga_state()
6564 cmd); in pci_set_vga_state()