Home
last modified time | relevance | path

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

/device/google/contexthub/firmware/src/
DnanohubCommand.c120 struct NanohubOsHwVersionsResponse *resp = tx; in getOsHwVersion() local
121 resp->hwType = htole16(platHwType()); in getOsHwVersion()
122 resp->hwVer = htole16(platHwVer()); in getOsHwVersion()
123 resp->blVer = htole16(platBlVer()); in getOsHwVersion()
124 resp->osVer = htole16(OS_VER); in getOsHwVersion()
125 resp->variantVer = htole32(VARIANT_VER); in getOsHwVersion()
127 return sizeof(*resp); in getOsHwVersion()
133 struct NanohubAppVersionsResponse *resp = tx; in getAppVersion() local
137 resp->appVer = htole32(appVer); in getAppVersion()
138 return sizeof(*resp); in getAppVersion()
[all …]
DhostIntf.c371 static void hostIntfTxSendAck(uint32_t resp) in hostIntfTxSendAck() argument
375 if (resp == NANOHUB_FAST_UNHANDLED_ACK) { in hostIntfTxSendAck()
378 } else if (resp == NANOHUB_FAST_DONT_ACK) { in hostIntfTxSendAck()
381 hostIntfTxPacket(mRxCmd->reason, resp, mTxRetrans.seq, hostIntfTxPayloadDone); in hostIntfTxSendAck()
400 uint32_t resp = NANOHUB_FAST_UNHANDLED_ACK; in hostIntfGenerateAck() local
413 resp = mRxCmd->fastHandler(rxPayload, rx_len, txPayload, mRxTimestamp); in hostIntfGenerateAck()
415 hostIntfTxSendAck(resp); in hostIntfGenerateAck()
999 struct NanohubHalRebootTx *resp = heapAlloc(sizeof(*resp)); in hostIntfNotifyReboot() local
1002 if (resp) { in hostIntfNotifyReboot()
1003 resp->hdr = (struct NanohubHalHdr){ in hostIntfNotifyReboot()
[all …]
/device/linaro/hikey/wpan/uim/
Duim.c137 command_complete_t resp; in read_command_complete() local
142 if (read_hci_event(fd, (unsigned char *)&resp, sizeof(resp)) < 0) { in read_command_complete()
148 if (resp.uart_prefix != HCI_EVENT_PKT) { in read_command_complete()
150 resp.uart_prefix); in read_command_complete()
155 if (resp.hci_hdr.evt != EVT_CMD_COMPLETE) { in read_command_complete()
158 resp.hci_hdr.evt); in read_command_complete()
162 if (resp.hci_hdr.plen < 4) { in read_command_complete()
165 resp.hci_hdr.plen); in read_command_complete()
169 if (resp.cmd_complete.opcode != (unsigned short)opcode) { in read_command_complete()
171 resp.cmd_complete.opcode, opcode); in read_command_complete()
[all …]
/device/google/dragon/recovery/updater/
Ddebug_ec.c615 struct ec_response_lightbar resp; in cmd_ec_lightbar() local
621 r = lb_do_cmd(LIGHTBAR_CMD_DUMP, &param, &resp); in cmd_ec_lightbar()
624 for (i = 0; i < ARRAY_SIZE(resp.dump.vals); i++) { in cmd_ec_lightbar()
626 resp.dump.vals[i].reg, in cmd_ec_lightbar()
627 resp.dump.vals[i].ic0, in cmd_ec_lightbar()
628 resp.dump.vals[i].ic1); in cmd_ec_lightbar()
634 return lb_do_cmd(LIGHTBAR_CMD_INIT, &param, &resp); in cmd_ec_lightbar()
637 return lb_do_cmd(LIGHTBAR_CMD_OFF, &param, &resp); in cmd_ec_lightbar()
640 return lb_do_cmd(LIGHTBAR_CMD_ON, &param, &resp); in cmd_ec_lightbar()
643 r = lb_do_cmd(LIGHTBAR_CMD_VERSION, &param, &resp); in cmd_ec_lightbar()
[all …]
/device/huawei/angler/location/loc_api/loc_api_v02/
Dloc_api_v02_client.c670 if (pResponse->resp.supported_msgs_valid) { in checkQmiMsgsSupported()
679 uint32_t supportedMsgsLen = pResponse->resp.supported_msgs_len; in checkQmiMsgsSupported()
695 if (pResponse->resp.supported_msgs[length] & (1<<bit)) { in checkQmiMsgsSupported()
720 if(pResponse->resp.result == QMI_RESULT_SUCCESS_V01 ) in convertQmiResponseToLocStatus()
726 switch(pResponse->resp.error) in convertQmiResponseToLocStatus()
743 __func__, __LINE__, pResponse->resp.result, in convertQmiResponseToLocStatus()
744 pResponse->resp.error, status); in convertQmiResponseToLocStatus()
2030 qmiLocGenRespMsgT_v02 resp; in locClientSendReq() local
2071 &resp, in locClientSendReq()
2072 sizeof(resp), in locClientSendReq()
[all …]
Dloc_api_v02_client.h1401 qmi_get_supported_msgs_resp_v01 resp; /**< Response */ member
Dlocation_service_v02.h277 qmi_response_type_v01 resp; member
Dlocation_service_v02.c1133 QMI_IDL_OFFSET8(qmiLocGenRespMsgT_v02, resp),
/device/lge/bullhead/location/loc_api/loc_api_v02/
Dloc_api_v02_client.c670 if (pResponse->resp.supported_msgs_valid) { in checkQmiMsgsSupported()
679 uint32_t supportedMsgsLen = pResponse->resp.supported_msgs_len; in checkQmiMsgsSupported()
695 if (pResponse->resp.supported_msgs[length] & (1<<bit)) { in checkQmiMsgsSupported()
720 if(pResponse->resp.result == QMI_RESULT_SUCCESS_V01 ) in convertQmiResponseToLocStatus()
726 switch(pResponse->resp.error) in convertQmiResponseToLocStatus()
743 __func__, __LINE__, pResponse->resp.result, in convertQmiResponseToLocStatus()
744 pResponse->resp.error, status); in convertQmiResponseToLocStatus()
2030 qmiLocGenRespMsgT_v02 resp; in locClientSendReq() local
2071 &resp, in locClientSendReq()
2072 sizeof(resp), in locClientSendReq()
[all …]
Dloc_api_v02_client.h1401 qmi_get_supported_msgs_resp_v01 resp; /**< Response */ member
Dlocation_service_v02.h277 qmi_response_type_v01 resp; member
Dlocation_service_v02.c1133 QMI_IDL_OFFSET8(qmiLocGenRespMsgT_v02, resp),
/device/moto/shamu/location/loc_api/loc_api_v02/
Dloc_api_v02_client.c646 if(pResponse->resp.supported_msgs_len < length) { in checkQmiMsgsSupported()
654 __func__, __LINE__, pResponse->resp.supported_msgs[length]); in checkQmiMsgsSupported()
655 if (pResponse->resp.supported_msgs[length-1] & (1<<bit)) { in checkQmiMsgsSupported()
679 if(pResponse->resp.result == QMI_RESULT_SUCCESS_V01 ) in convertQmiResponseToLocStatus()
685 switch(pResponse->resp.error) in convertQmiResponseToLocStatus()
702 __func__, __LINE__, pResponse->resp.result, in convertQmiResponseToLocStatus()
703 pResponse->resp.error, status); in convertQmiResponseToLocStatus()
2396 qmiLocGenRespMsgT_v02 resp; in locClientSendReq() local
2437 &resp, in locClientSendReq()
2438 sizeof(resp), in locClientSendReq()
[all …]
Dloc_api_v02_client.h1368 qmi_get_supported_msgs_resp_v01 resp; /**< Response */ member
Dlocation_service_v02.h259 qmi_response_type_v01 resp; member
Dlocation_service_v02.c1052 QMI_IDL_OFFSET8(qmiLocGenRespMsgT_v02, resp),
/device/moto/shamu/location/loc_api/ds_api/
Dds_client.c286 if(resp_union->p_get_profile_list_resp->resp.error != in ds_client_convert_qmi_response()
289 resp_union->p_get_profile_list_resp->resp.error); in ds_client_convert_qmi_response()
298 if(resp_union->p_get_profile_setting_resp->resp.error != in ds_client_convert_qmi_response()
301 resp_union->p_get_profile_setting_resp->resp.error); in ds_client_convert_qmi_response()
/device/huawei/angler/location/loc_api/ds_api/
Dds_client.c282 if(resp_union->p_get_profile_list_resp->resp.error != in ds_client_convert_qmi_response()
285 resp_union->p_get_profile_list_resp->resp.error); in ds_client_convert_qmi_response()
294 if(resp_union->p_get_profile_setting_resp->resp.error != in ds_client_convert_qmi_response()
297 resp_union->p_get_profile_setting_resp->resp.error); in ds_client_convert_qmi_response()
/device/lge/bullhead/location/loc_api/ds_api/
Dds_client.c282 if(resp_union->p_get_profile_list_resp->resp.error != in ds_client_convert_qmi_response()
285 resp_union->p_get_profile_list_resp->resp.error); in ds_client_convert_qmi_response()
294 if(resp_union->p_get_profile_setting_resp->resp.error != in ds_client_convert_qmi_response()
297 resp_union->p_get_profile_setting_resp->resp.error); in ds_client_convert_qmi_response()