Home
last modified time | relevance | path

Searched refs:dev_softc (Results 1 – 14 of 14) sorted by relevance

/freebsd/sys/dev/aic7xxx/
H A Dahc_pci.c124 ahc->dev_softc = dev; in ahc_pci_attach()
148 if (resource_int_value(device_get_name(ahc->dev_softc), in ahc_pci_map_registers()
149 device_get_unit(ahc->dev_softc), in ahc_pci_map_registers()
152 device_printf(ahc->dev_softc, "Defaulting to MEMIO "); in ahc_pci_map_registers()
167 regs = bus_alloc_resource_any(ahc->dev_softc, regs_type, in ahc_pci_map_registers()
178 device_printf(ahc->dev_softc, in ahc_pci_map_registers()
181 aic_get_pci_bus(ahc->dev_softc), in ahc_pci_map_registers()
182 aic_get_pci_slot(ahc->dev_softc), in ahc_pci_map_registers()
183 aic_get_pci_function(ahc->dev_softc)); in ahc_pci_map_registers()
184 bus_release_resource(ahc->dev_softc, regs_type, in ahc_pci_map_registers()
[all …]
H A Dahd_pci.c124 ahd->dev_softc = dev; in ahd_pci_attach()
152 if (resource_int_value(device_get_name(ahd->dev_softc), in ahd_pci_map_registers()
153 device_get_unit(ahd->dev_softc), in ahd_pci_map_registers()
156 device_printf(ahd->dev_softc, in ahd_pci_map_registers()
165 regs = bus_alloc_resource_any(ahd->dev_softc, regs_type, in ahd_pci_map_registers()
183 device_printf(ahd->dev_softc, in ahd_pci_map_registers()
186 aic_get_pci_bus(ahd->dev_softc), in ahd_pci_map_registers()
187 aic_get_pci_slot(ahd->dev_softc), in ahd_pci_map_registers()
188 aic_get_pci_function(ahd->dev_softc)); in ahd_pci_map_registers()
189 bus_release_resource(ahd->dev_softc, regs_typ in ahd_pci_map_registers()
[all...]
H A Daic79xx_pci.c342 device = aic_pci_read_config(ahd->dev_softc, in ahd_pci_config()
350 subvendor = aic_pci_read_config(ahd->dev_softc, in ahd_pci_config()
363 pci_find_cap(ahd->dev_softc, PCIY_PCIX, &ahd->pcix_ptr); in ahd_pci_config()
364 devconfig = aic_pci_read_config(ahd->dev_softc, DEVCONFIG, /*bytes*/4); in ahd_pci_config()
394 devconfig = aic_pci_read_config(ahd->dev_softc, in ahd_pci_config()
397 aic_pci_write_config(ahd->dev_softc, DEVCONFIG, in ahd_pci_config()
402 command = aic_pci_read_config(ahd->dev_softc, PCIR_COMMAND, /*bytes*/2); in ahd_pci_config()
404 aic_pci_write_config(ahd->dev_softc, PCIR_COMMAND, command, /*bytes*/2); in ahd_pci_config()
417 aic_pci_read_config(ahd->dev_softc, CSIZE_LATTIME, in ahd_pci_config()
467 cmd = aic_pci_read_config(ahd->dev_softc, PCIR_COMMAN in ahd_pci_test_register_access()
[all...]
H A Daic7xxx_pci.c811 devconfig = aic_pci_read_config(ahc->dev_softc, DEVCONFIG, /*bytes*/4); in ahc_pci_config()
829 aic_pci_write_config(ahc->dev_softc, DEVCONFIG, devconfig, /*bytes*/4); in ahc_pci_config()
832 command = aic_pci_read_config(ahc->dev_softc, PCIR_COMMAND, /*bytes*/2); in ahc_pci_config()
835 aic_pci_write_config(ahc->dev_softc, PCIR_COMMAND, command, /*bytes*/2); in ahc_pci_config()
917 aic_pci_read_config(ahc->dev_softc, CSIZE_LATTIME, in ahc_pci_config()
923 aic_pci_write_config(ahc->dev_softc, CSIZE_LATTIME, in ahc_pci_config()
935 devconfig = aic_pci_read_config(ahc->dev_softc, in ahc_pci_config()
1001 aic_pci_read_config(ahc->dev_softc, DEVCONFIG, /*bytes*/4); in ahc_pci_config()
1003 aic_pci_read_config(ahc->dev_softc, PCIR_COMMAND, /*bytes*/1); in ahc_pci_config()
1005 aic_pci_read_config(ahc->dev_softc, CSIZE_LATTIM in ahc_pci_config()
[all...]
H A Daic7xxx_osm.c93 bus_alloc_resource_any(ahc->dev_softc, SYS_RES_IRQ, &zero, in ahc_map_int()
96 device_printf(ahc->dev_softc, in ahc_map_int()
103 error = bus_setup_intr(ahc->dev_softc, ahc->platform_data->irq, in ahc_map_int()
108 device_printf(ahc->dev_softc, "bus_setup_intr() failed: %d\n", in ahc_map_int()
120 regs = bus_alloc_resource_any(ahc->dev_softc, SYS_RES_IOPORT, &rid, in aic7770_map_registers()
123 device_printf(ahc->dev_softc, "Unable to map I/O space?!\n"); in aic7770_map_registers()
191 device_get_unit(ahc->dev_softc), in ahc_attach()
198 if (xpt_bus_register(sim, ahc->dev_softc, bus_id) != CAM_SUCCESS) { in ahc_attach()
224 ahc, device_get_unit(ahc->dev_softc), in ahc_attach()
234 if (xpt_bus_register(sim2, ahc->dev_softc, bus_id in ahc_attach()
[all...]
H A Daic79xx_osm.c160 device_get_nameunit(ahd->dev_softc), in ahd_sysctl()
197 error = bus_setup_intr(ahd->dev_softc, ahd->platform_data->irq, in ahd_map_int()
201 device_printf(ahd->dev_softc, "bus_setup_intr() failed: %d\n", in ahd_map_int()
245 device_get_unit(ahd->dev_softc), in ahd_attach()
252 if (xpt_bus_register(sim, ahd->dev_softc, /*bus_id*/0) != CAM_SUCCESS) { in ahd_attach()
1289 bus_release_resource(ahd->dev_softc, in ahd_platform_free()
1295 bus_release_resource(ahd->dev_softc, in ahd_platform_free()
1301 bus_release_resource(ahd->dev_softc, in ahd_platform_free()
H A Dahc_isa.c271 ahc->dev_softc = dev; in ahc_isa_attach()
H A Daic_osm_lib.h400 return (pci_set_powerstate(aic->dev_softc, new_state)); in aic_power_state_change()
H A Daic7xxx.h978 aic_dev_softc_t dev_softc;
982 aic_dev_softc_t dev_softc; global() member
H A Daic79xx.h1136 aic_dev_softc_t dev_softc;
1140 aic_dev_softc_t dev_softc; global() member
H A Daic79xx.c5286 list_pci = list_ahd->dev_softc; in ahd_softc_insert()
5287 pci = ahd->dev_softc; in ahd_softc_insert()
5447 cmd = aic_pci_read_config(ahd->dev_softc, PCIR_COMMAND, /*bytes*/2); in ahd_reset()
5461 aic_pci_write_config(ahd->dev_softc, PCIR_COMMAND, in ahd_reset()
5489 aic_pci_write_config(ahd->dev_softc, PCIR_STATUS + 1, in ahd_reset()
5491 aic_pci_write_config(ahd->dev_softc, PCIR_COMMAND, in ahd_reset()
6269 resource_int_value(device_get_name(ahd->dev_softc), in ahd_init()
6270 device_get_unit(ahd->dev_softc), in ahd_init()
/freebsd/usr.sbin/bhyve/
H A Dvirtio.h411 void *dev_softc, struct pci_devinst *pi,
H A Dvirtio.c69 void *dev_softc, struct pci_devinst *pi, in vi_softc_linkup() argument
75 assert((void *)vs == dev_softc); in vi_softc_linkup()
/freebsd/sys/kern/
H A Dkern_devctl.c64 static struct dev_softc { struct