Lines Matching refs:nexus

64 typedef struct nexus {
70 struct nexus *next;
81 nexus_t *nexus;
121 nexus_t *nexus;
123 for (nexus = nexus_list ; nexus != NULL ; nexus = nexus->next) {
124 if ((domain == nexus->domain) &&
125 (bus >= nexus->first_bus) && (bus <= nexus->last_bus)) {
126 return nexus;
144 nexus_t *nexus, *next;
146 for (nexus = nexus_list ; nexus != NULL ; nexus = next) {
147 next = nexus->next;
148 free(nexus->path);
149 free(nexus->dev_path);
150 free(nexus);
186 nexus_t *nexus = ((probe_args_t *)arg)->nexus;
211 pci_base->domain = nexus->domain;
216 if (nexus->domain > 0xffff)
219 pci_base->domain_16 = nexus->domain;
238 fprintf(stderr, "cannot get property \"%s\" for nexus = %s :\n",
239 property_list[i].name, nexus->path);
258 "nexus = %s, domain = %x, busno = %x, devno = %x, funcno = %x\n",
259 nexus->path, pci_base->domain, pci_base->bus, pci_base->dev, pci_base->func);
294 nexus_t *nexus;
392 nexus = calloc(1, sizeof(nexus_t));
393 if (nexus == NULL) {
394 (void) fprintf(stderr, "Error allocating memory for nexus: %s\n",
398 nexus->first_bus = first_bus;
399 nexus->last_bus = last_bus;
400 nexus->domain = domain;
408 (void) fprintf(stderr, "Error getting nexus path: %s\n",
410 free(nexus);
418 fprintf(stderr, "nexus = %s, bus-range = %d - %d\n",
425 nexus->path = strdup(nexus_path);
427 nexus->dev_path = strdup(nexus_dev_path);
432 args.nexus = nexus;
440 free(nexus->path);
441 free(nexus->dev_path);
442 free(nexus);
446 nexus->next = nexus_list;
447 nexus_list = nexus;
451 free(nexus);
533 nexus_t *nexus;
535 if ( (nexus = find_nexus_for_bus(dev->domain, dev->bus)) == NULL )
546 if ((rnode = di_init(nexus->dev_path, DINFOCACHE)) == DI_NODE_NIL) {
780 nexus_t *nexus;
783 nexus = find_nexus_for_bus(dev->domain, dev->bus);
787 if ( nexus == NULL ) {
799 if ((fd = open(nexus->path, O_RDWR | O_CLOEXEC)) < 0)
808 nexus->path,
840 nexus_t *nexus;
843 nexus = find_nexus_for_bus(dev->domain, dev->bus);
849 if ( nexus == NULL ) {
882 * If it is, it is also a nexus node???
884 * PCI nexus device for X86, so not applicable
889 if ((fd = open(nexus->path, O_RDWR | O_CLOEXEC)) < 0)