Lines Matching refs:word
64 word CapiRelease(word);
65 word CapiRegister(word);
66 word api_put(APPL *, CAPI_MSG *);
67 static word api_parse(byte *, word, byte *, API_PARSE *);
71 word api_remove_start(void);
92 static byte connect_req(dword, word, DIVA_CAPI_ADAPTER *, PLCI *, APPL *, API_PARSE *);
93 static byte connect_res(dword, word, DIVA_CAPI_ADAPTER *, PLCI *, APPL *, API_PARSE *);
94 static byte connect_a_res(dword, word, DIVA_CAPI_ADAPTER *, PLCI *, APPL *, API_PARSE *);
95 static byte disconnect_req(dword, word, DIVA_CAPI_ADAPTER *, PLCI *, APPL *, API_PARSE *);
96 static byte disconnect_res(dword, word, DIVA_CAPI_ADAPTER *, PLCI *, APPL *, API_PARSE *);
97 static byte listen_req(dword, word, DIVA_CAPI_ADAPTER *, PLCI *, APPL *, API_PARSE *);
98 static byte info_req(dword, word, DIVA_CAPI_ADAPTER *, PLCI *, APPL *, API_PARSE *);
99 static byte info_res(dword, word, DIVA_CAPI_ADAPTER *, PLCI *, APPL *, API_PARSE *);
100 static byte alert_req(dword, word, DIVA_CAPI_ADAPTER *, PLCI *, APPL *, API_PARSE *);
101 static byte facility_req(dword, word, DIVA_CAPI_ADAPTER *, PLCI *, APPL *, API_PARSE *);
102 static byte facility_res(dword, word, DIVA_CAPI_ADAPTER *, PLCI *, APPL *, API_PARSE *);
103 static byte connect_b3_req(dword, word, DIVA_CAPI_ADAPTER *, PLCI *, APPL *, API_PARSE *);
104 static byte connect_b3_res(dword, word, DIVA_CAPI_ADAPTER *, PLCI *, APPL *, API_PARSE *);
105 static byte connect_b3_a_res(dword, word, DIVA_CAPI_ADAPTER *, PLCI *, APPL *, API_PARSE *);
106 static byte disconnect_b3_req(dword, word, DIVA_CAPI_ADAPTER *, PLCI *, APPL *, API_PARSE *);
107 static byte disconnect_b3_res(dword, word, DIVA_CAPI_ADAPTER *, PLCI *, APPL *, API_PARSE *);
108 static byte data_b3_req(dword, word, DIVA_CAPI_ADAPTER *, PLCI *, APPL *, API_PARSE *);
109 static byte data_b3_res(dword, word, DIVA_CAPI_ADAPTER *, PLCI *, APPL *, API_PARSE *);
110 static byte reset_b3_req(dword, word, DIVA_CAPI_ADAPTER *, PLCI *, APPL *, API_PARSE *);
111 static byte reset_b3_res(dword, word, DIVA_CAPI_ADAPTER *, PLCI *, APPL *, API_PARSE *);
112 static byte connect_b3_t90_a_res(dword, word, DIVA_CAPI_ADAPTER *, PLCI *, APPL *, API_PARSE *);
113 static byte select_b_req(dword, word, DIVA_CAPI_ADAPTER *, PLCI *, APPL *, API_PARSE *);
114 static byte manufacturer_req(dword, word, DIVA_CAPI_ADAPTER *, PLCI *, APPL *, API_PARSE *);
115 static byte manufacturer_res(dword, word, DIVA_CAPI_ADAPTER *, PLCI *, APPL *, API_PARSE *);
117 static word get_plci(DIVA_CAPI_ADAPTER *);
121 static void add_ie(PLCI *plci, byte code, byte *p, word p_length);
122 static void add_d(PLCI *, word, byte *);
124 static word add_b1(PLCI *, API_PARSE *, word, word);
125 static word add_b23(PLCI *, API_PARSE *);
126 static word add_modem_b23(PLCI *plci, API_PARSE *bp_parms);
131 static word plci_remove_check(PLCI *);
135 static void IndParse(PLCI *, const word *, byte **, byte);
137 static word find_cip(DIVA_CAPI_ADAPTER *, byte *, byte *);
138 static word CPN_filter_ok(byte *cpn, DIVA_CAPI_ADAPTER *, word);
152 static word AdvCodecSupport(DIVA_CAPI_ADAPTER *, PLCI *, APPL *, byte);
156 static void adv_voice_write_coefs(PLCI *plci, word write_command);
159 static word get_b1_facilities(PLCI *plci, byte b1_resource);
160 static byte add_b1_facilities(PLCI *plci, byte b1_resource, word b1_facilities);
161 static void adjust_b1_facilities(PLCI *plci, byte new_b1_resource, word new_b1_facilities);
162 static word adjust_b_process(dword Id, PLCI *plci, byte Rc);
163 static void adjust_b1_resource(dword Id, PLCI *plci, API_SAVE *bp_msg, word b1_facilities, word int…
178 static byte dtmf_request(dword Id, word Number, DIVA_CAPI_ADAPTER *a, PLCI *plci, APPL *appl, API_P…
180 static void dtmf_indication(dword Id, PLCI *plci, byte *msg, word length);
189 static byte mixer_request(dword Id, word Number, DIVA_CAPI_ADAPTER *a, PLCI *plci, APPL *appl, API_…
191 static void mixer_indication_xconnect_from(dword Id, PLCI *plci, byte *msg, word length);
192 static void mixer_indication_xconnect_to(dword Id, PLCI *plci, byte *msg, word length);
197 static byte ec_request(dword Id, word Number, DIVA_CAPI_ADAPTER *a, PLCI *plci, APPL *appl, API_PAR…
198 static void ec_indication(dword Id, PLCI *plci, byte *msg, word length);
217 void sendf(APPL *, word, dword, word, byte *, ...);
245 word command;
247 byte (*function)(dword, word, DIVA_CAPI_ADAPTER *, PLCI *, APPL *, API_PARSE *);
371 word api_put(APPL *appl, CAPI_MSG *msg) in api_put()
373 word i, j, k, l, n; in api_put()
374 word ret; in api_put()
380 word ncci; in api_put()
544 if (!api_parse(msg->info.b, (word)(msg->header.length - 12), ftable[i].format, msg_parms)) { in api_put()
578 static word api_parse(byte *msg, word length, byte *format, API_PARSE *parms) in api_parse()
580 word i; in api_parse()
581 word p; in api_parse()
619 word i, j, n = 0; in api_save_msg()
651 word i; in api_load_msg()
666 word api_remove_start(void) in api_remove_start()
668 word i; in api_remove_start()
669 word j; in api_remove_start()
702 word i; in init_internal_command_queue()
715 word i; in start_internal_command()
737 word i; in next_internal_command()
763 static word get_ncci(PLCI *plci, byte ch, word force_ncci) in get_ncci()
766 word ncci, i, j, k; in get_ncci()
837 static void ncci_free_receive_buffers(PLCI *plci, word ncci) in ncci_free_receive_buffers()
841 word i, ncci_code; in ncci_free_receive_buffers()
845 Id = (((dword) ncci) << 16) | (((word)(plci->Id)) << 8) | a->Id; in ncci_free_receive_buffers()
859 ncci_code = ncci | (((word) a->Id) << 8); in ncci_free_receive_buffers()
886 ncci_code = ncci | (((word) a->Id) << 8); in ncci_free_receive_buffers()
902 static void cleanup_ncci_data(PLCI *plci, word ncci) in cleanup_ncci_data()
929 static void ncci_remove(PLCI *plci, word ncci, byte preserve_ncci) in ncci_remove()
933 word i; in ncci_remove()
936 Id = (((dword) ncci) << 16) | (((word)(plci->Id)) << 8) | a->Id; in ncci_remove()
1004 word i; in plci_free_msg_in_queue()
1078 static byte connect_req(dword Id, word Number, DIVA_CAPI_ADAPTER *a, in connect_req()
1081 word ch; in connect_req()
1082 word i; in connect_req()
1083 word Info; in connect_req()
1088 word channel = 0; in connect_req()
1094 word dir = 0; in connect_req()
1106 Id = ((word)1 << 8) | a->Id; in connect_req()
1136 if (!api_parse(&ai->info[1], (word)ai->length, "ssss", ai_parms)) in connect_req()
1294 static byte connect_res(dword Id, word Number, DIVA_CAPI_ADAPTER *a, in connect_res()
1297 word i, Info; in connect_res()
1298 word Reject; in connect_res()
1303 word ch = 0; in connect_res()
1317 if (!api_parse(&ai->info[1], (word)ai->length, "ssss", ai_parms)) in connect_res()
1448 static byte connect_a_res(dword Id, word Number, DIVA_CAPI_ADAPTER *a, in connect_a_res()
1455 static byte disconnect_req(dword Id, word Number, DIVA_CAPI_ADAPTER *a, in disconnect_req()
1458 word Info; in disconnect_req()
1459 word i; in disconnect_req()
1508 static byte disconnect_res(dword Id, word Number, DIVA_CAPI_ADAPTER *a, in disconnect_res()
1536 static byte listen_req(dword Id, word Number, DIVA_CAPI_ADAPTER *a, in listen_req()
1539 word Info; in listen_req()
1586 static byte info_req(dword Id, word Number, DIVA_CAPI_ADAPTER *a, in info_req()
1589 word i; in info_req()
1593 word Info = 0; in info_req()
1602 if (api_parse(&ai->info[1], (word)ai->length, "ssss", ai_parms)) in info_req()
1696 static byte info_res(dword Id, word Number, DIVA_CAPI_ADAPTER *a, in info_res()
1703 static byte alert_req(dword Id, word Number, DIVA_CAPI_ADAPTER *a, in alert_req()
1706 word Info; in alert_req()
1734 static byte facility_req(dword Id, word Number, DIVA_CAPI_ADAPTER *a, in facility_req()
1737 word Info = 0; in facility_req()
1738 word i = 0; in facility_req()
1740 word selector; in facility_req()
1741 word SSreq; in facility_req()
1813 if (api_parse(&parms->info[1], (word)parms->length, "wbd", ss_parms)) in facility_req()
1849 api_parse(&parms->info[1], (word)parms->length, "ws", ss_parms); in facility_req()
1896 if (api_parse(&parms->info[1], (word)parms->length, "wbs", ss_parms)) in facility_req()
1937 if (api_parse(&parms->info[1], (word)parms->length, "wbs", ss_parms)) in facility_req()
1967 if (api_parse(&parms->info[1], (word)parms->length, "wbd", ss_parms)) in facility_req()
2019 if (api_parse(&parms->info[1], (word)parms->length, "wbd", ss_parms)) in facility_req()
2028 if (api_parse(&parms->info[1], (word)parms->length, "wbdb", ss_parms)) in facility_req()
2161 if (api_parse(&parms->info[1], (word)parms->length, "wbwss", ss_parms)) in facility_req()
2187 if (api_parse(&parms->info[1], (word)parms->length, "wbdwwsss", ss_parms)) in facility_req()
2234 if (api_parse(&parms->info[1], (word)parms->length, "wbd", ss_parms)) in facility_req()
2242 if (api_parse(&parms->info[1], (word)parms->length, "wbdw", ss_parms)) in facility_req()
2249 if (api_parse(&parms->info[1], (word)parms->length, "wbdws", ss_parms)) in facility_req()
2256 if (api_parse(&parms->info[1], (word)parms->length, "wbdwws", ss_parms)) in facility_req()
2345 if (api_parse(&parms->info[1], (word)parms->length, "wbwdwwwssss", ss_parms)) in facility_req()
2397 if (api_parse(&parms->info[1], (word)parms->length, "wbwwss", ss_parms)) in facility_req()
2485 static byte facility_res(dword Id, word Number, DIVA_CAPI_ADAPTER *a, in facility_res()
2492 static byte connect_b3_req(dword Id, word Number, DIVA_CAPI_ADAPTER *a, in connect_b3_req()
2495 word Info = 0; in connect_b3_req()
2498 word w; in connect_b3_req()
2499 word fax_control_bits, fax_feature_bits, fax_info_change; in connect_b3_req()
2504 word i; in connect_b3_req()
2557 add_d(plci, (word)(ncpi->length - 3), &ncpi->info[4]); in connect_b3_req()
2575 … if ((w & 0x0001) != ((word)(((T30_INFO *)(plci->fax_connect_info_buffer))->resolution & 0x0001))) in connect_b3_req()
2727 static byte connect_b3_res(dword Id, word Number, DIVA_CAPI_ADAPTER *a, in connect_b3_res()
2730 word ncci; in connect_b3_res()
2734 word w; in connect_b3_res()
2738 word i; in connect_b3_res()
2744 ncci = (word)(Id >> 16); in connect_b3_res()
2827 add_d(plci, (word)(ncpi->length - 3), &ncpi->info[4]); in connect_b3_res()
2843 static byte connect_b3_a_res(dword Id, word Number, DIVA_CAPI_ADAPTER *a, in connect_b3_a_res()
2846 word ncci; in connect_b3_a_res()
2848 ncci = (word)(Id >> 16); in connect_b3_a_res()
2864 static byte disconnect_b3_req(dword Id, word Number, DIVA_CAPI_ADAPTER *a, in disconnect_b3_req()
2867 word Info; in disconnect_b3_req()
2868 word ncci; in disconnect_b3_req()
2874 ncci = (word)(Id >> 16); in disconnect_b3_req()
2905 add_d(plci, (word)(ncpi->length - 3), (byte *)&(ncpi->info[4])); in disconnect_b3_req()
2921 static byte disconnect_b3_res(dword Id, word Number, DIVA_CAPI_ADAPTER *a, in disconnect_b3_res()
2924 word ncci; in disconnect_b3_res()
2925 word i; in disconnect_b3_res()
2927 ncci = (word)(Id >> 16); in disconnect_b3_res()
2952 "ws", (word)3, "\x03\x04\x00\x00"); in disconnect_b3_res()
2978 static byte data_b3_req(dword Id, word Number, DIVA_CAPI_ADAPTER *a, in data_b3_req()
2983 word Info; in data_b3_req()
2984 word ncci; in data_b3_req()
2985 word i; in data_b3_req()
2990 ncci = (word)(Id >> 16); in data_b3_req()
3056 static byte data_b3_res(dword Id, word Number, DIVA_CAPI_ADAPTER *a, in data_b3_res()
3059 word n; in data_b3_res()
3060 word ncci; in data_b3_res()
3061 word NCCIcode; in data_b3_res()
3065 ncci = (word)(Id >> 16); in data_b3_res()
3069 NCCIcode = ncci | (((word) a->Id) << 8); in data_b3_res()
3090 static byte reset_b3_req(dword Id, word Number, DIVA_CAPI_ADAPTER *a, in reset_b3_req()
3093 word Info; in reset_b3_req()
3094 word ncci; in reset_b3_req()
3099 ncci = (word)(Id >> 16); in reset_b3_req()
3132 static byte reset_b3_res(dword Id, word Number, DIVA_CAPI_ADAPTER *a, in reset_b3_res()
3135 word ncci; in reset_b3_res()
3139 ncci = (word)(Id >> 16); in reset_b3_res()
3157 static byte connect_b3_t90_a_res(dword Id, word Number, DIVA_CAPI_ADAPTER *a, in connect_b3_t90_a_res()
3160 word ncci; in connect_b3_t90_a_res()
3166 ncci = (word)(Id >> 16); in connect_b3_t90_a_res()
3181 add_d(plci, (word)(ncpi->length - 3), &ncpi->info[4]); in connect_b3_t90_a_res()
3192 static byte select_b_req(dword Id, word Number, DIVA_CAPI_ADAPTER *a, in select_b_req()
3195 word Info = 0; in select_b_req()
3196 word i; in select_b_req()
3218 else if (msg->length && api_parse(&msg->info[1], (word)msg->length, "wwwsss", bp_parms)) in select_b_req()
3310 static byte manufacturer_req(dword Id, word Number, DIVA_CAPI_ADAPTER *a, in manufacturer_req()
3313 word command; in manufacturer_req()
3314 word i; in manufacturer_req()
3315 word ncci; in manufacturer_req()
3318 word codec; in manufacturer_req()
3328 word Info = 0; in manufacturer_req()
3342 if (api_parse(&m->info[1], (word)m->length, "wbbs", m_parms)) { in manufacturer_req()
3356 Id = (((word)plci->Id << 8) | plci->adapter->Id | 0x80); in manufacturer_req()
3447 if (api_parse(&m->info[1], (word)m->length, "bs", m_parms)) { in manufacturer_req()
3610 if (api_parse(&m->info[1], (word)m->length, "d", m_parms)) { in manufacturer_req()
3639 static byte manufacturer_res(dword Id, word Number, DIVA_CAPI_ADAPTER *a, in manufacturer_res()
3642 word indication; in manufacturer_res()
3647 word i; in manufacturer_res()
3721 word i, j; in callback()
3977 word Number; in control_rc()
3978 word Info = 0; in control_rc()
3979 word i; in control_rc()
3980 word ncci; in control_rc()
4009 Id = (((dword)(ncci ? ncci : ch)) << 16) | ((word)plci->Id << 8) | a->Id; in control_rc()
4233 plci->number, "wws", Info, (word)3, SSparms); in control_rc()
4242 rId = ((word)rplci->Id << 8) | rplci->adapter->Id; in control_rc()
4254 "wws", Info, (word)3, SSparms); in control_rc()
4263 rId = ((word)rplci->Id << 8) | rplci->adapter->Id; in control_rc()
4275 "wws", Info, (word)3, SSparms); in control_rc()
4402 "wws", Info, (word)3, SSparms); in control_rc()
4411 "wws", Info, (word)3, SSparms); in control_rc()
4433 rId = ((word)rplci->Id << 8) | rplci->adapter->Id; in control_rc()
4459 "wws", Info, (word)3, SSparms); in control_rc()
4493 plci->number, "wws", Info, (word)3, SSparms); in control_rc()
4520 Id = ((word)plci->Id << 8) | plci->adapter->Id; in control_rc()
4558 plci->number, "wws", Info, (word)3, SSparms); in control_rc()
4646 word ncci; in data_rc()
4662 Id = (((dword)ncci) << 16) | ((word)plci->Id << 8) | a->Id; in data_rc()
4681 word ncci; in data_ack()
4690 Id = (((dword)ncci) << 16) | ((word)plci->Id << 8) | a->Id; in data_ack()
4707 word i; in sig_ind()
4708 word cip; in sig_ind()
4739 static const word parms_id[] = in sig_ind()
4747 static const word multi_fac_id[] = {1, FTY}; in sig_ind()
4748 static const word multi_pi_id[] = {1, PI}; in sig_ind()
4749 static const word multi_CiPN_id[] = {1, OAD}; in sig_ind()
4750 static const word multi_ssext_id[] = {1, ESC_SSEXT}; in sig_ind()
4752 static const word multi_vswitch_id[] = {1, ESC_VSWITCH}; in sig_ind()
4755 word ncci; in sig_ind()
4763 word w; in sig_ind()
4766 Id = ((word)plci->Id << 8) | a->Id; in sig_ind()
5014 rId = ((word)tplci->Id << 8) | tplci->adapter->Id; in sig_ind()
5030 PUT_WORD(&SS_Ind[4], 0x3600 | (word)pty_cai[2]); in sig_ind()
5044 PUT_WORD(&SS_Ind[4], 0x3600 | (word)pty_cai[2]); in sig_ind()
5073 PUT_WORD(&Interr_Err_Ind[4], 0x3600 | (word)pty_cai[2]); in sig_ind()
5140 PUT_WORD(&SS_Ind[4], 0x3600 | (word)pty_cai[2]); in sig_ind()
5199 PUT_WORD(&CONF_Ind[4], 0x3600 | (word)pty_cai[2]); in sig_ind()
5224 rId = ((word)tplci->Id << 8) | tplci->adapter->Id; in sig_ind()
5663 x_Id = ((word)tplci->Id << 8) | tplci->adapter->Id | 0x80; in sig_ind()
5829 Id = ((word)tplci->Id << 8) | a->Id; in sig_ind()
5835 "ws", (word)0, "\x01+"); in sig_ind()
5854 Id = ((word)a->AdvSignalPLCI->Id << 8) | a->Id; in sig_ind()
5860 "ws", (word)0, "\x01-"); 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()
5956 sendf(plci->appl, _FACILITY_I, Id, 0, "ws", (word)3, resume_cau); in sig_ind()
5990 word i; in SendSetupInfo()
5992 word Info_Number; in SendSetupInfo()
5994 word Info_Mask = 0; in SendSetupInfo()
6064 word i; in SendInfo()
6065 word j; in SendInfo()
6066 word k; in SendInfo()
6068 word Info_Number; in SendInfo()
6070 word Info_Mask = 0; in SendInfo()
6170 Info_Number = (word)NI; in SendInfo()
6175 Info_Number = (word)CST; in SendInfo()
6237 word i; in SendMultiIE()
6238 word j; in SendMultiIE()
6240 word Info_Number; in SendMultiIE()
6243 word Info_Mask = 0; in SendMultiIE()
6266 Info_Number = (word)ie_type; in SendMultiIE()
6267 Info_Mask = (word)info_mask; in SendMultiIE()
6306 word i; in SendSSExtInd()
6353 word ncci; in nl_ind()
6356 word NCCIcode; in nl_ind()
6358 word count; in nl_ind()
6359 word Num; in nl_ind()
6360 word i, ncpi_state; in nl_ind()
6362 word msg; in nl_ind()
6363 word info = 0; in nl_ind()
6364 word fax_feature_bits; in nl_ind()
6367 static word fax_info[] = { in nl_ind()
6420 static word rtp_info[] = { in nl_ind()
6434 Id = (((dword)(ncci ? ncci : ch)) << 16) | (((word) plci->Id) << 8) | a->Id; in nl_ind()
6489 word conn_opt, ncpi_opt = 0x00; in nl_ind()
6505 PUT_WORD(&(plci->ncpi_buffer[1]), (word)(GET_DWORD(data) & 0x0000FFFF)); in nl_ind()
6577 …capidtmf_recv_process_block(&(plci->capidtmf_state), plci->RData[0].P + 1, (word)(plci->RData[0].P… in nl_ind()
6582 dtmf_indication(Id, plci, dtmf_code_buffer, (word)(i + 1)); in nl_ind()
6985 "ws", (word)3, "\x03\x04\x00\x00"); in nl_ind()
7044 NCCIcode = ncci | (((word)a->Id) << 8); in nl_ind()
7062 (word)((a->manufacturer_features & MANUFACTURER_FEATURE_OOB_CHANNEL) ? 40 : 2000)) in nl_ind()
7133 static word get_plci(DIVA_CAPI_ADAPTER *a) in get_plci()
7135 word i, j; in get_plci()
7212 word p_length; in add_p()
7224 if (p) add_ie(plci, code, p->info, (word)p->length); in add_s()
7238 add_ie(plci, p->info[i - 1], (byte *)&(p->info[i]), (word)p->info[i]); in add_ss()
7265 static void add_ie(PLCI *plci, byte code, byte *p, word p_length) in add_ie()
7267 word i; in add_ie()
7291 static void add_d(PLCI *plci, word length, byte *p) in add_d()
7293 word i; in add_d()
7311 word i; in add_ai()
7318 if (api_parse(&ai->info[1], (word)ai->length, "ssss", ai_parms)) in add_ai()
7330 static word add_b1(PLCI *plci, API_PARSE *bp, word b_channel_info, in add_b1()
7331 word b1_facilities) in add_b1()
7339 word i; in add_b1()
7342 word j, n, w; in add_b1()
7369 plci->B1_resource = add_b1_facilities(plci, 9, (word)(b1_facilities | B1_FACILITY_VOICE)); in add_b1()
7370 adjust_b1_facilities(plci, plci->B1_resource, (word)(b1_facilities | B1_FACILITY_VOICE)); in add_b1()
7390 dbug(1, dprintf("b_prot_len=%d", (word)bp->length)); in add_b1()
7392 if (api_parse(&bp->info[1], (word)bp->length, "wwwsssb", bp_parms)) in add_b1()
7395 if (api_parse(&bp->info[1], (word)bp->length, "wwwsss", bp_parms)) in add_b1()
7401 else if (api_parse(&bp->info[1], (word)bp->length, "wwwssss", bp_parms)) in add_b1()
7409 if (api_parse(&bp_parms[6].info[1], (word)bp_parms[6].length, "w", global_config)) in add_b1()
7429 plci->B1_resource = add_b1_facilities(plci, 31, (word)(b1_facilities & ~B1_FACILITY_VOICE)); in add_b1()
7430 adjust_b1_facilities(plci, plci->B1_resource, (word)(b1_facilities & ~B1_FACILITY_VOICE)); in add_b1()
7447 …plci->B1_resource = add_b1_facilities(plci, 35/* PIAFS HARDWARE FACILITY */, (word)(b1_facilities … in add_b1()
7448 adjust_b1_facilities(plci, plci->B1_resource, (word)(b1_facilities & ~B1_FACILITY_VOICE)); in add_b1()
7469 (word)(b1_facilities & ~B1_FACILITY_VOICE)); in add_b1()
7470 adjust_b1_facilities(plci, plci->B1_resource, (word)(b1_facilities & ~B1_FACILITY_VOICE)); in add_b1()
7483 if (api_parse(&bp_parms[3].info[1], (word)bp_parms[3].length, "wwwwww", mdm_cfg)) in add_b1()
7610 if (!api_parse(&bp_parms[3].info[1], (word)bp_parms[3].length, "wwwwwws", mdm_cfg)) in add_b1()
7673 if (!api_parse(&bp_parms[3].info[1], (word)bp_parms[3].length, "wwwwwwss", mdm_cfg)) in add_b1()
7675 if (!api_parse(&mdm_cfg[7].info[1], (word)mdm_cfg[7].length, "sss", mdm_cfg_v18)) in add_b1()
7680 for (j = 1; j < ((word)(cai[i] + 1)); j++) in add_b1()
7795 static word add_b23(PLCI *plci, API_PARSE *bp) in add_b23()
7797 word i, fax_control_bits; in add_b23()
7885 dbug(1, dprintf("b_prot_len=%d", (word)bp->length)); in add_b23()
7886 if ((word)bp->length > 256) return _WRONG_MESSAGE_FORMAT; in add_b23()
7888 if (api_parse(&bp->info[1], (word)bp->length, "wwwsssb", bp_parms)) in add_b23()
7891 if (api_parse(&bp->info[1], (word)bp->length, "wwwsss", bp_parms)) in add_b23()
7897 else if (api_parse(&bp->info[1], (word)bp->length, "wwwssss", bp_parms)) in add_b23()
7972 if (api_parse(&bp_parms[6].info[1], (word)bp_parms[6].length, "w", global_config)) in add_b23()
8029 …if (b2_config->length && api_parse(&b2_config->info[1], (word)b2_config->length, "bwww", b2_config… in add_b23()
8086 …if ((llc[1] == V120_V42BIS) && api_parse(&b2_config->info[1], (word)b2_config->length, "bbbbwww", … in add_b23()
8125 if (api_parse(&b2_config->info[1], (word)b2_config->length, "bbbbwww", b2_config_parms)) in add_b23()
8131 if (api_parse(&b2_config->info[1], (word)b2_config->length, "bbbbs", b2_config_parms)) in add_b23()
8199 PUT_WORD(&dlc[7], (word)b2_config_parms[4].length); in add_b23()
8214 if (api_parse(&b3_config->info[1], (word)b3_config->length, "wwss", b3_config_parms)) in add_b23()
8360 if (api_parse(&b3_config->info[1], (word)b3_config->length, "wwsss", b3_config_parms)) in add_b23()
8432 static word add_modem_b23(PLCI *plci, API_PARSE *bp_parms) in add_modem_b23()
8438 word i; in add_modem_b23()
8439 word b2_config = 0; in add_modem_b23()
8463 (word)bp_parms[4].length, "w", in add_modem_b23()
8616 word l; in send_req()
8674 word ncci; in send_data()
8750 word i, j; in listen_check()
8764 for (i = a->listen_active; i < ((word)(a->max_listen + activnotifiedcalls)); i++) { in listen_check()
8791 static void IndParse(PLCI *plci, const word *parms_id, byte **parms, byte multiIEsize) in IndParse()
8793 word ploc; /* points to current location within packet */ in IndParse()
8798 word i; in IndParse()
8799 word code; in IndParse()
8800 word mIEindex = 0; in IndParse()
8878 word i; in ie_compare()
8881 for (i = 0; i < (word)(ie1[0] + 1); i++) if (ie1[i] != ie2[i]) return false; in ie_compare()
8885 static word find_cip(DIVA_CAPI_ADAPTER *a, byte *bc, byte *hlc) in find_cip()
8887 word i; in find_cip()
8888 word j; in find_cip()
8984 static word AdvCodecSupport(DIVA_CAPI_ADAPTER *a, PLCI *plci, APPL *appl, in AdvCodecSupport()
8987 word j; in AdvCodecSupport()
9177 word j; in AutomaticLaw()
9199 word CapiRelease(word Id) in CapiRelease()
9201 word i, j, appls_found; in CapiRelease()
9316 static word plci_remove_check(PLCI *plci) in plci_remove_check()
9454 word min_digit_duration, min_gap_duration; in dtmf_enable_receiver()
9490 static void dtmf_send_digits(PLCI *plci, byte *digit_buffer, word digit_count) in dtmf_send_digits()
9492 word w, i; in dtmf_send_digits()
9563 static word dtmf_save_config(dword Id, PLCI *plci, byte Rc) in dtmf_save_config()
9573 static word dtmf_restore_config(dword Id, PLCI *plci, byte Rc) in dtmf_restore_config()
9575 word Info; in dtmf_restore_config()
9612 word internal_command, Info; in dtmf_command()
9639 adjust_b1_resource(Id, plci, NULL, (word)(plci->B1_facilities | in dtmf_command()
9715 adjust_b1_resource(Id, plci, NULL, (word)(plci->B1_facilities & in dtmf_command()
9742 adjust_b1_resource(Id, plci, NULL, (word)(plci->B1_facilities | in dtmf_command()
9786 static byte dtmf_request(dword Id, word Number, DIVA_CAPI_ADAPTER *a, PLCI *plci, APPL *appl, API… in dtmf_request()
9788 word Info; in dtmf_request()
9789 word i, j; in dtmf_request()
9987 word i; in dtmf_confirmation()
10006 static void dtmf_indication(dword Id, PLCI *plci, byte *msg, word length) in dtmf_indication()
10008 word i, j, n; in dtmf_indication()
10058 word i; in dtmf_parameter_write()
10095 static word dtmf_parameter_save_config(dword Id, PLCI *plci, byte Rc) in dtmf_parameter_save_config()
10105 static word dtmf_parameter_restore_config(dword Id, PLCI *plci, byte Rc) in dtmf_parameter_restore_config()
10107 word Info; in dtmf_parameter_restore_config()
10149 word li_total_channels;
10379 word n, i, j; in mixer_calculate_coefs()
10736 word w, ch; in xconnect_query_addresses()
10770 static void xconnect_write_coefs(PLCI *plci, word internal_command) in xconnect_write_coefs()
10785 word w, n, i, j, r, s, to_ch; in xconnect_write_coefs_process()
10951 && (ADV_VOICE_NEW_COEF_BASE + sizeof(word) <= a->adv_voice_coef_length)) in xconnect_write_coefs_process()
10995 if (ADV_VOICE_NEW_COEF_BASE + sizeof(word) + w < a->adv_voice_coef_length) in xconnect_write_coefs_process()
10996 *p = a->adv_voice_coef_buffer[ADV_VOICE_NEW_COEF_BASE + sizeof(word) + w]; in xconnect_write_coefs_process()
11057 && (ADV_VOICE_NEW_COEF_BASE + sizeof(word) <= a->adv_voice_coef_length)) in xconnect_write_coefs_process()
11096 if (ADV_VOICE_NEW_COEF_BASE + sizeof(word) + w < a->adv_voice_coef_length) in xconnect_write_coefs_process()
11097 *p = a->adv_voice_coef_buffer[ADV_VOICE_NEW_COEF_BASE + sizeof(word) + w]; in xconnect_write_coefs_process()
11123 word i, w; in mixer_notify_update()
11197 word i, j; in mixer_clear_config()
11271 static word mixer_save_config(dword Id, PLCI *plci, byte Rc) in mixer_save_config()
11274 word i, j; in mixer_save_config()
11296 static word mixer_restore_config(dword Id, PLCI *plci, byte Rc) in mixer_restore_config()
11299 word Info; in mixer_restore_config()
11385 word i, internal_command; in mixer_command()
11404 adjust_b1_resource(Id, plci, NULL, (word)(plci->B1_facilities | in mixer_command()
11423 && (add_b1_facilities(plci, plci->B1_resource, (word)(plci->B1_facilities & in mixer_command()
11439 && (add_b1_facilities(plci, plci->B1_resource, (word)(plci->B1_facilities & in mixer_command()
11464 adjust_b1_resource(Id, plci, NULL, (word)(plci->B1_facilities & in mixer_command()
11511 word i, ch_a, ch_a_v, ch_a_s, ch_b, ch_b_v, ch_b_s; in li_update_connect()
11654 word ch_a, ch_a_v, ch_a_s, ch_b, ch_b_v, ch_b_s; in li2_update_connect()
11759 static word li_check_main_plci(dword Id, PLCI *plci) in li_check_main_plci()
11781 dword plci_b_id, word plci_b_write_pos, byte *p_result) in li_check_plci_b()
11832 (word)(plci_b->B1_facilities | B1_FACILITY_MIXER))) & B1_FACILITY_MIXER)) in li_check_plci_b()
11844 dword plci_b_id, word plci_b_write_pos, byte *p_result) in li2_check_plci_b()
11895 (word)(plci_b->B1_facilities | B1_FACILITY_MIXER))) & B1_FACILITY_MIXER)) in li2_check_plci_b()
11906 static byte mixer_request(dword Id, word Number, DIVA_CAPI_ADAPTER *a, PLCI *plci, APPL *appl, AP… in mixer_request()
11908 word Info; in mixer_request()
11909 word i; in mixer_request()
11916 word participant_parms_pos; in mixer_request()
11919 word result_pos; in mixer_request()
11920 word plci_b_write_pos; in mixer_request()
12083 (word)(li_parms[1].length - participant_parms_pos), "s", li_participant_struct)) in mixer_request()
12117 …participant_parms_pos = (word)((&li_participant_struct[0].info[1 + li_participant_struct[0].length… in mixer_request()
12205 (word)(li_parms[1].length - participant_parms_pos), "s", li_participant_struct)) in mixer_request()
12236 …participant_parms_pos = (word)((&li_participant_struct[0].info[1 + li_participant_struct[0].length… in mixer_request()
12369 static void mixer_indication_xconnect_from(dword Id, PLCI *plci, byte *msg, word length) in mixer_indication_xconnect_from()
12371 word i, j, ch; in mixer_indication_xconnect_from()
12412 static void mixer_indication_xconnect_to(dword Id, PLCI *plci, byte *msg, word length) in mixer_indication_xconnect_to()
12423 word plci_b_write_pos; in mixer_notify_source_removed()
12446 word i, j; in mixer_remove()
12497 word w; in ec_write_parameters()
12538 static word ec_save_config(dword Id, PLCI *plci, byte Rc) in ec_save_config()
12548 static word ec_restore_config(dword Id, PLCI *plci, byte Rc) in ec_restore_config()
12550 word Info; in ec_restore_config()
12587 word internal_command, Info; in ec_command()
12618 adjust_b1_resource(Id, plci, NULL, (word)(plci->B1_facilities | in ec_command()
12679 adjust_b1_resource(Id, plci, NULL, (word)(plci->B1_facilities & 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()
12704 word Info; in ec_request()
12705 word opt; in ec_request()
12892 static void ec_indication(dword Id, PLCI *plci, byte *msg, word length) in ec_indication()
12948 static void adv_voice_write_coefs(PLCI *plci, word write_command) in adv_voice_write_coefs()
12951 word i; in adv_voice_write_coefs()
12954 word w, n, j, k; in adv_voice_write_coefs()
12967 while (i + sizeof(word) <= a->adv_voice_coef_length) in adv_voice_write_coefs()
12973 while (i < ADV_VOICE_OLD_COEF_COUNT * sizeof(word)) in adv_voice_write_coefs()
13054 if (ADV_VOICE_NEW_COEF_BASE + sizeof(word) <= a->adv_voice_coef_length) in adv_voice_write_coefs()
13079 *(p++) = (ADV_VOICE_NEW_COEF_BASE + sizeof(word) + n < a->adv_voice_coef_length) ? in adv_voice_write_coefs()
13080 a->adv_voice_coef_buffer[ADV_VOICE_NEW_COEF_BASE + sizeof(word) + n] : 0x00; in adv_voice_write_coefs()
13107 word i, j; in adv_voice_clear_config()
13174 static word adv_voice_save_config(dword Id, PLCI *plci, byte Rc) in adv_voice_save_config()
13184 static word adv_voice_restore_config(dword Id, PLCI *plci, byte Rc) in adv_voice_restore_config()
13187 word Info; in adv_voice_restore_config()
13274 static word get_b1_facilities(PLCI *plci, byte b1_resource) in get_b1_facilities()
13276 word b1_facilities; in get_b1_facilities()
13306 static byte add_b1_facilities(PLCI *plci, byte b1_resource, word b1_facilities) in add_b1_facilities()
13411 static void adjust_b1_facilities(PLCI *plci, byte new_b1_resource, word new_b1_facilities) in adjust_b1_facilities()
13413 word removed_facilities; in adjust_b1_facilities()
13456 static word adjust_b_process(dword Id, PLCI *plci, byte Rc) in adjust_b_process()
13458 word Info; in adjust_b_process()
13621 (word)((plci->adjust_b_mode & ADJUST_B_MODE_NO_RESOURCE) ? 2 : 0), in adjust_b_process()
13826 static void adjust_b1_resource(dword Id, PLCI *plci, API_SAVE *bp_msg, word b1_facilities, word i… in adjust_b1_resource()
13836 plci->adjust_b_ncci = (word)(Id >> 16); in adjust_b1_resource()
13850 word internal_command; in adjust_b_restore()
13877 plci->adjust_b_ncci = (word)(Id >> 16); in adjust_b_restore()
13898 word Info; in reset_b3_command()
13899 word internal_command; in reset_b3_command()
13914 plci->adjust_b_ncci = (word)(Id >> 16); in reset_b3_command()
13939 word Info; in select_b_command()
13940 word internal_command; in select_b_command()
13959 plci->adjust_b_ncci = (word)(Id >> 16); in select_b_command()
13999 word internal_command; in fax_connect_ack_command()
14046 word internal_command; in fax_edata_ack_command()
14085 word Info; in fax_connect_info_command()
14086 word internal_command; in fax_connect_info_command()
14136 word Info; in fax_adjust_b23_command()
14137 word internal_command; in fax_adjust_b23_command()
14152 plci->adjust_b_ncci = (word)(Id >> 16); in fax_adjust_b23_command()
14186 word internal_command; in fax_disconnect_command()
14229 word Info; in rtp_connect_b3_req_command()
14230 word internal_command; in rtp_connect_b3_req_command()
14282 word internal_command; in rtp_connect_b3_res_command()
14334 word Info; in hold_save_command()
14335 word internal_command; in hold_save_command()
14352 plci->adjust_b_ncci = (word)(Id >> 16); in hold_save_command()
14376 word Info; in retrieve_restore_command()
14377 word internal_command; in retrieve_restore_command()
14392 plci->adjust_b_ncci = (word)(Id >> 16); in retrieve_restore_command()
14475 word i; in channel_flow_control_remove()
14592 word NCCIcode; in channel_can_xon()
14594 word Num; in channel_can_xon()
14595 word i; in channel_can_xon()
14603 NCCIcode = a->ch_ncci[ch] | (((word) a->Id) << 8); in channel_can_xon()
14623 static word CPN_filter_ok(byte *cpn, DIVA_CAPI_ADAPTER *a, word offset) in CPN_filter_ok()
14640 word i, j, k, busy, group_found; in group_optimization()
14643 word appl_number_group_type[MAX_APPL]; in group_optimization()
14755 word CapiRegister(word id) in CapiRegister()
14757 word i, j, appls_found; in CapiRegister()
14808 word i; in VSwitchReqInd()