Lines Matching defs:f_ctl
257 * @f_ctl: F_CTL bits that will be used for the frame header
263 u32 f_ctl)
272 if (f_ctl & FC_FC_END_SEQ) {
279 * multiple is the low order 2-bits of the f_ctl.
290 hton24(fh->fh_f_ctl, f_ctl | fill);
469 u32 f_ctl;
481 f_ctl = ntoh24(fh->fh_f_ctl);
482 fc_exch_setup_hdr(ep, fp, f_ctl);
509 ep->f_ctl = f_ctl & ~FC_FC_FIRST_SEQ; /* not first seq */
510 if (f_ctl & FC_FC_SEQ_INIT)
567 FC_EXCH_DBG(ep, "f_ctl %6x seq %2x\n",
568 ep->f_ctl, sp->id);
879 ep->f_ctl = FC_FC_FIRST_SEQ; /* next seq is first seq */
1004 ep->f_ctl |= FC_FC_EX_CTX; /* we're responding */
1005 ep->f_ctl &= ~FC_FC_FIRST_SEQ; /* not new */
1046 u32 f_ctl;
1049 f_ctl = ntoh24(fh->fh_f_ctl);
1050 WARN_ON((f_ctl & FC_FC_SEQ_CTX) != 0);
1055 if (f_ctl & FC_FC_EX_CTX) {
1087 if ((f_ctl & FC_FC_FIRST_SEQ) && fc_sof_is_init(fr_sof(fp))) {
1119 if (f_ctl & FC_FC_END_SEQ) {
1147 if (f_ctl & FC_FC_SEQ_INIT)
1174 u32 f_ctl;
1177 f_ctl = ntoh24(fh->fh_f_ctl);
1178 WARN_ON((f_ctl & FC_FC_SEQ_CTX) != FC_FC_SEQ_CTX);
1179 xid = ntohs((f_ctl & FC_FC_EX_CTX) ? fh->fh_ox_id : fh->fh_rx_id);
1188 if ((f_ctl & FC_FC_EX_CTX) != 0 &&
1259 u32 f_ctl;
1262 f_ctl = FC_FC_LAST_SEQ | FC_FC_END_SEQ | FC_FC_SEQ_INIT;
1263 f_ctl |= ep->f_ctl;
1264 fc_fill_fc_hdr(fp, rctl, ep->did, ep->sid, fh_type, f_ctl, 0);
1282 unsigned int f_ctl;
1299 * Form f_ctl by inverting EX_CTX and SEQ_CTX (bits 23, 22).
1306 f_ctl = ntoh24(rx_fh->fh_f_ctl);
1307 f_ctl &= FC_FC_EX_CTX | FC_FC_SEQ_CTX |
1311 f_ctl ^= FC_FC_EX_CTX | FC_FC_SEQ_CTX;
1312 hton24(fh->fh_f_ctl, f_ctl);
1314 fc_exch_setup_hdr(ep, fp, f_ctl);
1320 if (f_ctl & FC_FC_END_SEQ)
1347 unsigned int f_ctl;
1378 * Form f_ctl by inverting EX_CTX and SEQ_CTX (bits 23, 22).
1385 f_ctl = ntoh24(rx_fh->fh_f_ctl);
1386 f_ctl &= FC_FC_EX_CTX | FC_FC_SEQ_CTX |
1389 f_ctl ^= FC_FC_EX_CTX | FC_FC_SEQ_CTX;
1390 f_ctl |= FC_FC_LAST_SEQ | FC_FC_END_SEQ;
1391 f_ctl &= ~FC_FC_FIRST_SEQ;
1392 hton24(fh->fh_f_ctl, f_ctl);
1577 u32 f_ctl;
1607 f_ctl = ntoh24(fh->fh_f_ctl);
1611 if (f_ctl & FC_FC_SEQ_INIT)
1619 (f_ctl & (FC_FC_LAST_SEQ | FC_FC_END_SEQ)) ==
1768 u32 f_ctl;
1771 f_ctl = ntoh24(fh->fh_f_ctl);
1774 ep = fc_exch_find(mp, (f_ctl & FC_FC_EX_CTX) ?
1776 if (ep && (f_ctl & FC_FC_SEQ_INIT)) {
1781 if (f_ctl & FC_FC_SEQ_CTX) {
2205 ep->f_ctl = ntoh24(fh->fh_f_ctl);
2206 fc_exch_setup_hdr(ep, fp, ep->f_ctl);
2219 ep->f_ctl &= ~FC_FC_FIRST_SEQ; /* not first seq */
2221 if (ep->f_ctl & FC_FC_SEQ_INIT)
2570 * @f_ctl: f_ctl
2574 static struct fc_exch_mgr_anchor *fc_find_ema(u32 f_ctl,
2581 if (f_ctl & FC_FC_EX_CTX)
2606 u32 f_ctl;
2616 f_ctl = ntoh24(fh->fh_f_ctl);
2617 ema = fc_find_ema(f_ctl, lport, fh);
2621 f_ctl,
2622 (f_ctl & FC_FC_EX_CTX) ?
2634 if (f_ctl & FC_FC_END_SEQ)
2635 skb_trim(fp_skb(fp), fr_len(fp) - FC_FC_FILL(f_ctl));
2640 else if ((f_ctl & (FC_FC_EX_CTX | FC_FC_SEQ_CTX)) ==
2643 else if (f_ctl & FC_FC_SEQ_CTX)