• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/scsi/libfc/

Lines Matching defs:f_ctl

197  * @f_ctl: F_CTL bits that will be used for the frame header
203 u32 f_ctl)
212 if (f_ctl & FC_FC_END_SEQ) {
219 * multiple is the low order 2-bits of the f_ctl.
230 hton24(fh->fh_f_ctl, f_ctl | fill);
388 u32 f_ctl;
393 f_ctl = ntoh24(fh->fh_f_ctl);
394 fc_exch_setup_hdr(ep, fp, f_ctl);
419 ep->f_ctl = f_ctl & ~FC_FC_FIRST_SEQ; /* not first seq */
420 if (f_ctl & FC_FC_SEQ_INIT)
456 FC_EXCH_DBG(ep, "f_ctl %6x seq %2x\n",
457 ep->f_ctl, sp->id);
643 ep->f_ctl = FC_FC_FIRST_SEQ; /* next seq is first seq */
741 ep->f_ctl |= FC_FC_EX_CTX; /* we're responding */
742 ep->f_ctl &= ~FC_FC_FIRST_SEQ; /* not new */
783 u32 f_ctl;
786 f_ctl = ntoh24(fh->fh_f_ctl);
787 WARN_ON((f_ctl & FC_FC_SEQ_CTX) != 0);
792 if (f_ctl & FC_FC_EX_CTX) {
819 if ((f_ctl & FC_FC_FIRST_SEQ) && fc_sof_is_init(fr_sof(fp))) {
856 if (f_ctl & FC_FC_SEQ_INIT)
882 u32 f_ctl;
885 f_ctl = ntoh24(fh->fh_f_ctl);
886 WARN_ON((f_ctl & FC_FC_SEQ_CTX) != FC_FC_SEQ_CTX);
887 xid = ntohs((f_ctl & FC_FC_EX_CTX) ? fh->fh_ox_id : fh->fh_rx_id);
896 if ((f_ctl & FC_FC_EX_CTX) != 0 &&
966 u32 f_ctl;
969 f_ctl = FC_FC_LAST_SEQ | FC_FC_END_SEQ | FC_FC_SEQ_INIT;
970 f_ctl |= ep->f_ctl;
971 fc_fill_fc_hdr(fp, rctl, ep->did, ep->sid, fh_type, f_ctl, 0);
989 unsigned int f_ctl;
1004 * Form f_ctl by inverting EX_CTX and SEQ_CTX (bits 23, 22).
1011 f_ctl = ntoh24(rx_fh->fh_f_ctl);
1012 f_ctl &= FC_FC_EX_CTX | FC_FC_SEQ_CTX |
1016 f_ctl ^= FC_FC_EX_CTX | FC_FC_SEQ_CTX;
1017 hton24(fh->fh_f_ctl, f_ctl);
1019 fc_exch_setup_hdr(ep, fp, f_ctl);
1025 if (f_ctl & FC_FC_END_SEQ)
1051 unsigned int f_ctl;
1078 * Form f_ctl by inverting EX_CTX and SEQ_CTX (bits 23, 22).
1085 f_ctl = ntoh24(rx_fh->fh_f_ctl);
1086 f_ctl &= FC_FC_EX_CTX | FC_FC_SEQ_CTX |
1089 f_ctl ^= FC_FC_EX_CTX | FC_FC_SEQ_CTX;
1090 f_ctl |= FC_FC_LAST_SEQ | FC_FC_END_SEQ;
1091 f_ctl &= ~FC_FC_FIRST_SEQ;
1092 hton24(fh->fh_f_ctl, f_ctl);
1259 u32 f_ctl;
1294 f_ctl = ntoh24(fh->fh_f_ctl);
1296 if (f_ctl & FC_FC_SEQ_INIT)
1305 (f_ctl & (FC_FC_LAST_SEQ | FC_FC_END_SEQ)) ==
1453 u32 f_ctl;
1456 f_ctl = ntoh24(fh->fh_f_ctl);
1459 ep = fc_exch_find(mp, (f_ctl & FC_FC_EX_CTX) ?
1461 if (ep && (f_ctl & FC_FC_SEQ_INIT)) {
1466 if (f_ctl & FC_FC_SEQ_CTX) {
1833 ep->f_ctl = ntoh24(fh->fh_f_ctl);
1834 fc_exch_setup_hdr(ep, fp, ep->f_ctl);
1845 ep->f_ctl &= ~FC_FC_FIRST_SEQ; /* not first seq */
1847 if (ep->f_ctl & FC_FC_SEQ_INIT)
2158 u32 f_ctl, found = 0;
2169 f_ctl = ntoh24(fh->fh_f_ctl);
2171 if (f_ctl & FC_FC_EX_CTX) {
2194 if (f_ctl & FC_FC_END_SEQ)
2195 skb_trim(fp_skb(fp), fr_len(fp) - FC_FC_FILL(f_ctl));
2200 else if ((f_ctl & (FC_FC_EX_CTX | FC_FC_SEQ_CTX)) ==
2203 else if (f_ctl & FC_FC_SEQ_CTX)