• Home
  • Raw
  • Download

Lines Matching refs:card

25 static int dial(int card, unsigned long channel, setup_parm setup);
26 static int hangup(int card, unsigned long channel);
27 static int answer(int card, unsigned long channel);
28 static int clreaz(int card, unsigned long channel);
29 static int seteaz(int card, unsigned long channel, char *);
30 static int setl2(int card, unsigned long arg);
31 static int setl3(int card, unsigned long arg);
32 static int acceptb(int card, unsigned long channel);
85 int card; in command() local
87 card = get_card_from_id(cmd->driver); in command()
88 if (!IS_VALID_CARD(card)) { in command()
89 pr_debug("Invalid param: %d is not a valid card id\n", card); in command()
106 sc_adapter[card]->devicename, cmdptr); in command()
109 return sc_ioctl(card, &ioc); in command()
112 return dial(card, cmd->arg, cmd->parm.setup); in command()
114 return hangup(card, cmd->arg); in command()
116 return answer(card, cmd->arg); in command()
118 return acceptb(card, cmd->arg); in command()
120 return clreaz(card, cmd->arg); in command()
122 return seteaz(card, cmd->arg, cmd->parm.num); in command()
124 return setl2(card, cmd->arg); in command()
126 return setl3(card, cmd->arg); in command()
136 int startproc(int card) in startproc() argument
140 if (!IS_VALID_CARD(card)) { in startproc()
141 pr_debug("Invalid param: %d is not a valid card id\n", card); in startproc()
148 status = sendmessage(card, CMPID, cmReqType2, in startproc()
152 pr_debug("%s: Sent startProc\n", sc_adapter[card]->devicename); in startproc()
161 static int dial(int card, unsigned long channel, setup_parm setup) in dial() argument
166 if (!IS_VALID_CARD(card)) { in dial()
167 pr_debug("Invalid param: %d is not a valid card id\n", card); in dial()
175 status = sendmessage(card, CEPID, ceReqTypePhy, in dial()
183 sc_adapter[card]->devicename, Phone, channel + 1); in dial()
191 static int answer(int card, unsigned long channel) in answer() argument
193 if (!IS_VALID_CARD(card)) { in answer()
194 pr_debug("Invalid param: %d is not a valid card id\n", card); in answer()
198 if (setup_buffers(card, channel + 1)) { in answer()
199 hangup(card, channel + 1); in answer()
203 indicate_status(card, ISDN_STAT_BCONN, channel, NULL); in answer()
205 sc_adapter[card]->devicename, channel + 1); in answer()
212 static int hangup(int card, unsigned long channel) in hangup() argument
216 if (!IS_VALID_CARD(card)) { in hangup()
217 pr_debug("Invalid param: %d is not a valid card id\n", card); in hangup()
221 status = sendmessage(card, CEPID, ceReqTypePhy, in hangup()
228 sc_adapter[card]->devicename, channel + 1); in hangup()
235 static int setl2(int card, unsigned long arg) in setl2() argument
240 if (!IS_VALID_CARD(card)) { in setl2()
241 pr_debug("Invalid param: %d is not a valid card id\n", card); in setl2()
246 sc_adapter[card]->channel[channel].l2_proto = protocol; in setl2()
252 sc_adapter[card]->devicename, channel + 1); in setl2()
253 status = sendmessage(card, CEPID, ceReqTypeCall, in setl2()
267 static int setl3(int card, unsigned long channel) in setl3() argument
271 if (!IS_VALID_CARD(card)) { in setl3()
272 pr_debug("Invalid param: %d is not a valid card id\n", card); in setl3()
276 sc_adapter[card]->channel[channel].l3_proto = protocol; in setl3()
280 static int acceptb(int card, unsigned long channel) in acceptb() argument
282 if (!IS_VALID_CARD(card)) { in acceptb()
283 pr_debug("Invalid param: %d is not a valid card id\n", card); in acceptb()
287 if (setup_buffers(card, channel + 1)) in acceptb()
289 hangup(card, channel + 1); in acceptb()
294 sc_adapter[card]->devicename, channel + 1); in acceptb()
295 indicate_status(card, ISDN_STAT_BCONN, channel, NULL); in acceptb()
299 static int clreaz(int card, unsigned long arg) in clreaz() argument
301 if (!IS_VALID_CARD(card)) { in clreaz()
302 pr_debug("Invalid param: %d is not a valid card id\n", card); in clreaz()
306 strcpy(sc_adapter[card]->channel[arg].eazlist, ""); in clreaz()
307 sc_adapter[card]->channel[arg].eazclear = 1; in clreaz()
309 sc_adapter[card]->devicename, arg + 1); in clreaz()
313 static int seteaz(int card, unsigned long arg, char *num) in seteaz() argument
315 if (!IS_VALID_CARD(card)) { in seteaz()
316 pr_debug("Invalid param: %d is not a valid card id\n", card); in seteaz()
320 strcpy(sc_adapter[card]->channel[arg].eazlist, num); in seteaz()
321 sc_adapter[card]->channel[arg].eazclear = 0; in seteaz()
323 sc_adapter[card]->devicename, arg + 1, in seteaz()
324 sc_adapter[card]->channel[arg].eazlist); in seteaz()
328 int reset(int card) in reset() argument
332 if (!IS_VALID_CARD(card)) { in reset()
333 pr_debug("Invalid param: %d is not a valid card id\n", card); in reset()
337 indicate_status(card, ISDN_STAT_STOP, 0, NULL); in reset()
339 if (sc_adapter[card]->EngineUp) { in reset()
340 del_timer(&sc_adapter[card]->stat_timer); in reset()
343 sc_adapter[card]->EngineUp = 0; in reset()
345 spin_lock_irqsave(&sc_adapter[card]->lock, flags); in reset()
346 init_timer(&sc_adapter[card]->reset_timer); in reset()
347 sc_adapter[card]->reset_timer.function = sc_check_reset; in reset()
348 sc_adapter[card]->reset_timer.data = card; in reset()
349 sc_adapter[card]->reset_timer.expires = jiffies + CHECKRESET_TIME; in reset()
350 add_timer(&sc_adapter[card]->reset_timer); in reset()
351 spin_unlock_irqrestore(&sc_adapter[card]->lock, flags); in reset()
353 outb(0x1, sc_adapter[card]->ioport[SFT_RESET]); in reset()
355 pr_debug("%s: Adapter Reset\n", sc_adapter[card]->devicename); in reset()
359 void flushreadfifo(int card) in flushreadfifo() argument
361 while (inb(sc_adapter[card]->ioport[FIFO_STATUS]) & RF_HAS_DATA) in flushreadfifo()
362 inb(sc_adapter[card]->ioport[FIFO_READ]); in flushreadfifo()