Lines Matching refs:appl
178 static byte dtmf_request(dword Id, word Number, DIVA_CAPI_ADAPTER *a, PLCI *plci, APPL *appl, API_P…
189 static byte mixer_request(dword Id, word Number, DIVA_CAPI_ADAPTER *a, PLCI *plci, APPL *appl, API_…
197 static byte ec_request(dword Id, word Number, DIVA_CAPI_ADAPTER *a, PLCI *plci, APPL *appl, API_PAR…
218 void *TransmitBufferSet(APPL *appl, dword ref);
219 void *TransmitBufferGet(APPL *appl, void *p);
220 void TransmitBufferFree(APPL *appl, void *p);
221 void *ReceiveBufferGet(APPL *appl, int Num);
371 word api_put(APPL *appl, CAPI_MSG *msg) in api_put() argument
407 && (plci->appl in api_put()
520 m->info.data_b3_req.Data = (dword)(long)(TransmitBufferSet(appl, m->info.data_b3_req.Data)); in api_put()
526 *((APPL **)(&((byte *)(plci->msg_in_queue))[j])) = appl; in api_put()
562 appl, in api_put()
840 APPL *appl; in ncci_free_receive_buffers() local
850 if (!plci->appl) in ncci_free_receive_buffers()
858 appl = plci->appl; in ncci_free_receive_buffers()
860 for (i = 0; i < appl->MaxBuffer; i++) in ncci_free_receive_buffers()
862 if ((appl->DataNCCI[i] == ncci_code) in ncci_free_receive_buffers()
863 && (((byte)(appl->DataFlags[i] >> 8)) == plci->Id)) in ncci_free_receive_buffers()
865 appl->DataNCCI[i] = 0; in ncci_free_receive_buffers()
877 if (!plci->appl) in ncci_free_receive_buffers()
885 appl = plci->appl; in ncci_free_receive_buffers()
887 for (i = 0; i < appl->MaxBuffer; i++) in ncci_free_receive_buffers()
889 if ((appl->DataNCCI[i] == ncci_code) in ncci_free_receive_buffers()
890 && (((byte)(appl->DataFlags[i] >> 8)) == plci->Id)) in ncci_free_receive_buffers()
892 appl->DataNCCI[i] = 0; in ncci_free_receive_buffers()
909 if (plci->appl) in cleanup_ncci_data()
914 TransmitBufferFree(plci->appl, ncci_ptr->DBuffer[ncci_ptr->data_out].P); in cleanup_ncci_data()
1006 if (plci->appl) in plci_free_msg_in_queue()
1016 TransmitBufferFree(plci->appl, in plci_free_msg_in_queue()
1069 plci->appl = NULL; in plci_remove()
1079 PLCI *plci, APPL *appl, API_PARSE *parms) in connect_req() argument
1107 sendf(appl, _CONNECT_R | CONFIRM, Id, Number, "w", 0); in connect_req()
1108 sendf(appl, _DISCONNECT_I, Id, 0, "w", _L1_ERROR); in connect_req()
1116 plci->appl = appl; in connect_req()
1121 if (AdvCodecSupport(a, plci, appl, 0)) in connect_req()
1124 sendf(appl, _CONNECT_R | CONFIRM, Id, Number, "w", _WRONG_IDENTIFIER); in connect_req()
1225 if (a->Info_Mask[appl->Id - 1] & 0x200) in connect_req()
1274 plci->appl = appl; in connect_req()
1286 sendf(appl, in connect_req()
1295 PLCI *plci, APPL *appl, API_PARSE *parms) in connect_res() argument
1332 if (a->Info_Mask[appl->Id - 1] & 0x200) in connect_res()
1345 __clear_bit(appl->Id - 1, plci->c_ind_mask_table); in connect_res()
1372 plci->appl = appl; in connect_res()
1376 sendf(appl, _DISCONNECT_I, Id, 0, "w", _OTHER_APPL_CONNECTED); in connect_res()
1380 plci->appl = appl; in connect_res()
1382 if (AdvCodecSupport(a, plci, appl, 0)) { in connect_res()
1429 if (a->Info_Mask[appl->Id - 1] & 0x200) in connect_res()
1449 PLCI *plci, APPL *appl, API_PARSE *msg) in connect_a_res() argument
1456 PLCI *plci, APPL *appl, API_PARSE *msg) in disconnect_req() argument
1469 __clear_bit(appl->Id - 1, plci->c_ind_mask_table); in disconnect_req()
1470 plci->appl = appl; in disconnect_req()
1475 if (plci->Sig.Id && plci->appl) in disconnect_req()
1494 sendf(appl, _DISCONNECT_R | CONFIRM, Id, Number, "w", 0); in disconnect_req()
1495 sendf(appl, _DISCONNECT_I, Id, 0, "w", 0); in disconnect_req()
1503 if (!appl) return false; in disconnect_req()
1504 sendf(appl, _DISCONNECT_R | CONFIRM, Id, Number, "w", Info); in disconnect_req()
1509 PLCI *plci, APPL *appl, API_PARSE *msg) in disconnect_res() argument
1516 __clear_bit(appl->Id - 1, plci->c_ind_mask_table); in disconnect_res()
1537 PLCI *plci, APPL *appl, API_PARSE *parms) in listen_req() argument
1542 dbug(1, dprintf("listen_req(Appl=0x%x)", appl->Id)); in listen_req()
1547 a->Info_Mask[appl->Id - 1] = GET_DWORD(parms[0].info); in listen_req()
1548 a->CIP_Mask[appl->Id - 1] = GET_DWORD(parms[1].info); in listen_req()
1550 if (a->Info_Mask[appl->Id - 1] & 0x200) { /* early B3 connect provides */ in listen_req()
1551 a->Info_Mask[appl->Id - 1] |= 0x10; /* call progression infos */ in listen_req()
1558 a->codec_listen[appl->Id - 1] = &dummy_plci; in listen_req()
1573 a->codec_listen[appl->Id - 1] = (PLCI *)0; in listen_req()
1576 sendf(appl, in listen_req()
1587 PLCI *plci, APPL *appl, API_PARSE *msg) in info_req() argument
1651 appl->NullCREnable = true; in info_req()
1653 rc_plci->appl = appl; in info_req()
1687 sendf(appl, in info_req()
1697 PLCI *plci, APPL *appl, API_PARSE *msg) in info_res() argument
1704 PLCI *plci, APPL *appl, API_PARSE *msg) in alert_req() argument
1726 sendf(appl, in alert_req()
1735 PLCI *plci, APPL *appl, API_PARSE *msg) in facility_req() argument
1772 Info = AdvCodecSupport(a, plci, appl, HOOK_SUPPORT); in facility_req()
1790 rplci->appl = appl; in facility_req()
1804 rplci->appl = appl; in facility_req()
1825 a->Notification_Mask[appl->Id - 1] = GET_DWORD(ss_parms[2].info); in facility_req()
1826 if (a->Notification_Mask[appl->Id - 1] & SMASK_MWI) /* MWI active? */ in facility_req()
1831 rplci->appl = appl; in facility_req()
1866 if (AdvCodecSupport(a, plci, appl, 0)) in facility_req()
1921 rplci->appl = appl; in facility_req()
1928 if (AdvCodecSupport(a, rplci, appl, 0)) in facility_req()
1948 if (a->Info_Mask[appl->Id - 1] & 0x200) in facility_req()
2106 if (!rplci->internal_command && rplci->appl) in facility_req()
2176 appl->CDEnable = true; in facility_req()
2197 rplci->appl = appl; in facility_req()
2211 rplci->appl = appl; in facility_req()
2213 appl->S_Handle = GET_DWORD(&(ss_parms[2].info[0])); in facility_req()
2299 rplci->appl = appl; in facility_req()
2312 appl->S_Handle = GET_DWORD(&(ss_parms[2].info[0])); in facility_req()
2356 rplci->appl = appl; in facility_req()
2377 rplci->appl = appl; in facility_req()
2408 rplci->appl = appl; in facility_req()
2429 rplci->appl = appl; in facility_req()
2451 return (dtmf_request(Id, Number, a, plci, appl, msg)); in facility_req()
2456 return (mixer_request(Id, Number, a, plci, appl, msg)); in facility_req()
2461 appl->appl_flags |= APPL_FLAG_PRIV_EC_SPEC; in facility_req()
2462 return (ec_request(Id, Number, a, plci, appl, msg)); in facility_req()
2465 appl->appl_flags &= ~APPL_FLAG_PRIV_EC_SPEC; in facility_req()
2466 return (ec_request(Id, Number, a, plci, appl, msg)); in facility_req()
2477 sendf(appl, in facility_req()
2486 PLCI *plci, APPL *appl, API_PARSE *msg) in facility_res() argument
2493 PLCI *plci, APPL *appl, API_PARSE *parms) in connect_b3_req() argument
2531 sendf(appl, in connect_b3_req()
2611 …(plci->requested_options_conn | plci->requested_options | a->requested_options_table[appl->Id - 1]) in connect_b3_req()
2618 …(plci->requested_options_conn | plci->requested_options | a->requested_options_table[appl->Id - 1]) in connect_b3_req()
2645 …(plci->requested_options_conn | plci->requested_options | a->requested_options_table[appl->Id - 1]) in connect_b3_req()
2719 sendf(appl, in connect_b3_req()
2728 PLCI *plci, APPL *appl, API_PARSE *parms) in connect_b3_res() argument
2763 …>requested_options_conn | plci->requested_options | a->requested_options_table[plci->appl->Id - 1]) in connect_b3_res()
2806 sendf(appl, _CONNECT_B3_ACTIVE_I, Id, 0, "s", ""); in connect_b3_res()
2808 sendf(appl, _CONNECT_B3_ACTIVE_I, Id, 0, "S", plci->ncpi_buffer); in connect_b3_res()
2830 sendf(appl, _CONNECT_B3_ACTIVE_I, Id, 0, "s", ""); in connect_b3_res()
2844 PLCI *plci, APPL *appl, API_PARSE *parms) in connect_b3_a_res() argument
2865 PLCI *plci, APPL *appl, API_PARSE *parms) in disconnect_b3_req() argument
2913 sendf(appl, in disconnect_b3_req()
2922 PLCI *plci, APPL *appl, API_PARSE *parms) in disconnect_b3_res() argument
2948 sendf(plci->appl, in disconnect_b3_res()
2953 sendf(plci->appl, _DISCONNECT_I, Id & 0xffffL, 0, "w", 0); in disconnect_b3_res()
2979 PLCI *plci, APPL *appl, API_PARSE *parms) in data_b3_req() argument
3014 data->P = TransmitBufferSet(appl, *(dword *)parms[0].info); in data_b3_req()
3035 if (appl) in data_b3_req()
3043 TransmitBufferFree(appl, (byte *)(long)(*((dword *)(parms[0].info)))); in data_b3_req()
3047 sendf(appl, in data_b3_req()
3057 PLCI *plci, APPL *appl, API_PARSE *parms) in data_b3_res() argument
3070 if (n < appl->MaxBuffer && in data_b3_res()
3071 appl->DataNCCI[n] == NCCIcode && in data_b3_res()
3072 (byte)(appl->DataFlags[n] >> 8) == plci->Id) { in data_b3_res()
3074 appl->DataNCCI[n] = 0; in data_b3_res()
3081 if (appl->DataFlags[n] & 4) { in data_b3_res()
3091 PLCI *plci, APPL *appl, API_PARSE *parms) in reset_b3_req() argument
3124 sendf(appl, in reset_b3_req()
3133 PLCI *plci, APPL *appl, API_PARSE *parms) in reset_b3_res() argument
3158 PLCI *plci, APPL *appl, API_PARSE *parms) in connect_b3_t90_a_res() argument
3193 PLCI *plci, APPL *appl, API_PARSE *msg) in select_b_req() argument
3207 msg->length, plci->Id, plci->tel, plci->NL.Id, plci->appl, plci->SuppState)); in select_b_req()
3228 sendf(appl, _SELECT_B_REQ | CONFIRM, Id, Number, "w", 0x2002); /* wrong controller */ in select_b_req()
3232 plci->appl = appl; in select_b_req()
3233 __clear_bit(appl->Id - 1, plci->c_ind_mask_table); in select_b_req()
3246 if (a->AdvSignalAppl && a->AdvSignalAppl != appl) in select_b_req()
3262 if (AdvCodecSupport(a, plci, appl, 0)) in select_b_req()
3282 if (a->AdvSignalAppl == appl) in select_b_req()
3306 sendf(appl, _SELECT_B_REQ | CONFIRM, Id, Number, "w", Info); in select_b_req()
3311 PLCI *plci, APPL *appl, API_PARSE *parms) in manufacturer_req() argument
3351 plci->appl = appl; in manufacturer_req()
3374 if (AdvCodecSupport(a, plci, appl, 0)) { in manufacturer_req()
3428 sendf(appl, in manufacturer_req()
3619 a->requested_options_table[appl->Id - 1] = GET_DWORD(m_parms[0].info); in manufacturer_req()
3630 sendf(appl, in manufacturer_req()
3640 PLCI *plci, APPL *appl, API_PARSE *msg) in manufacturer_res() argument
3718 APPL *appl; in callback() local
3927 appl = *((APPL **)(&((byte *)(plci->msg_in_queue))[j + i])); in callback()
3949 i = api_put(appl, m); in callback()
3954 TransmitBufferFree(appl, (byte *)(long)(m->info.data_b3_req.Data)); in callback()
3982 APPL *appl; in control_rc() local
4004 appl = plci->appl; in control_rc()
4007 if (appl) in control_rc()
4034 sendf(appl, _FACILITY_R | CONFIRM, Id, Number, "wws", Info, 3, SSparms); in control_rc()
4045 sendf(appl, _FACILITY_R | CONFIRM, Id, Number, "wws", Info, 3, SSparms); in control_rc()
4051 sendf(appl, _INFO_R | CONFIRM, Id, Number, "w", Info); in control_rc()
4064 sendf(appl, _CONNECT_R | CONFIRM, Id & 0xffL, Number, "w", _OUT_OF_PLCI); in control_rc()
4070 sendf(appl, _CONNECT_R | CONFIRM, Id, Number, "w", 0); in control_rc()
4077 sendf(appl, _CONNECT_R | CONFIRM, Id & 0xffL, Number, "w", _OUT_OF_PLCI); in control_rc()
4082 sendf(appl, _CONNECT_R | CONFIRM, Id, Number, "w", 0); in control_rc()
4083 sendf(plci->appl, _CONNECT_ACTIVE_I, Id, 0, "sss", "", "", ""); in control_rc()
4099 sendf(appl, _DISCONNECT_R | CONFIRM, Id, Number, "w", 0); in control_rc()
4112 sendf(appl, _CONNECT_B3_R | CONFIRM, Id, Number, "w", _WRONG_IDENTIFIER); in control_rc()
4121 sendf(appl, _CONNECT_B3_R | CONFIRM, Id, Number, "w", 0); in control_rc()
4122 sendf(appl, _CONNECT_B3_ACTIVE_I, Id, 0, "s", ""); in control_rc()
4127 sendf(appl, _CONNECT_B3_R | CONFIRM, Id, Number, "w", 0); in control_rc()
4139 sendf(appl, _DISCONNECT_B3_R | CONFIRM, Id, Number, "w", 0); in control_rc()
4149 sendf(plci->appl, _CONNECT_R | CONFIRM, Id, Number, "w", Info); in control_rc()
4153 sendf(plci->appl, _CONNECT_R | CONFIRM, Id, Number, "w", Info); in control_rc()
4183 sendf(appl, _FACILITY_R | CONFIRM, Id, Number, "wws", 0, 3, SSstruct); in control_rc()
4223 if (!plci->appl) break; in control_rc()
4232 sendf(plci->appl, _FACILITY_R | CONFIRM, Id & 0x7, in control_rc()
4250 sendf(rplci->appl, in control_rc()
4271 sendf(rplci->appl, in control_rc()
4283 …sendf(appl, _MANUFACTURER_R | CONFIRM, Id, Number, "dww", _DI_MANU_ID, _MANUFACTURER_R, _OUT_OF_PL… in control_rc()
4293 sendf(appl, _CONNECT_R | CONFIRM, Id & 0xffL, Number, "w", _OUT_OF_PLCI); in control_rc()
4325 sendf(appl, _INFO_R | CONFIRM, Id & 0xf, Number, "w", _WRONG_STATE); in control_rc()
4326 appl->NullCREnable = false; in control_rc()
4334 sendf(appl, _INFO_R | CONFIRM, Id & 0xf, Number, "w", 0); in control_rc()
4338 sendf(appl, _INFO_R | CONFIRM, Id & 0xf, Number, "w", _WRONG_STATE); in control_rc()
4339 appl->NullCREnable = false; in control_rc()
4398 sendf(plci->appl, in control_rc()
4407 sendf(plci->appl, in control_rc()
4455 sendf(rplci->appl, in control_rc()
4490 plci->appl->CDEnable = 0; in control_rc()
4492 sendf(plci->appl, _FACILITY_R | CONFIRM, Id, in control_rc()
4648 if (plci->appl) in data_rc()
4650 TransmitBufferFree(plci->appl, plci->data_sent_ptr); in data_rc()
4664 sendf(plci->appl, _DATA_B3_R | CONFIRM, Id, data->Number, in data_rc()
4692 sendf(plci->appl, _DATA_B3_R | CONFIRM, Id, ncci_ptr->DataAck[ncci_ptr->data_ack_out].Number, in data_ack()
4799 if (plci->appl) in sig_ind()
4800 sendf(plci->appl, _DISCONNECT_B3_I, (((dword) ncci) << 16) | Id, 0, "ws", 0, ""); in sig_ind()
4803 if (plci->appl) in sig_ind()
4804 sendf(plci->appl, _DISCONNECT_I, Id, 0, "w", 0); in sig_ind()
4829 if (plci->cr_enquiry && plci->appl) in sig_ind()
4841 sendf(plci->appl, in sig_ind()
4977 if (plci->tel == ADV_VOICE && plci->appl) { in sig_ind()
4982 if (plci->appl) plci->appl->Number++; in sig_ind()
4988 if (!plci->appl) break; in sig_ind()
4999 sendf(plci->appl, _FACILITY_R | CONFIRM, Id & 0x7, plci->number, "wws", 0, 3, CF_Ind); in sig_ind()
5038 sendf(tplci->appl, _FACILITY_I, rId, 0, "ws", 3, SS_Ind); in sig_ind()
5070 if (!plci->appl) break; in sig_ind()
5126 PUT_DWORD(&Interr_Err_Ind[6], plci->appl->S_Handle); in sig_ind()
5127 sendf(plci->appl, _FACILITY_I, Id & 0x7, 0, "ws", 3, Interr_Err_Ind); in sig_ind()
5149 sendf(plci->appl, _FACILITY_I, Id & 0xf, 0, "ws", 3, SS_Ind); in sig_ind()
5154 sendf(plci->appl, _FACILITY_I, Id, 0, "ws", 3, SS_Ind); in sig_ind()
5208 sendf(plci->appl, _FACILITY_I, Id, 0, "ws", 3, CONF_Ind); in sig_ind()
5240 sendf(tplci->appl, _FACILITY_I, rId, 0, "ws", 3, SS_Ind); in sig_ind()
5262 sendf(tplci->appl, _FACILITY_I, rId, 0, "ws", 3, SS_Ind); in sig_ind()
5280 if (!plci->appl) break; in sig_ind()
5282 PUT_DWORD(&CF_Ind[6], plci->appl->S_Handle); in sig_ind()
5283 sendf(plci->appl, _FACILITY_I, Id & 0x7, 0, "ws", 3, CF_Ind); in sig_ind()
5294 if (!plci->appl) break; in sig_ind()
5326 PUT_DWORD(&pty_cai[6], plci->appl->S_Handle); in sig_ind()
5327 sendf(plci->appl, _FACILITY_I, Id & 0x7, 0, "wS", 3, pty_cai); in sig_ind()
5340 sendf(plci->appl, _FACILITY_I, Id & 0xf, 0, "ws", 3, SS_Ind); in sig_ind()
5345 sendf(plci->appl, _FACILITY_I, Id, 0, "ws", 3, SS_Ind); in sig_ind()
5354 if (plci->appl && (a->Notification_Mask[plci->appl->Id - 1] & SMASK_MWI)) in sig_ind()
5358 sendf(plci->appl, _FACILITY_I, Id & 0xf, 0, "wS", 3, &pty_cai[2]); in sig_ind()
5362 else sendf(plci->appl, _FACILITY_I, Id, 0, "wS", 3, &pty_cai[2]); in sig_ind()
5450 sendf(plci->appl, _FACILITY_I, Id, 0, "ws", 3, CONF_Ind); in sig_ind()
5476 if (plci->appl && (a->Notification_Mask[plci->appl->Id - 1] & SMASK_CCBS)) in sig_ind()
5478 sendf(plci->appl, _FACILITY_I, Id, 0, "ws", 3, CONF_Ind); in sig_ind()
5505 sendf(plci->appl, _FACILITY_I, Id, 0, "ws", 3, SS_Ind); in sig_ind()
5535 sendf(plci->appl, _FACILITY_I, Id, 0, "ws", 3, SS_Ind); in sig_ind()
5557 sendf(plci->appl, _FACILITY_I, Id, 0, "ws", 3, SS_Ind); in sig_ind()
5670 if (tplci->adapter->Info_Mask[tplci->appl->Id - 1] & 0x200) in sig_ind()
5692 …sendf(tplci->appl, _MANUFACTURER_R | CONFIRM, x_Id, tplci->number, "dww", _DI_MANU_ID, _MANUFACTUR… in sig_ind()
5706 …sendf(tplci->appl, _MANUFACTURER_R | CONFIRM, x_Id, tplci->number, "dww", _DI_MANU_ID, _MANUFACTUR… in sig_ind()
5718 sendf(tplci->appl, _CONNECT_R | CONFIRM, tplci->adapter->Id, 0, "w", _OUT_OF_PLCI); in sig_ind()
5761 sendf(plci->appl, _CONNECT_ACTIVE_I, Id, 0, "Sss", parms[21], "", ""); in sig_ind()
5797 tplci->appl = &application[i]; in sig_ind()
5821 tplci->appl = a->AdvSignalAppl; in sig_ind()
5831 sendf(tplci->appl, in sig_ind()
5872 __clear_bit(plci->appl->Id - 1, plci->c_ind_mask_table); in sig_ind()
5874 sendf(plci->appl, _FACILITY_I, Id, 0, "ws", (word)3, resume_cau); in sig_ind()
5890 sendf(plci->appl, _FACILITY_I, Id, 0, "ws", (word)3, "\x05\x04\x00\x02\x00\x00"); in sig_ind()
5891 sendf(plci->appl, _DISCONNECT_I, Id, 0, "w", 0); in sig_ind()
5922 if (!plci->appl) in sig_ind()
5956 sendf(plci->appl, _FACILITY_I, Id, 0, "ws", (word)3, resume_cau); in sig_ind()
5959 sendf(plci->appl, _DISCONNECT_I, Id, 0, "w", i); in sig_ind()
5988 static void SendSetupInfo(APPL *appl, PLCI *plci, dword Id, byte **parms, byte Info_Sent_Flag) in SendSetupInfo() argument
6054 if (plci->adapter->Info_Mask[appl->Id - 1] & Info_Mask) { in SendSetupInfo()
6055 sendf(appl, _INFO_I, Id, 0, "wS", Info_Number, Info_Element); in SendSetupInfo()
6073 APPL *appl; in SendInfo() local
6078 !plci->appl in SendInfo()
6197 appl = &application[j]; in SendInfo()
6199 && appl->Id in SendInfo()
6200 && plci->adapter->Info_Mask[appl->Id - 1] & Info_Mask) in SendInfo()
6208 else if (!plci->appl) in SendInfo()
6224 && plci->adapter->Info_Mask[plci->appl->Id - 1] & Info_Mask) in SendInfo()
6228 sendf(plci->appl, _INFO_I, Id, 0, "wS", Info_Number, Info_Element); in SendInfo()
6242 APPL *appl; in SendMultiIE() local
6247 !plci->appl in SendMultiIE()
6274 appl = &application[j]; in SendMultiIE()
6276 && appl->Id in SendMultiIE()
6277 && plci->adapter->Info_Mask[appl->Id - 1] & Info_Mask) in SendMultiIE()
6285 else if (!plci->appl && Info_Number) in SendMultiIE()
6294 && plci->adapter->Info_Mask[plci->appl->Id - 1] & Info_Mask) in SendMultiIE()
6298 sendf(plci->appl, _INFO_I, Id, 0, "wS", Info_Number, Info_Element); in SendMultiIE()
6304 static void SendSSExtInd(APPL *appl, PLCI *plci, dword Id, byte **parms) in SendSSExtInd() argument
6325 if (appl) in SendSSExtInd()
6328 sendf(appl, _MANUFACTURER_I, in SendSSExtInd()
6336 else if (plci->appl) in SendSSExtInd()
6339 sendf(plci->appl, _MANUFACTURER_I, in SendSSExtInd()
6436 APPLptr = plci->appl; in nl_ind()
6536 sendf(plci->appl, _CONNECT_B3_ACTIVE_I, Id, 0, "S", plci->ncpi_buffer); in nl_ind()
6541 …ptions_conn | plci->requested_options | plci->adapter->requested_options_table[plci->appl->Id - 1]) in nl_ind()
6562 sendf(plci->appl, _FACILITY_I, Id & 0xffffL, 0, "ws", SELECTOR_DTMF, "\x01X"); in nl_ind()
6566 sendf(plci->appl, _FACILITY_I, Id & 0xffffL, 0, "ws", SELECTOR_DTMF, "\x01Y"); in nl_ind()
6616 sendf(plci->appl, _DATA_B3_I, Id, 0, in nl_ind()
6627 sendf(plci->appl, _DATA_B3_I, Id, 0, in nl_ind()
6702 …>requested_options_conn | plci->requested_options | a->requested_options_table[plci->appl->Id - 1]) in nl_ind()
6767 sendf(plci->appl, _MANUFACTURER_I, Id, 0, "dwbS", _DI_MANU_ID, _DI_NEGOTIATE_B3, in nl_ind()
6786 sendf(plci->appl, _CONNECT_B3_ACTIVE_I, Id, 0, "s", ""); in nl_ind()
6788 sendf(plci->appl, _CONNECT_B3_ACTIVE_I, Id, 0, "S", plci->ncpi_buffer); in nl_ind()
6799 sendf(plci->appl, _CONNECT_B3_ACTIVE_I, Id, 0, "s", ""); in nl_ind()
6801 sendf(plci->appl, _CONNECT_B3_ACTIVE_I, Id, 0, "S", plci->ncpi_buffer); in nl_ind()
6809 sendf(plci->appl, _DISCONNECT_B3_I, Id, 0, "wS", GOOD, plci->ncpi_buffer); in nl_ind()
6827 sendf(plci->appl, _CONNECT_B3_ACTIVE_I, Id, 0, "s", ""); in nl_ind()
6829 sendf(plci->appl, _CONNECT_B3_ACTIVE_I, Id, 0, "S", plci->ncpi_buffer); in nl_ind()
6864 sendf(plci->appl, msg, Id, 0, "s", ""); in nl_ind()
6866 sendf(plci->appl, msg, Id, 0, "S", plci->ncpi_buffer); in nl_ind()
6886 sendf(plci->appl, msg, Id, 0, "S", plci->ncpi_buffer); in nl_ind()
6896 sendf(plci->appl, msg, Id, 0, "s", ""); in nl_ind()
6898 sendf(plci->appl, msg, Id, 0, "S", plci->ncpi_buffer); in nl_ind()
6905 sendf(plci->appl, msg, Id, 0, "S", plci->ncpi_buffer); in nl_ind()
6949 sendf(plci->appl, _CONNECT_B3_I, Id, 0, "s", ""); in nl_ind()
6953 …>requested_options_conn | plci->requested_options | a->requested_options_table[plci->appl->Id - 1]) in nl_ind()
6962 sendf(plci->appl, _CONNECT_B3_I, Id, 0, "S", plci->ncpi_buffer); in nl_ind()
6964 sendf(plci->appl, _DISCONNECT_B3_I, Id, 0, "wS", info, plci->ncpi_buffer); in nl_ind()
6981 sendf(plci->appl, in nl_ind()
6986 sendf(plci->appl, _DISCONNECT_I, Id & 0xffffL, 0, "w", 0); in nl_ind()
6995 sendf(plci->appl, _DISCONNECT_B3_I, Id, 0, "wS", info, plci->ncpi_buffer); in nl_ind()
7008 sendf(plci->appl, _RESET_B3_I, Id, 0, "S", plci->ncpi_buffer); in nl_ind()
7012 sendf(plci->appl, _RESET_B3_I, Id, 0, "S", plci->ncpi_buffer); in nl_ind()
7151 plci->appl = NULL; in get_plci()
7372 PUT_WORD(&voice_cai[5], plci->appl->MaxDataLength); in add_b1()
7435 PUT_WORD(&cai[5], plci->appl->MaxDataLength); in add_b1()
7453 PUT_WORD(&cai[5], plci->appl->MaxDataLength); in add_b1()
7607 …ptions_conn | plci->requested_options | plci->adapter->requested_options_table[plci->appl->Id - 1]) in add_b1()
7783 PUT_WORD(&cai[5], plci->appl->MaxDataLength); in add_b1()
7866 PUT_WORD(&dlc[1], plci->appl->MaxDataLength); in add_b23()
7881 PUT_WORD(&dlc[1], plci->appl->MaxDataLength); in add_b23()
7923 PUT_WORD(&dlc[1], plci->appl->MaxDataLength); in add_b23()
8002 PUT_WORD(&dlc[1], plci->appl->MaxDataLength + in add_b23()
8032 PUT_WORD(&dlc[1], plci->appl->MaxDataLength); in add_b23()
8228 …ptions_conn | plci->requested_options | plci->adapter->requested_options_table[plci->appl->Id - 1]) in add_b23()
8322 …ptions_conn | plci->requested_options | plci->adapter->requested_options_table[plci->appl->Id - 1]) in add_b23()
8325 …ptions_conn | plci->requested_options | plci->adapter->requested_options_table[plci->appl->Id - 1]) in add_b23()
8348 …ptions_conn | plci->requested_options | plci->adapter->requested_options_table[plci->appl->Id - 1]) in add_b23()
8508 PUT_WORD(&dlc[i], plci->appl->MaxDataLength); in add_modem_b23()
8698 plci->NData[1].P = TransmitBufferGet(plci->appl, data->P); in send_data()
8710 plci->NData[0].P = TransmitBufferGet(plci->appl, data->P); in send_data()
8984 static word AdvCodecSupport(DIVA_CAPI_ADAPTER *a, PLCI *plci, APPL *appl, in AdvCodecSupport() argument
9000 if (a->AdvSignalAppl != appl || a->AdvSignalPLCI) in AdvCodecSupport()
9035 a->AdvSignalAppl = appl; in AdvCodecSupport()
9256 if (!plci->appl) in CapiRelease()
9263 if (plci->appl == this) in CapiRelease()
9265 plci->appl = NULL; in CapiRelease()
9337 plci->appl = NULL; in plci_remove_check()
9781 sendf(plci->appl, _FACILITY_R | CONFIRM, Id & 0xffffL, plci->number, in dtmf_command()
9786 static byte dtmf_request(dword Id, word Number, DIVA_CAPI_ADAPTER *a, PLCI *plci, APPL *appl, API… in dtmf_request() argument
9816 if (!((a->requested_options_table[appl->Id - 1]) in dtmf_request()
9877 …sted_options_conn | plci->requested_options | plci->adapter->requested_options_table[appl->Id - 1]) in dtmf_request()
9918 …sted_options_conn | plci->requested_options | plci->adapter->requested_options_table[appl->Id - 1]) in dtmf_request()
9979 sendf(appl, _FACILITY_R | CONFIRM, Id & 0xffffL, Number, in dtmf_request()
9997 sendf(plci->appl, _FACILITY_R | CONFIRM, Id & 0xffffL, plci->dtmf_msg_number_queue[0], in dtmf_confirmation()
10047 sendf(plci->appl, _FACILITY_I, Id & 0xffffL, 0, "wS", SELECTOR_DTMF, msg); in dtmf_indication()
11157 && (notify_plci->appl != NULL) in mixer_notify_update()
11163 ((CAPI_MSG *) msg)->header.appl_id = notify_plci->appl->Id; in mixer_notify_update()
11174 w = api_put(notify_plci->appl, (CAPI_MSG *) msg); in mixer_notify_update()
11906 static byte mixer_request(dword Id, word Number, DIVA_CAPI_ADAPTER *a, PLCI *plci, APPL *appl, AP… in mixer_request() argument
11948 if (appl->appl_flags & APPL_FLAG_OLD_LI_SPEC) in mixer_request()
12022 appl->appl_flags |= APPL_FLAG_OLD_LI_SPEC; in mixer_request()
12053 appl->appl_flags &= ~APPL_FLAG_OLD_LI_SPEC; in mixer_request()
12137 sendf(appl, _FACILITY_R | CONFIRM, Id & 0xffffL, Number, in mixer_request()
12147 appl->appl_flags |= APPL_FLAG_OLD_LI_SPEC; in mixer_request()
12177 appl->appl_flags &= ~APPL_FLAG_OLD_LI_SPEC; in mixer_request()
12256 sendf(appl, _FACILITY_R | CONFIRM, Id & 0xffffL, Number, in mixer_request()
12303 sendf(appl, _FACILITY_R | CONFIRM, Id & 0xffffL, Number, in mixer_request()
12324 if (plci->appl->appl_flags & APPL_FLAG_OLD_LI_SPEC) in mixer_indication_coefs_set()
12359 sendf(plci->appl, _FACILITY_I, Id & 0xffffL, 0, in mixer_indication_coefs_set()
12470 && (notify_plci->appl != NULL) in mixer_remove()
12471 && !(notify_plci->appl->appl_flags & APPL_FLAG_OLD_LI_SPEC) in mixer_remove()
12595 if (plci->appl->appl_flags & APPL_FLAG_PRIV_EC_SPEC) in ec_command()
12696 sendf(plci->appl, _FACILITY_R | CONFIRM, Id & 0xffffL, plci->number, in ec_command()
12697 "wws", Info, (plci->appl->appl_flags & APPL_FLAG_PRIV_EC_SPEC) ? in ec_command()
12702 static byte ec_request(dword Id, word Number, DIVA_CAPI_ADAPTER *a, PLCI *plci, APPL *appl, API_P… in ec_request() argument
12722 if (appl->appl_flags & APPL_FLAG_PRIV_EC_SPEC) in ec_request()
12885 sendf(appl, _FACILITY_R | CONFIRM, Id & 0xffffL, Number, in ec_request()
12886 "wws", Info, (appl->appl_flags & APPL_FLAG_PRIV_EC_SPEC) ? in ec_request()
12901 if (plci->appl->appl_flags & APPL_FLAG_PRIV_EC_SPEC) in ec_indication()
12937 …sendf(plci->appl, _FACILITY_I, Id & 0xffffL, 0, "ws", (plci->appl->appl_flags & APPL_FLAG_PRIV_EC_… in ec_indication()
13283 …|| (plci->appl && (plci->adapter->requested_options_table[plci->appl->Id - 1] & (1L << PRIVATE_DTM… in get_b1_facilities()
13352 …|| (plci->appl && (plci->adapter->requested_options_table[plci->appl->Id - 1] & (1L << PRIVATE_DTM… in add_b1_facilities()
13933 sendf(plci->appl, _RESET_B3_I, Id, 0, "s", ""); in reset_b3_command()
13993 sendf(plci->appl, _SELECT_B_REQ | CONFIRM, Id, plci->number, "w", Info); in select_b_command()
14036 sendf(plci->appl, _CONNECT_B3_ACTIVE_I, Id, 0, "s", ""); in fax_connect_ack_command()
14038 sendf(plci->appl, _CONNECT_B3_ACTIVE_I, Id, 0, "S", plci->ncpi_buffer); in fax_connect_ack_command()
14130 sendf(plci->appl, _CONNECT_B3_R | CONFIRM, Id, plci->number, "w", Info); in fax_connect_info_command()
14180 sendf(plci->appl, _CONNECT_B3_R | CONFIRM, Id, plci->number, "w", Info); in fax_adjust_b23_command()
14276 sendf(plci->appl, _CONNECT_B3_R | CONFIRM, Id, plci->number, "w", Info); in rtp_connect_b3_req_command()
14315 sendf(plci->appl, _CONNECT_B3_ACTIVE_I, Id, 0, "s", ""); in rtp_connect_b3_res_command()
14369 sendf(plci->appl, _FACILITY_I, Id & 0xffffL, 0, "ws", 3, SS_Ind); in hold_save_command()
14409 sendf(plci->appl, _FACILITY_I, Id & 0xffffL, 0, "ws", 3, SS_Ind); in retrieve_restore_command()
14597 APPLptr = plci->appl; in channel_can_xon()
14683 if (auxplci->appl == &application[i]) { in group_optimization()
14819 !plci->appl || in VSwitchReqInd()