Lines Matching refs:ret

196   int ret = 0;  in unlinkFunctions()  local
206 ret = remove(filepath); in unlinkFunctions()
207 if (ret) { in unlinkFunctions()
214 return ret; in unlinkFunctions()
219 int ret; in addEpollFd() local
224 ret = epoll_ctl(epfd, EPOLL_CTL_ADD, fd, &event); in addEpollFd()
225 if (ret) ALOGE("epoll_ctl error %d", errno); in addEpollFd()
227 return ret; in addEpollFd()
232 Return<void> ret = callback->getCurrentUsbFunctionsCb( in getCurrentUsbFunctions() local
236 if (!ret.isOk()) in getCurrentUsbFunctions()
238 ret.description().c_str()); in getCurrentUsbFunctions()
261 unsigned long ret; in tearDownGadget() local
264 ret = TEMP_FAILURE_RETRY(write(mEventFd, &flag, sizeof(flag))); in tearDownGadget()
265 if (ret < 0) { in tearDownGadget()
267 } else if (ret < sizeof(flag)) { in tearDownGadget()
268 ALOGE("Short write length=%zd", ret); in tearDownGadget()
314 std::string ret = ""; in getVendorFunctions() local
317 ret = vendorFunctions; in getVendorFunctions()
320 ret = persistVendorFunctions; in getVendorFunctions()
322 ret = "diag"; in getVendorFunctions()
324 SetProperty(VENDOR_CONFIG, ret); in getVendorFunctions()
327 return ret; in getVendorFunctions()
331 V1_0::Status ret = Status::SUCCESS; in validateAndSetVidPid() local
337 ret = setVidPid("0x05C6", "0x901B"); in validateAndSetVidPid()
341 ret = setVidPid("0x18d1", "0x4ee1"); in validateAndSetVidPid()
346 ret = setVidPid("0x05C6", "0x903A"); in validateAndSetVidPid()
350 ret = setVidPid("0x18d1", "0x4ee2"); in validateAndSetVidPid()
355 ret = setVidPid("0x05C6", "0x902C"); in validateAndSetVidPid()
357 ret = setVidPid("0x05C6", "0x90B5"); in validateAndSetVidPid()
361 ret = setVidPid("0x18d1", "0x4ee3"); in validateAndSetVidPid()
366 ret = setVidPid("0x05C6", "0x902D"); in validateAndSetVidPid()
368 ret = setVidPid("0x05C6", "0x90B6"); in validateAndSetVidPid()
372 ret = setVidPid("0x18d1", "0x4ee4"); in validateAndSetVidPid()
378 ret = setVidPid("0x18d1", "0x4ee5"); in validateAndSetVidPid()
383 ret = setVidPid("0x18d1", "0x4ee6"); in validateAndSetVidPid()
387 ret = setVidPid("0x05C6", "0x901D"); in validateAndSetVidPid()
389 ret = setVidPid("0x05C6", "0x9091"); in validateAndSetVidPid()
391 ret = setVidPid("0x05C6", "0x901F"); in validateAndSetVidPid()
395 ret = setVidPid("0x18d1", "0x4ee7"); in validateAndSetVidPid()
401 ret = setVidPid("0x18d1", "0x4ee8"); in validateAndSetVidPid()
406 ret = setVidPid("0x18d1", "0x4ee9"); in validateAndSetVidPid()
411 ret = setVidPid("0x18d1", "0x2d00"); in validateAndSetVidPid()
416 ret = setVidPid("0x18d1", "0x2d01"); in validateAndSetVidPid()
421 ret = setVidPid("0x18d1", "0x2d02"); in validateAndSetVidPid()
426 ret = setVidPid("0x18d1", "0x2d03"); in validateAndSetVidPid()
431 ret = setVidPid("0x18d1", "0x2d04"); in validateAndSetVidPid()
437 ret = setVidPid("0x18d1", "0x2d05"); in validateAndSetVidPid()
441 ret = Status::CONFIGURATION_NOT_SUPPORTED; in validateAndSetVidPid()
443 return ret; in validateAndSetVidPid()
584 Return<void> ret = callback->setCurrentUsbFunctionsCb( in setupFunctions() local
586 if (!ret.isOk()) in setupFunctions()
587 ALOGE("setCurrentUsbFunctionsCb error %s", ret.description().c_str()); in setupFunctions()
614 Return<void> ret = in setCurrentUsbFunctions() local
616 if (!ret.isOk()) in setCurrentUsbFunctions()
618 ret.description().c_str()); in setCurrentUsbFunctions()
639 Return<void> ret = callback->setCurrentUsbFunctionsCb(functions, status); in setCurrentUsbFunctions() local
640 if (!ret.isOk()) in setCurrentUsbFunctions()
642 ret.description().c_str()); in setCurrentUsbFunctions()