Lines Matching refs:ret
26 int32_t ret;
35 ret = GetInputInterface(&g_inputInterface);
36 if (ret != INPUT_SUCCESS) {
37 HDF_LOGE("%s: get input hdi failed, ret %d", __func__, ret);
40 ret = g_inputInterface->iInputManager->ScanInputDevice(sta, MAX_DEVICES);
41 if (ret) {
42 HDF_LOGE("%s: scan device failed, ret %d", __func__, ret);
49 ret = g_inputInterface->iInputManager->OpenInputDevice(sta[i].devIndex);
50 if (ret != INPUT_SUCCESS) {
51 HDF_LOGE("%s: open input device failed, ret %d", __func__, ret);
55 ret = g_inputInterface->iInputController->RunExtraCommand(*(uint32_t *)data, &extraCmd);
56 if (ret == INPUT_SUCCESS) {
65 ret = g_inputInterface->iInputManager->CloseInputDevice(sta[i].devIndex);
66 if (ret != INPUT_SUCCESS) {
67 HDF_LOGE("%s: close input device failed, ret %d", __func__, ret);