Lines Matching refs:this
21 fsm_instance *this;
25 this = kzalloc(sizeof(fsm_instance), order);
26 if (this == NULL) {
31 strscpy(this->name, name, sizeof(this->name));
32 init_waitqueue_head(&this->wait_q);
38 kfree_fsm(this);
45 this->f = f;
51 kfree_fsm(this);
63 kfree_fsm(this);
69 return this;
73 kfree_fsm(fsm_instance *this)
75 if (this) {
76 if (this->f) {
77 kfree(this->f->jumpmatrix);
78 kfree(this->f);
80 kfree(this);
135 fsm_timer *this = from_timer(this, t, tl);
138 this->fi->name, this);
140 fsm_event(this->fi, this->expire_event, this->event_arg);
144 fsm_settimer(fsm_instance *fi, fsm_timer *this)
146 this->fi = fi;
149 this);
151 timer_setup(&this->tl, fsm_expire_timer, 0);
155 fsm_deltimer(fsm_timer *this)
158 printk(KERN_DEBUG "fsm(%s): Delete timer %p\n", this->fi->name,
159 this);
161 del_timer(&this->tl);
165 fsm_addtimer(fsm_timer *this, int millisec, int event, void *arg)
170 this->fi->name, this, millisec);
173 timer_setup(&this->tl, fsm_expire_timer, 0);
174 this->expire_event = event;
175 this->event_arg = arg;
176 this->tl.expires = jiffies + (millisec * HZ) / 1000;
177 add_timer(&this->tl);
181 /* FIXME: this function is never used, why */
183 fsm_modtimer(fsm_timer *this, int millisec, int event, void *arg)
188 this->fi->name, this, millisec);
191 del_timer(&this->tl);
192 timer_setup(&this->tl, fsm_expire_timer, 0);
193 this->expire_event = event;
194 this->event_arg = arg;
195 this->tl.expires = jiffies + (millisec * HZ) / 1000;
196 add_timer(&this->tl);