Lines Matching refs:phase
354 uint32_t left = 0, data = 0, phase = 0;
357 /* Meaning of phase:
367 phase = 0;
370 while ((left > 0) && (phase < 3)) {
371 // Check if the address is 32-bit aligned & phase=0, if thats the case we can check 4 bytes instead of one byte at a time.
372 if (((((uint32_t)ptr) & 0x3) == 0) && (phase == 0)) {
390 // At this point either data is not on a 32-bit boundary or phase > 0 so we look at one byte at a time
393 phase++;
394 if (phase > 2) {
396 phase = 2;
398 } else if ((*ptr == STARTCODE_01) && (phase == 2)) {
400 phase = 3;
403 phase = 0;
410 if ((left > 0) && (phase == 3)) {
411 phase = 4;