Lines Matching refs:grp

1215 	struct mpc_group	*grp = priv->mpcg;  in ctcmpc_chx_txdone()  local
1251 if ((ch->collect_len <= 0) || (grp->in_sweep != 0)) { in ctcmpc_chx_txdone()
1270 data_space = grp->group_max_buflen - TH_HEADER_LENGTH; in ctcmpc_chx_txdone()
1377 struct mpc_group *grp = priv->mpcg; in ctcmpc_chx_rx() local
1414 switch (fsm_getstate(grp->fsm)) { in ctcmpc_chx_rx()
1434 switch (fsm_getstate(grp->fsm)) { in ctcmpc_chx_rx()
1533 struct mpc_group *grp = priv->mpcg; in ctcmpc_chx_rxidle() local
1540 fsm_getstate(fi), fsm_getstate(grp->fsm)); in ctcmpc_chx_rxidle()
1545 switch (fsm_getstate(grp->fsm)) { in ctcmpc_chx_rxidle()
1587 struct mpc_group *grp = priv->mpcg; in ctcmpc_chx_attn() local
1591 fsm_getstate_str(ch->fsm), fsm_getstate_str(grp->fsm)); in ctcmpc_chx_attn()
1593 switch (fsm_getstate(grp->fsm)) { in ctcmpc_chx_attn()
1599 fsm_deltimer(&grp->timer); in ctcmpc_chx_attn()
1600 fsm_addtimer(&grp->timer, in ctcmpc_chx_attn()
1603 fsm_event(grp->fsm, MPCG_EVENT_XID0DO, ch); in ctcmpc_chx_attn()
1629 fsm_event(grp->fsm, MPCG_EVENT_XID7DONE, dev); in ctcmpc_chx_attn()
1646 struct mpc_group *grp = priv->mpcg; in ctcmpc_chx_attnbusy() local
1650 fsm_getstate_str(ch->fsm), fsm_getstate_str(grp->fsm)); in ctcmpc_chx_attnbusy()
1654 switch (fsm_getstate(grp->fsm)) { in ctcmpc_chx_attnbusy()
1659 grp->changed_side = 1; in ctcmpc_chx_attnbusy()
1660 fsm_newstate(grp->fsm, MPCG_STATE_XID2INITW); in ctcmpc_chx_attnbusy()
1663 if (grp->changed_side == 1) { in ctcmpc_chx_attnbusy()
1664 grp->changed_side = 2; in ctcmpc_chx_attnbusy()
1670 if (grp->estconnfunc) in ctcmpc_chx_attnbusy()
1679 fsm_deltimer(&grp->timer); in ctcmpc_chx_attnbusy()
1682 fsm_event(grp->fsm, MPCG_EVENT_INOP, dev); in ctcmpc_chx_attnbusy()
1688 if (grp->changed_side == 1) { in ctcmpc_chx_attnbusy()
1689 grp->changed_side = 2; in ctcmpc_chx_attnbusy()
1702 fsm_event(grp->fsm, MPCG_EVENT_INOP, dev); in ctcmpc_chx_attnbusy()
1706 if (grp->changed_side == 1) { in ctcmpc_chx_attnbusy()
1707 fsm_deltimer(&grp->timer); in ctcmpc_chx_attnbusy()
1708 fsm_addtimer(&grp->timer, MPC_XID_TIMEOUT_VALUE, in ctcmpc_chx_attnbusy()
1712 fsm_event(grp->fsm, MPCG_EVENT_XID0DO, ch); in ctcmpc_chx_attnbusy()
1732 struct mpc_group *grp = priv->mpcg; in ctcmpc_chx_resend() local
1734 fsm_event(grp->fsm, MPCG_EVENT_XID0DO, ch); in ctcmpc_chx_resend()
1748 struct mpc_group *grp = priv->mpcg; in ctcmpc_chx_send_sweep() local
1759 if (grp->in_sweep == 0) in ctcmpc_chx_send_sweep()
1779 grp->in_sweep = 0; in ctcmpc_chx_send_sweep()
1782 fsm_event(grp->fsm, MPCG_EVENT_INOP, dev); in ctcmpc_chx_send_sweep()
1795 grp->sweep_req_pend_num--; in ctcmpc_chx_send_sweep()
1798 grp->sweep_rsp_pend_num--; in ctcmpc_chx_send_sweep()
1816 if ((grp->sweep_req_pend_num == 0) && in ctcmpc_chx_send_sweep()
1817 (grp->sweep_rsp_pend_num == 0)) { in ctcmpc_chx_send_sweep()
1818 grp->in_sweep = 0; in ctcmpc_chx_send_sweep()