Home | History | Annotate | Download | only in client

Lines Matching refs:kr

121     kern_return_t kr = IOServiceGetMatchingServices(kIOMasterPortDefault, matchingDict, &iter);
122 if (kr != KERN_SUCCESS) {
135 kern_return_t kr;
153 kr = IOCreatePlugInInterfaceForService(usbInterface,
158 if ((kIOReturnSuccess != kr) || (!plugInInterface)) {
159 LOG(ERROR) << "Unable to create an interface plug-in (" << std::hex << kr << ")";
174 kr = (*iface)->GetInterfaceClass(iface, &if_class);
175 kr = (*iface)->GetInterfaceSubClass(iface, &subclass);
176 kr = (*iface)->GetInterfaceProtocol(iface, &protocol);
189 kr = (*iface)->GetDevice(iface, &usbDevice);
190 if (kIOReturnSuccess != kr || !usbDevice) {
191 LOG(ERROR) << "Couldn't grab device from interface (" << std::hex << kr << ")";
199 kr = IOCreatePlugInInterfaceForService(usbDevice,
205 if ((kIOReturnSuccess != kr) || (!plugInInterface)) {
206 LOG(ERROR) << "Unable to create a device plug-in (" << std::hex << kr << ")";
223 kr = (*dev)->GetDeviceVendor(dev, &vendor);
224 kr = (*dev)->GetDeviceProduct(dev, &product);
225 kr = (*dev)->GetLocationID(dev, &locationId);
226 if (kr == KERN_SUCCESS) {
234 kr = (*dev)->USBGetSerialNumberStringIndex(dev, &serialIndex);
250 kr = (*dev)->DeviceRequest(dev, &req);
252 if (kr == kIOReturnSuccess && req.wLenDone > 0) {
268 kr = (*dev)->DeviceRequest(dev, &req);
270 if (kr == kIOReturnSuccess && req.wLenDone > 0) {
332 IOReturn kr;
338 kr = (*interface)->USBInterfaceOpen(interface);
339 if (kr != kIOReturnSuccess) {
340 LOG(ERROR) << "Could not open interface: " << std::hex << kr;
345 kr = (*interface)->GetNumEndpoints(interface, &interfaceNumEndpoints);
346 if (kr != kIOReturnSuccess) {
347 LOG(ERROR) << "Unable to get number of endpoints: " << std::hex << kr;
379 kr = (*interface)->GetPipeProperties(interface, endpoint, &direction,
381 if (kr != kIOReturnSuccess) {
383 << std::hex << kr;