Lines Matching refs:f_ctl

264 			      u32 f_ctl)  in fc_exch_setup_hdr()  argument
273 if (f_ctl & FC_FC_END_SEQ) { in fc_exch_setup_hdr()
291 hton24(fh->fh_f_ctl, f_ctl | fill); in fc_exch_setup_hdr()
470 u32 f_ctl; in fc_seq_send_locked() local
482 f_ctl = ntoh24(fh->fh_f_ctl); in fc_seq_send_locked()
483 fc_exch_setup_hdr(ep, fp, f_ctl); in fc_seq_send_locked()
510 ep->f_ctl = f_ctl & ~FC_FC_FIRST_SEQ; /* not first seq */ in fc_seq_send_locked()
511 if (f_ctl & FC_FC_SEQ_INIT) in fc_seq_send_locked()
569 ep->f_ctl, sp->id); in fc_seq_start_next_locked()
881 ep->f_ctl = FC_FC_FIRST_SEQ; /* next seq is first seq */ in fc_exch_em_alloc()
1006 ep->f_ctl |= FC_FC_EX_CTX; /* we're responding */ in fc_exch_resp()
1007 ep->f_ctl &= ~FC_FC_FIRST_SEQ; /* not new */ in fc_exch_resp()
1048 u32 f_ctl; in fc_seq_lookup_recip() local
1051 f_ctl = ntoh24(fh->fh_f_ctl); in fc_seq_lookup_recip()
1052 WARN_ON((f_ctl & FC_FC_SEQ_CTX) != 0); in fc_seq_lookup_recip()
1057 if (f_ctl & FC_FC_EX_CTX) { in fc_seq_lookup_recip()
1089 if ((f_ctl & FC_FC_FIRST_SEQ) && fc_sof_is_init(fr_sof(fp))) { in fc_seq_lookup_recip()
1121 if (f_ctl & FC_FC_END_SEQ) { in fc_seq_lookup_recip()
1149 if (f_ctl & FC_FC_SEQ_INIT) in fc_seq_lookup_recip()
1176 u32 f_ctl; in fc_seq_lookup_orig() local
1179 f_ctl = ntoh24(fh->fh_f_ctl); in fc_seq_lookup_orig()
1180 WARN_ON((f_ctl & FC_FC_SEQ_CTX) != FC_FC_SEQ_CTX); in fc_seq_lookup_orig()
1181 xid = ntohs((f_ctl & FC_FC_EX_CTX) ? fh->fh_ox_id : fh->fh_rx_id); in fc_seq_lookup_orig()
1190 if ((f_ctl & FC_FC_EX_CTX) != 0 && in fc_seq_lookup_orig()
1261 u32 f_ctl; in fc_seq_send_last() local
1264 f_ctl = FC_FC_LAST_SEQ | FC_FC_END_SEQ | FC_FC_SEQ_INIT; in fc_seq_send_last()
1265 f_ctl |= ep->f_ctl; in fc_seq_send_last()
1266 fc_fill_fc_hdr(fp, rctl, ep->did, ep->sid, fh_type, f_ctl, 0); in fc_seq_send_last()
1284 unsigned int f_ctl; in fc_seq_send_ack() local
1308 f_ctl = ntoh24(rx_fh->fh_f_ctl); in fc_seq_send_ack()
1309 f_ctl &= FC_FC_EX_CTX | FC_FC_SEQ_CTX | in fc_seq_send_ack()
1313 f_ctl ^= FC_FC_EX_CTX | FC_FC_SEQ_CTX; in fc_seq_send_ack()
1314 hton24(fh->fh_f_ctl, f_ctl); in fc_seq_send_ack()
1316 fc_exch_setup_hdr(ep, fp, f_ctl); in fc_seq_send_ack()
1322 if (f_ctl & FC_FC_END_SEQ) in fc_seq_send_ack()
1349 unsigned int f_ctl; in fc_exch_send_ba_rjt() local
1387 f_ctl = ntoh24(rx_fh->fh_f_ctl); in fc_exch_send_ba_rjt()
1388 f_ctl &= FC_FC_EX_CTX | FC_FC_SEQ_CTX | in fc_exch_send_ba_rjt()
1391 f_ctl ^= FC_FC_EX_CTX | FC_FC_SEQ_CTX; in fc_exch_send_ba_rjt()
1392 f_ctl |= FC_FC_LAST_SEQ | FC_FC_END_SEQ; in fc_exch_send_ba_rjt()
1393 f_ctl &= ~FC_FC_FIRST_SEQ; in fc_exch_send_ba_rjt()
1394 hton24(fh->fh_f_ctl, f_ctl); in fc_exch_send_ba_rjt()
1579 u32 f_ctl; in fc_exch_recv_seq_resp() local
1609 f_ctl = ntoh24(fh->fh_f_ctl); in fc_exch_recv_seq_resp()
1613 if (f_ctl & FC_FC_SEQ_INIT) in fc_exch_recv_seq_resp()
1621 (f_ctl & (FC_FC_LAST_SEQ | FC_FC_END_SEQ)) == in fc_exch_recv_seq_resp()
1763 u32 f_ctl; in fc_exch_recv_bls() local
1766 f_ctl = ntoh24(fh->fh_f_ctl); in fc_exch_recv_bls()
1769 ep = fc_exch_find(mp, (f_ctl & FC_FC_EX_CTX) ? in fc_exch_recv_bls()
1771 if (ep && (f_ctl & FC_FC_SEQ_INIT)) { in fc_exch_recv_bls()
1776 if (f_ctl & FC_FC_SEQ_CTX) { in fc_exch_recv_bls()
2194 ep->f_ctl = ntoh24(fh->fh_f_ctl); in fc_exch_seq_send()
2195 fc_exch_setup_hdr(ep, fp, ep->f_ctl); in fc_exch_seq_send()
2208 ep->f_ctl &= ~FC_FC_FIRST_SEQ; /* not first seq */ in fc_exch_seq_send()
2210 if (ep->f_ctl & FC_FC_SEQ_INIT) in fc_exch_seq_send()
2563 static struct fc_exch_mgr_anchor *fc_find_ema(u32 f_ctl, in fc_find_ema() argument
2570 if (f_ctl & FC_FC_EX_CTX) in fc_find_ema()
2595 u32 f_ctl; in fc_exch_recv() local
2605 f_ctl = ntoh24(fh->fh_f_ctl); in fc_exch_recv()
2606 ema = fc_find_ema(f_ctl, lport, fh); in fc_exch_recv()
2610 f_ctl, in fc_exch_recv()
2611 (f_ctl & FC_FC_EX_CTX) ? in fc_exch_recv()
2623 if (f_ctl & FC_FC_END_SEQ) in fc_exch_recv()
2624 skb_trim(fp_skb(fp), fr_len(fp) - FC_FC_FILL(f_ctl)); in fc_exch_recv()
2629 else if ((f_ctl & (FC_FC_EX_CTX | FC_FC_SEQ_CTX)) == in fc_exch_recv()
2632 else if (f_ctl & FC_FC_SEQ_CTX) in fc_exch_recv()