Lines Matching full:grp
330 struct mpc_group *grp; in ctc_mpc_alloc_channel() local
337 grp = priv->mpcg; in ctc_mpc_alloc_channel()
339 grp->allochanfunc = callback; in ctc_mpc_alloc_channel()
340 grp->port_num = port_num; in ctc_mpc_alloc_channel()
341 grp->port_persist = 1; in ctc_mpc_alloc_channel()
345 CTCM_FUNTAIL, dev->name, fsm_getstate_str(grp->fsm)); in ctc_mpc_alloc_channel()
347 switch (fsm_getstate(grp->fsm)) { in ctc_mpc_alloc_channel()
350 grp->alloc_called = 1; in ctc_mpc_alloc_channel()
357 /*fsm_newstate(grp->fsm, MPCG_STATE_XID2INITW);*/ in ctc_mpc_alloc_channel()
359 grp->send_qllc_disc = 1; in ctc_mpc_alloc_channel()
362 fsm_deltimer(&grp->timer); in ctc_mpc_alloc_channel()
363 grp->outstanding_xid2 = 0; in ctc_mpc_alloc_channel()
364 grp->outstanding_xid7 = 0; in ctc_mpc_alloc_channel()
365 grp->outstanding_xid7_p2 = 0; in ctc_mpc_alloc_channel()
366 grp->saved_xid2 = NULL; in ctc_mpc_alloc_channel()
375 grp->allocchan_callback_retries++; in ctc_mpc_alloc_channel()
376 if (grp->allocchan_callback_retries < 4) { in ctc_mpc_alloc_channel()
377 if (grp->allochanfunc) in ctc_mpc_alloc_channel()
378 grp->allochanfunc(grp->port_num, in ctc_mpc_alloc_channel()
379 grp->group_max_buflen); in ctc_mpc_alloc_channel()
383 fsm_event(grp->fsm, MPCG_EVENT_INOP, dev); in ctc_mpc_alloc_channel()
384 grp->allocchan_callback_retries = 0; in ctc_mpc_alloc_channel()
401 struct mpc_group *grp; in ctc_mpc_establish_connectivity() local
409 grp = priv->mpcg; in ctc_mpc_establish_connectivity()
415 CTCM_FUNTAIL, dev->name, fsm_getstate_str(grp->fsm)); in ctc_mpc_establish_connectivity()
417 grp->estconnfunc = callback; in ctc_mpc_establish_connectivity()
418 grp->port_num = port_num; in ctc_mpc_establish_connectivity()
420 switch (fsm_getstate(grp->fsm)) { in ctc_mpc_establish_connectivity()
425 fsm_deltimer(&grp->timer); in ctc_mpc_establish_connectivity()
426 grp->estconn_callback_retries++; in ctc_mpc_establish_connectivity()
427 if (grp->estconn_callback_retries < 4) { in ctc_mpc_establish_connectivity()
428 if (grp->estconnfunc) { in ctc_mpc_establish_connectivity()
429 grp->estconnfunc(grp->port_num, 0, in ctc_mpc_establish_connectivity()
430 grp->group_max_buflen); in ctc_mpc_establish_connectivity()
431 grp->estconnfunc = NULL; in ctc_mpc_establish_connectivity()
435 fsm_event(grp->fsm, MPCG_EVENT_INOP, dev); in ctc_mpc_establish_connectivity()
436 grp->estconn_callback_retries = 0; in ctc_mpc_establish_connectivity()
447 if (grp->estconnfunc) { in ctc_mpc_establish_connectivity()
448 grp->estconnfunc(grp->port_num, -1, 0); in ctc_mpc_establish_connectivity()
449 grp->estconnfunc = NULL; in ctc_mpc_establish_connectivity()
464 grp->send_qllc_disc = 1; in ctc_mpc_establish_connectivity()
465 fsm_newstate(grp->fsm, MPCG_STATE_XID0IOWAIT); in ctc_mpc_establish_connectivity()
466 fsm_deltimer(&grp->timer); in ctc_mpc_establish_connectivity()
467 fsm_addtimer(&grp->timer, MPC_XID_TIMEOUT_VALUE, in ctc_mpc_establish_connectivity()
469 grp->outstanding_xid7 = 0; in ctc_mpc_establish_connectivity()
470 grp->outstanding_xid7_p2 = 0; in ctc_mpc_establish_connectivity()
471 grp->saved_xid2 = NULL; in ctc_mpc_establish_connectivity()
474 fsm_event(grp->fsm, MPCG_EVENT_XID0DO, rch); in ctc_mpc_establish_connectivity()
479 if (grp->estconnfunc) { in ctc_mpc_establish_connectivity()
480 grp->estconnfunc(grp->port_num, -1, 0); in ctc_mpc_establish_connectivity()
481 grp->estconnfunc = NULL; in ctc_mpc_establish_connectivity()
483 fsm_deltimer(&grp->timer); in ctc_mpc_establish_connectivity()
488 fsm_event(grp->fsm, MPCG_EVENT_XID0DO, wch); in ctc_mpc_establish_connectivity()
493 if (grp->estconnfunc) { in ctc_mpc_establish_connectivity()
494 grp->estconnfunc(grp->port_num, -1, 0); in ctc_mpc_establish_connectivity()
495 grp->estconnfunc = NULL; in ctc_mpc_establish_connectivity()
497 fsm_deltimer(&grp->timer); in ctc_mpc_establish_connectivity()
521 struct mpc_group *grp; in ctc_mpc_dealloc_ch() local
527 grp = priv->mpcg; in ctc_mpc_dealloc_ch()
534 grp->channels_terminating = 0; in ctc_mpc_dealloc_ch()
535 fsm_deltimer(&grp->timer); in ctc_mpc_dealloc_ch()
536 grp->allochanfunc = NULL; in ctc_mpc_dealloc_ch()
537 grp->estconnfunc = NULL; in ctc_mpc_dealloc_ch()
538 grp->port_persist = 0; in ctc_mpc_dealloc_ch()
539 grp->send_qllc_disc = 0; in ctc_mpc_dealloc_ch()
540 fsm_event(grp->fsm, MPCG_EVENT_INOP, dev); in ctc_mpc_dealloc_ch()
554 struct mpc_group *grp; in ctc_mpc_flow_control() local
563 grp = priv->mpcg; in ctc_mpc_flow_control()
571 mpcg_state = fsm_getstate(grp->fsm); in ctc_mpc_flow_control()
577 if (grp->flow_off_called == 1) in ctc_mpc_flow_control()
578 grp->flow_off_called = 0; in ctc_mpc_flow_control()
580 fsm_newstate(grp->fsm, MPCG_STATE_FLOWC); in ctc_mpc_flow_control()
586 fsm_newstate(grp->fsm, MPCG_STATE_READY); in ctc_mpc_flow_control()
593 grp->flow_off_called = 1; in ctc_mpc_flow_control()
612 struct mpc_group *grp = priv->mpcg; in mpc_rcvd_sweep_resp() local
618 grp->sweep_rsp_pend_num--; in mpc_rcvd_sweep_resp()
620 if ((grp->sweep_req_pend_num == 0) && in mpc_rcvd_sweep_resp()
621 (grp->sweep_rsp_pend_num == 0)) { in mpc_rcvd_sweep_resp()
623 grp->in_sweep = 0; in mpc_rcvd_sweep_resp()
643 struct mpc_group *grp = priv->mpcg; in ctcmpc_send_sweep_resp() local
684 grp->in_sweep = 0; in ctcmpc_send_sweep_resp()
686 fsm_event(grp->fsm, MPCG_EVENT_INOP, dev); in ctcmpc_send_sweep_resp()
699 struct mpc_group *grp = priv->mpcg; in mpc_rcvd_sweep_req() local
706 if (grp->in_sweep == 0) { in mpc_rcvd_sweep_req()
707 grp->in_sweep = 1; in mpc_rcvd_sweep_req()
709 grp->sweep_req_pend_num = grp->active_channels[CTCM_READ]; in mpc_rcvd_sweep_req()
710 grp->sweep_rsp_pend_num = grp->active_channels[CTCM_READ]; in mpc_rcvd_sweep_req()
715 grp->sweep_req_pend_num--; in mpc_rcvd_sweep_req()
833 struct mpc_group *grp = priv->mpcg; in mpc_action_go_ready() local
835 if (grp == NULL) { in mpc_action_go_ready()
842 fsm_deltimer(&grp->timer); in mpc_action_go_ready()
844 if (grp->saved_xid2->xid2_flag2 == 0x40) { in mpc_action_go_ready()
846 if (grp->estconnfunc) { in mpc_action_go_ready()
847 grp->estconnfunc(grp->port_num, 1, in mpc_action_go_ready()
848 grp->group_max_buflen); in mpc_action_go_ready()
849 grp->estconnfunc = NULL; in mpc_action_go_ready()
850 } else if (grp->allochanfunc) in mpc_action_go_ready()
851 grp->send_qllc_disc = 1; in mpc_action_go_ready()
853 fsm_event(grp->fsm, MPCG_EVENT_INOP, dev); in mpc_action_go_ready()
860 grp->port_persist = 1; in mpc_action_go_ready()
861 grp->out_of_sequence = 0; in mpc_action_go_ready()
862 grp->estconn_called = 0; in mpc_action_go_ready()
864 tasklet_hi_schedule(&grp->mpc_tasklet2); in mpc_action_go_ready()
877 struct mpc_group *grp = priv->mpcg; in mpc_group_ready() local
880 if (grp == NULL) { in mpc_group_ready()
889 CTCM_FUNTAIL, dev->name, grp->group_max_buflen); in mpc_group_ready()
891 fsm_newstate(grp->fsm, MPCG_STATE_READY); in mpc_group_ready()
911 if (grp->estconnfunc) { in mpc_group_ready()
912 grp->estconnfunc(grp->port_num, 0, in mpc_group_ready()
913 grp->group_max_buflen); in mpc_group_ready()
914 grp->estconnfunc = NULL; in mpc_group_ready()
915 } else if (grp->allochanfunc) in mpc_group_ready()
916 grp->allochanfunc(grp->port_num, grp->group_max_buflen); in mpc_group_ready()
918 grp->send_qllc_disc = 1; in mpc_group_ready()
919 grp->changed_side = 0; in mpc_group_ready()
933 struct mpc_group *grp = priv->mpcg; in mpc_channel_action() local
935 if (grp == NULL) { in mpc_channel_action()
945 "%s: %i / Grp:%s total_channels=%i, active_channels: " in mpc_channel_action()
947 fsm_getstate_str(grp->fsm), grp->num_channel_paths, in mpc_channel_action()
948 grp->active_channels[CTCM_READ], in mpc_channel_action()
949 grp->active_channels[CTCM_WRITE]); in mpc_channel_action()
952 grp->num_channel_paths++; in mpc_channel_action()
953 grp->active_channels[direction]++; in mpc_channel_action()
954 grp->outstanding_xid2++; in mpc_channel_action()
966 fsm_event(grp->fsm, MPCG_EVENT_INOP, dev); in mpc_channel_action()
979 skb_put_data(ch->xid_skb, grp->xid_skb->data, in mpc_channel_action()
980 grp->xid_skb->len); in mpc_channel_action()
995 if ((grp->active_channels[CTCM_READ] > 0) && in mpc_channel_action()
996 (grp->active_channels[CTCM_WRITE] > 0) && in mpc_channel_action()
997 (fsm_getstate(grp->fsm) < MPCG_STATE_XID2INITW)) { in mpc_channel_action()
998 fsm_newstate(grp->fsm, MPCG_STATE_XID2INITW); in mpc_channel_action()
1006 grp->num_channel_paths--; in mpc_channel_action()
1007 grp->active_channels[direction]--; in mpc_channel_action()
1013 if (grp->channels_terminating) in mpc_channel_action()
1016 if (((grp->active_channels[CTCM_READ] == 0) && in mpc_channel_action()
1017 (grp->active_channels[CTCM_WRITE] > 0)) in mpc_channel_action()
1018 || ((grp->active_channels[CTCM_WRITE] == 0) && in mpc_channel_action()
1019 (grp->active_channels[CTCM_READ] > 0))) in mpc_channel_action()
1020 fsm_event(grp->fsm, MPCG_EVENT_INOP, dev); in mpc_channel_action()
1024 "exit %s: %i / Grp:%s total_channels=%i, active_channels: " in mpc_channel_action()
1026 fsm_getstate_str(grp->fsm), grp->num_channel_paths, in mpc_channel_action()
1027 grp->active_channels[CTCM_READ], in mpc_channel_action()
1028 grp->active_channels[CTCM_WRITE]); in mpc_channel_action()
1045 struct mpc_group *grp = priv->mpcg; in ctcmpc_unpack_skb() local
1076 if ((fsm_getstate(grp->fsm) == MPCG_STATE_FLOWC) || in ctcmpc_unpack_skb()
1077 ((fsm_getstate(grp->fsm) == MPCG_STATE_READY) && in ctcmpc_unpack_skb()
1086 grp->out_of_sequence += 1; in ctcmpc_unpack_skb()
1095 grp->out_of_sequence = 0; in ctcmpc_unpack_skb()
1101 if (unlikely(fsm_getstate(grp->fsm) != MPCG_STATE_READY)) in ctcmpc_unpack_skb()
1150 fsm_event(grp->fsm, MPCG_EVENT_INOP, dev); in ctcmpc_unpack_skb()
1200 fsm_event(grp->fsm, MPCG_EVENT_XID2, mpcginfo); in ctcmpc_unpack_skb()
1202 fsm_event(grp->fsm, MPCG_EVENT_DISCONC, mpcginfo); in ctcmpc_unpack_skb()
1221 fsm_event(grp->fsm, MPCG_EVENT_INOP, dev); in ctcmpc_unpack_skb()
1242 struct mpc_group *grp = priv->mpcg; in ctcmpc_bh() local
1247 while ((fsm_getstate(grp->fsm) != MPCG_STATE_FLOWC) && in ctcmpc_bh()
1250 if (grp->out_of_sequence > 20) { in ctcmpc_bh()
1254 grp->out_of_sequence = 0; in ctcmpc_bh()
1255 fsm_event(grp->fsm, MPCG_EVENT_INOP, dev); in ctcmpc_bh()
1271 struct mpc_group *grp; in ctcmpc_init_mpc_group() local
1276 grp = kzalloc(sizeof(struct mpc_group), GFP_KERNEL); in ctcmpc_init_mpc_group()
1277 if (grp == NULL) in ctcmpc_init_mpc_group()
1280 grp->fsm = init_fsm("mpcg", mpcg_state_names, mpcg_event_names, in ctcmpc_init_mpc_group()
1283 if (grp->fsm == NULL) { in ctcmpc_init_mpc_group()
1284 kfree(grp); in ctcmpc_init_mpc_group()
1288 fsm_newstate(grp->fsm, MPCG_STATE_RESET); in ctcmpc_init_mpc_group()
1289 fsm_settimer(grp->fsm, &grp->timer); in ctcmpc_init_mpc_group()
1291 grp->xid_skb = in ctcmpc_init_mpc_group()
1293 if (grp->xid_skb == NULL) { in ctcmpc_init_mpc_group()
1294 kfree_fsm(grp->fsm); in ctcmpc_init_mpc_group()
1295 kfree(grp); in ctcmpc_init_mpc_group()
1299 grp->xid_skb_data = grp->xid_skb->data; in ctcmpc_init_mpc_group()
1300 grp->xid_th = (struct th_header *)grp->xid_skb->data; in ctcmpc_init_mpc_group()
1301 skb_put_data(grp->xid_skb, &thnorm, TH_HEADER_LENGTH); in ctcmpc_init_mpc_group()
1303 grp->xid = (struct xid2 *)skb_tail_pointer(grp->xid_skb); in ctcmpc_init_mpc_group()
1304 skb_put_data(grp->xid_skb, &init_xid, XID2_LENGTH); in ctcmpc_init_mpc_group()
1305 grp->xid->xid2_adj_id = jiffies | 0xfff00000; in ctcmpc_init_mpc_group()
1306 grp->xid->xid2_sender_id = jiffies; in ctcmpc_init_mpc_group()
1308 grp->xid_id = skb_tail_pointer(grp->xid_skb); in ctcmpc_init_mpc_group()
1309 skb_put_data(grp->xid_skb, "VTAM", 4); in ctcmpc_init_mpc_group()
1311 grp->rcvd_xid_skb = in ctcmpc_init_mpc_group()
1313 if (grp->rcvd_xid_skb == NULL) { in ctcmpc_init_mpc_group()
1314 kfree_fsm(grp->fsm); in ctcmpc_init_mpc_group()
1315 dev_kfree_skb(grp->xid_skb); in ctcmpc_init_mpc_group()
1316 kfree(grp); in ctcmpc_init_mpc_group()
1319 grp->rcvd_xid_data = grp->rcvd_xid_skb->data; in ctcmpc_init_mpc_group()
1320 grp->rcvd_xid_th = (struct th_header *)grp->rcvd_xid_skb->data; in ctcmpc_init_mpc_group()
1321 skb_put_data(grp->rcvd_xid_skb, &thnorm, TH_HEADER_LENGTH); in ctcmpc_init_mpc_group()
1322 grp->saved_xid2 = NULL; in ctcmpc_init_mpc_group()
1323 priv->xid = grp->xid; in ctcmpc_init_mpc_group()
1324 priv->mpcg = grp; in ctcmpc_init_mpc_group()
1325 return grp; in ctcmpc_init_mpc_group()
1354 struct mpc_group *grp; in mpc_action_go_inop() local
1360 grp = priv->mpcg; in mpc_action_go_inop()
1361 grp->flow_off_called = 0; in mpc_action_go_inop()
1362 fsm_deltimer(&grp->timer); in mpc_action_go_inop()
1363 if (grp->channels_terminating) in mpc_action_go_inop()
1366 grp->channels_terminating = 1; in mpc_action_go_inop()
1367 grp->saved_state = fsm_getstate(grp->fsm); in mpc_action_go_inop()
1368 fsm_newstate(grp->fsm, MPCG_STATE_INOP); in mpc_action_go_inop()
1369 if (grp->saved_state > MPCG_STATE_XID7INITF) in mpc_action_go_inop()
1373 if ((grp->saved_state != MPCG_STATE_RESET) || in mpc_action_go_inop()
1375 (grp->port_persist == 0)) in mpc_action_go_inop()
1380 switch (grp->saved_state) { in mpc_action_go_inop()
1399 grp->xid2_tgnum = 0; in mpc_action_go_inop()
1400 grp->group_max_buflen = 0; /*min of all received */ in mpc_action_go_inop()
1401 grp->outstanding_xid2 = 0; in mpc_action_go_inop()
1402 grp->outstanding_xid7 = 0; in mpc_action_go_inop()
1403 grp->outstanding_xid7_p2 = 0; in mpc_action_go_inop()
1404 grp->saved_xid2 = NULL; in mpc_action_go_inop()
1405 grp->xidnogood = 0; in mpc_action_go_inop()
1406 grp->changed_side = 0; in mpc_action_go_inop()
1408 grp->rcvd_xid_skb->data = grp->rcvd_xid_data; in mpc_action_go_inop()
1409 skb_reset_tail_pointer(grp->rcvd_xid_skb); in mpc_action_go_inop()
1410 grp->rcvd_xid_skb->len = 0; in mpc_action_go_inop()
1411 grp->rcvd_xid_th = (struct th_header *)grp->rcvd_xid_skb->data; in mpc_action_go_inop()
1412 skb_put_data(grp->rcvd_xid_skb, &thnorm, TH_HEADER_LENGTH); in mpc_action_go_inop()
1414 if (grp->send_qllc_disc == 1) { in mpc_action_go_inop()
1415 grp->send_qllc_disc = 0; in mpc_action_go_inop()
1424 if ((grp->port_persist == 1) || (grp->alloc_called)) { in mpc_action_go_inop()
1425 grp->alloc_called = 0; in mpc_action_go_inop()
1428 fsm_newstate(grp->fsm, MPCG_STATE_RESET); in mpc_action_go_inop()
1429 if (grp->saved_state > MPCG_STATE_XID7INITF) in mpc_action_go_inop()
1436 fsm_newstate(grp->fsm, MPCG_STATE_RESET); in mpc_action_go_inop()
1456 struct mpc_group *grp; in mpc_action_timeout() local
1461 grp = priv->mpcg; in mpc_action_timeout()
1465 switch (fsm_getstate(grp->fsm)) { in mpc_action_timeout()
1475 fsm_event(grp->fsm, MPCG_EVENT_INOP, dev); in mpc_action_timeout()
1494 struct mpc_group *grp; in mpc_action_discontact() local
1504 grp = priv->mpcg; in mpc_action_discontact()
1505 grp->send_qllc_disc = 1; in mpc_action_discontact()
1506 fsm_event(grp->fsm, MPCG_EVENT_INOP, dev); in mpc_action_discontact()
1547 struct mpc_group *grp = priv->mpcg; in mpc_validate_xid() local
1580 grp->group_max_buflen, xid->xid2_buf_len); in mpc_validate_xid()
1582 if (grp->group_max_buflen == 0 || grp->group_max_buflen > in mpc_validate_xid()
1584 grp->group_max_buflen = xid->xid2_buf_len - len; in mpc_validate_xid()
1587 if (grp->saved_xid2 == NULL) { in mpc_validate_xid()
1588 grp->saved_xid2 = in mpc_validate_xid()
1589 (struct xid2 *)skb_tail_pointer(grp->rcvd_xid_skb); in mpc_validate_xid()
1591 skb_put_data(grp->rcvd_xid_skb, xid, XID2_LENGTH); in mpc_validate_xid()
1592 grp->rcvd_xid_skb->data = grp->rcvd_xid_data; in mpc_validate_xid()
1594 skb_reset_tail_pointer(grp->rcvd_xid_skb); in mpc_validate_xid()
1595 grp->rcvd_xid_skb->len = 0; in mpc_validate_xid()
1606 grp->roll = XSIDE; in mpc_validate_xid()
1611 grp->roll = YSIDE; in mpc_validate_xid()
1618 if (xid->xid2_flag4 != grp->saved_xid2->xid2_flag4) { in mpc_validate_xid()
1632 if (xid->xid2_adj_id != grp->saved_xid2->xid2_adj_id) { in mpc_validate_xid()
1639 if (xid->xid2_sender_id != grp->saved_xid2->xid2_sender_id) { in mpc_validate_xid()
1653 grp->saved_xid2->xid2_flag2 = 0x40; in mpc_validate_xid()
1843 struct mpc_group *grp = priv->mpcg; in mpc_action_doxid0() local
1859 switch (fsm_getstate(grp->fsm)) { in mpc_action_doxid0()
1870 fsm_event(grp->fsm, MPCG_EVENT_DOIO, ch); in mpc_action_doxid0()
1883 struct mpc_group *grp = NULL; in mpc_action_doxid7() local
1888 grp = priv->mpcg; in mpc_action_doxid7()
1889 if (grp == NULL) in mpc_action_doxid7()
1902 if (grp->outstanding_xid7_p2 > 0) { in mpc_action_doxid7()
1903 if (grp->roll == YSIDE) { in mpc_action_doxid7()
1920 if (grp->roll == YSIDE) { in mpc_action_doxid7()
1938 fsm_event(grp->fsm, MPCG_EVENT_DOIO, ch); in mpc_action_doxid7()
1955 struct mpc_group *grp = priv->mpcg; in mpc_action_rcvd_xid0() local
1958 __func__, ch->id, grp->outstanding_xid2, in mpc_action_rcvd_xid0()
1959 grp->outstanding_xid7, grp->outstanding_xid7_p2); in mpc_action_rcvd_xid0()
1964 grp->outstanding_xid2--; in mpc_action_rcvd_xid0()
1965 grp->outstanding_xid7++; in mpc_action_rcvd_xid0()
1966 grp->outstanding_xid7_p2++; in mpc_action_rcvd_xid0()
1970 switch (fsm_getstate(grp->fsm)) { in mpc_action_rcvd_xid0()
1972 fsm_newstate(grp->fsm, MPCG_STATE_XID2INITX); in mpc_action_rcvd_xid0()
1976 fsm_newstate(grp->fsm, MPCG_STATE_XID0IOWAIX); in mpc_action_rcvd_xid0()
1980 if (grp->outstanding_xid2 == 0) { in mpc_action_rcvd_xid0()
1981 fsm_newstate(grp->fsm, MPCG_STATE_XID7INITW); in mpc_action_rcvd_xid0()
1983 fsm_event(grp->fsm, MPCG_EVENT_XID2DONE, dev); in mpc_action_rcvd_xid0()
1987 if (grp->outstanding_xid2 == 0) { in mpc_action_rcvd_xid0()
1988 fsm_newstate(grp->fsm, MPCG_STATE_XID7INITI); in mpc_action_rcvd_xid0()
1990 fsm_event(grp->fsm, MPCG_EVENT_XID2DONE, dev); in mpc_action_rcvd_xid0()
1997 __func__, ch->id, grp->outstanding_xid2, in mpc_action_rcvd_xid0()
1998 grp->outstanding_xid7, grp->outstanding_xid7_p2); in mpc_action_rcvd_xid0()
2001 fsm_getstate_str(grp->fsm), fsm_getstate_str(ch->fsm)); in mpc_action_rcvd_xid0()
2017 struct mpc_group *grp = priv->mpcg; in mpc_action_rcvd_xid7() local
2022 __func__, grp->outstanding_xid7, grp->outstanding_xid7_p2); in mpc_action_rcvd_xid7()
2024 grp->outstanding_xid7--; in mpc_action_rcvd_xid7()
2029 switch (fsm_getstate(grp->fsm)) { in mpc_action_rcvd_xid7()
2031 fsm_newstate(grp->fsm, MPCG_STATE_XID7INITZ); in mpc_action_rcvd_xid7()
2035 fsm_newstate(grp->fsm, MPCG_STATE_XID7INITX); in mpc_action_rcvd_xid7()
2040 if (grp->outstanding_xid7 == 0) { in mpc_action_rcvd_xid7()
2041 if (grp->outstanding_xid7_p2 > 0) { in mpc_action_rcvd_xid7()
2042 grp->outstanding_xid7 = in mpc_action_rcvd_xid7()
2043 grp->outstanding_xid7_p2; in mpc_action_rcvd_xid7()
2044 grp->outstanding_xid7_p2 = 0; in mpc_action_rcvd_xid7()
2046 fsm_newstate(grp->fsm, MPCG_STATE_XID7INITF); in mpc_action_rcvd_xid7()
2049 fsm_event(grp->fsm, MPCG_EVENT_XID7DONE, dev); in mpc_action_rcvd_xid7()
2069 struct mpc_group *grp = priv->mpcg; in mpc_send_qllc_discontact() local
2072 __func__, mpcg_state_names[grp->saved_state]); in mpc_send_qllc_discontact()
2074 switch (grp->saved_state) { in mpc_send_qllc_discontact()
2087 if (grp->estconnfunc) { in mpc_send_qllc_discontact()
2088 grp->estconnfunc(grp->port_num, -1, 0); in mpc_send_qllc_discontact()
2089 grp->estconnfunc = NULL; in mpc_send_qllc_discontact()
2095 grp->send_qllc_disc = 2; in mpc_send_qllc_discontact()