Lines Matching refs:cmd
36 struct pci_cmd_info *cmd = kmalloc(sizeof(*cmd), GFP_KERNEL); in command_init() local
39 if (!cmd) in command_init()
42 err = pci_read_config_word(dev, PCI_COMMAND, &cmd->val); in command_init()
44 kfree(cmd); in command_init()
48 return cmd; in command_init()
54 const struct pci_cmd_info *cmd = data; in command_read() local
57 *value |= cmd->val & ~PCI_COMMAND_GUEST; in command_read()
67 struct pci_cmd_info *cmd = data; in command_write() local
92 if (!(cmd->val & PCI_COMMAND_INVALIDATE) && in command_write()
101 } else if ((cmd->val & PCI_COMMAND_INVALIDATE) && in command_write()
108 ((cmd->val ^ value) & PCI_COMMAND_INTX_DISABLE)) in command_write()
111 cmd->val = value; in command_write()