Lines Matching refs:application

77 	BT_DBG("session %p application %p appl %d", session, app, appl);
92 BT_DBG("session %p application %p", session, app);
189 struct cmtp_application *application;
207 application = cmtp_application_get(session, CMTP_MSGNUM, msgnum);
208 if (application) {
209 application->state = BT_CONNECTED;
210 application->msgnum = 0;
211 application->mapping = CAPIMSG_APPID(skb->data);
220 application = cmtp_application_get(session, CMTP_MAPPING, appl);
221 if (application) {
222 application->state = BT_CLOSED;
223 application->msgnum = 0;
328 struct cmtp_application *application;
350 application = cmtp_application_get(session, CMTP_MAPPING, appl);
351 if (application) {
352 appl = application->appl;
355 BT_ERR("Can't find application with id %d", appl);
391 struct cmtp_application *application;
399 application = cmtp_application_add(session, appl);
400 if (!application) {
401 BT_ERR("Can't allocate memory for new application");
417 application->state = BT_CONFIG;
418 application->msgnum = cmtp_msgnum_get(session);
420 cmtp_send_interopmsg(session, CAPI_REQ, 0x0000, application->msgnum,
432 if (application->state == BT_CLOSED) {
433 err = -application->err;
437 if (application->state == BT_CONNECTED)
451 cmtp_application_del(session, application);
459 struct cmtp_application *application;
463 application = cmtp_application_get(session, CMTP_APPLID, appl);
464 if (!application) {
465 BT_ERR("Can't find application");
469 application->msgnum = cmtp_msgnum_get(session);
471 cmtp_send_interopmsg(session, CAPI_REQ, application->mapping, application->msgnum,
475 (application->state == BT_CLOSED), CMTP_INTEROP_TIMEOUT);
477 cmtp_application_del(session, application);
483 struct cmtp_application *application;
492 application = cmtp_application_get(session, CMTP_APPLID, appl);
493 if ((!application) || (application->state != BT_CONNECTED)) {
494 BT_ERR("Can't find application with id %d", appl);
498 CAPIMSG_SETAPPID(skb->data, application->mapping);