Searched refs:hooks (Results 1 - 25 of 35) sorted by last modified time

12

/haiku/headers/os/bluetooth/HCI/
H A DbtHCI_transport.h98 bt_hci_transport_hooks* hooks; member in struct:bluetooth_device
116 status_t (*RegisterDriver)(bt_hci_transport_hooks* hooks,
/haiku/src/add-ons/kernel/bus_managers/ps2/
H A Dps2_dev.cpp71 ps2_dev_detect_pointing(ps2_dev* dev, device_hooks** hooks) argument
84 *hooks = &gStandardMouseDeviceHooks;
90 *hooks = &gSynapticsDeviceHooks;
96 *hooks = &gALPSDeviceHooks;
102 *hooks = &gElantechDeviceHooks;
116 *hooks = &gStandardMouseDeviceHooks;
228 device_hooks* hooks; local
229 status = ps2_dev_detect_pointing(dev, &hooks);
231 status = devfs_publish_device(dev->name, hooks);
H A Dps2_dev.h70 status_t ps2_dev_detect_pointing(ps2_dev *dev, device_hooks **hooks);
/haiku/src/add-ons/kernel/drivers/bluetooth/h2/h2generic/
H A Dh2generic.cpp823 // Note: After here device_added and publish devices hooks are called
930 static device_hooks hooks = { variable
949 return &hooks;
/haiku/src/system/kernel/device_manager/
H A Ddevfs.cpp751 // are the provided device hooks okay?
2267 devfs_publish_device(const char* path, device_hooks* hooks) argument
2269 return legacy_driver_publish(path, hooks);
H A Dlegacy_drivers.cpp54 const char* path, device_hooks* hooks);
64 void SetHooks(device_hooks* hooks);
318 device_hooks* hooks = driver->find_device(devicePaths[0]); local
319 if (hooks == NULL)
323 // update hooks
324 device->SetHooks(hooks);
330 device = new(std::nothrow) LegacyDevice(driver, devicePaths[0], hooks);
845 kprintf(" hooks: find_device %p, publish_devices %p\n"
864 kprintf(" hooks: %p\n", device->Hooks());
865 device_hooks* hooks local
1246 LegacyDevice(legacy_driver* driver, const char* path, device_hooks* hooks) argument
1343 SetHooks(device_hooks* hooks) argument
1447 legacy_driver_publish(const char* path, device_hooks* hooks) argument
[all...]
/haiku/src/add-ons/kernel/drivers/bus/usb/
H A Dusb_raw.cpp1022 static device_hooks hooks = { local
1035 return &hooks;
/haiku/src/add-ons/kernel/bus_managers/usb/
H A Dusb.cpp252 install_notify(const char *driverName, const usb_notify_hooks *hooks) argument
254 return gUSBStack->InstallNotify(driverName, hooks);
H A Dusb_private.h173 const usb_notify_hooks *hooks);
588 const usb_notify_hooks *hooks,
671 const usb_notify_hooks *hooks,
H A DDevice.cpp693 uint32 supportDescriptorCount, const usb_notify_hooks* hooks,
749 if ((added && hooks->device_added == NULL)
750 || (!added && hooks->device_removed == NULL)) {
751 // hooks are not installed, but report success to indicate that
759 if (hooks->device_added(id, &cookie->cookie) >= B_OK) {
781 hooks->device_removed(cookie->cookie);
692 ReportDevice(usb_support_descriptor* supportDescriptors, uint32 supportDescriptorCount, const usb_notify_hooks* hooks, usb_driver_cookie** cookies, bool added, bool recursive) argument
H A DStack.cpp380 // already by the hooks or it is not loaded at this time. in any
462 Stack::InstallNotify(const char *driverName, const usb_notify_hooks *hooks) argument
464 TRACE("installing notify hooks for driver \"%s\"\n", driverName);
478 element->support_descriptor_count, hooks,
483 element->notify_hooks.device_added = hooks->device_added;
484 element->notify_hooks.device_removed = hooks->device_removed;
499 TRACE("uninstalling notify hooks for driver \"%s\"\n", driverName);
H A DHub.cpp404 uint32 supportDescriptorCount, const usb_notify_hooks *hooks,
413 supportDescriptorCount, hooks, cookies, added, recursive);
421 supportDescriptorCount, hooks, cookies, added, true) == B_OK)
429 hooks, cookies, added, recursive) == B_OK)
403 ReportDevice(usb_support_descriptor *supportDescriptors, uint32 supportDescriptorCount, const usb_notify_hooks *hooks, usb_driver_cookie **cookies, bool added, bool recursive) argument
/haiku/headers/os/drivers/
H A DUSB3.h108 * Install notification hooks using your registered driverName. The
111 * When first installing the hooks you will receive a notification about
119 const usb_notify_hooks *hooks);
236 * notify hooks to avoid such situations.
/haiku/src/add-ons/kernel/drivers/misc/
H A Dtest.c128 static device_hooks hooks = { local
137 return &hooks;
H A Dkdl.c129 static device_hooks hooks = { local
138 return &hooks;
/haiku/src/add-ons/kernel/drivers/input/usb_hid/
H A DDriver.cpp58 // #pragma mark - notify hooks
229 // #pragma mark - driver hooks
428 static device_hooks hooks = { local
445 return &hooks;
/haiku/src/add-ons/kernel/drivers/disk/virtual/nbd/
H A Dnbd.c457 #pragma mark ==== device hooks ====
781 #pragma mark ==== driver hooks ====
/haiku/src/add-ons/kernel/drivers/network/ether/pegasus/
H A Ddriver.c338 // #pragma mark - device hooks
824 static device_hooks hooks = { local
835 return &hooks;
/haiku/src/add-ons/kernel/bus_managers/firewire/
H A Dfirewire.cpp359 struct firewire_notify_hooks *hooks)
381 info->notify_hooks.device_attach = hooks->device_attach;
382 info->notify_hooks.device_detach = hooks->device_detach;
394 hooks->device_attach(sc, &info->cookie);
H A Dfirewire_module.cpp95 const struct firewire_notify_hooks *hooks)
101 status = firewire_add_child(gFirewire_softc[i], childname, hooks);
/haiku/src/add-ons/kernel/drivers/common/
H A Dconsole.cpp830 static device_hooks hooks = { local
838 * use its own default implementation. The basic hooks above this
847 return &hooks;
H A Ddprintf.cpp147 static device_hooks hooks = { local
155 * use its own default implementation. The basic hooks above this
164 return &hooks;
/haiku/src/libs/iconv/
H A Diconv.c431 cd->hooks.uc_hook = NULL;
432 cd->hooks.wc_hook = NULL;
433 cd->hooks.data = NULL;
494 cd->hooks = *(const struct iconv_hooks *)argument;
496 cd->hooks.uc_hook = NULL;
497 cd->hooks.wc_hook = NULL;
498 cd->hooks.data = NULL;
/haiku/src/add-ons/kernel/bluetooth/hci/
H A Dbluetooth.cpp242 RegisterDriver(bt_hci_transport_hooks* hooks, bluetooth_device** _device) argument
255 device->hooks = hooks;
351 device->hooks->SendACL(device->index, curr_frame);
384 kprintf("\tindex=%" B_PRIx32 " @%p hooks=%p\n", device->index,
385 device, device->hooks);
/haiku/src/tests/system/kernel/device_manager/
H A Dconfig.c199 static device_hooks hooks = { local
207 * use its own default implementation. The basic hooks above this
216 return &hooks;

Completed in 180 milliseconds

12