Lines Matching refs:f_ctl

262 			      u32 f_ctl)  in fc_exch_setup_hdr()  argument
271 if (f_ctl & FC_FC_END_SEQ) { in fc_exch_setup_hdr()
289 hton24(fh->fh_f_ctl, f_ctl | fill); in fc_exch_setup_hdr()
468 u32 f_ctl; in fc_seq_send_locked() local
480 f_ctl = ntoh24(fh->fh_f_ctl); in fc_seq_send_locked()
481 fc_exch_setup_hdr(ep, fp, f_ctl); in fc_seq_send_locked()
508 ep->f_ctl = f_ctl & ~FC_FC_FIRST_SEQ; /* not first seq */ in fc_seq_send_locked()
509 if (f_ctl & FC_FC_SEQ_INIT) in fc_seq_send_locked()
567 ep->f_ctl, sp->id); in fc_seq_start_next_locked()
876 ep->f_ctl = FC_FC_FIRST_SEQ; /* next seq is first seq */ in fc_exch_em_alloc()
1001 ep->f_ctl |= FC_FC_EX_CTX; /* we're responding */ in fc_exch_resp()
1002 ep->f_ctl &= ~FC_FC_FIRST_SEQ; /* not new */ in fc_exch_resp()
1043 u32 f_ctl; in fc_seq_lookup_recip() local
1046 f_ctl = ntoh24(fh->fh_f_ctl); in fc_seq_lookup_recip()
1047 WARN_ON((f_ctl & FC_FC_SEQ_CTX) != 0); in fc_seq_lookup_recip()
1052 if (f_ctl & FC_FC_EX_CTX) { in fc_seq_lookup_recip()
1084 if ((f_ctl & FC_FC_FIRST_SEQ) && fc_sof_is_init(fr_sof(fp))) { in fc_seq_lookup_recip()
1116 if (f_ctl & FC_FC_END_SEQ) { in fc_seq_lookup_recip()
1144 if (f_ctl & FC_FC_SEQ_INIT) in fc_seq_lookup_recip()
1171 u32 f_ctl; in fc_seq_lookup_orig() local
1174 f_ctl = ntoh24(fh->fh_f_ctl); in fc_seq_lookup_orig()
1175 WARN_ON((f_ctl & FC_FC_SEQ_CTX) != FC_FC_SEQ_CTX); in fc_seq_lookup_orig()
1176 xid = ntohs((f_ctl & FC_FC_EX_CTX) ? fh->fh_ox_id : fh->fh_rx_id); in fc_seq_lookup_orig()
1185 if ((f_ctl & FC_FC_EX_CTX) != 0 && in fc_seq_lookup_orig()
1256 u32 f_ctl; in fc_seq_send_last() local
1259 f_ctl = FC_FC_LAST_SEQ | FC_FC_END_SEQ | FC_FC_SEQ_INIT; in fc_seq_send_last()
1260 f_ctl |= ep->f_ctl; in fc_seq_send_last()
1261 fc_fill_fc_hdr(fp, rctl, ep->did, ep->sid, fh_type, f_ctl, 0); in fc_seq_send_last()
1279 unsigned int f_ctl; in fc_seq_send_ack() local
1303 f_ctl = ntoh24(rx_fh->fh_f_ctl); in fc_seq_send_ack()
1304 f_ctl &= FC_FC_EX_CTX | FC_FC_SEQ_CTX | in fc_seq_send_ack()
1308 f_ctl ^= FC_FC_EX_CTX | FC_FC_SEQ_CTX; in fc_seq_send_ack()
1309 hton24(fh->fh_f_ctl, f_ctl); in fc_seq_send_ack()
1311 fc_exch_setup_hdr(ep, fp, f_ctl); in fc_seq_send_ack()
1317 if (f_ctl & FC_FC_END_SEQ) in fc_seq_send_ack()
1344 unsigned int f_ctl; in fc_exch_send_ba_rjt() local
1382 f_ctl = ntoh24(rx_fh->fh_f_ctl); in fc_exch_send_ba_rjt()
1383 f_ctl &= FC_FC_EX_CTX | FC_FC_SEQ_CTX | in fc_exch_send_ba_rjt()
1386 f_ctl ^= FC_FC_EX_CTX | FC_FC_SEQ_CTX; in fc_exch_send_ba_rjt()
1387 f_ctl |= FC_FC_LAST_SEQ | FC_FC_END_SEQ; in fc_exch_send_ba_rjt()
1388 f_ctl &= ~FC_FC_FIRST_SEQ; in fc_exch_send_ba_rjt()
1389 hton24(fh->fh_f_ctl, f_ctl); in fc_exch_send_ba_rjt()
1574 u32 f_ctl; in fc_exch_recv_seq_resp() local
1604 f_ctl = ntoh24(fh->fh_f_ctl); in fc_exch_recv_seq_resp()
1608 if (f_ctl & FC_FC_SEQ_INIT) in fc_exch_recv_seq_resp()
1616 (f_ctl & (FC_FC_LAST_SEQ | FC_FC_END_SEQ)) == in fc_exch_recv_seq_resp()
1758 u32 f_ctl; in fc_exch_recv_bls() local
1761 f_ctl = ntoh24(fh->fh_f_ctl); in fc_exch_recv_bls()
1764 ep = fc_exch_find(mp, (f_ctl & FC_FC_EX_CTX) ? in fc_exch_recv_bls()
1766 if (ep && (f_ctl & FC_FC_SEQ_INIT)) { in fc_exch_recv_bls()
1771 if (f_ctl & FC_FC_SEQ_CTX) { in fc_exch_recv_bls()
2189 ep->f_ctl = ntoh24(fh->fh_f_ctl); in fc_exch_seq_send()
2190 fc_exch_setup_hdr(ep, fp, ep->f_ctl); in fc_exch_seq_send()
2203 ep->f_ctl &= ~FC_FC_FIRST_SEQ; /* not first seq */ in fc_exch_seq_send()
2205 if (ep->f_ctl & FC_FC_SEQ_INIT) in fc_exch_seq_send()
2558 static struct fc_exch_mgr_anchor *fc_find_ema(u32 f_ctl, in fc_find_ema() argument
2565 if (f_ctl & FC_FC_EX_CTX) in fc_find_ema()
2590 u32 f_ctl; in fc_exch_recv() local
2600 f_ctl = ntoh24(fh->fh_f_ctl); in fc_exch_recv()
2601 ema = fc_find_ema(f_ctl, lport, fh); in fc_exch_recv()
2605 f_ctl, in fc_exch_recv()
2606 (f_ctl & FC_FC_EX_CTX) ? in fc_exch_recv()
2618 if (f_ctl & FC_FC_END_SEQ) in fc_exch_recv()
2619 skb_trim(fp_skb(fp), fr_len(fp) - FC_FC_FILL(f_ctl)); in fc_exch_recv()
2624 else if ((f_ctl & (FC_FC_EX_CTX | FC_FC_SEQ_CTX)) == in fc_exch_recv()
2627 else if (f_ctl & FC_FC_SEQ_CTX) in fc_exch_recv()