Lines Matching refs:grp
332 struct mpc_group *grp; in ctc_mpc_alloc_channel() local
339 grp = priv->mpcg; in ctc_mpc_alloc_channel()
341 grp->allochanfunc = callback; in ctc_mpc_alloc_channel()
342 grp->port_num = port_num; in ctc_mpc_alloc_channel()
343 grp->port_persist = 1; in ctc_mpc_alloc_channel()
347 CTCM_FUNTAIL, dev->name, fsm_getstate_str(grp->fsm)); in ctc_mpc_alloc_channel()
349 switch (fsm_getstate(grp->fsm)) { in ctc_mpc_alloc_channel()
352 grp->alloc_called = 1; in ctc_mpc_alloc_channel()
361 grp->send_qllc_disc = 1; in ctc_mpc_alloc_channel()
364 fsm_deltimer(&grp->timer); in ctc_mpc_alloc_channel()
365 grp->outstanding_xid2 = 0; in ctc_mpc_alloc_channel()
366 grp->outstanding_xid7 = 0; in ctc_mpc_alloc_channel()
367 grp->outstanding_xid7_p2 = 0; in ctc_mpc_alloc_channel()
368 grp->saved_xid2 = NULL; in ctc_mpc_alloc_channel()
377 grp->allocchan_callback_retries++; in ctc_mpc_alloc_channel()
378 if (grp->allocchan_callback_retries < 4) { in ctc_mpc_alloc_channel()
379 if (grp->allochanfunc) in ctc_mpc_alloc_channel()
380 grp->allochanfunc(grp->port_num, in ctc_mpc_alloc_channel()
381 grp->group_max_buflen); in ctc_mpc_alloc_channel()
385 fsm_event(grp->fsm, MPCG_EVENT_INOP, dev); in ctc_mpc_alloc_channel()
386 grp->allocchan_callback_retries = 0; in ctc_mpc_alloc_channel()
403 struct mpc_group *grp; in ctc_mpc_establish_connectivity() local
411 grp = priv->mpcg; in ctc_mpc_establish_connectivity()
417 CTCM_FUNTAIL, dev->name, fsm_getstate_str(grp->fsm)); in ctc_mpc_establish_connectivity()
419 grp->estconnfunc = callback; in ctc_mpc_establish_connectivity()
420 grp->port_num = port_num; in ctc_mpc_establish_connectivity()
422 switch (fsm_getstate(grp->fsm)) { in ctc_mpc_establish_connectivity()
427 fsm_deltimer(&grp->timer); in ctc_mpc_establish_connectivity()
428 grp->estconn_callback_retries++; in ctc_mpc_establish_connectivity()
429 if (grp->estconn_callback_retries < 4) { in ctc_mpc_establish_connectivity()
430 if (grp->estconnfunc) { in ctc_mpc_establish_connectivity()
431 grp->estconnfunc(grp->port_num, 0, in ctc_mpc_establish_connectivity()
432 grp->group_max_buflen); in ctc_mpc_establish_connectivity()
433 grp->estconnfunc = NULL; in ctc_mpc_establish_connectivity()
437 fsm_event(grp->fsm, MPCG_EVENT_INOP, dev); in ctc_mpc_establish_connectivity()
438 grp->estconn_callback_retries = 0; in ctc_mpc_establish_connectivity()
449 if (grp->estconnfunc) { in ctc_mpc_establish_connectivity()
450 grp->estconnfunc(grp->port_num, -1, 0); in ctc_mpc_establish_connectivity()
451 grp->estconnfunc = NULL; in ctc_mpc_establish_connectivity()
466 grp->send_qllc_disc = 1; in ctc_mpc_establish_connectivity()
467 fsm_newstate(grp->fsm, MPCG_STATE_XID0IOWAIT); in ctc_mpc_establish_connectivity()
468 fsm_deltimer(&grp->timer); in ctc_mpc_establish_connectivity()
469 fsm_addtimer(&grp->timer, MPC_XID_TIMEOUT_VALUE, in ctc_mpc_establish_connectivity()
471 grp->outstanding_xid7 = 0; in ctc_mpc_establish_connectivity()
472 grp->outstanding_xid7_p2 = 0; in ctc_mpc_establish_connectivity()
473 grp->saved_xid2 = NULL; in ctc_mpc_establish_connectivity()
476 fsm_event(grp->fsm, MPCG_EVENT_XID0DO, rch); in ctc_mpc_establish_connectivity()
481 if (grp->estconnfunc) { in ctc_mpc_establish_connectivity()
482 grp->estconnfunc(grp->port_num, -1, 0); in ctc_mpc_establish_connectivity()
483 grp->estconnfunc = NULL; in ctc_mpc_establish_connectivity()
485 fsm_deltimer(&grp->timer); in ctc_mpc_establish_connectivity()
490 fsm_event(grp->fsm, MPCG_EVENT_XID0DO, wch); in ctc_mpc_establish_connectivity()
495 if (grp->estconnfunc) { in ctc_mpc_establish_connectivity()
496 grp->estconnfunc(grp->port_num, -1, 0); in ctc_mpc_establish_connectivity()
497 grp->estconnfunc = NULL; in ctc_mpc_establish_connectivity()
499 fsm_deltimer(&grp->timer); in ctc_mpc_establish_connectivity()
523 struct mpc_group *grp; in ctc_mpc_dealloc_ch() local
529 grp = priv->mpcg; in ctc_mpc_dealloc_ch()
536 grp->channels_terminating = 0; in ctc_mpc_dealloc_ch()
537 fsm_deltimer(&grp->timer); in ctc_mpc_dealloc_ch()
538 grp->allochanfunc = NULL; in ctc_mpc_dealloc_ch()
539 grp->estconnfunc = NULL; in ctc_mpc_dealloc_ch()
540 grp->port_persist = 0; in ctc_mpc_dealloc_ch()
541 grp->send_qllc_disc = 0; in ctc_mpc_dealloc_ch()
542 fsm_event(grp->fsm, MPCG_EVENT_INOP, dev); in ctc_mpc_dealloc_ch()
556 struct mpc_group *grp; in ctc_mpc_flow_control() local
565 grp = priv->mpcg; in ctc_mpc_flow_control()
573 mpcg_state = fsm_getstate(grp->fsm); in ctc_mpc_flow_control()
579 if (grp->flow_off_called == 1) in ctc_mpc_flow_control()
580 grp->flow_off_called = 0; in ctc_mpc_flow_control()
582 fsm_newstate(grp->fsm, MPCG_STATE_FLOWC); in ctc_mpc_flow_control()
588 fsm_newstate(grp->fsm, MPCG_STATE_READY); in ctc_mpc_flow_control()
595 grp->flow_off_called = 1; in ctc_mpc_flow_control()
614 struct mpc_group *grp = priv->mpcg; in mpc_rcvd_sweep_resp() local
620 grp->sweep_rsp_pend_num--; in mpc_rcvd_sweep_resp()
622 if ((grp->sweep_req_pend_num == 0) && in mpc_rcvd_sweep_resp()
623 (grp->sweep_rsp_pend_num == 0)) { in mpc_rcvd_sweep_resp()
625 grp->in_sweep = 0; in mpc_rcvd_sweep_resp()
643 struct mpc_group *grp = priv->mpcg; in ctcmpc_send_sweep_resp() local
670 grp->in_sweep = 0; in ctcmpc_send_sweep_resp()
672 fsm_event(grp->fsm, MPCG_EVENT_INOP, dev); in ctcmpc_send_sweep_resp()
685 struct mpc_group *grp = priv->mpcg; in mpc_rcvd_sweep_req() local
692 if (grp->in_sweep == 0) { in mpc_rcvd_sweep_req()
693 grp->in_sweep = 1; in mpc_rcvd_sweep_req()
695 grp->sweep_req_pend_num = grp->active_channels[CTCM_READ]; in mpc_rcvd_sweep_req()
696 grp->sweep_rsp_pend_num = grp->active_channels[CTCM_READ]; in mpc_rcvd_sweep_req()
701 grp->sweep_req_pend_num--; in mpc_rcvd_sweep_req()
819 struct mpc_group *grp = priv->mpcg; in mpc_action_go_ready() local
821 if (grp == NULL) { in mpc_action_go_ready()
828 fsm_deltimer(&grp->timer); in mpc_action_go_ready()
830 if (grp->saved_xid2->xid2_flag2 == 0x40) { in mpc_action_go_ready()
832 if (grp->estconnfunc) { in mpc_action_go_ready()
833 grp->estconnfunc(grp->port_num, 1, in mpc_action_go_ready()
834 grp->group_max_buflen); in mpc_action_go_ready()
835 grp->estconnfunc = NULL; in mpc_action_go_ready()
836 } else if (grp->allochanfunc) in mpc_action_go_ready()
837 grp->send_qllc_disc = 1; in mpc_action_go_ready()
839 fsm_event(grp->fsm, MPCG_EVENT_INOP, dev); in mpc_action_go_ready()
846 grp->port_persist = 1; in mpc_action_go_ready()
847 grp->out_of_sequence = 0; in mpc_action_go_ready()
848 grp->estconn_called = 0; in mpc_action_go_ready()
850 tasklet_hi_schedule(&grp->mpc_tasklet2); in mpc_action_go_ready()
863 struct mpc_group *grp = priv->mpcg; in mpc_group_ready() local
866 if (grp == NULL) { in mpc_group_ready()
875 CTCM_FUNTAIL, dev->name, grp->group_max_buflen); in mpc_group_ready()
877 fsm_newstate(grp->fsm, MPCG_STATE_READY); in mpc_group_ready()
897 if (grp->estconnfunc) { in mpc_group_ready()
898 grp->estconnfunc(grp->port_num, 0, in mpc_group_ready()
899 grp->group_max_buflen); in mpc_group_ready()
900 grp->estconnfunc = NULL; in mpc_group_ready()
901 } else if (grp->allochanfunc) { in mpc_group_ready()
902 grp->allochanfunc(grp->port_num, grp->group_max_buflen); in mpc_group_ready()
905 grp->send_qllc_disc = 1; in mpc_group_ready()
906 grp->changed_side = 0; in mpc_group_ready()
920 struct mpc_group *grp = priv->mpcg; in mpc_channel_action() local
922 if (grp == NULL) { in mpc_channel_action()
934 fsm_getstate_str(grp->fsm), grp->num_channel_paths, in mpc_channel_action()
935 grp->active_channels[CTCM_READ], in mpc_channel_action()
936 grp->active_channels[CTCM_WRITE]); in mpc_channel_action()
939 grp->num_channel_paths++; in mpc_channel_action()
940 grp->active_channels[direction]++; in mpc_channel_action()
941 grp->outstanding_xid2++; in mpc_channel_action()
953 fsm_event(grp->fsm, MPCG_EVENT_INOP, dev); in mpc_channel_action()
966 skb_put_data(ch->xid_skb, grp->xid_skb->data, in mpc_channel_action()
967 grp->xid_skb->len); in mpc_channel_action()
982 if ((grp->active_channels[CTCM_READ] > 0) && in mpc_channel_action()
983 (grp->active_channels[CTCM_WRITE] > 0) && in mpc_channel_action()
984 (fsm_getstate(grp->fsm) < MPCG_STATE_XID2INITW)) { in mpc_channel_action()
985 fsm_newstate(grp->fsm, MPCG_STATE_XID2INITW); in mpc_channel_action()
993 grp->num_channel_paths--; in mpc_channel_action()
994 grp->active_channels[direction]--; in mpc_channel_action()
1000 if (grp->channels_terminating) in mpc_channel_action()
1003 if (((grp->active_channels[CTCM_READ] == 0) && in mpc_channel_action()
1004 (grp->active_channels[CTCM_WRITE] > 0)) in mpc_channel_action()
1005 || ((grp->active_channels[CTCM_WRITE] == 0) && in mpc_channel_action()
1006 (grp->active_channels[CTCM_READ] > 0))) in mpc_channel_action()
1007 fsm_event(grp->fsm, MPCG_EVENT_INOP, dev); in mpc_channel_action()
1013 fsm_getstate_str(grp->fsm), grp->num_channel_paths, in mpc_channel_action()
1014 grp->active_channels[CTCM_READ], in mpc_channel_action()
1015 grp->active_channels[CTCM_WRITE]); in mpc_channel_action()
1032 struct mpc_group *grp = priv->mpcg; in ctcmpc_unpack_skb() local
1063 if ((fsm_getstate(grp->fsm) == MPCG_STATE_FLOWC) || in ctcmpc_unpack_skb()
1064 ((fsm_getstate(grp->fsm) == MPCG_STATE_READY) && in ctcmpc_unpack_skb()
1073 grp->out_of_sequence += 1; in ctcmpc_unpack_skb()
1082 grp->out_of_sequence = 0; in ctcmpc_unpack_skb()
1088 if (unlikely(fsm_getstate(grp->fsm) != MPCG_STATE_READY)) in ctcmpc_unpack_skb()
1137 fsm_event(grp->fsm, MPCG_EVENT_INOP, dev); in ctcmpc_unpack_skb()
1187 fsm_event(grp->fsm, MPCG_EVENT_XID2, mpcginfo); in ctcmpc_unpack_skb()
1189 fsm_event(grp->fsm, MPCG_EVENT_DISCONC, mpcginfo); in ctcmpc_unpack_skb()
1208 fsm_event(grp->fsm, MPCG_EVENT_INOP, dev); in ctcmpc_unpack_skb()
1229 struct mpc_group *grp = priv->mpcg; in ctcmpc_bh() local
1234 while ((fsm_getstate(grp->fsm) != MPCG_STATE_FLOWC) && in ctcmpc_bh()
1237 if (grp->out_of_sequence > 20) { in ctcmpc_bh()
1241 grp->out_of_sequence = 0; in ctcmpc_bh()
1242 fsm_event(grp->fsm, MPCG_EVENT_INOP, dev); in ctcmpc_bh()
1258 struct mpc_group *grp; in ctcmpc_init_mpc_group() local
1263 grp = kzalloc(sizeof(struct mpc_group), GFP_KERNEL); in ctcmpc_init_mpc_group()
1264 if (grp == NULL) in ctcmpc_init_mpc_group()
1267 grp->fsm = init_fsm("mpcg", mpcg_state_names, mpcg_event_names, in ctcmpc_init_mpc_group()
1270 if (grp->fsm == NULL) { in ctcmpc_init_mpc_group()
1271 kfree(grp); in ctcmpc_init_mpc_group()
1275 fsm_newstate(grp->fsm, MPCG_STATE_RESET); in ctcmpc_init_mpc_group()
1276 fsm_settimer(grp->fsm, &grp->timer); in ctcmpc_init_mpc_group()
1278 grp->xid_skb = in ctcmpc_init_mpc_group()
1280 if (grp->xid_skb == NULL) { in ctcmpc_init_mpc_group()
1281 kfree_fsm(grp->fsm); in ctcmpc_init_mpc_group()
1282 kfree(grp); in ctcmpc_init_mpc_group()
1286 grp->xid_skb_data = grp->xid_skb->data; in ctcmpc_init_mpc_group()
1287 grp->xid_th = (struct th_header *)grp->xid_skb->data; in ctcmpc_init_mpc_group()
1288 skb_put_data(grp->xid_skb, &thnorm, TH_HEADER_LENGTH); in ctcmpc_init_mpc_group()
1290 grp->xid = (struct xid2 *)skb_tail_pointer(grp->xid_skb); in ctcmpc_init_mpc_group()
1291 skb_put_data(grp->xid_skb, &init_xid, XID2_LENGTH); in ctcmpc_init_mpc_group()
1292 grp->xid->xid2_adj_id = jiffies | 0xfff00000; in ctcmpc_init_mpc_group()
1293 grp->xid->xid2_sender_id = jiffies; in ctcmpc_init_mpc_group()
1295 grp->xid_id = skb_tail_pointer(grp->xid_skb); in ctcmpc_init_mpc_group()
1296 skb_put_data(grp->xid_skb, "VTAM", 4); in ctcmpc_init_mpc_group()
1298 grp->rcvd_xid_skb = in ctcmpc_init_mpc_group()
1300 if (grp->rcvd_xid_skb == NULL) { in ctcmpc_init_mpc_group()
1301 kfree_fsm(grp->fsm); in ctcmpc_init_mpc_group()
1302 dev_kfree_skb(grp->xid_skb); in ctcmpc_init_mpc_group()
1303 kfree(grp); in ctcmpc_init_mpc_group()
1306 grp->rcvd_xid_data = grp->rcvd_xid_skb->data; in ctcmpc_init_mpc_group()
1307 grp->rcvd_xid_th = (struct th_header *)grp->rcvd_xid_skb->data; in ctcmpc_init_mpc_group()
1308 skb_put_data(grp->rcvd_xid_skb, &thnorm, TH_HEADER_LENGTH); in ctcmpc_init_mpc_group()
1309 grp->saved_xid2 = NULL; in ctcmpc_init_mpc_group()
1310 priv->xid = grp->xid; in ctcmpc_init_mpc_group()
1311 priv->mpcg = grp; in ctcmpc_init_mpc_group()
1312 return grp; in ctcmpc_init_mpc_group()
1341 struct mpc_group *grp; in mpc_action_go_inop() local
1347 grp = priv->mpcg; in mpc_action_go_inop()
1348 grp->flow_off_called = 0; in mpc_action_go_inop()
1349 fsm_deltimer(&grp->timer); in mpc_action_go_inop()
1350 if (grp->channels_terminating) in mpc_action_go_inop()
1353 grp->channels_terminating = 1; in mpc_action_go_inop()
1354 grp->saved_state = fsm_getstate(grp->fsm); in mpc_action_go_inop()
1355 fsm_newstate(grp->fsm, MPCG_STATE_INOP); in mpc_action_go_inop()
1356 if (grp->saved_state > MPCG_STATE_XID7INITF) in mpc_action_go_inop()
1360 if ((grp->saved_state != MPCG_STATE_RESET) || in mpc_action_go_inop()
1362 (grp->port_persist == 0)) in mpc_action_go_inop()
1367 switch (grp->saved_state) { in mpc_action_go_inop()
1386 grp->xid2_tgnum = 0; in mpc_action_go_inop()
1387 grp->group_max_buflen = 0; /*min of all received */ in mpc_action_go_inop()
1388 grp->outstanding_xid2 = 0; in mpc_action_go_inop()
1389 grp->outstanding_xid7 = 0; in mpc_action_go_inop()
1390 grp->outstanding_xid7_p2 = 0; in mpc_action_go_inop()
1391 grp->saved_xid2 = NULL; in mpc_action_go_inop()
1392 grp->xidnogood = 0; in mpc_action_go_inop()
1393 grp->changed_side = 0; in mpc_action_go_inop()
1395 grp->rcvd_xid_skb->data = grp->rcvd_xid_data; in mpc_action_go_inop()
1396 skb_reset_tail_pointer(grp->rcvd_xid_skb); in mpc_action_go_inop()
1397 grp->rcvd_xid_skb->len = 0; in mpc_action_go_inop()
1398 grp->rcvd_xid_th = (struct th_header *)grp->rcvd_xid_skb->data; in mpc_action_go_inop()
1399 skb_put_data(grp->rcvd_xid_skb, &thnorm, TH_HEADER_LENGTH); in mpc_action_go_inop()
1401 if (grp->send_qllc_disc == 1) { in mpc_action_go_inop()
1402 grp->send_qllc_disc = 0; in mpc_action_go_inop()
1411 if ((grp->port_persist == 1) || (grp->alloc_called)) { in mpc_action_go_inop()
1412 grp->alloc_called = 0; in mpc_action_go_inop()
1415 fsm_newstate(grp->fsm, MPCG_STATE_RESET); in mpc_action_go_inop()
1416 if (grp->saved_state > MPCG_STATE_XID7INITF) in mpc_action_go_inop()
1423 fsm_newstate(grp->fsm, MPCG_STATE_RESET); in mpc_action_go_inop()
1443 struct mpc_group *grp; in mpc_action_timeout() local
1448 grp = priv->mpcg; in mpc_action_timeout()
1452 switch (fsm_getstate(grp->fsm)) { in mpc_action_timeout()
1462 fsm_event(grp->fsm, MPCG_EVENT_INOP, dev); in mpc_action_timeout()
1481 struct mpc_group *grp; in mpc_action_discontact() local
1491 grp = priv->mpcg; in mpc_action_discontact()
1492 grp->send_qllc_disc = 1; in mpc_action_discontact()
1493 fsm_event(grp->fsm, MPCG_EVENT_INOP, dev); in mpc_action_discontact()
1534 struct mpc_group *grp = priv->mpcg; in mpc_validate_xid() local
1567 grp->group_max_buflen, xid->xid2_buf_len); in mpc_validate_xid()
1569 if (grp->group_max_buflen == 0 || grp->group_max_buflen > in mpc_validate_xid()
1571 grp->group_max_buflen = xid->xid2_buf_len - len; in mpc_validate_xid()
1574 if (grp->saved_xid2 == NULL) { in mpc_validate_xid()
1575 grp->saved_xid2 = in mpc_validate_xid()
1576 (struct xid2 *)skb_tail_pointer(grp->rcvd_xid_skb); in mpc_validate_xid()
1578 skb_put_data(grp->rcvd_xid_skb, xid, XID2_LENGTH); in mpc_validate_xid()
1579 grp->rcvd_xid_skb->data = grp->rcvd_xid_data; in mpc_validate_xid()
1581 skb_reset_tail_pointer(grp->rcvd_xid_skb); in mpc_validate_xid()
1582 grp->rcvd_xid_skb->len = 0; in mpc_validate_xid()
1593 grp->roll = XSIDE; in mpc_validate_xid()
1598 grp->roll = YSIDE; in mpc_validate_xid()
1605 if (xid->xid2_flag4 != grp->saved_xid2->xid2_flag4) { in mpc_validate_xid()
1619 if (xid->xid2_adj_id != grp->saved_xid2->xid2_adj_id) { in mpc_validate_xid()
1626 if (xid->xid2_sender_id != grp->saved_xid2->xid2_sender_id) { in mpc_validate_xid()
1640 grp->saved_xid2->xid2_flag2 = 0x40; in mpc_validate_xid()
1830 struct mpc_group *grp = priv->mpcg; in mpc_action_doxid0() local
1846 switch (fsm_getstate(grp->fsm)) { in mpc_action_doxid0()
1857 fsm_event(grp->fsm, MPCG_EVENT_DOIO, ch); in mpc_action_doxid0()
1870 struct mpc_group *grp = NULL; in mpc_action_doxid7() local
1875 grp = priv->mpcg; in mpc_action_doxid7()
1876 if (grp == NULL) in mpc_action_doxid7()
1889 if (grp->outstanding_xid7_p2 > 0) { in mpc_action_doxid7()
1890 if (grp->roll == YSIDE) { in mpc_action_doxid7()
1907 if (grp->roll == YSIDE) { in mpc_action_doxid7()
1925 fsm_event(grp->fsm, MPCG_EVENT_DOIO, ch); in mpc_action_doxid7()
1942 struct mpc_group *grp = priv->mpcg; in mpc_action_rcvd_xid0() local
1945 __func__, ch->id, grp->outstanding_xid2, in mpc_action_rcvd_xid0()
1946 grp->outstanding_xid7, grp->outstanding_xid7_p2); in mpc_action_rcvd_xid0()
1951 grp->outstanding_xid2--; in mpc_action_rcvd_xid0()
1952 grp->outstanding_xid7++; in mpc_action_rcvd_xid0()
1953 grp->outstanding_xid7_p2++; in mpc_action_rcvd_xid0()
1957 switch (fsm_getstate(grp->fsm)) { in mpc_action_rcvd_xid0()
1959 fsm_newstate(grp->fsm, MPCG_STATE_XID2INITX); in mpc_action_rcvd_xid0()
1963 fsm_newstate(grp->fsm, MPCG_STATE_XID0IOWAIX); in mpc_action_rcvd_xid0()
1967 if (grp->outstanding_xid2 == 0) { in mpc_action_rcvd_xid0()
1968 fsm_newstate(grp->fsm, MPCG_STATE_XID7INITW); in mpc_action_rcvd_xid0()
1970 fsm_event(grp->fsm, MPCG_EVENT_XID2DONE, dev); in mpc_action_rcvd_xid0()
1974 if (grp->outstanding_xid2 == 0) { in mpc_action_rcvd_xid0()
1975 fsm_newstate(grp->fsm, MPCG_STATE_XID7INITI); in mpc_action_rcvd_xid0()
1977 fsm_event(grp->fsm, MPCG_EVENT_XID2DONE, dev); in mpc_action_rcvd_xid0()
1983 __func__, ch->id, grp->outstanding_xid2, in mpc_action_rcvd_xid0()
1984 grp->outstanding_xid7, grp->outstanding_xid7_p2); in mpc_action_rcvd_xid0()
1987 fsm_getstate_str(grp->fsm), fsm_getstate_str(ch->fsm)); in mpc_action_rcvd_xid0()
2003 struct mpc_group *grp = priv->mpcg; in mpc_action_rcvd_xid7() local
2008 __func__, grp->outstanding_xid7, grp->outstanding_xid7_p2); in mpc_action_rcvd_xid7()
2010 grp->outstanding_xid7--; in mpc_action_rcvd_xid7()
2015 switch (fsm_getstate(grp->fsm)) { in mpc_action_rcvd_xid7()
2017 fsm_newstate(grp->fsm, MPCG_STATE_XID7INITZ); in mpc_action_rcvd_xid7()
2021 fsm_newstate(grp->fsm, MPCG_STATE_XID7INITX); in mpc_action_rcvd_xid7()
2026 if (grp->outstanding_xid7 == 0) { in mpc_action_rcvd_xid7()
2027 if (grp->outstanding_xid7_p2 > 0) { in mpc_action_rcvd_xid7()
2028 grp->outstanding_xid7 = in mpc_action_rcvd_xid7()
2029 grp->outstanding_xid7_p2; in mpc_action_rcvd_xid7()
2030 grp->outstanding_xid7_p2 = 0; in mpc_action_rcvd_xid7()
2032 fsm_newstate(grp->fsm, MPCG_STATE_XID7INITF); in mpc_action_rcvd_xid7()
2035 fsm_event(grp->fsm, MPCG_EVENT_XID7DONE, dev); in mpc_action_rcvd_xid7()
2053 struct mpc_group *grp = priv->mpcg; in mpc_send_qllc_discontact() local
2056 __func__, mpcg_state_names[grp->saved_state]); in mpc_send_qllc_discontact()
2058 switch (grp->saved_state) { in mpc_send_qllc_discontact()
2071 if (grp->estconnfunc) { in mpc_send_qllc_discontact()
2072 grp->estconnfunc(grp->port_num, -1, 0); in mpc_send_qllc_discontact()
2073 grp->estconnfunc = NULL; in mpc_send_qllc_discontact()
2079 grp->send_qllc_disc = 2; in mpc_send_qllc_discontact()