Lines Matching refs:f_ctl
274 u32 f_ctl) in fc_exch_setup_hdr() argument
283 if (f_ctl & FC_FC_END_SEQ) { in fc_exch_setup_hdr()
301 hton24(fh->fh_f_ctl, f_ctl | fill); in fc_exch_setup_hdr()
480 u32 f_ctl; in fc_seq_send_locked() local
492 f_ctl = ntoh24(fh->fh_f_ctl); in fc_seq_send_locked()
493 fc_exch_setup_hdr(ep, fp, f_ctl); in fc_seq_send_locked()
520 ep->f_ctl = f_ctl & ~FC_FC_FIRST_SEQ; /* not first seq */ in fc_seq_send_locked()
521 if (f_ctl & FC_FC_SEQ_INIT) in fc_seq_send_locked()
579 ep->f_ctl, sp->id); in fc_seq_start_next_locked()
888 ep->f_ctl = FC_FC_FIRST_SEQ; /* next seq is first seq */ in fc_exch_em_alloc()
1013 ep->f_ctl |= FC_FC_EX_CTX; /* we're responding */ in fc_exch_resp()
1014 ep->f_ctl &= ~FC_FC_FIRST_SEQ; /* not new */ in fc_exch_resp()
1055 u32 f_ctl; in fc_seq_lookup_recip() local
1058 f_ctl = ntoh24(fh->fh_f_ctl); in fc_seq_lookup_recip()
1059 WARN_ON((f_ctl & FC_FC_SEQ_CTX) != 0); in fc_seq_lookup_recip()
1064 if (f_ctl & FC_FC_EX_CTX) { in fc_seq_lookup_recip()
1096 if ((f_ctl & FC_FC_FIRST_SEQ) && fc_sof_is_init(fr_sof(fp))) { in fc_seq_lookup_recip()
1128 if (f_ctl & FC_FC_END_SEQ) { in fc_seq_lookup_recip()
1156 if (f_ctl & FC_FC_SEQ_INIT) in fc_seq_lookup_recip()
1183 u32 f_ctl; in fc_seq_lookup_orig() local
1186 f_ctl = ntoh24(fh->fh_f_ctl); in fc_seq_lookup_orig()
1187 WARN_ON((f_ctl & FC_FC_SEQ_CTX) != FC_FC_SEQ_CTX); in fc_seq_lookup_orig()
1188 xid = ntohs((f_ctl & FC_FC_EX_CTX) ? fh->fh_ox_id : fh->fh_rx_id); in fc_seq_lookup_orig()
1197 if ((f_ctl & FC_FC_EX_CTX) != 0 && in fc_seq_lookup_orig()
1268 u32 f_ctl; in fc_seq_send_last() local
1271 f_ctl = FC_FC_LAST_SEQ | FC_FC_END_SEQ | FC_FC_SEQ_INIT; in fc_seq_send_last()
1272 f_ctl |= ep->f_ctl; in fc_seq_send_last()
1273 fc_fill_fc_hdr(fp, rctl, ep->did, ep->sid, fh_type, f_ctl, 0); in fc_seq_send_last()
1291 unsigned int f_ctl; in fc_seq_send_ack() local
1315 f_ctl = ntoh24(rx_fh->fh_f_ctl); in fc_seq_send_ack()
1316 f_ctl &= FC_FC_EX_CTX | FC_FC_SEQ_CTX | in fc_seq_send_ack()
1320 f_ctl ^= FC_FC_EX_CTX | FC_FC_SEQ_CTX; in fc_seq_send_ack()
1321 hton24(fh->fh_f_ctl, f_ctl); in fc_seq_send_ack()
1323 fc_exch_setup_hdr(ep, fp, f_ctl); in fc_seq_send_ack()
1329 if (f_ctl & FC_FC_END_SEQ) in fc_seq_send_ack()
1356 unsigned int f_ctl; in fc_exch_send_ba_rjt() local
1394 f_ctl = ntoh24(rx_fh->fh_f_ctl); in fc_exch_send_ba_rjt()
1395 f_ctl &= FC_FC_EX_CTX | FC_FC_SEQ_CTX | in fc_exch_send_ba_rjt()
1398 f_ctl ^= FC_FC_EX_CTX | FC_FC_SEQ_CTX; in fc_exch_send_ba_rjt()
1399 f_ctl |= FC_FC_LAST_SEQ | FC_FC_END_SEQ; in fc_exch_send_ba_rjt()
1400 f_ctl &= ~FC_FC_FIRST_SEQ; in fc_exch_send_ba_rjt()
1401 hton24(fh->fh_f_ctl, f_ctl); in fc_exch_send_ba_rjt()
1586 u32 f_ctl; in fc_exch_recv_seq_resp() local
1616 f_ctl = ntoh24(fh->fh_f_ctl); in fc_exch_recv_seq_resp()
1620 if (f_ctl & FC_FC_SEQ_INIT) in fc_exch_recv_seq_resp()
1628 (f_ctl & (FC_FC_LAST_SEQ | FC_FC_END_SEQ)) == in fc_exch_recv_seq_resp()
1770 u32 f_ctl; in fc_exch_recv_bls() local
1773 f_ctl = ntoh24(fh->fh_f_ctl); in fc_exch_recv_bls()
1776 ep = fc_exch_find(mp, (f_ctl & FC_FC_EX_CTX) ? in fc_exch_recv_bls()
1778 if (ep && (f_ctl & FC_FC_SEQ_INIT)) { in fc_exch_recv_bls()
1783 if (f_ctl & FC_FC_SEQ_CTX) { in fc_exch_recv_bls()
2201 ep->f_ctl = ntoh24(fh->fh_f_ctl); in fc_exch_seq_send()
2202 fc_exch_setup_hdr(ep, fp, ep->f_ctl); in fc_exch_seq_send()
2215 ep->f_ctl &= ~FC_FC_FIRST_SEQ; /* not first seq */ in fc_exch_seq_send()
2217 if (ep->f_ctl & FC_FC_SEQ_INIT) in fc_exch_seq_send()
2570 static struct fc_exch_mgr_anchor *fc_find_ema(u32 f_ctl, in fc_find_ema() argument
2577 if (f_ctl & FC_FC_EX_CTX) in fc_find_ema()
2602 u32 f_ctl; in fc_exch_recv() local
2612 f_ctl = ntoh24(fh->fh_f_ctl); in fc_exch_recv()
2613 ema = fc_find_ema(f_ctl, lport, fh); in fc_exch_recv()
2617 f_ctl, in fc_exch_recv()
2618 (f_ctl & FC_FC_EX_CTX) ? in fc_exch_recv()
2630 if (f_ctl & FC_FC_END_SEQ) in fc_exch_recv()
2631 skb_trim(fp_skb(fp), fr_len(fp) - FC_FC_FILL(f_ctl)); in fc_exch_recv()
2636 else if ((f_ctl & (FC_FC_EX_CTX | FC_FC_SEQ_CTX)) == in fc_exch_recv()
2639 else if (f_ctl & FC_FC_SEQ_CTX) in fc_exch_recv()