Lines Matching refs:state_index
139 static int state_num=0,state_index=0;
184 state_index=0;
231 st_idx=state_index;
242 /* state_index <= state_num <= STATE_SIZE */
243 state_index += num;
244 if (state_index >= STATE_SIZE)
246 state_index%=STATE_SIZE;
251 if (state_index > state_num)
252 state_num=state_index;
254 /* state_index <= state_num <= STATE_SIZE */
448 st_idx=state_index;
454 state_index+=num_ceil;
455 if (state_index > state_num)
456 state_index %= state_num;