Lines Matching defs:handler
38 ProtocolHandler* handler;
106 ProtocolHandler *handler = (ProtocolHandler *)gDeviceList->DeviceAt(i);
107 if (!handler)
110 HIDDevice *device = handler->Device();
116 handler = device->ProtocolHandlerAt(i);
117 if (handler == NULL)
120 gDeviceList->RemoveDevice(NULL, handler);
123 // this handler's device belongs to the one removed
168 ProtocolHandler *handler = (ProtocolHandler *)gDeviceList->FindDevice(path);
169 TRACE(" path %s: handler %p\n", path, handler);
171 cookie->handler = handler;
174 status_t result = handler == NULL ? B_ENTRY_NOT_FOUND : B_OK;
176 result = handler->Open(flags, &cookie->cookie);
196 return cookie->handler->Read(&cookie->cookie, position, buffer, numBytes);
208 return cookie->handler->Write(&cookie->cookie, position, buffer, numBytes);
218 return cookie->handler->Control(&cookie->cookie, op, buffer, length);
228 return cookie->handler->Close(&cookie->cookie);
240 HIDDevice *device = cookie->handler->Device();
242 // another handler of this device is still open so we can't free it
403 ProtocolHandler *handler = hidDevice->ProtocolHandlerAt(i);
404 if (handler == NULL)
415 const char *basePath = handler->BasePath();
420 handler->SetPublishPath(strdup(pathBuffer));
425 gDeviceList->AddDevice(handler->PublishPath(), handler);