Lines Matching refs:id
47 int id; member
131 if (put_user(timer->id, (int __user *)buf)) in mISDN_read()
169 if (timer->id >= 0) in dev_expire_timer()
178 int id; in misdn_add_timer() local
184 id = 0; in misdn_add_timer()
192 id = timer->id = dev->next_id++; in misdn_add_timer()
200 return id; in misdn_add_timer()
204 misdn_del_timer(struct mISDNtimerdev *dev, int id) in misdn_del_timer() argument
210 if (timer->id == id) { in misdn_del_timer()
212 timer->id = -1; in misdn_del_timer()
216 return id; in misdn_del_timer()
227 int id, tout, ret = 0; in mISDN_ioctl() local
240 id = misdn_add_timer(dev, tout); in mISDN_ioctl()
243 tout, id); in mISDN_ioctl()
244 if (id < 0) { in mISDN_ioctl()
245 ret = id; in mISDN_ioctl()
248 if (put_user(id, (int __user *)arg)) in mISDN_ioctl()
252 if (get_user(id, (int __user *)arg)) { in mISDN_ioctl()
257 printk(KERN_DEBUG "%s del id %d\n", __func__, id); in mISDN_ioctl()
258 id = misdn_del_timer(dev, id); in mISDN_ioctl()
259 if (put_user(id, (int __user *)arg)) in mISDN_ioctl()