Lines Matching refs:f_ctl
272 u32 f_ctl) in fc_exch_setup_hdr() argument
281 if (f_ctl & FC_FC_END_SEQ) { in fc_exch_setup_hdr()
299 hton24(fh->fh_f_ctl, f_ctl | fill); in fc_exch_setup_hdr()
472 u32 f_ctl; in fc_seq_send_locked() local
478 f_ctl = ntoh24(fh->fh_f_ctl); in fc_seq_send_locked()
479 fc_exch_setup_hdr(ep, fp, f_ctl); in fc_seq_send_locked()
506 ep->f_ctl = f_ctl & ~FC_FC_FIRST_SEQ; /* not first seq */ in fc_seq_send_locked()
507 if (f_ctl & FC_FC_SEQ_INIT) in fc_seq_send_locked()
562 ep->f_ctl, sp->id); in fc_seq_start_next_locked()
792 ep->f_ctl = FC_FC_FIRST_SEQ; /* next seq is first seq */ in fc_exch_em_alloc()
888 ep->f_ctl |= FC_FC_EX_CTX; /* we're responding */ in fc_exch_resp()
889 ep->f_ctl &= ~FC_FC_FIRST_SEQ; /* not new */ in fc_exch_resp()
930 u32 f_ctl; in fc_seq_lookup_recip() local
933 f_ctl = ntoh24(fh->fh_f_ctl); in fc_seq_lookup_recip()
934 WARN_ON((f_ctl & FC_FC_SEQ_CTX) != 0); in fc_seq_lookup_recip()
939 if (f_ctl & FC_FC_EX_CTX) { in fc_seq_lookup_recip()
971 if ((f_ctl & FC_FC_FIRST_SEQ) && fc_sof_is_init(fr_sof(fp))) { in fc_seq_lookup_recip()
1002 if (f_ctl & FC_FC_END_SEQ) { in fc_seq_lookup_recip()
1030 if (f_ctl & FC_FC_SEQ_INIT) in fc_seq_lookup_recip()
1056 u32 f_ctl; in fc_seq_lookup_orig() local
1059 f_ctl = ntoh24(fh->fh_f_ctl); in fc_seq_lookup_orig()
1060 WARN_ON((f_ctl & FC_FC_SEQ_CTX) != FC_FC_SEQ_CTX); in fc_seq_lookup_orig()
1061 xid = ntohs((f_ctl & FC_FC_EX_CTX) ? fh->fh_ox_id : fh->fh_rx_id); in fc_seq_lookup_orig()
1070 if ((f_ctl & FC_FC_EX_CTX) != 0 && in fc_seq_lookup_orig()
1140 u32 f_ctl; in fc_seq_send_last() local
1143 f_ctl = FC_FC_LAST_SEQ | FC_FC_END_SEQ | FC_FC_SEQ_INIT; in fc_seq_send_last()
1144 f_ctl |= ep->f_ctl; in fc_seq_send_last()
1145 fc_fill_fc_hdr(fp, rctl, ep->did, ep->sid, fh_type, f_ctl, 0); in fc_seq_send_last()
1163 unsigned int f_ctl; in fc_seq_send_ack() local
1185 f_ctl = ntoh24(rx_fh->fh_f_ctl); in fc_seq_send_ack()
1186 f_ctl &= FC_FC_EX_CTX | FC_FC_SEQ_CTX | in fc_seq_send_ack()
1190 f_ctl ^= FC_FC_EX_CTX | FC_FC_SEQ_CTX; in fc_seq_send_ack()
1191 hton24(fh->fh_f_ctl, f_ctl); in fc_seq_send_ack()
1193 fc_exch_setup_hdr(ep, fp, f_ctl); in fc_seq_send_ack()
1199 if (f_ctl & FC_FC_END_SEQ) in fc_seq_send_ack()
1225 unsigned int f_ctl; in fc_exch_send_ba_rjt() local
1259 f_ctl = ntoh24(rx_fh->fh_f_ctl); in fc_exch_send_ba_rjt()
1260 f_ctl &= FC_FC_EX_CTX | FC_FC_SEQ_CTX | in fc_exch_send_ba_rjt()
1263 f_ctl ^= FC_FC_EX_CTX | FC_FC_SEQ_CTX; in fc_exch_send_ba_rjt()
1264 f_ctl |= FC_FC_LAST_SEQ | FC_FC_END_SEQ; in fc_exch_send_ba_rjt()
1265 f_ctl &= ~FC_FC_FIRST_SEQ; in fc_exch_send_ba_rjt()
1266 hton24(fh->fh_f_ctl, f_ctl); in fc_exch_send_ba_rjt()
1444 u32 f_ctl; in fc_exch_recv_seq_resp() local
1479 f_ctl = ntoh24(fh->fh_f_ctl); in fc_exch_recv_seq_resp()
1481 if (f_ctl & FC_FC_SEQ_INIT) in fc_exch_recv_seq_resp()
1490 (f_ctl & (FC_FC_LAST_SEQ | FC_FC_END_SEQ)) == in fc_exch_recv_seq_resp()
1641 u32 f_ctl; in fc_exch_recv_bls() local
1644 f_ctl = ntoh24(fh->fh_f_ctl); in fc_exch_recv_bls()
1647 ep = fc_exch_find(mp, (f_ctl & FC_FC_EX_CTX) ? in fc_exch_recv_bls()
1649 if (ep && (f_ctl & FC_FC_SEQ_INIT)) { in fc_exch_recv_bls()
1654 if (f_ctl & FC_FC_SEQ_CTX) { in fc_exch_recv_bls()
2026 ep->f_ctl = ntoh24(fh->fh_f_ctl); in fc_exch_seq_send()
2027 fc_exch_setup_hdr(ep, fp, ep->f_ctl); in fc_exch_seq_send()
2040 ep->f_ctl &= ~FC_FC_FIRST_SEQ; /* not first seq */ in fc_exch_seq_send()
2042 if (ep->f_ctl & FC_FC_SEQ_INIT) in fc_exch_seq_send()
2390 static struct fc_exch_mgr_anchor *fc_find_ema(u32 f_ctl, in fc_find_ema() argument
2397 if (f_ctl & FC_FC_EX_CTX) in fc_find_ema()
2422 u32 f_ctl; in fc_exch_recv() local
2432 f_ctl = ntoh24(fh->fh_f_ctl); in fc_exch_recv()
2433 ema = fc_find_ema(f_ctl, lport, fh); in fc_exch_recv()
2437 f_ctl, in fc_exch_recv()
2438 (f_ctl & FC_FC_EX_CTX) ? in fc_exch_recv()
2450 if (f_ctl & FC_FC_END_SEQ) in fc_exch_recv()
2451 skb_trim(fp_skb(fp), fr_len(fp) - FC_FC_FILL(f_ctl)); in fc_exch_recv()
2456 else if ((f_ctl & (FC_FC_EX_CTX | FC_FC_SEQ_CTX)) == in fc_exch_recv()
2459 else if (f_ctl & FC_FC_SEQ_CTX) in fc_exch_recv()