Lines Matching refs:this
18 fsm_instance *this; in init_fsm() local
22 this = (fsm_instance *)kmalloc(sizeof(fsm_instance), order); in init_fsm()
23 if (this == NULL) { in init_fsm()
28 memset(this, 0, sizeof(fsm_instance)); in init_fsm()
29 strncpy(this->name, name, sizeof(this->name)); in init_fsm()
35 kfree_fsm(this); in init_fsm()
43 this->f = f; in init_fsm()
50 kfree_fsm(this); in init_fsm()
63 kfree_fsm(this); in init_fsm()
69 return this; in init_fsm()
73 kfree_fsm(fsm_instance *this) in kfree_fsm() argument
75 if (this) { in kfree_fsm()
76 if (this->f) { in kfree_fsm()
77 if (this->f->jumpmatrix) in kfree_fsm()
78 kfree(this->f->jumpmatrix); in kfree_fsm()
79 kfree(this->f); in kfree_fsm()
81 kfree(this); in kfree_fsm()
134 fsm_expire_timer(fsm_timer *this) in fsm_expire_timer() argument
138 this->fi->name, this); in fsm_expire_timer()
140 fsm_event(this->fi, this->expire_event, this->event_arg); in fsm_expire_timer()
144 fsm_settimer(fsm_instance *fi, fsm_timer *this) in fsm_settimer() argument
146 this->fi = fi; in fsm_settimer()
147 this->tl.function = (void *)fsm_expire_timer; in fsm_settimer()
148 this->tl.data = (long)this; in fsm_settimer()
151 this); in fsm_settimer()
153 init_timer(&this->tl); in fsm_settimer()
157 fsm_deltimer(fsm_timer *this) in fsm_deltimer() argument
160 printk(KERN_DEBUG "fsm(%s): Delete timer %p\n", this->fi->name, in fsm_deltimer()
161 this); in fsm_deltimer()
163 del_timer(&this->tl); in fsm_deltimer()
167 fsm_addtimer(fsm_timer *this, int millisec, int event, void *arg) in fsm_addtimer() argument
172 this->fi->name, this, millisec); in fsm_addtimer()
176 if (this->tl.list.next || this->tl.list.prev) { in fsm_addtimer()
178 this->fi->name); in fsm_addtimer()
182 if (this->tl.next || this->tl.prev) { in fsm_addtimer()
184 this->fi->name); in fsm_addtimer()
188 init_timer(&this->tl); in fsm_addtimer()
189 this->tl.function = (void *)fsm_expire_timer; in fsm_addtimer()
190 this->tl.data = (long)this; in fsm_addtimer()
191 this->expire_event = event; in fsm_addtimer()
192 this->event_arg = arg; in fsm_addtimer()
193 this->tl.expires = jiffies + (millisec * HZ) / 1000; in fsm_addtimer()
194 add_timer(&this->tl); in fsm_addtimer()
199 fsm_modtimer(fsm_timer *this, int millisec, int event, void *arg) in fsm_modtimer() argument
204 this->fi->name, this, millisec); in fsm_modtimer()
208 if (this->tl.list.next || this->tl.list.prev) in fsm_modtimer()
209 del_timer(&this->tl); in fsm_modtimer()
211 if (this->tl.next || this->tl.prev) in fsm_modtimer()
212 del_timer(&this->tl); in fsm_modtimer()
214 init_timer(&this->tl); in fsm_modtimer()
215 this->tl.function = (void *)fsm_expire_timer; in fsm_modtimer()
216 this->tl.data = (long)this; in fsm_modtimer()
217 this->expire_event = event; in fsm_modtimer()
218 this->event_arg = arg; in fsm_modtimer()
219 this->tl.expires = jiffies + (millisec * HZ) / 1000; in fsm_modtimer()
220 add_timer(&this->tl); in fsm_modtimer()