Home
last modified time | relevance | path

Searched refs:softc (Results 1 – 10 of 10) sorted by relevance

/haiku/src/libs/compat/freebsd_network/
H A Ddevice.c263 return dev->softc; in device_get_softc()
268 device_set_softc(device_t dev, void *softc) in device_set_softc() argument
270 if (dev->softc == softc) in device_set_softc()
275 free(dev->softc); in device_set_softc()
278 dev->softc = softc; in device_set_softc()
279 if (dev->softc != NULL) in device_set_softc()
298 dev->softc = malloc(driver->size); in device_set_driver()
299 if (dev->softc == NULL) in device_set_driver()
302 memset(dev->softc, 0, driver->size); in device_set_driver()
461 free(parent->softc); in device_delete_child()
H A Dpci.cpp53 struct root_device_softc* root_softc = (struct root_device_softc*)device->root->softc; in get_device_pci_info()
149 = &((struct root_device_softc *)dev->root->softc)->pci_info; in pci_get_bus()
158 = &((struct root_device_softc *)dev->root->softc)->pci_info; in pci_get_slot()
274 ((struct root_device_softc *)dev->root->softc)->is_msi = true; in pci_alloc_msi()
285 ((struct root_device_softc *)dev->root->softc)->is_msi = false; in pci_release_msi()
286 ((struct root_device_softc *)dev->root->softc)->is_msix = false; in pci_release_msi()
327 ((struct root_device_softc *)dev->root->softc)->is_msix = true; in pci_alloc_msix()
H A Ddriver.c67 root->softc = malloc(sizeof(struct root_device_softc)); in init_root_device()
68 if (root->softc == NULL) { in init_root_device()
73 bzero(root->softc, sizeof(struct root_device_softc)); in init_root_device()
81 ((struct root_device_softc*)root->softc)->bus = bus_type; in init_root_device()
326 struct root_device_softc* root_softc = (struct root_device_softc*)root->softc; in _fbsd_init_drivers()
H A Dshared.h33 void *softc; member
H A Dbus.cpp425 struct root_device_softc* root_softc = ((struct root_device_softc *)dev->root->softc); in bus_setup_intr()
462 struct root_device_softc *root = (struct root_device_softc *)dev->root->softc; in bus_teardown_intr()
H A Dfbsd_if.c647 if_setsoftc(if_t ifp, void *softc) in if_setsoftc() argument
649 ifp->if_softc = softc; in if_setsoftc()
/haiku/src/libs/compat/freebsd_network/compat/sys/
H A Dbus.h104 void device_set_softc(device_t dev, void *softc);
/haiku/src/libs/compat/openbsd_wlan/net80211/
H A Dieee80211_haiku.cpp58 void* softc = device_get_softc(device); in get_ifnet() local
61 if (gDevices[i] != NULL && gDevices[i]->if_softc == softc) in get_ifnet()
/haiku/src/libs/compat/freebsd_iflib/compat/net/
H A Diflib.h457 int iflib_device_register(device_t dev, void *softc, if_shared_ctx_t sctx, if_ctx_t *ctxp);
/haiku/src/libs/compat/freebsd_network/compat/net/
H A Dif_var.h792 int if_setsoftc(if_t ifp, void *softc);
795 void if_setllsoftc(if_t ifp, void *softc);