Lines Matching refs:data
34 static void ToHex(const uint8_t* data, uint16_t len, char* hexString,
36 static void dumpbin(const char* data, int size, uint32_t trace_layer,
38 static inline void word2hex(const char* data, char** hex);
39 static inline void byte2char(const char* data, char** str);
40 static inline void byte2hex(const char* data, char** str);
62 void ToHex(const uint8_t* data, uint16_t len, char* hexString, in ToHex() argument
66 hexString[j++] = sTable[(*data >> 4) & 0xf]; in ToHex()
67 hexString[j++] = sTable[*data & 0xf]; in ToHex()
68 data++; in ToHex()
91 void dumpbin(const char* data, int size, uint32_t trace_layer, in dumpbin() argument
107 byte2hex(&data[j], &line); in dumpbin()
111 for (j = 0; j < width; j++) byte2char(data++, &line); in dumpbin()
128 byte2hex(&data[j], &line); in dumpbin()
138 for (j = 0; j < leftover; j++) byte2char(data++, &line); in dumpbin()
146 inline void word2hex(const char* data, char** hex) { in word2hex() argument
147 byte2hex(&data[1], hex); in word2hex()
148 byte2hex(&data[0], hex); in word2hex()
151 inline void byte2char(const char* data, char** str) { in byte2char() argument
152 **str = *data < ' ' ? '.' : *data > '~' ? '.' : *data; in byte2char()
156 inline void byte2hex(const char* data, char** str) { in byte2hex() argument
157 **str = sTable[(*data >> 4) & 0xf]; in byte2hex()
159 **str = sTable[*data & 0xf]; in byte2hex()
166 uint8_t* data = (uint8_t*)p_buf; in DispHciCmd() local
173 ToHex(data, data_len, log_line, sizeof(log_line)); in DispHciCmd()
180 uint8_t* data = (uint8_t*)p_buf; in DispHciEvt() local
187 ToHex(data, data_len, log_line, sizeof(log_line)); in DispHciEvt()
202 uint8_t* data = (uint8_t*)p_buf; in DispLLCP() local
209 ToHex(data, data_len, log_line, sizeof(log_line)); in DispLLCP()
223 void DispHcp(uint8_t* data, uint16_t len, bool is_recv) { in DispHcp() argument
233 ToHex(data, len, log_line, sizeof(log_line)); in DispHcp()