Lines Matching refs:state_index
138 static int state_num=0,state_index=0;
183 state_index=0;
225 st_idx=state_index;
236 /* state_index <= state_num <= STATE_SIZE */
237 state_index += num;
238 if (state_index >= STATE_SIZE)
240 state_index%=STATE_SIZE;
245 if (state_index > state_num)
246 state_num=state_index;
248 /* state_index <= state_num <= STATE_SIZE */
442 st_idx=state_index;
448 state_index+=num_ceil;
449 if (state_index > state_num)
450 state_index %= state_num;