Lines Matching refs:bch
141 eazmask |= card->bch[i].eazmask; in actcapi_listen_req()
508 if (card->bch[i].plci == 0x8000) { in new_plci()
509 card->bch[i].plci = plci; in new_plci()
520 if (card->bch[i].plci == plci) in find_plci()
530 if (card->bch[i].ncci == ncci) in find_ncci()
540 if ((card->bch[i].callref == callref) && in find_dialing()
541 (card->bch[i].fsm_state == ACT2000_STATE_OCALL)) in find_dialing()
559 if (card->bch[chan].fsm_state != ACT2000_STATE_ACTIVE) in actcapi_data_b3_ind()
561 if (card->bch[chan].plci != plci) in actcapi_data_b3_ind()
655 if ((chan >= 0) && (card->bch[chan].fsm_state == ACT2000_STATE_ACTIVE)) { in actcapi_dispatch()
659 len = handle_ack(card, &card->bch[chan], in actcapi_dispatch()
675 card->bch[chan].fsm_state = ACT2000_STATE_NULL; in actcapi_dispatch()
681 card->bch[chan].fsm_state = ACT2000_STATE_OWAIT; in actcapi_dispatch()
682 card->bch[chan].plci = msg->msg.connect_conf.plci; in actcapi_dispatch()
694 card->bch[chan].fsm_state = ACT2000_STATE_ICALL; in actcapi_dispatch()
713 actcapi_connect_resp(card, &card->bch[chan], 0x15); /* Reject Call */ in actcapi_dispatch()
720 switch (card->bch[chan].fsm_state) { in actcapi_dispatch()
722 actcapi_connect_active_resp(card, &card->bch[chan]); in actcapi_dispatch()
725 actcapi_connect_active_resp(card, &card->bch[chan]); in actcapi_dispatch()
726 actcapi_select_b2_protocol_req(card, &card->bch[chan]); in actcapi_dispatch()
733 if ((chan >= 0) && (card->bch[chan].fsm_state == ACT2000_STATE_IBWAIT)) { in actcapi_dispatch()
734 card->bch[chan].ncci = msg->msg.connect_b3_ind.ncci; in actcapi_dispatch()
735 actcapi_connect_b3_resp(card, &card->bch[chan], 0); in actcapi_dispatch()
745 if ((chan >= 0) && (card->bch[chan].fsm_state == ACT2000_STATE_BWAIT)) { in actcapi_dispatch()
746 actcapi_connect_b3_active_resp(card, &card->bch[chan]); in actcapi_dispatch()
757 ctmp = &card->bch[chan]; in actcapi_dispatch()
782 ctmp = &card->bch[chan]; in actcapi_dispatch()
799 switch (card->bch[chan].fsm_state) { in actcapi_dispatch()
802 ctmp = &card->bch[chan]; in actcapi_dispatch()
819 switch (card->bch[chan].fsm_state) { in actcapi_dispatch()
822 ctmp = &card->bch[chan]; in actcapi_dispatch()
838 switch (card->bch[chan].fsm_state) { in actcapi_dispatch()
840 ctmp = &card->bch[chan]; in actcapi_dispatch()
852 ctmp = &card->bch[chan]; in actcapi_dispatch()
873 if ((chan >= 0) && (card->bch[chan].fsm_state == ACT2000_STATE_OBWAIT)) { in actcapi_dispatch()
874 ctmp = &card->bch[chan]; in actcapi_dispatch()
890 if ((chan >= 0) && (card->bch[chan].fsm_state == ACT2000_STATE_BHWAIT)) in actcapi_dispatch()
891 card->bch[chan].fsm_state = ACT2000_STATE_BHWAIT2; in actcapi_dispatch()
898 actcapi_info_resp(card, &card->bch[chan]); in actcapi_dispatch()