Lines Matching refs:tstate

629 	if (force_reset || (ldcp->tstate & ~TS_IN_RESET) == TS_UP) {
703 ldcp->tstate = TS_OPEN;
714 ldcp->tstate = TS_UP;
717 ldcp->tstate |= TS_LINK_READY;
745 ldcp->tstate |= TS_IN_RESET;
761 if (((ldcp->tstate & TS_QCONF_RDY) == TS_QCONF_RDY) &&
1043 ldcp->id, ldcp->status, ldcp->tstate, ldcp->hstate,
1256 if ((ldcp->tstate & ~TS_IN_RESET) == TS_VREADY) {
1346 ldcp->tstate |= TS_VER_DONE;
1364 if ((ldcp->tstate & ~TS_IN_RESET) == TS_VREADY) {
1380 ldcp->tstate |= TS_VER_DONE;
1746 ldcp->tstate |= TS_HSHAKE_DONE;
1747 if ((ldcp->tstate & TS_IN_RESET) == 0)
1787 if ((ldcp->tstate == TS_UP) && (ldcp->hstate & TS_RCVD_RDX)) {
1798 ldcp->tstate |= TS_HSHAKE_DONE;
1799 if ((ldcp->tstate & TS_IN_RESET) == 0)
1897 D1(ldcp->id, "i_ldc_ctrlmsg: (%llx) tstate = %lx, hstate = %lx\n",
1898 ldcp->id, ldcp->tstate, ldcp->hstate);
1900 switch (ldcp->tstate & ~TS_IN_RESET) {
1913 "tstate=0x%x\n", ldcp->id,
1914 (msg->ctrl & LDC_CTRL_MASK), ldcp->tstate);
1942 "tstate=0x%x\n", ldcp->id,
1943 (msg->ctrl & LDC_CTRL_MASK), ldcp->tstate);
1972 "tstate=0x%x\n", ldcp->id,
1973 (msg->ctrl & LDC_CTRL_MASK), ldcp->tstate);
2022 ldcp->tstate |= TS_CNEX_RDY;
2042 if (ldcp->tstate & TS_CNEX_RDY) {
2088 ldcp->tstate &= ~TS_CNEX_RDY;
2163 (ldcp->tstate & ~TS_IN_RESET) == TS_OPEN &&
2168 ldcp->tstate |= TS_LINK_READY;
2278 if ((ldcp->tstate & ~TS_IN_RESET) == TS_OPEN) {
2281 ldcp->tstate |= TS_LINK_READY;
2337 if ((ldcp->tstate & ~TS_IN_RESET) != TS_UP) {
2352 if ((ldcp->tstate & TS_IN_RESET) == 0)
2417 uint64_t tstate = ldcp->tstate;
2434 if (rv == 0 && ldcp->tstate == TS_UP &&
2435 (tstate & ~TS_IN_RESET) !=
2436 (ldcp->tstate & ~TS_IN_RESET)) {
2473 if ((ldcp->tstate & TS_IN_RESET) == 0)
2666 ldcp->tstate = TS_IN_RESET;
2743 ldcp->tstate |= TS_TXQ_RDY;
2760 ldcp->tstate |= TS_RXQ_RDY;
2823 if (ldcp->tstate & TS_TXQ_RDY)
2827 if (ldcp->tstate & TS_RXQ_RDY)
2862 if ((ldcp->tstate & ~TS_IN_RESET) > TS_INIT) {
2919 ldcp->tstate &= ~TS_RXQ_RDY;
2930 ldcp->tstate &= ~TS_TXQ_RDY;
2966 if (ldcp->tstate < TS_INIT) {
2972 if ((ldcp->tstate & ~TS_IN_RESET) >= TS_OPEN) {
3027 ldcp->tstate |= TS_QCONF_RDY;
3034 ldcp->tstate &= ~TS_QCONF_RDY;
3052 ldcp->tstate &= ~TS_QCONF_RDY;
3067 ldcp->tstate |= TS_LINK_READY;
3076 ldcp->tstate = TS_UP; /* set bits associated with LDC UP */
3091 "(tstate=0x%x, status=0x%x)\n",
3092 ldcp->id, ldcp, ldcp->tstate, ldcp->status);
3118 if ((ldcp->tstate & ~TS_IN_RESET) < TS_OPEN) {
3228 ldcp->tstate &= ~TS_QCONF_RDY;
3258 ldcp->tstate = TS_IN_RESET|TS_INIT;
3379 uint64_t tx_tail, tstate, link_state;
3392 tstate = ldcp->tstate;
3393 ldcp->tstate &= ~TS_IN_RESET;
3395 if (ldcp->tstate == TS_UP) {
3409 if ((tstate & TS_IN_RESET) &&
3422 if (ldcp->mode == LDC_MODE_RAW && ldcp->tstate >= TS_READY) {
3423 ldcp->tstate = TS_UP;
3465 ldcp->tstate = TS_UP;
3471 ldcp->tstate |= TS_LINK_READY;
3630 if (ldcp->tstate != TS_UP) {
3737 if (ldcp->tstate != TS_UP) {
4313 if (ldcp->tstate != TS_UP) {
4691 if ((ldcp->tstate & TS_QCONF_RDY) &&
4692 (ldcp->tstate & TS_CNEX_RDY) == 0)
4748 if ((ldcp->tstate & ~TS_IN_RESET) < TS_INIT) {