Lines Matching refs:contr

94 static inline struct capi_ctr *get_capi_ctr_by_nr(u16 contr)  in get_capi_ctr_by_nr()  argument
96 if (contr < 1 || contr - 1 >= CAPI_MAXCONTR) in get_capi_ctr_by_nr()
99 return capi_controller[contr - 1]; in get_capi_ctr_by_nr()
180 static void notify_up(u32 contr) in notify_up() argument
189 printk(KERN_DEBUG "kcapi: notify up contr %d\n", contr); in notify_up()
191 ctr = get_capi_ctr_by_nr(contr); in notify_up()
206 printk(KERN_WARNING "%s: invalid contr %d\n", __func__, contr); in notify_up()
236 static void notify_down(u32 contr) in notify_down() argument
243 printk(KERN_DEBUG "kcapi: notify down contr %d\n", contr); in notify_down()
245 ctr = get_capi_ctr_by_nr(contr); in notify_down()
249 printk(KERN_WARNING "%s: invalid contr %d\n", __func__, contr); in notify_down()
257 u32 contr = (long)v; in notify_handler() local
261 notify_up(contr); in notify_handler()
264 notify_down(contr); in notify_handler()
848 u16 capi20_get_manufacturer(u32 contr, u8 *buf) in capi20_get_manufacturer() argument
853 if (contr == 0) { in capi20_get_manufacturer()
860 ctr = get_capi_ctr_by_nr(contr); in capi20_get_manufacturer()
883 u16 capi20_get_version(u32 contr, struct capi_version *verp) in capi20_get_version() argument
888 if (contr == 0) { in capi20_get_version()
895 ctr = get_capi_ctr_by_nr(contr); in capi20_get_version()
918 u16 capi20_get_serial(u32 contr, u8 *serial) in capi20_get_serial() argument
923 if (contr == 0) { in capi20_get_serial()
930 ctr = get_capi_ctr_by_nr(contr); in capi20_get_serial()
953 u16 capi20_get_profile(u32 contr, struct capi_profile *profp) in capi20_get_profile() argument
958 if (contr == 0) { in capi20_get_profile()
965 ctr = get_capi_ctr_by_nr(contr); in capi20_get_profile()
1094 ctr = get_capi_ctr_by_nr(ldef.contr); in old_capi_manufacturer()
1125 printk(KERN_INFO "kcapi: load: contr=%d not in detect state\n", ldef.contr); in old_capi_manufacturer()
1151 ctr = get_capi_ctr_by_nr(rdef.contr); in old_capi_manufacturer()
1210 ctr = get_capi_ctr_by_nr(fdef.contr); in capi20_manufacturer()