Lines Matching refs:pRI
200 RequestInfo *pRI; in addRequestToList() local
228 pRI = (RequestInfo *)calloc(1, sizeof(RequestInfo)); in addRequestToList()
229 if (pRI == NULL) { in addRequestToList()
234 pRI->token = serial; in addRequestToList()
235 pRI->pCI = &(s_commands[request]); in addRequestToList()
236 pRI->socket_id = socket_id; in addRequestToList()
241 pRI->p_next = *pendingRequestsHook; in addRequestToList()
242 *pendingRequestsHook = pRI; in addRequestToList()
247 return pRI; in addRequestToList()
501 checkAndDequeueRequestInfoIfAck(struct RequestInfo *pRI, bool isAck) { in checkAndDequeueRequestInfoIfAck() argument
509 if (pRI == NULL) { in checkAndDequeueRequestInfoIfAck()
514 if (pRI->socket_id == RIL_SOCKET_2) { in checkAndDequeueRequestInfoIfAck()
519 if (pRI->socket_id == RIL_SOCKET_3) { in checkAndDequeueRequestInfoIfAck()
525 if (pRI->socket_id == RIL_SOCKET_4) { in checkAndDequeueRequestInfoIfAck()
537 if (pRI == *ppCur) { in checkAndDequeueRequestInfoIfAck()
540 if (pRI->wasAckSent == 1) { in checkAndDequeueRequestInfoIfAck()
541 RLOGD("Ack was already sent for %s", requestToString(pRI->pCI->requestNumber)); in checkAndDequeueRequestInfoIfAck()
543 pRI->wasAckSent = 1; in checkAndDequeueRequestInfoIfAck()
559 RequestInfo *pRI; in RIL_onRequestAck() local
563 pRI = (RequestInfo *)t; in RIL_onRequestAck()
565 if (!checkAndDequeueRequestInfoIfAck(pRI, true)) { in RIL_onRequestAck()
570 socket_id = pRI->socket_id; in RIL_onRequestAck()
576 appendPrintBuf("Ack [%04d]< %s", pRI->token, requestToString(pRI->pCI->requestNumber)); in RIL_onRequestAck()
578 if (pRI->cancelled == 0) { in RIL_onRequestAck()
584 radio::acknowledgeRequest((int) socket_id, pRI->token); in RIL_onRequestAck()
592 RequestInfo *pRI; in RIL_onRequestComplete() local
596 pRI = (RequestInfo *)t; in RIL_onRequestComplete()
598 if (!checkAndDequeueRequestInfoIfAck(pRI, false)) { in RIL_onRequestComplete()
603 socket_id = pRI->socket_id; in RIL_onRequestComplete()
608 if (pRI->local > 0) { in RIL_onRequestComplete()
611 RLOGD("C[locl]< %s", requestToString(pRI->pCI->requestNumber)); in RIL_onRequestComplete()
613 free(pRI); in RIL_onRequestComplete()
618 pRI->token, requestToString(pRI->pCI->requestNumber)); in RIL_onRequestComplete()
620 if (pRI->cancelled == 0) { in RIL_onRequestComplete()
622 if (s_callbacks.version >= 13 && pRI->wasAckSent == 1) { in RIL_onRequestComplete()
633 RLOGE ("Calling responseFunction() for token %d", pRI->token); in RIL_onRequestComplete()
640 ret = pRI->pCI->responseFunction((int) socket_id, in RIL_onRequestComplete()
641 responseType, pRI->token, e, response, responselen); in RIL_onRequestComplete()
646 free(pRI); in RIL_onRequestComplete()