Lines Matching refs:f_ctl

263 			      u32 f_ctl)  in fc_exch_setup_hdr()  argument
272 if (f_ctl & FC_FC_END_SEQ) { in fc_exch_setup_hdr()
290 hton24(fh->fh_f_ctl, f_ctl | fill); in fc_exch_setup_hdr()
469 u32 f_ctl; in fc_seq_send_locked() local
481 f_ctl = ntoh24(fh->fh_f_ctl); in fc_seq_send_locked()
482 fc_exch_setup_hdr(ep, fp, f_ctl); in fc_seq_send_locked()
509 ep->f_ctl = f_ctl & ~FC_FC_FIRST_SEQ; /* not first seq */ in fc_seq_send_locked()
510 if (f_ctl & FC_FC_SEQ_INIT) in fc_seq_send_locked()
568 ep->f_ctl, sp->id); in fc_seq_start_next_locked()
879 ep->f_ctl = FC_FC_FIRST_SEQ; /* next seq is first seq */ in fc_exch_em_alloc()
1004 ep->f_ctl |= FC_FC_EX_CTX; /* we're responding */ in fc_exch_resp()
1005 ep->f_ctl &= ~FC_FC_FIRST_SEQ; /* not new */ in fc_exch_resp()
1046 u32 f_ctl; in fc_seq_lookup_recip() local
1049 f_ctl = ntoh24(fh->fh_f_ctl); in fc_seq_lookup_recip()
1050 WARN_ON((f_ctl & FC_FC_SEQ_CTX) != 0); in fc_seq_lookup_recip()
1055 if (f_ctl & FC_FC_EX_CTX) { in fc_seq_lookup_recip()
1087 if ((f_ctl & FC_FC_FIRST_SEQ) && fc_sof_is_init(fr_sof(fp))) { in fc_seq_lookup_recip()
1119 if (f_ctl & FC_FC_END_SEQ) { in fc_seq_lookup_recip()
1147 if (f_ctl & FC_FC_SEQ_INIT) in fc_seq_lookup_recip()
1174 u32 f_ctl; in fc_seq_lookup_orig() local
1177 f_ctl = ntoh24(fh->fh_f_ctl); in fc_seq_lookup_orig()
1178 WARN_ON((f_ctl & FC_FC_SEQ_CTX) != FC_FC_SEQ_CTX); in fc_seq_lookup_orig()
1179 xid = ntohs((f_ctl & FC_FC_EX_CTX) ? fh->fh_ox_id : fh->fh_rx_id); in fc_seq_lookup_orig()
1188 if ((f_ctl & FC_FC_EX_CTX) != 0 && in fc_seq_lookup_orig()
1259 u32 f_ctl; in fc_seq_send_last() local
1262 f_ctl = FC_FC_LAST_SEQ | FC_FC_END_SEQ | FC_FC_SEQ_INIT; in fc_seq_send_last()
1263 f_ctl |= ep->f_ctl; in fc_seq_send_last()
1264 fc_fill_fc_hdr(fp, rctl, ep->did, ep->sid, fh_type, f_ctl, 0); in fc_seq_send_last()
1282 unsigned int f_ctl; in fc_seq_send_ack() local
1306 f_ctl = ntoh24(rx_fh->fh_f_ctl); in fc_seq_send_ack()
1307 f_ctl &= FC_FC_EX_CTX | FC_FC_SEQ_CTX | in fc_seq_send_ack()
1311 f_ctl ^= FC_FC_EX_CTX | FC_FC_SEQ_CTX; in fc_seq_send_ack()
1312 hton24(fh->fh_f_ctl, f_ctl); in fc_seq_send_ack()
1314 fc_exch_setup_hdr(ep, fp, f_ctl); in fc_seq_send_ack()
1320 if (f_ctl & FC_FC_END_SEQ) in fc_seq_send_ack()
1347 unsigned int f_ctl; in fc_exch_send_ba_rjt() local
1385 f_ctl = ntoh24(rx_fh->fh_f_ctl); in fc_exch_send_ba_rjt()
1386 f_ctl &= FC_FC_EX_CTX | FC_FC_SEQ_CTX | in fc_exch_send_ba_rjt()
1389 f_ctl ^= FC_FC_EX_CTX | FC_FC_SEQ_CTX; in fc_exch_send_ba_rjt()
1390 f_ctl |= FC_FC_LAST_SEQ | FC_FC_END_SEQ; in fc_exch_send_ba_rjt()
1391 f_ctl &= ~FC_FC_FIRST_SEQ; in fc_exch_send_ba_rjt()
1392 hton24(fh->fh_f_ctl, f_ctl); in fc_exch_send_ba_rjt()
1577 u32 f_ctl; in fc_exch_recv_seq_resp() local
1607 f_ctl = ntoh24(fh->fh_f_ctl); in fc_exch_recv_seq_resp()
1611 if (f_ctl & FC_FC_SEQ_INIT) in fc_exch_recv_seq_resp()
1619 (f_ctl & (FC_FC_LAST_SEQ | FC_FC_END_SEQ)) == in fc_exch_recv_seq_resp()
1768 u32 f_ctl; in fc_exch_recv_bls() local
1771 f_ctl = ntoh24(fh->fh_f_ctl); in fc_exch_recv_bls()
1774 ep = fc_exch_find(mp, (f_ctl & FC_FC_EX_CTX) ? in fc_exch_recv_bls()
1776 if (ep && (f_ctl & FC_FC_SEQ_INIT)) { in fc_exch_recv_bls()
1781 if (f_ctl & FC_FC_SEQ_CTX) { in fc_exch_recv_bls()
2205 ep->f_ctl = ntoh24(fh->fh_f_ctl); in fc_exch_seq_send()
2206 fc_exch_setup_hdr(ep, fp, ep->f_ctl); in fc_exch_seq_send()
2219 ep->f_ctl &= ~FC_FC_FIRST_SEQ; /* not first seq */ in fc_exch_seq_send()
2221 if (ep->f_ctl & FC_FC_SEQ_INIT) in fc_exch_seq_send()
2574 static struct fc_exch_mgr_anchor *fc_find_ema(u32 f_ctl, in fc_find_ema() argument
2581 if (f_ctl & FC_FC_EX_CTX) in fc_find_ema()
2606 u32 f_ctl; in fc_exch_recv() local
2616 f_ctl = ntoh24(fh->fh_f_ctl); in fc_exch_recv()
2617 ema = fc_find_ema(f_ctl, lport, fh); in fc_exch_recv()
2621 f_ctl, in fc_exch_recv()
2622 (f_ctl & FC_FC_EX_CTX) ? in fc_exch_recv()
2634 if (f_ctl & FC_FC_END_SEQ) in fc_exch_recv()
2635 skb_trim(fp_skb(fp), fr_len(fp) - FC_FC_FILL(f_ctl)); in fc_exch_recv()
2640 else if ((f_ctl & (FC_FC_EX_CTX | FC_FC_SEQ_CTX)) == in fc_exch_recv()
2643 else if (f_ctl & FC_FC_SEQ_CTX) in fc_exch_recv()