Lines Matching refs:pRI

198     RequestInfo *pRI;  in addRequestToList()  local
226 pRI = (RequestInfo *)calloc(1, sizeof(RequestInfo)); in addRequestToList()
227 if (pRI == NULL) { in addRequestToList()
232 pRI->token = serial; in addRequestToList()
233 pRI->pCI = &(s_commands[request]); in addRequestToList()
234 pRI->socket_id = socket_id; in addRequestToList()
239 pRI->p_next = *pendingRequestsHook; in addRequestToList()
240 *pendingRequestsHook = pRI; in addRequestToList()
245 return pRI; in addRequestToList()
499 checkAndDequeueRequestInfoIfAck(struct RequestInfo *pRI, bool isAck) { in checkAndDequeueRequestInfoIfAck() argument
507 if (pRI == NULL) { in checkAndDequeueRequestInfoIfAck()
512 if (pRI->socket_id == RIL_SOCKET_2) { in checkAndDequeueRequestInfoIfAck()
517 if (pRI->socket_id == RIL_SOCKET_3) { in checkAndDequeueRequestInfoIfAck()
523 if (pRI->socket_id == RIL_SOCKET_4) { in checkAndDequeueRequestInfoIfAck()
535 if (pRI == *ppCur) { in checkAndDequeueRequestInfoIfAck()
538 if (pRI->wasAckSent == 1) { in checkAndDequeueRequestInfoIfAck()
539 RLOGD("Ack was already sent for %s", requestToString(pRI->pCI->requestNumber)); in checkAndDequeueRequestInfoIfAck()
541 pRI->wasAckSent = 1; in checkAndDequeueRequestInfoIfAck()
557 RequestInfo *pRI; in RIL_onRequestAck() local
561 pRI = (RequestInfo *)t; in RIL_onRequestAck()
563 if (!checkAndDequeueRequestInfoIfAck(pRI, true)) { in RIL_onRequestAck()
568 socket_id = pRI->socket_id; in RIL_onRequestAck()
574 appendPrintBuf("Ack [%04d]< %s", pRI->token, requestToString(pRI->pCI->requestNumber)); in RIL_onRequestAck()
576 if (pRI->cancelled == 0) { in RIL_onRequestAck()
582 radio::acknowledgeRequest((int) socket_id, pRI->token); in RIL_onRequestAck()
590 RequestInfo *pRI; in RIL_onRequestComplete() local
594 pRI = (RequestInfo *)t; in RIL_onRequestComplete()
596 if (!checkAndDequeueRequestInfoIfAck(pRI, false)) { in RIL_onRequestComplete()
601 socket_id = pRI->socket_id; in RIL_onRequestComplete()
606 if (pRI->local > 0) { in RIL_onRequestComplete()
609 RLOGD("C[locl]< %s", requestToString(pRI->pCI->requestNumber)); in RIL_onRequestComplete()
611 free(pRI); in RIL_onRequestComplete()
616 pRI->token, requestToString(pRI->pCI->requestNumber)); in RIL_onRequestComplete()
618 if (pRI->cancelled == 0) { in RIL_onRequestComplete()
620 if (s_callbacks.version >= 13 && pRI->wasAckSent == 1) { in RIL_onRequestComplete()
631 RLOGE ("Calling responseFunction() for token %d", pRI->token); in RIL_onRequestComplete()
638 ret = pRI->pCI->responseFunction((int) socket_id, in RIL_onRequestComplete()
639 responseType, pRI->token, e, response, responselen); in RIL_onRequestComplete()
644 free(pRI); in RIL_onRequestComplete()