Lines Matching defs:magic_num
943 uint32_t magic_num; /* magic number */
951 magic_num = 0;
957 while (magic_num != ETM_PROTO_MAGIC_NUM) {
964 j = MIN((j + 1), sizeof (magic_num));
965 if (byte_cnt < sizeof (magic_num)) {
969 if (byte_cnt > sizeof (magic_num)) {
977 (void) memcpy(&magic_num, &buf5[0], sizeof (magic_num));
978 magic_num = ntohl(magic_num);
983 if (byte_cnt != sizeof (magic_num)) {
987 if ((byte_cnt > sizeof (magic_num)) && (etm_debug_lvl >= 2)) {
988 i = MIN(byte_cnt - sizeof (magic_num), sizeof (drop_buf));
991 byte_cnt - sizeof (magic_num));
996 *magic_ptr = magic_num;