Lines Matching refs:req

197     RIL_SIM_SAP_CONNECT_REQ req;  in connectReq()  local
198 memset(&req, 0, sizeof(RIL_SIM_SAP_CONNECT_REQ)); in connectReq()
199 req.max_message_size = maxMsgSize; in connectReq()
202 if (!pb_get_encoded_size(&encodedSize, RIL_SIM_SAP_CONNECT_REQ_fields, &req)) { in connectReq()
217 if (!pb_encode(&stream, RIL_SIM_SAP_CONNECT_REQ_fields, &req)) { in connectReq()
238 RIL_SIM_SAP_DISCONNECT_REQ req; in disconnectReq() local
239 memset(&req, 0, sizeof(RIL_SIM_SAP_DISCONNECT_REQ)); in disconnectReq()
242 if (!pb_get_encoded_size(&encodedSize, RIL_SIM_SAP_DISCONNECT_REQ_fields, &req)) { in disconnectReq()
258 if (!pb_encode(&stream, RIL_SIM_SAP_DISCONNECT_REQ_fields, &req)) { in disconnectReq()
279 RIL_SIM_SAP_APDU_REQ req; in apduReq() local
280 memset(&req, 0, sizeof(RIL_SIM_SAP_APDU_REQ)); in apduReq()
281 req.type = (RIL_SIM_SAP_APDU_REQ_Type)type; in apduReq()
284 req.command = (pb_bytes_array_t *)malloc(sizeof(pb_bytes_array_t) - 1 + command.size()); in apduReq()
285 if (req.command == NULL) { in apduReq()
290 req.command->size = command.size(); in apduReq()
291 memcpy(req.command->bytes, command.data(), command.size()); in apduReq()
295 if (!pb_get_encoded_size(&encodedSize, RIL_SIM_SAP_APDU_REQ_fields, &req)) { in apduReq()
297 sendFailedResponse(MsgId_RIL_SIM_SAP_APDU, token, 2, req.command, msg); in apduReq()
304 sendFailedResponse(MsgId_RIL_SIM_SAP_APDU, token, 2, req.command, msg); in apduReq()
311 if (!pb_encode(&stream, RIL_SIM_SAP_APDU_REQ_fields, &req)) { in apduReq()
313 sendFailedResponse(MsgId_RIL_SIM_SAP_APDU, token, 3, req.command, buffer, msg); in apduReq()
332 RIL_SIM_SAP_TRANSFER_ATR_REQ req; in transferAtrReq() local
333 memset(&req, 0, sizeof(RIL_SIM_SAP_TRANSFER_ATR_REQ)); in transferAtrReq()
336 if (!pb_get_encoded_size(&encodedSize, RIL_SIM_SAP_TRANSFER_ATR_REQ_fields, &req)) { in transferAtrReq()
353 if (!pb_encode(&stream, RIL_SIM_SAP_TRANSFER_ATR_REQ_fields, &req)) { in transferAtrReq()
374 RIL_SIM_SAP_POWER_REQ req; in powerReq() local
375 memset(&req, 0, sizeof(RIL_SIM_SAP_POWER_REQ)); in powerReq()
376 req.state = state; in powerReq()
379 if (!pb_get_encoded_size(&encodedSize, RIL_SIM_SAP_POWER_REQ_fields, &req)) { in powerReq()
395 if (!pb_encode(&stream, RIL_SIM_SAP_POWER_REQ_fields, &req)) { in powerReq()
416 RIL_SIM_SAP_RESET_SIM_REQ req; in resetSimReq() local
417 memset(&req, 0, sizeof(RIL_SIM_SAP_RESET_SIM_REQ)); in resetSimReq()
420 if (!pb_get_encoded_size(&encodedSize, RIL_SIM_SAP_RESET_SIM_REQ_fields, &req)) { in resetSimReq()
436 if (!pb_encode(&stream, RIL_SIM_SAP_RESET_SIM_REQ_fields, &req)) { in resetSimReq()
457 RIL_SIM_SAP_TRANSFER_CARD_READER_STATUS_REQ req; in transferCardReaderStatusReq() local
458 memset(&req, 0, sizeof(RIL_SIM_SAP_TRANSFER_CARD_READER_STATUS_REQ)); in transferCardReaderStatusReq()
462 &req)) { in transferCardReaderStatusReq()
479 if (!pb_encode(&stream, RIL_SIM_SAP_TRANSFER_CARD_READER_STATUS_REQ_fields, &req)) { in transferCardReaderStatusReq()
501 RIL_SIM_SAP_SET_TRANSFER_PROTOCOL_REQ req; in setTransferProtocolReq() local
502 memset(&req, 0, sizeof(RIL_SIM_SAP_SET_TRANSFER_PROTOCOL_REQ)); in setTransferProtocolReq()
503 req.protocol = (RIL_SIM_SAP_SET_TRANSFER_PROTOCOL_REQ_Protocol)transferProtocol; in setTransferProtocolReq()
506 if (!pb_get_encoded_size(&encodedSize, RIL_SIM_SAP_SET_TRANSFER_PROTOCOL_REQ_fields, &req)) { in setTransferProtocolReq()
523 if (!pb_encode(&stream, RIL_SIM_SAP_SET_TRANSFER_PROTOCOL_REQ_fields, &req)) { in setTransferProtocolReq()