Lines Matching refs:ret

27     int busses = 0, devices = 0, lines = 0, devfn, ret;  in pci_list()  local
40 ret = pci_read_config_half(&state, PCI_CONFIG_VENDOR_ID, &vendor_id); in pci_list()
41 if (ret != _PCI_SUCCESSFUL) goto error; in pci_list()
43 ret = pci_read_config_half(&state, PCI_CONFIG_DEVICE_ID, &device_id); in pci_list()
44 if (ret != _PCI_SUCCESSFUL) goto error; in pci_list()
46 ret = pci_read_config_byte(&state, PCI_CONFIG_HEADER_TYPE, &header_type); in pci_list()
47 if (ret != _PCI_SUCCESSFUL) goto error; in pci_list()
49 ret = pci_read_config_byte(&state, PCI_CONFIG_CLASS_CODE_BASE, &base_class); in pci_list()
50 if (ret != _PCI_SUCCESSFUL) goto error; in pci_list()
52 ret = pci_read_config_byte(&state, PCI_CONFIG_CLASS_CODE_SUB, &sub_class); in pci_list()
53 if (ret != _PCI_SUCCESSFUL) goto error; in pci_list()
55 ret = pci_read_config_byte(&state, PCI_CONFIG_CLASS_CODE_INTR, &interface); in pci_list()
56 if (ret != _PCI_SUCCESSFUL) goto error; in pci_list()
89 printf("Error while reading PCI config space: %02x\n", ret); in pci_list()
101 int ret; in pci_config() local
112 ret = pci_read_config_byte(&loc, i, (uint8_t *) &config + i); in pci_config()
113 if (ret != _PCI_SUCCESSFUL) goto error; in pci_config()
138 ret = pci_read_config_byte(&loc, offset, &value); in pci_config()
139 if (ret != _PCI_SUCCESSFUL) goto error; in pci_config()
147 ret = pci_read_config_half(&loc, offset, &value); in pci_config()
148 if (ret != _PCI_SUCCESSFUL) goto error; in pci_config()
156 ret = pci_read_config_word(&loc, offset, &value); in pci_config()
157 if (ret != _PCI_SUCCESSFUL) goto error; in pci_config()
175 ret = pci_write_config_byte(&loc, offset, value); in pci_config()
176 if (ret != _PCI_SUCCESSFUL) goto error; in pci_config()
184 ret = pci_write_config_half(&loc, offset, value); in pci_config()
185 if (ret != _PCI_SUCCESSFUL) goto error; in pci_config()
193 ret = pci_write_config_word(&loc, offset, value); in pci_config()
194 if (ret != _PCI_SUCCESSFUL) goto error; in pci_config()
207 printf("Error while reading PCI config space: %02x\n", ret); in pci_config()