Home | History | Annotate | Download | only in parser

Lines Matching refs:phase

6    The conext is updated with current phase and sc_code position in the buffer.
8 What is phase?: phase is a value between [0-4], we keep track of consecutive '0's with this.
10 if 0xXX code is found and current phase is 2, its changed to 3 which means we found the pattern
25 uint32_t data_left=0, phase = 0, ret = 0;
34 phase = cxt->phase;
39 while((data_left > 0) &&(phase < 3))
41 /* Check if we are byte aligned & phase=0, if thats the case we can check
43 if(((((uint32_t)ptr) & 0x3) == 0) && (phase == 0))
70 /* At this point either data is not on a word boundary or phase > 0 or On a word boundary but we detected
75 {/* Phase can be 3 only if third start code byte is found */
76 phase++;
78 if(phase > 2)
80 phase = 2;
98 if(phase == 2)
106 phase = 0;
111 phase = 3;
121 phase += 1;
132 if((data_left > 0) && (phase == 3))
137 phase++;
140 cxt->phase = phase;
141 /* Return SC found only if phase is 4, else always success */