Lines Matching refs:ret

263     auto ret = UsbSrvClient::GetInstance().GetDevices(g_deviceList);
264 if (ret != USB_MANAGER_SUCCESS) {
344 auto ret = usbSrvClient.RequestRight(device.GetName());
345 if (ret != USB_MANAGER_SUCCESS) {
346 SANE_HILOG_ERROR("request right failed ret=%{public}d", ret);
349 ret = usbSrvClient.OpenDevice(device, pipe);
350 if (ret != USB_MANAGER_SUCCESS) {
351 SANE_HILOG_ERROR("open device failed ret=%{public}d", ret);
487 auto ret = UsbSrvClient::GetInstance().SetConfiguration(pip, config);
488 if (ret != USB_MANAGER_SUCCESS) {
489 SANE_HILOG_ERROR("SetConfiguration failed ret=%{public}d", ret);
506 auto ret = usbSrvClient.ClaimInterface(dev_handle->pipe, interface, true);
507 if (ret != USB_MANAGER_SUCCESS) {
508 SANE_HILOG_ERROR("ClaimInterface failed ret=%{public}d", ret);
528 auto ret = usbSrvClient.ReleaseInterface(pipe, interface);
529 if (ret != USB_MANAGER_SUCCESS) {
530 SANE_HILOG_ERROR("ReleaseInterface failed ret=%{public}d", ret);
554 auto ret = usbSrvClient.BulkTransfer(pipe, usbEndpoint, bufferData, timeout);
555 if (ret != USB_MANAGER_SUCCESS) {
568 auto ret = usbSrvClient.BulkTransfer(pipe, usbEndpoint, bufferData, timeout);
569 if (ret != USB_MANAGER_SUCCESS) {
600 auto ret = usbSrvClient.ControlTransfer(pipe, ctrl, bufferData);
601 if (ret != USB_MANAGER_SUCCESS) {
602 SANE_HILOG_ERROR("ControlTransfer failed ret=%{public}d", ret);
621 auto ret = usbSrvClient.SetInterface(pipe, interface);
622 if (ret != USB_MANAGER_SUCCESS) {
623 SANE_HILOG_ERROR("SetInterface failed ret=%{public}d", ret);