Lines Matching defs:CurKey

201     DEVSMCCURKEY        CurKey;
630 * Looks up a key and copies its value and attributes into the CurKey.
647 * Looks up a key and copies its value and attributes into the CurKey.
656 uint32_t const uKeyValueLog = RT_H2LE_U32(pThis->CurKey.Key.u32);
658 uint32_t iKey = smcKeyLookup(pThis, pThis->CurKey.Key.u32);
661 if ( g_aSmcKeys[iKey].cbValue == pThis->CurKey.cbValue
664 pThis->CurKey.Type = g_aSmcKeys[iKey].Type;
665 pThis->CurKey.fAttr = g_aSmcKeys[iKey].fAttr;
666 RT_ZERO(pThis->CurKey.Value);
669 bRc = g_aSmcKeys[iKey].pfnGet(pThis, &pThis->CurKey, pThis->bCmd, &g_aSmcKeys[iKey]);
673 &uKeyValueLog, pThis->CurKey.cbValue, &pThis->CurKey.Value));
688 pThis->CurKey.cbValue, g_aSmcKeys[iKey].cbValue, &uKeyValueLog));
694 Log(("smcKeyGetByName: Key not found! key=%4.4s size=%#x\n", &uKeyValueLog, pThis->CurKey.cbValue));
698 RT_ZERO(pThis->CurKey);
704 * Looks up a key by index and copies its name (and attributes) into the CurKey.
712 uint32_t iKey = RT_BE2H_U32(pThis->CurKey.Key.u32);
715 pThis->CurKey.Key = g_aSmcKeys[iKey].Key;
716 pThis->CurKey.Type = g_aSmcKeys[iKey].Type;
717 pThis->CurKey.fAttr = g_aSmcKeys[iKey].fAttr;
718 pThis->CurKey.cbValue = g_aSmcKeys[iKey].cbValue;
719 RT_ZERO(pThis->CurKey.Value);
721 pThis->CurKey.Key.ab[3], pThis->CurKey.Key.ab[2], pThis->CurKey.Key.ab[1], pThis->CurKey.Key.ab[0]));
734 * Looks up a key by index and copies its attributes into the CurKey.
743 uint32_t const uKeyValueLog = RT_H2LE_U32(pThis->CurKey.Key.u32);
745 uint32_t iKey = smcKeyLookup(pThis, pThis->CurKey.Key.u32);
748 pThis->CurKey.Type = g_aSmcKeys[iKey].Type;
749 pThis->CurKey.fAttr = g_aSmcKeys[iKey].fAttr;
750 pThis->CurKey.cbValue = g_aSmcKeys[iKey].cbValue;
751 RT_ZERO(pThis->CurKey.Value);
755 bRc = g_aSmcKeys[iKey].pfnGet(pThis, &pThis->CurKey, pThis->bCmd, &g_aSmcKeys[iKey]);
759 &uKeyValueLog, pThis->CurKey.cbValue, &pThis->CurKey.Value));
767 Log(("smcKeyGetAttrByName: Key not found! key=%4.4s size=%#x\n", &uKeyValueLog, pThis->CurKey.cbValue));
771 RT_ZERO(pThis->CurKey);
800 && pThis->offValue < pThis->CurKey.cbValue)
802 *pbValue = pThis->CurKey.Value.ab[pThis->offValue];
803 if (++pThis->offValue >= pThis->CurKey.cbValue)
821 *pbValue = pThis->CurKey.cbValue;
823 *pbValue = pThis->CurKey.Type.ab[pThis->offValue - 1];
825 *pbValue = pThis->CurKey.fAttr;
841 && pThis->offValue < sizeof(pThis->CurKey.Key))
843 *pbValue = pThis->CurKey.Key.ab[pThis->offValue];
844 if (++pThis->offValue >= sizeof(pThis->CurKey.Key))
899 pThis->CurKey.Key.ab[pThis->offKey++] = bValue;
907 if (bValue <= sizeof(pThis->CurKey.Value))
909 pThis->CurKey.cbValue = bValue;
923 bValue, sizeof(pThis->CurKey.Value)));
928 && pThis->offValue < pThis->CurKey.cbValue)
931 pThis->CurKey.Value.ab[pThis->offValue++] = bValue;
932 if (pThis->offValue != pThis->CurKey.cbValue)
956 pThis->CurKey.Key.ab[pThis->offKey] = bValue;
1024 pThis->CurKey.Key.u32 = 0;
1025 pThis->CurKey.cbValue = 0;