Lines Matching refs:handler
25 ProtocolHandler* handler;
148 ProtocolHandler *handler = hidDevice->ProtocolHandlerAt(i);
149 if (handler == NULL)
160 const char *basePath = handler->BasePath();
165 handler->SetPublishPath(strdup(pathBuffer));
170 gDeviceList->AddDevice(handler->PublishPath(), handler);
198 ProtocolHandler *handler = (ProtocolHandler *)gDeviceList->DeviceAt(i);
199 if (!handler)
202 HIDDevice *device = handler->Device();
208 handler = device->ProtocolHandlerAt(j);
209 if (handler == NULL)
212 gDeviceList->RemoveDevice(NULL, handler);
216 // this handler's device belongs to the one removed
243 ProtocolHandler *handler = (ProtocolHandler *)gDeviceList->FindDevice(name);
244 TRACE(" name %s: handler %p\n", name, handler);
246 cookie->handler = handler;
249 status_t result = handler == NULL ? B_ENTRY_NOT_FOUND : B_OK;
251 result = handler->Open(flags, &cookie->cookie);
271 return cookie->handler->Read(&cookie->cookie, position, buffer, numBytes);
283 return cookie->handler->Write(&cookie->cookie, position, buffer, numBytes);
294 return cookie->handler->Control(&cookie->cookie, op, buffer, length);
304 return cookie->handler->Close(&cookie->cookie);
316 HIDDevice *device = cookie->handler->Device();
318 // another handler of this device is still open so we can't free it