Lines Matching +full:system +full:- +full:ctl

1 // SPDX-License-Identifier: GPL-2.0-only
10 * ctl = callback function to enable/disable clock source
14 * Note: Callback 'ctl' can be called before mISDN_register_clock returns!
55 int pri = -128; in select_iclock()
58 if (iclock->pri > pri) { in select_iclock()
59 pri = iclock->pri; in select_iclock()
69 lastclock->name); in select_iclock()
70 lastclock->ctl(lastclock->priv, 0); in select_iclock()
76 bestclock->name); in select_iclock()
77 bestclock->ctl(bestclock->priv, 1); in select_iclock()
87 *mISDN_register_clock(char *name, int pri, clockctl_func_t *ctl, void *priv) in mISDN_register_clock() argument
99 strncpy(iclock->name, name, sizeof(iclock->name) - 1); in mISDN_register_clock()
100 iclock->pri = pri; in mISDN_register_clock()
101 iclock->priv = priv; in mISDN_register_clock()
102 iclock->ctl = ctl; in mISDN_register_clock()
104 list_add_tail(&iclock->list, &iclock_list); in mISDN_register_clock()
117 printk(KERN_DEBUG "%s: %s %d\n", __func__, iclock->name, in mISDN_unregister_clock()
118 iclock->pri); in mISDN_unregister_clock()
124 iclock->name); in mISDN_unregister_clock()
125 iclock->ctl(iclock->priv, 0); in mISDN_unregister_clock()
127 list_del(&iclock->list); in mISDN_unregister_clock()
144 iclock->name, in mISDN_clock_update()
145 iclock_current ? iclock_current->name : "nothing"); in mISDN_clock_update()
146 iclock->ctl(iclock->priv, 0); in mISDN_clock_update()
159 /* calc elapsed time by system clock */ in mISDN_clock_update()
173 iclock_current ? iclock_current->name : "nothing"); in mISDN_clock_update()
188 /* calc elapsed time by system clock */ in mISDN_clock_get()