Lines Matching +full:class +full:- +full:d

1 // SPDX-License-Identifier: GPL-2.0-or-later
28 smc->q.ev_put = smc->q.ev_get = smc->q.ev_queue ; in ev_init()
34 void queue_event(struct s_smc *smc, int class, int event) in queue_event() argument
36 PRINTF("queue class %d event %d\n",class,event) ; in queue_event()
37 smc->q.ev_put->class = class ; in queue_event()
38 smc->q.ev_put->event = event ; in queue_event()
39 if (++smc->q.ev_put == &smc->q.ev_queue[MAX_EVENT]) in queue_event()
40 smc->q.ev_put = smc->q.ev_queue ; in queue_event()
42 if (smc->q.ev_put == smc->q.ev_get) { in queue_event()
52 PRINTF("timer event class %d token %d\n", in timer_event()
68 int class ; in ev_dispatcher() local
70 ev = smc->q.ev_get ; in ev_dispatcher()
71 PRINTF("dispatch get %x put %x\n",ev,smc->q.ev_put) ; in ev_dispatcher()
72 while (ev != smc->q.ev_put) { in ev_dispatcher()
73 PRINTF("dispatch class %d event %d\n",ev->class,ev->event) ; in ev_dispatcher()
74 switch(class = ev->class) { in ev_dispatcher()
76 ecm(smc,(int)ev->event) ; in ev_dispatcher()
79 cfm(smc,(int)ev->event) ; in ev_dispatcher()
82 rmt(smc,(int)ev->event) ; in ev_dispatcher()
85 smt_event(smc,(int)ev->event) ; in ev_dispatcher()
89 timer_test_event(smc,(int)ev->event) ; in ev_dispatcher()
95 if (class >= EVENT_PCMA && in ev_dispatcher()
96 class < EVENT_PCMA + NUMPHYS) { in ev_dispatcher()
97 pcm(smc,class - EVENT_PCMA,(int)ev->event) ; in ev_dispatcher()
104 if (++ev == &smc->q.ev_queue[MAX_EVENT]) in ev_dispatcher()
105 ev = smc->q.ev_queue ; in ev_dispatcher()
108 smc->q.ev_get = ev; in ev_dispatcher()
123 return smc->mib.fddiSMTCF_State; in smt_online()
141 deb = &smc->debug; in do_smt_flag()
146 deb->d_smt = value ; in do_smt_flag()
148 deb->d_smtf = value ; in do_smt_flag()
150 deb->d_pcm = value ; in do_smt_flag()
152 deb->d_rmt = value ; in do_smt_flag()
154 deb->d_cfm = value ; in do_smt_flag()
156 deb->d_ecm = value ; in do_smt_flag()
157 printf("smt %d\n",deb->d_smt) ; in do_smt_flag()
158 printf("smtf %d\n",deb->d_smtf) ; in do_smt_flag()
159 printf("pcm %d\n",deb->d_pcm) ; in do_smt_flag()
160 printf("rmt %d\n",deb->d_rmt) ; in do_smt_flag()
161 printf("cfm %d\n",deb->d_cfm) ; in do_smt_flag()
162 printf("ecm %d\n",deb->d_ecm) ; in do_smt_flag()