• Home
  • Raw
  • Download

Lines Matching refs:freeAfterEncodeRpcidscInfo

295 static int32_t PrintOutputToFile(struct FreeAfterEncodeRpcidscInfo freeAfterEncodeRpcidscInfo,  in PrintOutputToFile()  argument
301 freeAfterEncodeRpcidscInfo.outBuffer = (char *)malloc(outBufferLen); in PrintOutputToFile()
302 if (freeAfterEncodeRpcidscInfo.outBuffer == NULL) { in PrintOutputToFile()
304 freeAfterEncodeRpcidscInfo.flag = 1; in PrintOutputToFile()
308 freeAfterEncodeRpcidscInfo.type = FREE_OUTBUFFER_AFTER_RPCIDSC; in PrintOutputToFile()
309 (void)memset_s(freeAfterEncodeRpcidscInfo.outBuffer, outBufferLen, 0, outBufferLen); in PrintOutputToFile()
310 ret = sprintf_s(freeAfterEncodeRpcidscInfo.outBuffer, outBufferLen, "%u", outUint[0]); in PrintOutputToFile()
313 freeAfterEncodeRpcidscInfo.flag = 1; in PrintOutputToFile()
317 ret = sprintf_s(freeAfterEncodeRpcidscInfo.outBuffer, outBufferLen, "%s,%u", in PrintOutputToFile()
318 freeAfterEncodeRpcidscInfo.outBuffer, outUint[i]); in PrintOutputToFile()
321 freeAfterEncodeRpcidscInfo.flag = 1; in PrintOutputToFile()
327 ret = sprintf_s(freeAfterEncodeRpcidscInfo.outBuffer, outBufferLen, "%s,%s", in PrintOutputToFile()
328freeAfterEncodeRpcidscInfo.outBuffer, freeAfterEncodeRpcidscInfo.priSyscapArray + i * SINGLE_SYSCA… in PrintOutputToFile()
331 freeAfterEncodeRpcidscInfo.flag = 1; in PrintOutputToFile()
337 … ret = ConvertedContextSaveAsFile(outDirPath, outputFilename, freeAfterEncodeRpcidscInfo.outBuffer, in PrintOutputToFile()
338 strlen(freeAfterEncodeRpcidscInfo.outBuffer)); in PrintOutputToFile()
341 freeAfterEncodeRpcidscInfo.flag = 1; in PrintOutputToFile()
346 …ic int32_t OutputSetMemAndPrintToFile(struct FreeAfterEncodeRpcidscInfo freeAfterEncodeRpcidscInfo, in OutputSetMemAndPrintToFile() argument
353 freeAfterEncodeRpcidscInfo.type = FREE_MALLOC_OSSYSCAP_AFTER_RPCIDSC; in OutputSetMemAndPrintToFile()
355 (void)memset_s(freeAfterEncodeRpcidscInfo.osSysCapIndex, sizeof(uint16_t) * sysCapArraySize, in OutputSetMemAndPrintToFile()
358freeAfterEncodeRpcidscInfo.priSyscapArray = (char *)malloc((uint32_t)sysCapArraySize * SINGLE_SYSC… in OutputSetMemAndPrintToFile()
359 if (freeAfterEncodeRpcidscInfo.priSyscapArray == NULL) { in OutputSetMemAndPrintToFile()
361 freeAfterEncodeRpcidscInfo.flag = 1; in OutputSetMemAndPrintToFile()
364 …(void)memset_s(freeAfterEncodeRpcidscInfo.priSyscapArray, (size_t)(sysCapArraySize * SINGLE_SYSCAP… in OutputSetMemAndPrintToFile()
366 priSyscap = freeAfterEncodeRpcidscInfo.priSyscapArray; in OutputSetMemAndPrintToFile()
374 … cJsonTemp = cJSON_GetObjectItem(freeAfterEncodeRpcidscInfo.sysCapDefine, cJsonItem->valuestring); in OutputSetMemAndPrintToFile()
376 freeAfterEncodeRpcidscInfo.osSysCapIndex[indexOs++] = (uint16_t)(cJsonTemp->valueint); in OutputSetMemAndPrintToFile()
381 freeAfterEncodeRpcidscInfo.flag = 1; in OutputSetMemAndPrintToFile()
389 outUint[0] = *(uint32_t *)freeAfterEncodeRpcidscInfo.contextBuffer; in OutputSetMemAndPrintToFile()
390 outUint[1] = *(uint32_t *)(freeAfterEncodeRpcidscInfo.contextBuffer + sizeof(uint32_t)); in OutputSetMemAndPrintToFile()
393 if (SetOsSysCapBitMap(osOutUint, 120, freeAfterEncodeRpcidscInfo.osSysCapIndex, indexOs) != 0) { in OutputSetMemAndPrintToFile()
395 freeAfterEncodeRpcidscInfo.flag = 1; in OutputSetMemAndPrintToFile()
398 return PrintOutputToFile(freeAfterEncodeRpcidscInfo, outUint, indexPri, outDirPath); in OutputSetMemAndPrintToFile()
401 static int32_t FreeAfterEncodeRpcidsc(struct FreeAfterEncodeRpcidscInfo freeAfterEncodeRpcidscInfo,… in FreeAfterEncodeRpcidsc() argument
406 free(freeAfterEncodeRpcidscInfo.outBuffer); in FreeAfterEncodeRpcidsc()
407 free(freeAfterEncodeRpcidscInfo.priSyscapArray); in FreeAfterEncodeRpcidsc()
408 free(freeAfterEncodeRpcidscInfo.osSysCapIndex); in FreeAfterEncodeRpcidsc()
409 cJSON_Delete(freeAfterEncodeRpcidscInfo.sysCapDefine); in FreeAfterEncodeRpcidsc()
410 cJSON_Delete(freeAfterEncodeRpcidscInfo.rpcidRoot); in FreeAfterEncodeRpcidsc()
411 FreeContextBuffer(freeAfterEncodeRpcidscInfo.contextBuffer); in FreeAfterEncodeRpcidsc()
414 free(freeAfterEncodeRpcidscInfo.priSyscapArray); in FreeAfterEncodeRpcidsc()
415 free(freeAfterEncodeRpcidscInfo.osSysCapIndex); in FreeAfterEncodeRpcidsc()
416 cJSON_Delete(freeAfterEncodeRpcidscInfo.sysCapDefine); in FreeAfterEncodeRpcidsc()
417 cJSON_Delete(freeAfterEncodeRpcidscInfo.rpcidRoot); in FreeAfterEncodeRpcidsc()
418 FreeContextBuffer(freeAfterEncodeRpcidscInfo.contextBuffer); in FreeAfterEncodeRpcidsc()
421 free(freeAfterEncodeRpcidscInfo.osSysCapIndex); in FreeAfterEncodeRpcidsc()
422 cJSON_Delete(freeAfterEncodeRpcidscInfo.sysCapDefine); in FreeAfterEncodeRpcidsc()
423 cJSON_Delete(freeAfterEncodeRpcidscInfo.rpcidRoot); in FreeAfterEncodeRpcidsc()
424 FreeContextBuffer(freeAfterEncodeRpcidscInfo.contextBuffer); in FreeAfterEncodeRpcidsc()
427 cJSON_Delete(freeAfterEncodeRpcidscInfo.sysCapDefine); in FreeAfterEncodeRpcidsc()
428 cJSON_Delete(freeAfterEncodeRpcidscInfo.rpcidRoot); in FreeAfterEncodeRpcidsc()
429 FreeContextBuffer(freeAfterEncodeRpcidscInfo.contextBuffer); in FreeAfterEncodeRpcidsc()
432 cJSON_Delete(freeAfterEncodeRpcidscInfo.rpcidRoot); in FreeAfterEncodeRpcidsc()
433 FreeContextBuffer(freeAfterEncodeRpcidscInfo.contextBuffer); in FreeAfterEncodeRpcidsc()
437 FreeContextBuffer(freeAfterEncodeRpcidscInfo.contextBuffer); in FreeAfterEncodeRpcidsc()
448 struct FreeAfterEncodeRpcidscInfo freeAfterEncodeRpcidscInfo; in EncodeRpcidscToString() local
449 freeAfterEncodeRpcidscInfo.priSyscapArray = NULL; in EncodeRpcidscToString()
450 freeAfterEncodeRpcidscInfo.osSysCapIndex = NULL; in EncodeRpcidscToString()
451 freeAfterEncodeRpcidscInfo.sysCapDefine = NULL; in EncodeRpcidscToString()
452 freeAfterEncodeRpcidscInfo.rpcidRoot = NULL; in EncodeRpcidscToString()
453 freeAfterEncodeRpcidscInfo.outBuffer = NULL; in EncodeRpcidscToString()
454 freeAfterEncodeRpcidscInfo.contextBuffer = NULL; in EncodeRpcidscToString()
455 freeAfterEncodeRpcidscInfo.type = 0; in EncodeRpcidscToString()
456 freeAfterEncodeRpcidscInfo.flag = 0; in EncodeRpcidscToString()
459 if (CheckRpcidFormat(inputFile, &freeAfterEncodeRpcidscInfo.contextBuffer, &bufferLen) != 0) { in EncodeRpcidscToString()
461 … return FreeAfterEncodeRpcidsc(freeAfterEncodeRpcidscInfo, FREE_CONTEXT_OUT_AFTER_RPCIDSC, ret); in EncodeRpcidscToString()
465 freeAfterEncodeRpcidscInfo.rpcidRoot = cJSON_CreateObject(); in EncodeRpcidscToString()
466 if (ParseRpcidToJson(freeAfterEncodeRpcidscInfo.contextBuffer, bufferLen, in EncodeRpcidscToString()
467 freeAfterEncodeRpcidscInfo.rpcidRoot) != 0) { in EncodeRpcidscToString()
469 … return FreeAfterEncodeRpcidsc(freeAfterEncodeRpcidscInfo, FREE_RPCID_ROOT_AFTER_RPCIDSC, ret); in EncodeRpcidscToString()
473 freeAfterEncodeRpcidscInfo.sysCapDefine = CreateWholeSyscapJsonObj(); in EncodeRpcidscToString()
474 sysCapArray = cJSON_GetObjectItem(freeAfterEncodeRpcidscInfo.rpcidRoot, "syscap"); in EncodeRpcidscToString()
477 … return FreeAfterEncodeRpcidsc(freeAfterEncodeRpcidscInfo, FREE_WHOLE_SYSCAP_AFTER_RPCIDSC, ret); in EncodeRpcidscToString()
482 … return FreeAfterEncodeRpcidsc(freeAfterEncodeRpcidscInfo, FREE_WHOLE_SYSCAP_AFTER_RPCIDSC, ret); in EncodeRpcidscToString()
485freeAfterEncodeRpcidscInfo.osSysCapIndex = (uint16_t *)malloc(sizeof(uint16_t) * sysCapArraySize); in EncodeRpcidscToString()
486 if (freeAfterEncodeRpcidscInfo.osSysCapIndex == NULL) { in EncodeRpcidscToString()
488 … return FreeAfterEncodeRpcidsc(freeAfterEncodeRpcidscInfo, FREE_WHOLE_SYSCAP_AFTER_RPCIDSC, ret); in EncodeRpcidscToString()
491 …ret = OutputSetMemAndPrintToFile(freeAfterEncodeRpcidscInfo, sysCapArraySize, sysCapArray, outDirP… in EncodeRpcidscToString()
492 if (freeAfterEncodeRpcidscInfo.flag == 1) { in EncodeRpcidscToString()
493 … return FreeAfterEncodeRpcidsc(freeAfterEncodeRpcidscInfo, freeAfterEncodeRpcidscInfo.type, ret); in EncodeRpcidscToString()
495 return FreeAfterEncodeRpcidsc(freeAfterEncodeRpcidscInfo, FREE_OUTBUFFER_AFTER_RPCIDSC, ret); in EncodeRpcidscToString()