Lines Matching refs:hooks
54 const char* path, device_hooks* hooks);
64 void SetHooks(device_hooks* hooks);
318 device_hooks* hooks = driver->find_device(devicePaths[0]); in republish_driver() local
319 if (hooks == NULL) in republish_driver()
324 device->SetHooks(hooks); in republish_driver()
330 device = new(std::nothrow) LegacyDevice(driver, devicePaths[0], hooks); in republish_driver()
864 device_hooks* hooks = device->Hooks(); in dump_device() local
865 kprintf(" close() %p\n", hooks->close); in dump_device()
866 kprintf(" free() %p\n", hooks->free); in dump_device()
867 kprintf(" control() %p\n", hooks->control); in dump_device()
868 kprintf(" read() %p\n", hooks->read); in dump_device()
869 kprintf(" write() %p\n", hooks->write); in dump_device()
870 kprintf(" select() %p\n", hooks->select); in dump_device()
871 kprintf(" deselect() %p\n", hooks->deselect); in dump_device()
1244 device_hooks* hooks) in LegacyDevice() argument
1253 SetHooks(hooks); in LegacyDevice()
1341 LegacyDevice::SetHooks(device_hooks* hooks) in SetHooks() argument
1344 fHooks = hooks; in SetHooks()
1346 fDeviceModule->close = hooks->close; in SetHooks()
1347 fDeviceModule->free = hooks->free; in SetHooks()
1348 fDeviceModule->control = hooks->control; in SetHooks()
1349 fDeviceModule->read = hooks->read; in SetHooks()
1350 fDeviceModule->write = hooks->write; in SetHooks()
1356 if (hooks->select != NULL) { in SetHooks()
1366 fDeviceModule->deselect = hooks->deselect; in SetHooks()
1445 legacy_driver_publish(const char* path, device_hooks* hooks) in legacy_driver_publish() argument
1448 LegacyDevice* device = new(std::nothrow) LegacyDevice(NULL, path, hooks); in legacy_driver_publish()