Searched refs:dev_softc (Results 1 - 15 of 15) sorted by relevance

/freebsd-12-stable/sys/dev/aic7xxx/
H A Dahc_pci.c127 ahc->dev_softc = dev;
151 if (resource_int_value(device_get_name(ahc->dev_softc),
152 device_get_unit(ahc->dev_softc),
155 device_printf(ahc->dev_softc, "Defaulting to MEMIO ");
171 regs = bus_alloc_resource_any(ahc->dev_softc, regs_type,
182 device_printf(ahc->dev_softc,
185 aic_get_pci_bus(ahc->dev_softc),
186 aic_get_pci_slot(ahc->dev_softc),
187 aic_get_pci_function(ahc->dev_softc));
188 bus_release_resource(ahc->dev_softc, regs_typ
[all...]
H A Dahd_pci.c129 ahd->dev_softc = dev;
157 if (resource_int_value(device_get_name(ahd->dev_softc),
158 device_get_unit(ahd->dev_softc),
161 device_printf(ahd->dev_softc,
171 regs = bus_alloc_resource_any(ahd->dev_softc, regs_type,
189 device_printf(ahd->dev_softc,
192 aic_get_pci_bus(ahd->dev_softc),
193 aic_get_pci_slot(ahd->dev_softc),
194 aic_get_pci_function(ahd->dev_softc));
195 bus_release_resource(ahd->dev_softc, regs_typ
[all...]
H A Daic79xx_pci.c349 device = aic_pci_read_config(ahd->dev_softc,
357 subvendor = aic_pci_read_config(ahd->dev_softc,
370 pci_find_cap(ahd->dev_softc, PCIY_PCIX, &ahd->pcix_ptr);
371 devconfig = aic_pci_read_config(ahd->dev_softc, DEVCONFIG, /*bytes*/4);
401 devconfig = aic_pci_read_config(ahd->dev_softc,
404 aic_pci_write_config(ahd->dev_softc, DEVCONFIG,
409 command = aic_pci_read_config(ahd->dev_softc, PCIR_COMMAND, /*bytes*/2);
411 aic_pci_write_config(ahd->dev_softc, PCIR_COMMAND, command, /*bytes*/2);
424 aic_pci_read_config(ahd->dev_softc, CSIZE_LATTIME,
474 cmd = aic_pci_read_config(ahd->dev_softc, PCIR_COMMAN
[all...]
H A Daic7xxx_pci.c820 devconfig = aic_pci_read_config(ahc->dev_softc, DEVCONFIG, /*bytes*/4);
839 aic_pci_write_config(ahc->dev_softc, DEVCONFIG, devconfig, /*bytes*/4);
842 command = aic_pci_read_config(ahc->dev_softc, PCIR_COMMAND, /*bytes*/2);
845 aic_pci_write_config(ahc->dev_softc, PCIR_COMMAND, command, /*bytes*/2);
928 aic_pci_read_config(ahc->dev_softc, CSIZE_LATTIME,
935 aic_pci_write_config(ahc->dev_softc, CSIZE_LATTIME,
947 devconfig = aic_pci_read_config(ahc->dev_softc,
1013 aic_pci_read_config(ahc->dev_softc, DEVCONFIG, /*bytes*/4);
1015 aic_pci_read_config(ahc->dev_softc, PCIR_COMMAND, /*bytes*/1);
1017 aic_pci_read_config(ahc->dev_softc, CSIZE_LATTIM
[all...]
H A Daic7xxx_osm.c99 bus_alloc_resource_any(ahc->dev_softc, SYS_RES_IRQ, &zero,
102 device_printf(ahc->dev_softc,
109 error = bus_setup_intr(ahc->dev_softc, ahc->platform_data->irq,
114 device_printf(ahc->dev_softc, "bus_setup_intr() failed: %d\n",
126 regs = bus_alloc_resource_any(ahc->dev_softc, SYS_RES_IOPORT, &rid,
129 device_printf(ahc->dev_softc, "Unable to map I/O space?!\n");
198 device_get_unit(ahc->dev_softc),
205 if (xpt_bus_register(sim, ahc->dev_softc, bus_id) != CAM_SUCCESS) {
230 ahc, device_get_unit(ahc->dev_softc),
240 if (xpt_bus_register(sim2, ahc->dev_softc, bus_id
[all...]
H A Daic79xx_osm.c163 device_get_nameunit(ahd->dev_softc), CTLFLAG_RD, 0,
200 error = bus_setup_intr(ahd->dev_softc, ahd->platform_data->irq,
204 device_printf(ahd->dev_softc, "bus_setup_intr() failed: %d\n",
248 device_get_unit(ahd->dev_softc),
255 if (xpt_bus_register(sim, ahd->dev_softc, /*bus_id*/0) != CAM_SUCCESS) {
1294 bus_release_resource(ahd->dev_softc,
1300 bus_release_resource(ahd->dev_softc,
1306 bus_release_resource(ahd->dev_softc,
H A Dahc_isa.c275 ahc->dev_softc = dev;
H A Daic_osm_lib.h446 return (pci_set_powerstate(aic->dev_softc, new_state));
H A Daic79xx.h1142 aic_dev_softc_t dev_softc; member in struct:ahd_softc
H A Daic7xxx.h984 aic_dev_softc_t dev_softc; member in struct:ahc_softc
H A Daic79xx.c5349 list_pci = list_ahd->dev_softc;
5350 pci = ahd->dev_softc;
5517 cmd = aic_pci_read_config(ahd->dev_softc, PCIR_COMMAND, /*bytes*/2);
5531 aic_pci_write_config(ahd->dev_softc, PCIR_COMMAND,
5559 aic_pci_write_config(ahd->dev_softc, PCIR_STATUS + 1,
5561 aic_pci_write_config(ahd->dev_softc, PCIR_COMMAND,
H A Daic7xxx.c3994 list_pci = list_ahc->dev_softc;
3995 pci = ahc->dev_softc;
/freebsd-12-stable/usr.sbin/bhyve/
H A Dvirtio.h475 void *dev_softc, struct pci_devinst *pi,
H A Dvirtio.c66 void *dev_softc, struct pci_devinst *pi,
71 /* vs and dev_softc addresses must match */
72 assert((void *)vs == dev_softc);
65 vi_softc_linkup(struct virtio_softc *vs, struct virtio_consts *vc, void *dev_softc, struct pci_devinst *pi, struct vqueue_info *queues) argument
/freebsd-12-stable/sys/kern/
H A Dsubr_bus.c410 static struct dev_softc struct

Completed in 234 milliseconds