• Home
  • Raw
  • Download

Lines Matching refs:fi

87 fsm_print_history(fsm_instance *fi)  in fsm_print_history()  argument
92 if (fi->history_size >= FSM_HISTORY_SIZE) in fsm_print_history()
93 idx = fi->history_index; in fsm_print_history()
95 printk(KERN_DEBUG "fsm(%s): History:\n", fi->name); in fsm_print_history()
96 for (i = 0; i < fi->history_size; i++) { in fsm_print_history()
97 int e = fi->history[idx].event; in fsm_print_history()
98 int s = fi->history[idx++].state; in fsm_print_history()
102 fi->f->state_names[s]); in fsm_print_history()
105 fi->f->state_names[s], in fsm_print_history()
106 fi->f->event_names[e]); in fsm_print_history()
108 fi->history_size = fi->history_index = 0; in fsm_print_history()
112 fsm_record_history(fsm_instance *fi, int state, int event) in fsm_record_history() argument
114 fi->history[fi->history_index].state = state; in fsm_record_history()
115 fi->history[fi->history_index++].event = event; in fsm_record_history()
116 fi->history_index %= FSM_HISTORY_SIZE; in fsm_record_history()
117 if (fi->history_size < FSM_HISTORY_SIZE) in fsm_record_history()
118 fi->history_size++; in fsm_record_history()
123 fsm_getstate_str(fsm_instance *fi) in fsm_getstate_str() argument
125 int st = atomic_read(&fi->state); in fsm_getstate_str()
126 if (st >= fi->f->nr_states) in fsm_getstate_str()
128 return fi->f->state_names[st]; in fsm_getstate_str()
136 this->fi->name, this); in fsm_expire_timer()
138 fsm_event(this->fi, this->expire_event, this->event_arg); in fsm_expire_timer()
142 fsm_settimer(fsm_instance *fi, fsm_timer *this) in fsm_settimer() argument
144 this->fi = fi; in fsm_settimer()
148 printk(KERN_DEBUG "fsm(%s): Create timer %p\n", fi->name, in fsm_settimer()
158 printk(KERN_DEBUG "fsm(%s): Delete timer %p\n", this->fi->name, in fsm_deltimer()
170 this->fi->name, this, millisec); in fsm_addtimer()
190 this->fi->name, this, millisec); in fsm_modtimer()