Lines Matching refs:applid
101 static inline struct capi20_appl *get_capi_appl_by_nr(u16 applid)
103 if (applid - 1 >= CAPI_MAXAPPL)
106 return rcu_dereference(capi_applications[applid - 1]);
149 register_appl(struct capi_ctr *ctr, u16 applid, capi_register_params *rparam)
154 ctr->register_appl(ctr, applid, rparam);
161 static void release_appl(struct capi_ctr *ctr, u16 applid)
163 DBG("applid %#x", applid);
165 ctr->release_appl(ctr, applid);
173 u16 applid;
187 for (applid = 1; applid <= CAPI_MAXAPPL; applid++) {
188 ap = get_capi_appl_by_nr(applid);
191 register_appl(ctr, applid, &ap->rparam);
205 u16 applid;
217 for (applid = 1; applid <= CAPI_MAXAPPL; applid++) {
218 ap = get_capi_appl_by_nr(applid);
392 printk(KERN_ERR "kcapi: handle_message: applid %d state released (%s)\n",
396 printk(KERN_ERR "kcapi: handle_message: applid %d state released (%s) cannot trace\n",
647 * A unique application ID is assigned and stored in @ap->applid.
657 u16 applid;
675 for (applid = 1; applid <= CAPI_MAXAPPL; applid++) {
676 if (capi_applications[applid - 1] == NULL)
679 if (applid > CAPI_MAXAPPL) {
684 ap->applid = applid;
685 capi_applications[applid - 1] = ap;
691 register_appl(capi_controller[i], applid, &ap->rparam);
697 printk(KERN_DEBUG "kcapi: appl %d up\n", applid);
719 DBG("applid %#x", ap->applid);
724 capi_applications[ap->applid - 1] = NULL;
732 release_appl(capi_controller[i], ap->applid);
741 printk(KERN_DEBUG "kcapi: appl %d down\n", ap->applid);
764 DBG("applid %#x", ap->applid);
768 if ((ap->applid == 0) || ap->release_in_progress)