Lines Matching refs:NL
1047 dbug(1, dprintf("D-channel X.25 plci->NL.Id:%0x", plci->NL.Id)); in plci_remove()
1048 if (plci->NL.Id && !plci->nl_remove_id) in plci_remove()
1490 if (plci->NL.Id && !plci->nl_remove_id) in disconnect_req()
2522 if (!plci->NL.Id in connect_b3_req()
2529 plci->channels, plci->NL.Id, plci->call_dir, plci->SuppState)); in connect_b3_req()
2563 if (plci->NL.Id && !plci->nl_remove_id) in connect_b3_req()
3207 msg->length, plci->Id, plci->tel, plci->NL.Id, plci->appl, plci->SuppState)); in select_b_req()
3476 if (plci->NL.Id && !plci->nl_remove_id) in manufacturer_req()
3834 plci->NL.XNum = 1; in callback()
5880 if (plci->NL.Id && !plci->nl_remove_id) { in sig_ind()
5933 if (plci->NL.Id && !plci->nl_remove_id) in sig_ind()
6431 ch = plci->NL.IndCh; in nl_ind()
6438 plci->NL.Id, Id, plci->Id, plci->tel, plci->State, ch, plci->channels, plci->NL.Ind & 0x0f)); in nl_ind()
6444 plci->NL.RNR = 2; /* discard */ in nl_ind()
6448 if ((plci->NL.Ind & 0x0f) == N_CONNECT) in nl_ind()
6454 plci->NL.RNR = 2; /* discard */ in nl_ind()
6460 plci->NL.RNR = 1; /* flow control */ in nl_ind()
6469 plci->NL.RNR = 2; in nl_ind()
6473 if (((plci->NL.Ind & 0x0f) == N_UDATA) in nl_ind()
6481 if (plci->NL.complete == 1) in nl_ind()
6483 byte *data = &plci->NL.RBuffer->P[0]; in nl_ind()
6485 if ((plci->NL.RBuffer->length >= 12) in nl_ind()
6547 plci->NL.RNR = 2; in nl_ind()
6552 if (plci->NL.complete == 2) in nl_ind()
6554 if (((plci->NL.Ind & 0x0f) == N_UDATA) in nl_ind()
6619 (plci->NL.RNum < 2) ? 0 : plci->RData[1].PLength, in nl_ind()
6640 if ((plci->NL.Ind & 0x0f) == N_CONNECT || in nl_ind()
6641 (plci->NL.Ind & 0x0f) == N_CONNECT_ACK || in nl_ind()
6642 (plci->NL.Ind & 0x0f) == N_DISC || in nl_ind()
6643 (plci->NL.Ind & 0x0f) == N_EDATA || in nl_ind()
6644 (plci->NL.Ind & 0x0f) == N_DISC_ACK) in nl_ind()
6654 for (i = 0; i < plci->NL.RLength; i++) plci->ncpi_buffer[4 + i] = plci->NL.RBuffer->P[i]; in nl_ind()
6656 plci->ncpi_buffer[1] = (byte)(plci->NL.Ind & N_D_BIT ? 1 : 0); in nl_ind()
6662 if (plci->NL.RLength >= sizeof(T30_INFO)) in nl_ind()
6664 dbug(1, dprintf("FaxStatus %04x", ((T30_INFO *)plci->NL.RBuffer->P)->code)); in nl_ind()
6666 PUT_WORD(&(plci->ncpi_buffer[1]), ((T30_INFO *)plci->NL.RBuffer->P)->rate_div_2400 * 2400); in nl_ind()
6667 fax_feature_bits = GET_WORD(&((T30_INFO *)plci->NL.RBuffer->P)->feature_bits_low); in nl_ind()
6668 …i = (((T30_INFO *)plci->NL.RBuffer->P)->resolution & T30_RESOLUTION_R8_0770_OR_200) ? 0x0001 : 0x0… in nl_ind()
6684 PUT_WORD(&(plci->ncpi_buffer[5]), ((T30_INFO *)plci->NL.RBuffer->P)->data_format); in nl_ind()
6685 plci->ncpi_buffer[7] = ((T30_INFO *)plci->NL.RBuffer->P)->pages_low; in nl_ind()
6686 plci->ncpi_buffer[8] = ((T30_INFO *)plci->NL.RBuffer->P)->pages_high; in nl_ind()
6688 if (((T30_INFO *)plci->NL.RBuffer->P)->station_id_len) in nl_ind()
6692 plci->ncpi_buffer[++len] = ((T30_INFO *)plci->NL.RBuffer->P)->station_id[i]; in nl_ind()
6694 if (((plci->NL.Ind & 0x0f) == N_DISC) || ((plci->NL.Ind & 0x0f) == N_DISC_ACK)) in nl_ind()
6696 if (((T30_INFO *)plci->NL.RBuffer->P)->code < ARRAY_SIZE(fax_info)) in nl_ind()
6697 info = fax_info[((T30_INFO *)plci->NL.RBuffer->P)->code]; in nl_ind()
6705 …i = offsetof(T30_INFO, station_id) + T30_MAX_STATION_ID_LENGTH + ((T30_INFO *)plci->NL.RBuffer->P)… in nl_ind()
6706 while (i < plci->NL.RBuffer->length) in nl_ind()
6707 plci->ncpi_buffer[++len] = plci->NL.RBuffer->P[i++]; in nl_ind()
6711 fax_feature_bits = GET_WORD(&((T30_INFO *)plci->NL.RBuffer->P)->feature_bits_low); in nl_ind()
6715 if (((plci->NL.Ind & 0x0f) == N_CONNECT_ACK) in nl_ind()
6716 || (((plci->NL.Ind & 0x0f) == N_CONNECT) in nl_ind()
6718 || (((plci->NL.Ind & 0x0f) == N_EDATA) in nl_ind()
6719 && ((((T30_INFO *)plci->NL.RBuffer->P)->code == EDATA_T30_TRAIN_OK) in nl_ind()
6720 || (((T30_INFO *)plci->NL.RBuffer->P)->code == EDATA_T30_DIS) in nl_ind()
6721 || (((T30_INFO *)plci->NL.RBuffer->P)->code == EDATA_T30_DTC)))) in nl_ind()
6725 if (((plci->NL.Ind & 0x0f) == N_DISC) in nl_ind()
6726 || ((plci->NL.Ind & 0x0f) == N_DISC_ACK) in nl_ind()
6727 || (((plci->NL.Ind & 0x0f) == N_EDATA) in nl_ind()
6728 && (((T30_INFO *)plci->NL.RBuffer->P)->code == EDATA_T30_EOP_CAPI))) in nl_ind()
6736 if (((plci->NL.Ind & 0x0f) == N_DISC) || ((plci->NL.Ind & 0x0f) == N_DISC_ACK)) in nl_ind()
6738 if (plci->NL.RLength != 0) in nl_ind()
6740 info = rtp_info[plci->NL.RBuffer->P[0]]; in nl_ind()
6741 plci->ncpi_buffer[0] = plci->NL.RLength - 1; in nl_ind()
6742 for (i = 1; i < plci->NL.RLength; i++) in nl_ind()
6743 plci->ncpi_buffer[i] = plci->NL.RBuffer->P[i]; in nl_ind()
6749 plci->NL.RNR = 2; in nl_ind()
6751 switch (plci->NL.Ind & 0x0f) { in nl_ind()
6756 ((T30_INFO *)plci->NL.RBuffer->P)->code)); in nl_ind()
6761 && (((T30_INFO *)plci->NL.RBuffer->P)->code == EDATA_T30_DIS) in nl_ind()
6766 ((T30_INFO *)(plci->fax_connect_info_buffer))->code = ((T30_INFO *)plci->NL.RBuffer->P)->code; in nl_ind()
6776 switch (((T30_INFO *)plci->NL.RBuffer->P)->code) in nl_ind()
6819 switch (((T30_INFO *)plci->NL.RBuffer->P)->code) in nl_ind()
6837 ((T30_INFO *)(plci->fax_connect_info_buffer))->code = ((T30_INFO *)plci->NL.RBuffer->P)->code; in nl_ind()
7016 …if (!(udata_forwarding_table[plci->NL.RBuffer->P[0] >> 5] & (1L << (plci->NL.RBuffer->P[0] & 0x1f)… in nl_ind()
7020 plci->NL.R = plci->RData; in nl_ind()
7021 plci->NL.RNum = 1; in nl_ind()
7031 plci->NL.RNR = 2; in nl_ind()
7039 plci->NL.RNR = 1; /* flow control */ in nl_ind()
7060 plci->NL.RNR = 1; in nl_ind()
7064 plci->NL.RNR = 2; in nl_ind()
7078 plci->NL.RNR = 1; in nl_ind()
7084 APPLptr->DataFlags[Num] = (plci->Id << 8) | (plci->NL.Ind >> 4); in nl_ind()
7088 plci->RFlags = plci->NL.Ind >> 4; in nl_ind()
7090 plci->NL.R = plci->RData; in nl_ind()
7091 if ((plci->NL.RLength != 0) in nl_ind()
7099 if ((plci->NL.RBuffer->P[0] & V120_HEADER_EXTEND_BIT) || (plci->NL.RLength == 1)) in nl_ind()
7103 if (plci->NL.RBuffer->P[0] & V120_HEADER_BREAK_BIT) in nl_ind()
7105 if (plci->NL.RBuffer->P[0] & (V120_HEADER_C1_BIT | V120_HEADER_C2_BIT)) in nl_ind()
7107 plci->NL.RNum = 2; in nl_ind()
7111 if ((plci->NL.Ind & 0x0f) == N_UDATA) in nl_ind()
7114 else if ((plci->B3_prot == B3_RTP) && ((plci->NL.Ind & 0x0f) == N_BDATA)) in nl_ind()
7117 plci->NL.RNum = 1; in nl_ind()
7124 plci->NL.RNR = 2; in nl_ind()
7147 plci->NL.Id = 0; in get_plci()
8598 plci->nl_remove_id = plci->NL.Id; in nl_req_ncci()
8635 e = &plci->NL; in send_req()
8705 plci->NL.XNum = 2; in send_data()
8706 plci->NL.Req = plci->nl_req = (byte)((data->Flags & 0x07) << 4 | N_DATA); in send_data()
8713 plci->NL.Req = plci->nl_req = (byte)N_UDATA; in send_data()
8716 plci->NL.Req = plci->nl_req = (byte)N_BDATA; in send_data()
8719 plci->NL.Req = plci->nl_req = (byte)((data->Flags & 0x07) << 4 | N_DATA); in send_data()
8721 plci->NL.X = plci->NData; in send_data()
8722 plci->NL.ReqCh = a->ncci_ch[ncci]; in send_data()
8723 dbug(1, dprintf("%x:DREQ(%x:%x)", a->Id, plci->NL.Id, plci->NL.Req)); in send_data()
8726 a->request(&plci->NL); in send_data()
8736 plci->NL.ReqCh = a->ncci_ch[ncci]; in send_data()
8737 plci->NL.Req = plci->nl_req = N_DISC; in send_data()
8738 a->request(&plci->NL); in send_data()
9319 if (!plci->NL.Id && bitmap_empty(plci->c_ind_mask_table, MAX_APPL)) in plci_remove_check()
9483 plci->NL.X = plci->NData; in dtmf_enable_receiver()
9484 plci->NL.ReqCh = 0; in dtmf_enable_receiver()
9485 plci->NL.Req = plci->nl_req = (byte) N_UDATA; in dtmf_enable_receiver()
9486 plci->adapter->request(&plci->NL); in dtmf_enable_receiver()
9516 plci->NL.X = plci->NData; in dtmf_send_digits()
9517 plci->NL.ReqCh = 0; in dtmf_send_digits()
9518 plci->NL.Req = plci->nl_req = (byte) N_UDATA; in dtmf_send_digits()
9519 plci->adapter->request(&plci->NL); in dtmf_send_digits()
9857 || !plci->NL.Id || plci->nl_remove_id) in dtmf_request()
10763 plci->NL.X = plci->NData; in xconnect_query_addresses()
10764 plci->NL.ReqCh = 0; in xconnect_query_addresses()
10765 plci->NL.Req = plci->nl_req = (byte) N_UDATA; in xconnect_query_addresses()
10766 plci->adapter->request(&plci->NL); in xconnect_query_addresses()
11111 plci->NL.X = plci->NData; in xconnect_write_coefs_process()
11112 plci->NL.ReqCh = 0; in xconnect_write_coefs_process()
11113 plci->NL.Req = plci->nl_req = (byte) N_UDATA; in xconnect_write_coefs_process()
11114 plci->adapter->request(&plci->NL); in xconnect_write_coefs_process()
11159 && notify_plci->NL.Id && !notify_plci->nl_remove_id) in mixer_notify_update()
11768 || !plci->NL.Id || plci->nl_remove_id in li_check_main_plci()
11812 || !plci_b->NL.Id || plci_b->nl_remove_id in li_check_plci_b()
11875 || !plci_b->NL.Id || plci_b->nl_remove_id in li2_check_plci_b()
12265 || !plci->NL.Id || plci->nl_remove_id in mixer_request()
12473 && notify_plci->NL.Id && !notify_plci->nl_remove_id) in mixer_remove()
12738 else if (!plci->State || !plci->NL.Id || plci->nl_remove_id) in ec_request()
12830 else if (!plci->State || !plci->NL.Id || plci->nl_remove_id) in ec_request()
13533 && plci->NL.Id && !plci->nl_remove_id) in adjust_b_process()
14019 plci->NL.X = plci->NData; in fax_connect_ack_command()
14020 plci->NL.ReqCh = 0; in fax_connect_ack_command()
14021 plci->NL.Req = plci->nl_req = (byte) N_CONNECT_ACK; in fax_connect_ack_command()
14022 plci->adapter->request(&plci->NL); in fax_connect_ack_command()
14067 plci->NL.X = plci->NData; in fax_edata_ack_command()
14068 plci->NL.ReqCh = 0; in fax_edata_ack_command()
14069 plci->NL.Req = plci->nl_req = (byte) N_EDATA; in fax_edata_ack_command()
14070 plci->adapter->request(&plci->NL); in fax_edata_ack_command()
14107 plci->NL.X = plci->NData; in fax_connect_info_command()
14108 plci->NL.ReqCh = 0; in fax_connect_info_command()
14109 plci->NL.Req = plci->nl_req = (byte) N_EDATA; in fax_connect_info_command()
14110 plci->adapter->request(&plci->NL); in fax_connect_info_command()
14268 plci->NL.X = plci->NData; in rtp_connect_b3_req_command()
14269 plci->NL.ReqCh = 0; in rtp_connect_b3_req_command()
14270 plci->NL.Req = plci->nl_req = (byte) N_UDATA; in rtp_connect_b3_req_command()
14271 plci->adapter->request(&plci->NL); in rtp_connect_b3_req_command()
14319 plci->NL.X = plci->NData; in rtp_connect_b3_res_command()
14320 plci->NL.ReqCh = 0; in rtp_connect_b3_res_command()
14321 plci->NL.Req = plci->nl_req = (byte) N_UDATA; in rtp_connect_b3_res_command()
14322 plci->adapter->request(&plci->NL); in rtp_connect_b3_res_command()
14346 if (!plci->NL.Id) in hold_save_command()
14570 if (plci->nl_req || !plci->NL.Id || plci->nl_remove_id) { in channel_xmit_xon()
14579 plci->NL.Req = plci->nl_req = (byte)N_XON; in channel_xmit_xon()
14580 plci->NL.ReqCh = ch; in channel_xmit_xon()
14581 plci->NL.X = plci->NData; in channel_xmit_xon()
14582 plci->NL.XNum = 1; in channel_xmit_xon()
14586 plci->adapter->request(&plci->NL); in channel_xmit_xon()