Lines Matching refs:f_ctl

271  * @f_ctl: F_CTL bits that will be used for the frame header
277 u32 f_ctl)
286 if (f_ctl & FC_FC_END_SEQ) {
293 * multiple is the low order 2-bits of the f_ctl.
304 hton24(fh->fh_f_ctl, f_ctl | fill);
472 u32 f_ctl;
478 f_ctl = ntoh24(fh->fh_f_ctl);
479 fc_exch_setup_hdr(ep, fp, f_ctl);
507 ep->f_ctl = f_ctl & ~FC_FC_FIRST_SEQ; /* not first seq */
508 if (f_ctl & FC_FC_SEQ_INIT)
544 FC_EXCH_DBG(ep, "f_ctl %6x seq %2x\n",
545 ep->f_ctl, sp->id);
775 ep->f_ctl = FC_FC_FIRST_SEQ; /* next seq is first seq */
871 ep->f_ctl |= FC_FC_EX_CTX; /* we're responding */
872 ep->f_ctl &= ~FC_FC_FIRST_SEQ; /* not new */
913 u32 f_ctl;
916 f_ctl = ntoh24(fh->fh_f_ctl);
917 WARN_ON((f_ctl & FC_FC_SEQ_CTX) != 0);
922 if (f_ctl & FC_FC_EX_CTX) {
954 if ((f_ctl & FC_FC_FIRST_SEQ) && fc_sof_is_init(fr_sof(fp))) {
985 if (f_ctl & FC_FC_END_SEQ) {
1013 if (f_ctl & FC_FC_SEQ_INIT)
1039 u32 f_ctl;
1042 f_ctl = ntoh24(fh->fh_f_ctl);
1043 WARN_ON((f_ctl & FC_FC_SEQ_CTX) != FC_FC_SEQ_CTX);
1044 xid = ntohs((f_ctl & FC_FC_EX_CTX) ? fh->fh_ox_id : fh->fh_rx_id);
1053 if ((f_ctl & FC_FC_EX_CTX) != 0 &&
1123 u32 f_ctl;
1126 f_ctl = FC_FC_LAST_SEQ | FC_FC_END_SEQ | FC_FC_SEQ_INIT;
1127 f_ctl |= ep->f_ctl;
1128 fc_fill_fc_hdr(fp, rctl, ep->did, ep->sid, fh_type, f_ctl, 0);
1146 unsigned int f_ctl;
1161 * Form f_ctl by inverting EX_CTX and SEQ_CTX (bits 23, 22).
1168 f_ctl = ntoh24(rx_fh->fh_f_ctl);
1169 f_ctl &= FC_FC_EX_CTX | FC_FC_SEQ_CTX |
1173 f_ctl ^= FC_FC_EX_CTX | FC_FC_SEQ_CTX;
1174 hton24(fh->fh_f_ctl, f_ctl);
1176 fc_exch_setup_hdr(ep, fp, f_ctl);
1182 if (f_ctl & FC_FC_END_SEQ)
1208 unsigned int f_ctl;
1235 * Form f_ctl by inverting EX_CTX and SEQ_CTX (bits 23, 22).
1242 f_ctl = ntoh24(rx_fh->fh_f_ctl);
1243 f_ctl &= FC_FC_EX_CTX | FC_FC_SEQ_CTX |
1246 f_ctl ^= FC_FC_EX_CTX | FC_FC_SEQ_CTX;
1247 f_ctl |= FC_FC_LAST_SEQ | FC_FC_END_SEQ;
1248 f_ctl &= ~FC_FC_FIRST_SEQ;
1249 hton24(fh->fh_f_ctl, f_ctl);
1427 u32 f_ctl;
1462 f_ctl = ntoh24(fh->fh_f_ctl);
1464 if (f_ctl & FC_FC_SEQ_INIT)
1473 (f_ctl & (FC_FC_LAST_SEQ | FC_FC_END_SEQ)) ==
1622 u32 f_ctl;
1625 f_ctl = ntoh24(fh->fh_f_ctl);
1628 ep = fc_exch_find(mp, (f_ctl & FC_FC_EX_CTX) ?
1630 if (ep && (f_ctl & FC_FC_SEQ_INIT)) {
1635 if (f_ctl & FC_FC_SEQ_CTX) {
2008 ep->f_ctl = ntoh24(fh->fh_f_ctl);
2009 fc_exch_setup_hdr(ep, fp, ep->f_ctl);
2022 ep->f_ctl &= ~FC_FC_FIRST_SEQ; /* not first seq */
2024 if (ep->f_ctl & FC_FC_SEQ_INIT)
2345 * @f_ctl: f_ctl
2349 static struct fc_exch_mgr_anchor *fc_find_ema(u32 f_ctl,
2356 if (f_ctl & FC_FC_EX_CTX)
2381 u32 f_ctl;
2391 f_ctl = ntoh24(fh->fh_f_ctl);
2392 ema = fc_find_ema(f_ctl, lport, fh);
2396 f_ctl,
2397 (f_ctl & FC_FC_EX_CTX) ?
2409 if (f_ctl & FC_FC_END_SEQ)
2410 skb_trim(fp_skb(fp), fr_len(fp) - FC_FC_FILL(f_ctl));
2415 else if ((f_ctl & (FC_FC_EX_CTX | FC_FC_SEQ_CTX)) ==
2418 else if (f_ctl & FC_FC_SEQ_CTX)