Lines Matching refs:uint8

33 #define GET_UINT32_BYTE1(v)    (uint8)(((uint32)(v)) & 0x000000FF)
34 #define GET_UINT32_BYTE2(v) (uint8)((((uint32)(v)) & 0x0000FF00) >> 8)
35 #define GET_UINT32_BYTE3(v) (uint8)((((uint32)(v)) & 0x00FF0000) >> 16)
36 #define GET_UINT32_BYTE4(v) (uint8)((((uint32)(v)) & 0xFF000000) >> 24)
38 static uint8 HiEventEncode(uint8 k, int32 v, uint8 last, uint8 *encodeOut);
51 void HiEventPrintf(uint8 type, uint16 eventId, int8 key, int32 value) in HiEventPrintf()
57 uint8 encodeBuffer[SINGLE_VALUE_MAX_LEN] = { 0 }; in HiEventPrintf()
66 e.common.len = HiEventEncode((uint8)key, value, 1, encodeBuffer); in HiEventPrintf()
70 OutputEvent((uint8 *)&e); in HiEventPrintf()
73 HiEvent *HiEventCreate(uint8 type, uint16 eventId, uint8 num) in HiEventCreate()
82 event->payload = (uint8 *)HIVIEW_MemAlloc(MEM_POOL_HIVIEW_ID, SINGLE_VALUE_MAX_LEN * num); in HiEventCreate()
104 uint8 encodeLen; in HiEventPutInteger()
106 encodeLen = HiEventEncode((uint8)key, value, 1, event->payload + event->common.len); in HiEventPutInteger()
108 encodeLen = HiEventEncode((uint8)key, value, 0, event->payload + event->common.len); in HiEventPutInteger()
123 OutputEvent((uint8 *)event); in HiEventReport()
129 static uint8 HiEventEncode(uint8 k, int32 v, uint8 last, uint8 *encodeOut) in HiEventEncode()
188 void HiEventFileAddWatcher(uint8 type, FileProc func, const char *path) in HiEventFileAddWatcher()
193 void HiEventFileRemoveWatcher(uint8 type, FileProc func) in HiEventFileRemoveWatcher()
198 int HiEventFileProc(uint8 type, const char *dest, uint8 mode) in HiEventFileProc()