Lines Matching defs:iclock
61 struct mISDNclock *iclock, *bestclock = NULL, *lastclock = NULL;
64 list_for_each_entry(iclock, &iclock_list, list) {
65 if (iclock->pri > pri) {
66 pri = iclock->pri;
67 bestclock = iclock;
69 if (iclock_current == iclock)
70 lastclock = iclock;
97 struct mISDNclock *iclock;
101 iclock = kzalloc(sizeof(struct mISDNclock), GFP_ATOMIC);
102 if (!iclock) {
106 strncpy(iclock->name, name, sizeof(iclock->name)-1);
107 iclock->pri = pri;
108 iclock->priv = priv;
109 iclock->ctl = ctl;
111 list_add_tail(&iclock->list, &iclock_list);
114 return iclock;
119 mISDN_unregister_clock(struct mISDNclock *iclock)
124 printk(KERN_DEBUG "%s: %s %d\n", __func__, iclock->name,
125 iclock->pri);
127 if (iclock_current == iclock) {
131 iclock->name);
132 iclock->ctl(iclock->priv, 0);
134 list_del(&iclock->list);
141 mISDN_clock_update(struct mISDNclock *iclock, int samples, struct timeval *tv)
149 if (iclock_current != iclock) {
152 iclock->name,
154 iclock->ctl(iclock->priv, 0);