Lines Matching defs:stat
163 unsigned char stat;
420 static int transmit(struct baycom_state *bc, int cnt, unsigned char stat)
426 if (bc->hdlctx.state == tx_tail && !(stat & EPP_PTTBIT))
434 if (!(stat & EPP_DCDBIT)) {
636 unsigned char stat;
648 if (pp->ops->epp_read_addr(pp, &stat, 1, 0) != 1)
650 bc->stat = stat;
651 bc->debug_vals.last_pllcorr = stat;
674 if (transmit(bc, cnt2, stat))
679 if (pp->ops->epp_read_addr(pp, &stat, 1, 0) != 1)
681 bc->stat = stat;
684 switch (stat & (EPP_NTAEF|EPP_NTHF)) {
701 if (transmit(bc, cnt, stat))
705 while ((stat & (EPP_NRAEF|EPP_NRHF)) != EPP_NRHF) {
706 switch (stat & (EPP_NRAEF|EPP_NRHF)) {
721 if (pp->ops->epp_read_addr(pp, &stat, 1, 0) != 1)
729 while (cnt > 0 && stat & EPP_NREF) {
733 if (pp->ops->epp_read_addr(pp, &stat, 1, 0) != 1)
821 unsigned char stat;
886 if (pp->ops->epp_read_addr(pp, &stat, 1, 0) != 1)
888 if ((stat & (EPP_NRAEF|EPP_NRHF)) == EPP_NRHF) {
899 if (pp->ops->epp_read_addr(pp, &stat, 1, 0) != 1)
901 if (!(stat & EPP_NREF))
952 bc->stat = EPP_DCDBIT;
1055 hi.data.cs.ptt = !!(bc->stat & EPP_PTTBIT);
1056 hi.data.cs.dcd = !(bc->stat & EPP_DCDBIT);
1065 hi.data.ocs.ptt = !!(bc->stat & EPP_PTTBIT);
1066 hi.data.ocs.dcd = !(bc->stat & EPP_DCDBIT);