Lines Matching refs:dev
31 __FBSDID("$FreeBSD: releng/11.0/sys/dev/bhnd/cores/pcie2/bhnd_pcie2_hostb.c 301697 2016-06-08 21:31:33Z landonf $");
66 #include <dev/bhnd/bhnd.h>
68 #include <dev/pci/pcireg.h>
69 #include <dev/pci/pcivar.h>
105 bhnd_pcie2_hostb_attach(device_t dev)
110 sc = device_get_softc(dev);
111 sc->dev = dev;
112 sc->quirks = bhnd_device_quirks(dev, bhnd_pcie2_devs,
116 sc->pci_dev = bhnd_find_bridge_root(dev, devclass_find("pci"));
118 device_printf(dev, "parent pci bridge device not found\n");
123 if ((error = bhnd_pcie2_generic_attach(dev)))
140 bhnd_pcie2_generic_detach(dev);
145 bhnd_pcie2_hostb_detach(device_t dev)
150 sc = device_get_softc(dev);
156 return (bhnd_pcie2_generic_detach(dev));
160 bhnd_pcie2_hostb_suspend(device_t dev)
165 sc = device_get_softc(dev);
171 return (bhnd_pcie2_generic_suspend(dev));
175 bhnd_pcie2_hostb_resume(device_t dev)
180 sc = device_get_softc(dev);
182 if ((error = bhnd_pcie2_generic_resume(dev)))
187 bhnd_pcie2_generic_detach(dev);