Home
last modified time | relevance | path

Searched refs:resp (Results 1 – 23 of 23) sorted by relevance

/hardware/bsp/intel/peripheral/libupm/src/sm130/
Dsm130.cxx119 string resp = m_uart.readStr(maxLen); in sendCommand() local
122 cerr << "RSP: " << string2HexString(resp) << endl; in sendCommand()
125 if (!((uint8_t)resp[0] == 0xff && (uint8_t)resp[1] == 0x00)) in sendCommand()
132 if (resp.size() != ((uint8_t)resp[2] + 2 + 1 + 1)) in sendCommand()
135 << int((uint8_t)resp[2] + 2 + 1 + 1) in sendCommand()
136 << ", got " << resp.size() << endl; in sendCommand()
142 for (int i=2; i<(resp.size() - 1); i++) in sendCommand()
143 cksum += (uint8_t)resp[i]; in sendCommand()
145 if (cksum != (uint8_t)resp[resp.size() - 1]) in sendCommand()
148 << int(cksum) << ", got " << (uint8_t)resp[resp.size()-1] << endl; in sendCommand()
[all …]
/hardware/bsp/intel/peripheral/libupm/src/grovescam/
Dgrovescam.cxx199 uint8_t resp[pktLen]; in init() local
216 if (readData(resp, pktLen) != pktLen) in init()
219 if (resp[0] == 0xaa in init()
220 && resp[1] == (0x0e | m_camAddr) in init()
221 && resp[2] == 0x0d in init()
222 && resp[4] == 0 in init()
223 && resp[5] == 0) in init()
225 if (readData(resp, pktLen) != pktLen) in init()
229 if (resp[0] == 0xaa in init()
230 && resp[1] == (0x0d | m_camAddr) in init()
[all …]
/hardware/qcom/keymaster/
Dkeymaster_qcom.cpp338 keymaster_gen_keypair_resp_t *resp = NULL; in qcom_km_generate_keypair() local
345 resp = (keymaster_gen_keypair_resp_t *)(handle->ion_sbuffer + in qcom_km_generate_keypair()
351 resp->status = KEYMASTER_FAILURE; in qcom_km_generate_keypair()
352 resp->key_blob_len = sizeof(qcom_km_key_blob_t); in qcom_km_generate_keypair()
361 QSEECOM_ALIGN(sizeof(keymaster_gen_keypair_cmd_t)), resp, in qcom_km_generate_keypair()
367 if ( (ret < 0) || (resp->status < 0)) { in qcom_km_generate_keypair()
368 ALOGE("Generate key command failed resp->status = %d ret =%d", resp->status, ret); in qcom_km_generate_keypair()
371 UniquePtr<unsigned char[]> keydata(new unsigned char[resp->key_blob_len]); in qcom_km_generate_keypair()
377 memcpy(p, (unsigned char *)(&resp->key_blob), resp->key_blob_len); in qcom_km_generate_keypair()
379 *keyBlobLength = resp->key_blob_len; in qcom_km_generate_keypair()
[all …]
/hardware/qcom/gps/msm8909/loc_api/libloc_api_50001/
Dloc_eng_ni.cpp69 GpsUserResponseType resp, in LocEngInformNiResponse()
72 mResponse(resp), mPayload(data) in LocEngInformNiResponse()
228 pSession->resp = GPS_NI_RESPONSE_NORESP; in ni_thread_proc()
237 LOC_LOGD("pSession->resp is %d\n",pSession->resp); in ni_thread_proc()
246 if (pSession->resp != GPS_NI_RESPONSE_IGNORE) { in ni_thread_proc()
249 pSession->resp, in ni_thread_proc()
391 loc_eng_ni_data_p->session.resp = GPS_NI_RESPONSE_IGNORE; in loc_eng_ni_respond()
404 pSession->resp = user_response; in loc_eng_ni_respond()
Dloc_eng_ni.h46 GpsUserResponseType resp; member
/hardware/qcom/gps/msm8994/loc_api/libloc_api_50001/
Dloc_eng_ni.cpp69 GpsUserResponseType resp, in LocEngInformNiResponse()
72 mResponse(resp), mPayload(data) in LocEngInformNiResponse()
228 pSession->resp = GPS_NI_RESPONSE_NORESP; in ni_thread_proc()
237 LOC_LOGD("pSession->resp is %d\n",pSession->resp); in ni_thread_proc()
246 if (pSession->resp != GPS_NI_RESPONSE_IGNORE) { in ni_thread_proc()
249 pSession->resp, in ni_thread_proc()
391 loc_eng_ni_data_p->session.resp = GPS_NI_RESPONSE_IGNORE; in loc_eng_ni_respond()
404 pSession->resp = user_response; in loc_eng_ni_respond()
Dloc_eng_ni.h46 GpsUserResponseType resp; member
/hardware/qcom/gps/msm8084/loc_api/libloc_api_50001/
Dloc_eng_ni.cpp69 GpsUserResponseType resp, in LocEngInformNiResponse()
72 mResponse(resp), mPayload(data) in LocEngInformNiResponse()
228 pSession->resp = GPS_NI_RESPONSE_NORESP; in ni_thread_proc()
237 LOC_LOGD("pSession->resp is %d\n",pSession->resp); in ni_thread_proc()
246 if (pSession->resp != GPS_NI_RESPONSE_IGNORE) { in ni_thread_proc()
249 pSession->resp, in ni_thread_proc()
391 loc_eng_ni_data_p->session.resp = GPS_NI_RESPONSE_IGNORE; in loc_eng_ni_respond()
404 pSession->resp = user_response; in loc_eng_ni_respond()
Dloc_eng_ni.h46 GpsUserResponseType resp; member
/hardware/qcom/gps/msm8996/loc_api/libloc_api_50001/
Dloc_eng_ni.cpp69 GpsUserResponseType resp, in LocEngInformNiResponse()
72 mResponse(resp), mPayload(data) in LocEngInformNiResponse()
228 pSession->resp = GPS_NI_RESPONSE_NORESP; in ni_thread_proc()
237 LOC_LOGD("pSession->resp is %d\n",pSession->resp); in ni_thread_proc()
246 if (pSession->resp != GPS_NI_RESPONSE_IGNORE) { in ni_thread_proc()
249 pSession->resp, in ni_thread_proc()
391 loc_eng_ni_data_p->session.resp = GPS_NI_RESPONSE_IGNORE; in loc_eng_ni_respond()
404 pSession->resp = user_response; in loc_eng_ni_respond()
Dloc_eng_ni.h46 GpsUserResponseType resp; member
/hardware/qcom/gps/loc_api/libloc_api_50001/
Dloc_eng_ni.cpp69 GpsUserResponseType resp, in LocEngInformNiResponse()
72 mResponse(resp), mPayload(data) in LocEngInformNiResponse()
228 pSession->resp = GPS_NI_RESPONSE_NORESP; in ni_thread_proc()
237 LOC_LOGD("pSession->resp is %d\n",pSession->resp); in ni_thread_proc()
246 if (pSession->resp != GPS_NI_RESPONSE_IGNORE) { in ni_thread_proc()
249 pSession->resp, in ni_thread_proc()
391 loc_eng_ni_data_p->session.resp = GPS_NI_RESPONSE_IGNORE; in loc_eng_ni_respond()
404 pSession->resp = user_response; in loc_eng_ni_respond()
Dloc_eng_ni.h46 GpsUserResponseType resp; member
/hardware/qcom/gps/msm8960/loc_api/libloc_api_50001/
Dloc_eng_ni.cpp69 GpsUserResponseType resp, in LocEngInformNiResponse()
72 mResponse(resp), mPayload(data) in LocEngInformNiResponse()
212 loc_eng_ni_data_p->resp = GPS_NI_RESPONSE_NORESP; in ni_thread_proc()
229 loc_eng_ni_data_p->resp, in ni_thread_proc()
344 loc_eng_ni_data_p->resp = user_response; in loc_eng_ni_respond()
Dloc_eng_ni.h44 GpsUserResponseType resp; member
/hardware/ril/reference-ril/
Dreference-ril.c1213 int *resp = NULL; local
1249 resp = (int *)calloc(commas + 1, sizeof(int));
1250 if (!resp) goto error;
1253 err = at_tok_nextint(&line, &resp[0]);
1255 resp[1] = -1;
1256 resp[2] = -1;
1262 err = at_tok_nextint(&line, &resp[0]);
1264 resp[1] = -1;
1265 resp[2] = -1;
1270 err = at_tok_nextint(&line, &resp[0]);
[all …]
/hardware/bsp/intel/peripheral/libupm/src/wt5001/
Dwt5001.cxx177 char resp; in checkResponse() local
180 int rv = readData(&resp, 1); in checkResponse()
183 if ((resp != fopcode) || rv == 0 ) in checkResponse()
/hardware/qcom/gps/msm8084/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/
DLocApiRpc.cpp510 rpc_loc_ni_user_resp_e_type resp; in informNiResponse() local
/hardware/qcom/gps/msm8994/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/
DLocApiRpc.cpp510 rpc_loc_ni_user_resp_e_type resp; in informNiResponse() local
/hardware/qcom/gps/msm8996/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/
DLocApiRpc.cpp510 rpc_loc_ni_user_resp_e_type resp; in informNiResponse() local
/hardware/qcom/gps/msm8909/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/
DLocApiRpc.cpp510 rpc_loc_ni_user_resp_e_type resp; in informNiResponse() local
/hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/
DLocApiRpc.cpp510 rpc_loc_ni_user_resp_e_type resp; in informNiResponse() local
/hardware/broadcom/wlan/bcmdhd/dhdutil/include/
Dwlioctl.h985 struct dot11_assoc_resp resp; member