Lines Matching refs:contr

81 static inline struct capi_ctr *get_capi_ctr_by_nr(u16 contr)  in get_capi_ctr_by_nr()  argument
83 if (contr < 1 || contr - 1 >= CAPI_MAXCONTR) in get_capi_ctr_by_nr()
86 return capi_controller[contr - 1]; in get_capi_ctr_by_nr()
167 static void notify_up(u32 contr) in notify_up() argument
176 printk(KERN_DEBUG "kcapi: notify up contr %d\n", contr); in notify_up()
178 ctr = get_capi_ctr_by_nr(contr); in notify_up()
191 printk(KERN_WARNING "%s: invalid contr %d\n", __func__, contr); in notify_up()
219 static void notify_down(u32 contr) in notify_down() argument
226 printk(KERN_DEBUG "kcapi: notify down contr %d\n", contr); in notify_down()
228 ctr = get_capi_ctr_by_nr(contr); in notify_down()
232 printk(KERN_WARNING "%s: invalid contr %d\n", __func__, contr); in notify_down()
724 u16 capi20_get_manufacturer(u32 contr, u8 *buf) in capi20_get_manufacturer() argument
729 if (contr == 0) { in capi20_get_manufacturer()
736 ctr = get_capi_ctr_by_nr(contr); in capi20_get_manufacturer()
757 u16 capi20_get_version(u32 contr, struct capi_version *verp) in capi20_get_version() argument
762 if (contr == 0) { in capi20_get_version()
769 ctr = get_capi_ctr_by_nr(contr); in capi20_get_version()
790 u16 capi20_get_serial(u32 contr, u8 *serial) in capi20_get_serial() argument
795 if (contr == 0) { in capi20_get_serial()
802 ctr = get_capi_ctr_by_nr(contr); in capi20_get_serial()
823 u16 capi20_get_profile(u32 contr, struct capi_profile *profp) in capi20_get_profile() argument
828 if (contr == 0) { in capi20_get_profile()
835 ctr = get_capi_ctr_by_nr(contr); in capi20_get_profile()
870 ctr = get_capi_ctr_by_nr(fdef.contr); in capi20_manufacturer()