• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/isdn/hysdn/

Lines Matching refs:card

39 	hysdn_card *card;	/* card the device is connected to */
49 /* process_line parses one config line and transfers it to the card if */
59 if (cnf->card->debug_flags & LOG_CNF_LINE)
60 hysdn_addlog(cnf->card, "conf line: %s", cp);
71 if (cnf->card->debug_flags & LOG_CNF_MISC)
72 hysdn_addlog(cnf->card, "conf channel invalid %d", i);
79 if (cnf->card->debug_flags & LOG_CNF_DATA)
80 hysdn_addlog(cnf->card, "conf chan=%d %s", cnf->channel, cp);
81 return (hysdn_tx_cfgline(cnf->card, cnf->conf_line + 1,
92 /* write conf file -> boot or send cfg line to card */
113 if ((cnf->needed_size = pof_write_open(cnf->card, &cnf->pof_buffer)) <= 0)
121 if (cnf->card->state != CARD_STATE_RUN)
139 cnf->needed_size = pof_write_buffer(cnf->card, cnf->buf_size); /* write data */
141 cnf->card->state = CARD_STATE_BOOTERR; /* show boot error */
150 if (cnf->card->state != CARD_STATE_RUN) {
151 if (cnf->card->debug_flags & LOG_CNF_MISC)
152 hysdn_addlog(cnf->card, "cnf write denied -> not booted");
191 if (cnf->card->debug_flags & LOG_CNF_MISC)
192 hysdn_addlog(cnf->card, "cnf line too long %d chars pos %d", cnf->buf_size, count);
200 if (cnf->card->debug_flags & LOG_CNF_MISC)
201 hysdn_addlog(cnf->card, "cnf line too long");
210 /* read conf file -> output card info data */
232 hysdn_card *card;
237 /* now search the addressed card */
239 card = card_root;
240 while (card) {
241 pd = card->procconf;
244 card = card->next; /* search next entry */
246 if (!card) {
250 if (card->debug_flags & (LOG_PROC_OPEN | LOG_PROC_ALL))
251 hysdn_addlog(card, "config open for uid=%d gid=%d mode=0x%x",
262 cnf->card = card;
268 /* read access -> output card info data */
287 card->myid,
288 card->bus,
289 PCI_SLOT(card->devfn),
290 card->brdtype,
291 card->irq,
292 card->iobase,
293 card->membase,
294 card->bchans,
295 card->faxchans,
296 card->state,
297 hysdn_net_getname(card));
318 hysdn_card *card;
324 /* search the addressed card */
325 card = card_root;
326 while (card) {
327 pd = card->procconf;
330 card = card->next; /* search next entry */
332 if (!card) {
336 if (card->debug_flags & (LOG_PROC_OPEN | LOG_PROC_ALL))
337 hysdn_addlog(card, "config close for uid=%d gid=%d mode=0x%x",
347 retval = pof_write_close(cnf->card); /* close the pof write */
352 /* read access -> output card info data */
380 /* have been detected. The needed proc dir and card config files are created. */
386 hysdn_card *card;
394 card = card_root; /* point to first card */
395 while (card) {
397 sprintf(conf_name, "%s%d", PROC_CONF_BASENAME, card->myid);
398 if ((card->procconf = (void *) proc_create(conf_name,
402 hysdn_proclog_init(card); /* init the log file entry */
404 card = card->next; /* next entry */
418 hysdn_card *card;
421 card = card_root; /* start with first card */
422 while (card) {
424 sprintf(conf_name, "%s%d", PROC_CONF_BASENAME, card->myid);
425 if (card->procconf)
428 hysdn_proclog_release(card); /* init the log file entry */
430 card = card->next; /* point to next card */