Lines Matching refs:contr
95 static inline struct capi_ctr *get_capi_ctr_by_nr(u16 contr)
97 if (contr - 1 >= CAPI_MAXCONTR)
100 return capi_cards[contr - 1];
171 static void notify_up(u32 contr)
173 struct capi_ctr *card = get_capi_ctr_by_nr(contr);
178 printk(KERN_DEBUG "kcapi: notify up contr %d\n", contr);
181 printk(KERN_WARNING "%s: invalid contr %d\n", __FUNCTION__, contr);
189 ap->callback(KCI_CONTRUP, contr, &card->profile);
195 static void notify_down(u32 contr)
201 printk(KERN_DEBUG "kcapi: notify down contr %d\n", contr);
207 ap->callback(KCI_CONTRDOWN, contr, NULL);
671 u16 capi20_get_manufacturer(u32 contr, u8 *buf)
675 if (contr == 0) {
679 card = get_capi_ctr_by_nr(contr);
688 u16 capi20_get_version(u32 contr, struct capi_version *verp)
692 if (contr == 0) {
696 card = get_capi_ctr_by_nr(contr);
706 u16 capi20_get_serial(u32 contr, u8 *serial)
710 if (contr == 0) {
714 card = get_capi_ctr_by_nr(contr);
724 u16 capi20_get_profile(u32 contr, struct capi_profile *profp)
728 if (contr == 0) {
732 card = get_capi_ctr_by_nr(contr);
823 card = get_capi_ctr_by_nr(ldef.contr);
849 printk(KERN_INFO "kcapi: load: contr=%d not in detect state\n", ldef.contr);
877 card = get_capi_ctr_by_nr(rdef.contr);
920 card = get_capi_ctr_by_nr(fdef.contr);
925 printk(KERN_INFO "kcapi: contr [%03d] set trace=%d\n",
979 void (*callback) (unsigned int cmd, __u32 contr, void *data))