Lines Matching defs:contr
81 static inline struct capi_ctr *get_capi_ctr_by_nr(u16 contr)
83 if (contr < 1 || contr - 1 >= CAPI_MAXCONTR)
86 return capi_controller[contr - 1];
167 static void notify_up(u32 contr)
176 printk(KERN_DEBUG "kcapi: notify up contr %d\n", contr);
178 ctr = get_capi_ctr_by_nr(contr);
191 printk(KERN_WARNING "%s: invalid contr %d\n", __func__, contr);
219 static void notify_down(u32 contr)
226 printk(KERN_DEBUG "kcapi: notify down contr %d\n", contr);
228 ctr = get_capi_ctr_by_nr(contr);
232 printk(KERN_WARNING "%s: invalid contr %d\n", __func__, contr);
721 * @contr: controller number.
725 * or (for @contr == 0) the driver itself.
729 u16 capi20_get_manufacturer(u32 contr, u8 buf[CAPI_MANUFACTURER_LEN])
734 if (contr == 0) {
741 ctr = get_capi_ctr_by_nr(contr);
754 * @contr: controller number.
758 * or (for @contr == 0) the driver itself.
762 u16 capi20_get_version(u32 contr, struct capi_version *verp)
767 if (contr == 0) {
774 ctr = get_capi_ctr_by_nr(contr);
787 * @contr: controller number.
791 * or (for @contr == 0) the driver itself.
795 u16 capi20_get_serial(u32 contr, u8 serial[CAPI_SERIAL_LEN])
800 if (contr == 0) {
807 ctr = get_capi_ctr_by_nr(contr);
820 * @contr: controller number.
824 * or (for @contr == 0) the number of installed controllers.
828 u16 capi20_get_profile(u32 contr, struct capi_profile *profp)
833 if (contr == 0) {
840 ctr = get_capi_ctr_by_nr(contr);
875 ctr = get_capi_ctr_by_nr(fdef.contr);
878 printk(KERN_INFO "kcapi: contr [%03d] set trace=%d\n",