Lines Matching refs:applid
102 static inline struct capi20_appl *__get_capi_appl_by_nr(u16 applid) in __get_capi_appl_by_nr() argument
106 if (applid < 1 || applid - 1 >= CAPI_MAXAPPL) in __get_capi_appl_by_nr()
109 return capi_applications[applid - 1]; in __get_capi_appl_by_nr()
112 static inline struct capi20_appl *get_capi_appl_by_nr(u16 applid) in get_capi_appl_by_nr() argument
114 if (applid < 1 || applid - 1 >= CAPI_MAXAPPL) in get_capi_appl_by_nr()
117 return rcu_dereference(capi_applications[applid - 1]); in get_capi_appl_by_nr()
160 register_appl(struct capi_ctr *ctr, u16 applid, capi_register_params *rparam) in register_appl() argument
165 ctr->register_appl(ctr, applid, rparam); in register_appl()
172 static void release_appl(struct capi_ctr *ctr, u16 applid) in release_appl() argument
174 DBG("applid %#x", applid); in release_appl()
176 ctr->release_appl(ctr, applid); in release_appl()
184 u16 applid; in notify_up() local
198 for (applid = 1; applid <= CAPI_MAXAPPL; applid++) { in notify_up()
199 ap = __get_capi_appl_by_nr(applid); in notify_up()
201 register_appl(ctr, applid, &ap->rparam); in notify_up()
215 u16 applid; in ctr_down() local
227 for (applid = 1; applid <= CAPI_MAXAPPL; applid++) { in ctr_down()
228 ap = __get_capi_appl_by_nr(applid); in ctr_down()
673 u16 applid; in capi20_register() local
691 for (applid = 1; applid <= CAPI_MAXAPPL; applid++) { in capi20_register()
692 if (capi_applications[applid - 1] == NULL) in capi20_register()
695 if (applid > CAPI_MAXAPPL) { in capi20_register()
700 ap->applid = applid; in capi20_register()
701 capi_applications[applid - 1] = ap; in capi20_register()
707 register_appl(capi_controller[i], applid, &ap->rparam); in capi20_register()
713 printk(KERN_DEBUG "kcapi: appl %d up\n", applid); in capi20_register()
735 DBG("applid %#x", ap->applid); in capi20_release()
740 capi_applications[ap->applid - 1] = NULL; in capi20_release()
748 release_appl(capi_controller[i], ap->applid); in capi20_release()
757 printk(KERN_DEBUG "kcapi: appl %d down\n", ap->applid); in capi20_release()
780 DBG("applid %#x", ap->applid); in capi20_put_message()
784 if ((ap->applid == 0) || ap->release_in_progress) in capi20_put_message()