Lines Matching defs:cbValue
80 uint32_t cbValue;
289 SSMFIELD_ENTRY( EFIVAR, cbValue),
410 pEfiVar->cbValue = sizeof(pEfiVar->abValue);
413 &pEfiVar->fAttributes, &pEfiVar->abValue[0], &pEfiVar->cbValue);
421 if (pEfiVar->cbValue == 0)
424 LogRel(("EFI/nvramLoad: Bad variable #%u: cbValue=%#x cchName=%#x (strlen=%#x) szName=%.*Rhxs\n",
425 pEfiVar->cbValue, pEfiVar->cchName, cchName, pEfiVar->cchName + 1, pEfiVar->szName));
477 pEfiVar->fAttributes, pEfiVar->abValue, pEfiVar->cbValue);
515 pThis->NVRAM.VarOpBuf.cbValue = pEfiVar->cbValue;
516 memcpy(pThis->NVRAM.VarOpBuf.abValue, pEfiVar->abValue, pEfiVar->cbValue);
521 pThis->NVRAM.VarOpBuf.cbValue, pThis->NVRAM.VarOpBuf.abValue));
532 pThis->NVRAM.VarOpBuf.cbValue = 0;
588 pThis->NVRAM.VarOpBuf.cbValue, pThis->NVRAM.VarOpBuf.abValue));
613 LogFlowFunc(("Old abValue=%.*Rhxs\n", pEfiVar->cbValue, pEfiVar->abValue));
622 if (pThis->NVRAM.VarOpBuf.cbValue == 0)
642 LogRel(("EFI: Replacing variable %RTuuid::'%s' fAttrib=%#x cbValue=%#x\n", &pThis->NVRAM.VarOpBuf.uuid,
643 pThis->NVRAM.VarOpBuf.szName, pThis->NVRAM.VarOpBuf.fAttributes, pThis->NVRAM.VarOpBuf.cbValue));
645 pEfiVar->cbValue = pThis->NVRAM.VarOpBuf.cbValue;
646 memcpy(pEfiVar->abValue, pThis->NVRAM.VarOpBuf.abValue, pEfiVar->cbValue);
650 else if (pThis->NVRAM.VarOpBuf.cbValue == 0)
661 LogRel(("EFI: Adding variable %RTuuid::'%s' fAttrib=%#x cbValue=%#x\n", &pThis->NVRAM.VarOpBuf.uuid,
662 pThis->NVRAM.VarOpBuf.szName, pThis->NVRAM.VarOpBuf.fAttributes, pThis->NVRAM.VarOpBuf.cbValue));
670 pEfiVar->cbValue = pThis->NVRAM.VarOpBuf.cbValue;
671 memcpy(pEfiVar->abValue, pThis->NVRAM.VarOpBuf.abValue, pEfiVar->cbValue);
685 LogRelMax(5, ("EFI: Too many variables (%RTuuid::'%s' fAttrib=%#x cbValue=%#x)\n", &pThis->NVRAM.VarOpBuf.uuid,
686 pThis->NVRAM.VarOpBuf.szName, pThis->NVRAM.VarOpBuf.fAttributes, pThis->NVRAM.VarOpBuf.cbValue));
803 if (pThis->NVRAM.offOpBuffer < pThis->NVRAM.VarOpBuf.cbValue)
816 pThis->NVRAM.VarOpBuf.cbValue = u32Value;
821 pThis->NVRAM.VarOpBuf.cbValue = sizeof(pThis->NVRAM.VarOpBuf.abValue);
913 if (pThis->NVRAM.offOpBuffer < pThis->NVRAM.VarOpBuf.cbValue && cb == 1)
926 *pu32 = pThis->NVRAM.VarOpBuf.cbValue;
947 if (pEfiVar->cbValue < 2)
950 *pfZeroTerm = pachValue[pEfiVar->cbValue - 1] == 0;
953 size_t cchValue = RTStrNLen((const char *)pEfiVar->abValue, pEfiVar->cbValue);
954 if (cchValue != pEfiVar->cbValue - *pfZeroTerm)
984 if (pEfiVar->cbValue < 4 || (pEfiVar->cbValue & 1))
988 size_t cwcValue = pEfiVar->cbValue / sizeof(RTUTF16);
1036 pEfiVar->fAttributes, &pEfiVar->uuid, pEfiVar->szName, pEfiVar->cbValue,
1037 fZeroTerm ? "" : ",nz", pEfiVar->cbValue, pEfiVar->abValue);
1042 pEfiVar->fAttributes, &pEfiVar->uuid, pEfiVar->szName, pEfiVar->cbValue,
1043 fZeroTerm ? "" : ",nz", pEfiVar->cbValue, pEfiVar->abValue);
1048 pEfiVar->fAttributes, &pEfiVar->uuid, pEfiVar->szName, pEfiVar->cbValue,
1049 pEfiVar->cbValue, pEfiVar->abValue);
1631 if ( pEfiVar->cbValue > sizeof(pEfiVar->abValue)
1632 || pEfiVar->cbValue == 0)
1635 LogRel(("EFI: Loaded invalid variable value length %#x\n", pEfiVar->cbValue));