Lines Matching refs:card

38 	hysdn_card *card;	/* card the device is connected to */  member
58 if (cnf->card->debug_flags & LOG_CNF_LINE) in process_line()
59 hysdn_addlog(cnf->card, "conf line: %s", cp); in process_line()
70 if (cnf->card->debug_flags & LOG_CNF_MISC) in process_line()
71 hysdn_addlog(cnf->card, "conf channel invalid %d", i); in process_line()
78 if (cnf->card->debug_flags & LOG_CNF_DATA) in process_line()
79 hysdn_addlog(cnf->card, "conf chan=%d %s", cnf->channel, cp); in process_line()
80 return (hysdn_tx_cfgline(cnf->card, cnf->conf_line + 1, in process_line()
112 if ((cnf->needed_size = pof_write_open(cnf->card, &cnf->pof_buffer)) <= 0) in hysdn_conf_write()
120 if (cnf->card->state != CARD_STATE_RUN) in hysdn_conf_write()
138 cnf->needed_size = pof_write_buffer(cnf->card, cnf->buf_size); /* write data */ in hysdn_conf_write()
140 cnf->card->state = CARD_STATE_BOOTERR; /* show boot error */ in hysdn_conf_write()
149 if (cnf->card->state != CARD_STATE_RUN) { in hysdn_conf_write()
150 if (cnf->card->debug_flags & LOG_CNF_MISC) in hysdn_conf_write()
151 hysdn_addlog(cnf->card, "cnf write denied -> not booted"); in hysdn_conf_write()
190 if (cnf->card->debug_flags & LOG_CNF_MISC) in hysdn_conf_write()
191 hysdn_addlog(cnf->card, "cnf line too long %d chars pos %d", cnf->buf_size, count); in hysdn_conf_write()
199 if (cnf->card->debug_flags & LOG_CNF_MISC) in hysdn_conf_write()
200 hysdn_addlog(cnf->card, "cnf line too long"); in hysdn_conf_write()
231 hysdn_card *card; in hysdn_conf_open() local
237 card = PDE_DATA(ino); in hysdn_conf_open()
238 if (card->debug_flags & (LOG_PROC_OPEN | LOG_PROC_ALL)) in hysdn_conf_open()
239 hysdn_addlog(card, "config open for uid=%d gid=%d mode=0x%x", in hysdn_conf_open()
250 cnf->card = card; in hysdn_conf_open()
275 card->myid, in hysdn_conf_open()
276 card->bus, in hysdn_conf_open()
277 PCI_SLOT(card->devfn), in hysdn_conf_open()
278 card->brdtype, in hysdn_conf_open()
279 card->irq, in hysdn_conf_open()
280 card->iobase, in hysdn_conf_open()
281 card->membase, in hysdn_conf_open()
282 card->bchans, in hysdn_conf_open()
283 card->faxchans, in hysdn_conf_open()
284 card->state, in hysdn_conf_open()
285 hysdn_net_getname(card)); in hysdn_conf_open()
306 hysdn_card *card; in hysdn_conf_close() local
311 card = PDE_DATA(ino); in hysdn_conf_close()
312 if (card->debug_flags & (LOG_PROC_OPEN | LOG_PROC_ALL)) in hysdn_conf_close()
313 hysdn_addlog(card, "config close for uid=%d gid=%d mode=0x%x", in hysdn_conf_close()
323 retval = pof_write_close(cnf->card); /* close the pof write */ in hysdn_conf_close()
362 hysdn_card *card; in hysdn_procconf_init() local
370 card = card_root; /* point to first card */ in hysdn_procconf_init()
371 while (card) { in hysdn_procconf_init()
373 sprintf(conf_name, "%s%d", PROC_CONF_BASENAME, card->myid); in hysdn_procconf_init()
374 if ((card->procconf = (void *) proc_create_data(conf_name, in hysdn_procconf_init()
378 card)) != NULL) { in hysdn_procconf_init()
379 hysdn_proclog_init(card); /* init the log file entry */ in hysdn_procconf_init()
381 card = card->next; /* next entry */ in hysdn_procconf_init()
395 hysdn_card *card; in hysdn_procconf_release() local
398 card = card_root; /* start with first card */ in hysdn_procconf_release()
399 while (card) { in hysdn_procconf_release()
401 sprintf(conf_name, "%s%d", PROC_CONF_BASENAME, card->myid); in hysdn_procconf_release()
402 if (card->procconf) in hysdn_procconf_release()
405 hysdn_proclog_release(card); /* init the log file entry */ in hysdn_procconf_release()
407 card = card->next; /* point to next card */ in hysdn_procconf_release()