Lines Matching refs:dev
56 uint8_t dev; member
106 #define MAPPING_DEV_PATH(dev) (((struct pci_device_private *) dev)->device_string) argument
129 static int pci_device_solx_devfs_map_range(struct pci_device *dev,
132 static int pci_device_solx_devfs_read_rom( struct pci_device * dev,
135 static int pci_device_solx_devfs_probe( struct pci_device * dev );
137 static int pci_device_solx_devfs_read( struct pci_device * dev, void * data,
140 static int pci_device_solx_devfs_write( struct pci_device * dev,
173 find_nexus_for_dev(struct pci_device *dev) in find_nexus_for_dev() argument
180 if (nexus->devlist[i] == dev) in find_nexus_for_dev()
232 struct pci_device *dev; in pci_system_solx_devfs_destroy() local
236 dev = nexus->devlist[i]; in pci_system_solx_devfs_destroy()
237 if (MAPPING_DEV_PATH(dev)) in pci_system_solx_devfs_destroy()
238 di_devfs_path_free((char *) MAPPING_DEV_PATH(dev)); in pci_system_solx_devfs_destroy()
482 pci_base->dev = prg_p->dev_no; in probe_dev()
744 uint8_t dev; in do_probe() local
772 for (dev = first_dev; ((dev <= last_dev) && (rval == 0)); dev++) { in do_probe()
773 prg.dev_no = dev; in do_probe()
839 (devno == devnode->dev) && in find_target_node()
853 pci_device_solx_devfs_probe( struct pci_device * dev ) in pci_device_solx_devfs_probe() argument
866 if ( (nexus = find_nexus_for_dev(dev)) == NULL ) in pci_device_solx_devfs_probe()
868 if ( (nexus = find_nexus_for_bus(dev->domain, dev->bus)) == NULL ) in pci_device_solx_devfs_probe()
880 args.bus = dev->bus; in pci_device_solx_devfs_probe()
881 args.dev = dev->dev; in pci_device_solx_devfs_probe()
882 args.func = dev->func; in pci_device_solx_devfs_probe()
894 MAPPING_DEV_PATH(dev) = di_devfs_minor_path (minor); in pci_device_solx_devfs_probe()
896 MAPPING_DEV_PATH(dev) = NULL; in pci_device_solx_devfs_probe()
933 dev->rom_size = reg->pci_size_low; in pci_device_solx_devfs_probe()
941 dev->rom_size = 0x10000; in pci_device_solx_devfs_probe()
970 dev->regions[ent].is_prefetchable = 1; in pci_device_solx_devfs_probe()
978 dev->regions[ent].base_addr = reg->pci_phys_low + in pci_device_solx_devfs_probe()
980 dev->regions[ent].size = reg->pci_size_low + in pci_device_solx_devfs_probe()
985 dev->regions[ent].is_IO = 1; in pci_device_solx_devfs_probe()
990 dev->regions[ent].is_64 = 1; in pci_device_solx_devfs_probe()
1009 pci_device_solx_devfs_read_rom( struct pci_device * dev, void * buffer ) in pci_device_solx_devfs_read_rom() argument
1014 .size = dev->rom_size, in pci_device_solx_devfs_read_rom()
1018 err = pci_device_solx_devfs_map_range(dev, &prom); in pci_device_solx_devfs_read_rom()
1020 (void) bcopy(prom.memory, buffer, dev->rom_size); in pci_device_solx_devfs_read_rom()
1022 if (munmap(prom.memory, dev->rom_size) == -1) { in pci_device_solx_devfs_read_rom()
1033 pci_device_solx_devfs_read( struct pci_device * dev, void * data, in pci_device_solx_devfs_read() argument
1043 nexus = find_nexus_for_dev(dev); in pci_device_solx_devfs_read()
1045 nexus = find_nexus_for_bus(dev->domain, dev->bus); in pci_device_solx_devfs_read()
1056 cfg_prg.bus_no = dev->bus; in pci_device_solx_devfs_read()
1057 cfg_prg.dev_no = dev->dev; in pci_device_solx_devfs_read()
1058 cfg_prg.func_no = dev->func; in pci_device_solx_devfs_read()
1091 pci_device_solx_devfs_write( struct pci_device * dev, const void * data, in pci_device_solx_devfs_write() argument
1101 nexus = find_nexus_for_dev(dev); in pci_device_solx_devfs_write()
1103 nexus = find_nexus_for_bus(dev->domain, dev->bus); in pci_device_solx_devfs_write()
1135 cfg_prg.bus_no = dev->bus; in pci_device_solx_devfs_write()
1136 cfg_prg.dev_no = dev->dev; in pci_device_solx_devfs_write()
1137 cfg_prg.func_no = dev->func; in pci_device_solx_devfs_write()
1169 pci_device_solx_devfs_map_range(struct pci_device *dev, in pci_device_solx_devfs_map_range() argument
1180 if (MAPPING_DEV_PATH(dev)) in pci_device_solx_devfs_map_range()
1181 snprintf(map_dev, sizeof (map_dev), "%s%s", "/devices", MAPPING_DEV_PATH(dev)); in pci_device_solx_devfs_map_range()