Lines Matching refs:depth
28 int32_t getEncodedField(int32_t pos[], int32_t depth, bool includeDepth) { in getEncodedField() argument
30 for (int32_t i = 0; i <= depth; i++) { in getEncodedField()
36 field |= (depth << 24); in getEncodedField()
41 int32_t encodeMatcherMask(int32_t mask[], int32_t depth) { in encodeMatcherMask() argument
42 return getEncodedField(mask, depth, false) | 0xff000000; in encodeMatcherMask()
61 void translateFieldMatcher(int tag, const FieldMatcher& matcher, int depth, int* pos, int* mask, in translateFieldMatcher() argument
63 if (depth > kMaxLogDepth) { in translateFieldMatcher()
68 pos[depth] = matcher.field(); in translateFieldMatcher()
69 mask[depth] = 0x7f; in translateFieldMatcher()
72 depth++; in translateFieldMatcher()
73 if (depth > 2) { in translateFieldMatcher()
78 pos[depth] = 0x00; in translateFieldMatcher()
79 mask[depth] = 0x7f; in translateFieldMatcher()
82 pos[depth] = 0; in translateFieldMatcher()
83 mask[depth] = 0; in translateFieldMatcher()
86 pos[depth] = 1; in translateFieldMatcher()
87 mask[depth] = 0x7f; in translateFieldMatcher()
90 pos[depth] = 0x80; in translateFieldMatcher()
91 mask[depth] = 0x80; in translateFieldMatcher()
94 pos[depth] = 0; in translateFieldMatcher()
95 mask[depth] = 0; in translateFieldMatcher()
101 output->push_back(Matcher(Field(tag, pos, depth), encodeMatcherMask(mask, depth))); in translateFieldMatcher()
104 translateFieldMatcher(tag, child, depth + 1, pos, mask, output); in translateFieldMatcher()