Lines Matching defs:f_ctl
258 * @f_ctl: F_CTL bits that will be used for the frame header
264 u32 f_ctl)
273 if (f_ctl & FC_FC_END_SEQ) {
280 * multiple is the low order 2-bits of the f_ctl.
291 hton24(fh->fh_f_ctl, f_ctl | fill);
470 u32 f_ctl;
482 f_ctl = ntoh24(fh->fh_f_ctl);
483 fc_exch_setup_hdr(ep, fp, f_ctl);
510 ep->f_ctl = f_ctl & ~FC_FC_FIRST_SEQ; /* not first seq */
511 if (f_ctl & FC_FC_SEQ_INIT)
568 FC_EXCH_DBG(ep, "f_ctl %6x seq %2x\n",
569 ep->f_ctl, sp->id);
881 ep->f_ctl = FC_FC_FIRST_SEQ; /* next seq is first seq */
1006 ep->f_ctl |= FC_FC_EX_CTX; /* we're responding */
1007 ep->f_ctl &= ~FC_FC_FIRST_SEQ; /* not new */
1048 u32 f_ctl;
1051 f_ctl = ntoh24(fh->fh_f_ctl);
1052 WARN_ON((f_ctl & FC_FC_SEQ_CTX) != 0);
1057 if (f_ctl & FC_FC_EX_CTX) {
1089 if ((f_ctl & FC_FC_FIRST_SEQ) && fc_sof_is_init(fr_sof(fp))) {
1121 if (f_ctl & FC_FC_END_SEQ) {
1149 if (f_ctl & FC_FC_SEQ_INIT)
1176 u32 f_ctl;
1179 f_ctl = ntoh24(fh->fh_f_ctl);
1180 WARN_ON((f_ctl & FC_FC_SEQ_CTX) != FC_FC_SEQ_CTX);
1181 xid = ntohs((f_ctl & FC_FC_EX_CTX) ? fh->fh_ox_id : fh->fh_rx_id);
1190 if ((f_ctl & FC_FC_EX_CTX) != 0 &&
1261 u32 f_ctl;
1264 f_ctl = FC_FC_LAST_SEQ | FC_FC_END_SEQ | FC_FC_SEQ_INIT;
1265 f_ctl |= ep->f_ctl;
1266 fc_fill_fc_hdr(fp, rctl, ep->did, ep->sid, fh_type, f_ctl, 0);
1284 unsigned int f_ctl;
1301 * Form f_ctl by inverting EX_CTX and SEQ_CTX (bits 23, 22).
1308 f_ctl = ntoh24(rx_fh->fh_f_ctl);
1309 f_ctl &= FC_FC_EX_CTX | FC_FC_SEQ_CTX |
1313 f_ctl ^= FC_FC_EX_CTX | FC_FC_SEQ_CTX;
1314 hton24(fh->fh_f_ctl, f_ctl);
1316 fc_exch_setup_hdr(ep, fp, f_ctl);
1322 if (f_ctl & FC_FC_END_SEQ)
1349 unsigned int f_ctl;
1380 * Form f_ctl by inverting EX_CTX and SEQ_CTX (bits 23, 22).
1387 f_ctl = ntoh24(rx_fh->fh_f_ctl);
1388 f_ctl &= FC_FC_EX_CTX | FC_FC_SEQ_CTX |
1391 f_ctl ^= FC_FC_EX_CTX | FC_FC_SEQ_CTX;
1392 f_ctl |= FC_FC_LAST_SEQ | FC_FC_END_SEQ;
1393 f_ctl &= ~FC_FC_FIRST_SEQ;
1394 hton24(fh->fh_f_ctl, f_ctl);
1579 u32 f_ctl;
1609 f_ctl = ntoh24(fh->fh_f_ctl);
1613 if (f_ctl & FC_FC_SEQ_INIT)
1621 (f_ctl & (FC_FC_LAST_SEQ | FC_FC_END_SEQ)) ==
1770 u32 f_ctl;
1773 f_ctl = ntoh24(fh->fh_f_ctl);
1776 ep = fc_exch_find(mp, (f_ctl & FC_FC_EX_CTX) ?
1778 if (ep && (f_ctl & FC_FC_SEQ_INIT)) {
1783 if (f_ctl & FC_FC_SEQ_CTX) {
2207 ep->f_ctl = ntoh24(fh->fh_f_ctl);
2208 fc_exch_setup_hdr(ep, fp, ep->f_ctl);
2221 ep->f_ctl &= ~FC_FC_FIRST_SEQ; /* not first seq */
2223 if (ep->f_ctl & FC_FC_SEQ_INIT)
2572 * @f_ctl: f_ctl
2576 static struct fc_exch_mgr_anchor *fc_find_ema(u32 f_ctl,
2583 if (f_ctl & FC_FC_EX_CTX)
2608 u32 f_ctl;
2618 f_ctl = ntoh24(fh->fh_f_ctl);
2619 ema = fc_find_ema(f_ctl, lport, fh);
2623 f_ctl,
2624 (f_ctl & FC_FC_EX_CTX) ?
2636 if (f_ctl & FC_FC_END_SEQ)
2637 skb_trim(fp_skb(fp), fr_len(fp) - FC_FC_FILL(f_ctl));
2642 else if ((f_ctl & (FC_FC_EX_CTX | FC_FC_SEQ_CTX)) ==
2645 else if (f_ctl & FC_FC_SEQ_CTX)