Lines Matching refs:hsc
133 struct hme_pci_softc *hsc;
152 hsc = device_get_softc(dev);
153 sc = &hsc->hsc_hme;
170 hsc->hsc_sres = bus_alloc_resource_any(dev, SYS_RES_MEMORY,
172 if (hsc->hsc_sres == NULL) {
178 hsc->hsc_ires = bus_alloc_resource_any(dev, SYS_RES_IRQ,
180 if (hsc->hsc_ires == NULL) {
185 memt = rman_get_bustag(hsc->hsc_sres);
186 memh = rman_get_bushandle(hsc->hsc_sres);
355 if ((error = bus_setup_intr(dev, hsc->hsc_ires, INTR_TYPE_NET |
356 INTR_MPSAFE, NULL, hme_intr, sc, &hsc->hsc_ih)) != 0) {
365 rman_get_rid(hsc->hsc_ires), hsc->hsc_ires);
368 rman_get_rid(hsc->hsc_sres), hsc->hsc_sres);
377 struct hme_pci_softc *hsc;
380 hsc = device_get_softc(dev);
381 sc = &hsc->hsc_hme;
382 bus_teardown_intr(dev, hsc->hsc_ires, hsc->hsc_ih);
385 rman_get_rid(hsc->hsc_ires), hsc->hsc_ires);
387 rman_get_rid(hsc->hsc_sres), hsc->hsc_sres);
395 struct hme_pci_softc *hsc;
397 hsc = device_get_softc(dev);
398 hme_suspend(&hsc->hsc_hme);
405 struct hme_pci_softc *hsc;
407 hsc = device_get_softc(dev);
408 hme_resume(&hsc->hsc_hme);