Lines Matching refs:f_ctl

273 			      u32 f_ctl)  in fc_exch_setup_hdr()  argument
282 if (f_ctl & FC_FC_END_SEQ) { in fc_exch_setup_hdr()
300 hton24(fh->fh_f_ctl, f_ctl | fill); in fc_exch_setup_hdr()
472 u32 f_ctl; in fc_seq_send_locked() local
484 f_ctl = ntoh24(fh->fh_f_ctl); in fc_seq_send_locked()
485 fc_exch_setup_hdr(ep, fp, f_ctl); in fc_seq_send_locked()
512 ep->f_ctl = f_ctl & ~FC_FC_FIRST_SEQ; /* not first seq */ in fc_seq_send_locked()
513 if (f_ctl & FC_FC_SEQ_INIT) in fc_seq_send_locked()
571 ep->f_ctl, sp->id); in fc_seq_start_next_locked()
865 ep->f_ctl = FC_FC_FIRST_SEQ; /* next seq is first seq */ in fc_exch_em_alloc()
969 ep->f_ctl |= FC_FC_EX_CTX; /* we're responding */ in fc_exch_resp()
970 ep->f_ctl &= ~FC_FC_FIRST_SEQ; /* not new */ in fc_exch_resp()
1011 u32 f_ctl; in fc_seq_lookup_recip() local
1014 f_ctl = ntoh24(fh->fh_f_ctl); in fc_seq_lookup_recip()
1015 WARN_ON((f_ctl & FC_FC_SEQ_CTX) != 0); in fc_seq_lookup_recip()
1020 if (f_ctl & FC_FC_EX_CTX) { in fc_seq_lookup_recip()
1052 if ((f_ctl & FC_FC_FIRST_SEQ) && fc_sof_is_init(fr_sof(fp))) { in fc_seq_lookup_recip()
1084 if (f_ctl & FC_FC_END_SEQ) { in fc_seq_lookup_recip()
1112 if (f_ctl & FC_FC_SEQ_INIT) in fc_seq_lookup_recip()
1139 u32 f_ctl; in fc_seq_lookup_orig() local
1142 f_ctl = ntoh24(fh->fh_f_ctl); in fc_seq_lookup_orig()
1143 WARN_ON((f_ctl & FC_FC_SEQ_CTX) != FC_FC_SEQ_CTX); in fc_seq_lookup_orig()
1144 xid = ntohs((f_ctl & FC_FC_EX_CTX) ? fh->fh_ox_id : fh->fh_rx_id); in fc_seq_lookup_orig()
1153 if ((f_ctl & FC_FC_EX_CTX) != 0 && in fc_seq_lookup_orig()
1223 u32 f_ctl; in fc_seq_send_last() local
1226 f_ctl = FC_FC_LAST_SEQ | FC_FC_END_SEQ | FC_FC_SEQ_INIT; in fc_seq_send_last()
1227 f_ctl |= ep->f_ctl; in fc_seq_send_last()
1228 fc_fill_fc_hdr(fp, rctl, ep->did, ep->sid, fh_type, f_ctl, 0); in fc_seq_send_last()
1246 unsigned int f_ctl; in fc_seq_send_ack() local
1268 f_ctl = ntoh24(rx_fh->fh_f_ctl); in fc_seq_send_ack()
1269 f_ctl &= FC_FC_EX_CTX | FC_FC_SEQ_CTX | in fc_seq_send_ack()
1273 f_ctl ^= FC_FC_EX_CTX | FC_FC_SEQ_CTX; in fc_seq_send_ack()
1274 hton24(fh->fh_f_ctl, f_ctl); in fc_seq_send_ack()
1276 fc_exch_setup_hdr(ep, fp, f_ctl); in fc_seq_send_ack()
1282 if (f_ctl & FC_FC_END_SEQ) in fc_seq_send_ack()
1308 unsigned int f_ctl; in fc_exch_send_ba_rjt() local
1342 f_ctl = ntoh24(rx_fh->fh_f_ctl); in fc_exch_send_ba_rjt()
1343 f_ctl &= FC_FC_EX_CTX | FC_FC_SEQ_CTX | in fc_exch_send_ba_rjt()
1346 f_ctl ^= FC_FC_EX_CTX | FC_FC_SEQ_CTX; in fc_exch_send_ba_rjt()
1347 f_ctl |= FC_FC_LAST_SEQ | FC_FC_END_SEQ; in fc_exch_send_ba_rjt()
1348 f_ctl &= ~FC_FC_FIRST_SEQ; in fc_exch_send_ba_rjt()
1349 hton24(fh->fh_f_ctl, f_ctl); in fc_exch_send_ba_rjt()
1529 u32 f_ctl; in fc_exch_recv_seq_resp() local
1562 f_ctl = ntoh24(fh->fh_f_ctl); in fc_exch_recv_seq_resp()
1566 if (f_ctl & FC_FC_SEQ_INIT) in fc_exch_recv_seq_resp()
1574 (f_ctl & (FC_FC_LAST_SEQ | FC_FC_END_SEQ)) == in fc_exch_recv_seq_resp()
1716 u32 f_ctl; in fc_exch_recv_bls() local
1719 f_ctl = ntoh24(fh->fh_f_ctl); in fc_exch_recv_bls()
1722 ep = fc_exch_find(mp, (f_ctl & FC_FC_EX_CTX) ? in fc_exch_recv_bls()
1724 if (ep && (f_ctl & FC_FC_SEQ_INIT)) { in fc_exch_recv_bls()
1729 if (f_ctl & FC_FC_SEQ_CTX) { in fc_exch_recv_bls()
2102 ep->f_ctl = ntoh24(fh->fh_f_ctl); in fc_exch_seq_send()
2103 fc_exch_setup_hdr(ep, fp, ep->f_ctl); in fc_exch_seq_send()
2116 ep->f_ctl &= ~FC_FC_FIRST_SEQ; /* not first seq */ in fc_exch_seq_send()
2118 if (ep->f_ctl & FC_FC_SEQ_INIT) in fc_exch_seq_send()
2466 static struct fc_exch_mgr_anchor *fc_find_ema(u32 f_ctl, in fc_find_ema() argument
2473 if (f_ctl & FC_FC_EX_CTX) in fc_find_ema()
2498 u32 f_ctl; in fc_exch_recv() local
2508 f_ctl = ntoh24(fh->fh_f_ctl); in fc_exch_recv()
2509 ema = fc_find_ema(f_ctl, lport, fh); in fc_exch_recv()
2513 f_ctl, in fc_exch_recv()
2514 (f_ctl & FC_FC_EX_CTX) ? in fc_exch_recv()
2526 if (f_ctl & FC_FC_END_SEQ) in fc_exch_recv()
2527 skb_trim(fp_skb(fp), fr_len(fp) - FC_FC_FILL(f_ctl)); in fc_exch_recv()
2532 else if ((f_ctl & (FC_FC_EX_CTX | FC_FC_SEQ_CTX)) == in fc_exch_recv()
2535 else if (f_ctl & FC_FC_SEQ_CTX) in fc_exch_recv()