• 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 refs:fh

205 	struct fc_frame_header *fh = fc_frame_header_get(fp);
230 hton24(fh->fh_f_ctl, f_ctl | fill);
238 * Initialize remainig fh fields
241 fh->fh_ox_id = htons(ep->oxid);
242 fh->fh_rx_id = htons(ep->rxid);
243 fh->fh_seq_id = ep->seq.id;
244 fh->fh_seq_cnt = htons(ep->seq.cnt);
386 struct fc_frame_header *fh = fc_frame_header_get(fp);
393 f_ctl = ntoh24(fh->fh_f_ctl);
403 sp->cnt += DIV_ROUND_UP((fr_len(fp) - sizeof(*fh)),
732 struct fc_frame_header *fh;
743 fh = fc_frame_header_get(fp);
744 ep->sid = ntoh24(fh->fh_d_id);
745 ep->did = ntoh24(fh->fh_s_id);
754 ep->oxid = ntohs(fh->fh_ox_id);
756 if ((ntoh24(fh->fh_f_ctl) & FC_FC_SEQ_INIT) == 0)
779 struct fc_frame_header *fh = fc_frame_header_get(fp);
786 f_ctl = ntoh24(fh->fh_f_ctl);
793 xid = ntohs(fh->fh_ox_id); /* we originated exch */
801 ep->rxid = ntohs(fh->fh_rx_id);
802 else if (ep->rxid != ntohs(fh->fh_rx_id)) {
807 xid = ntohs(fh->fh_rx_id); /* we are the responder */
809 if (xid == 0 && fh->fh_r_ctl == FC_RCTL_ELS_REQ &&
811 fh->fh_rx_id = htons(FC_XID_UNKNOWN);
845 sp->id = fh->fh_seq_id;
848 if (sp->id != fh->fh_seq_id) {
879 struct fc_frame_header *fh = fc_frame_header_get(fp);
885 f_ctl = ntoh24(fh->fh_f_ctl);
887 xid = ntohs((f_ctl & FC_FC_EX_CTX) ? fh->fh_ox_id : fh->fh_rx_id);
891 if (ep->seq.id == fh->fh_seq_id) {
898 ep->rxid = ntohs(fh->fh_rx_id);
986 struct fc_frame_header *fh;
999 fh = fc_frame_header_get(fp);
1000 fh->fh_r_ctl = FC_RCTL_ACK_1;
1001 fh->fh_type = FC_TYPE_BLS;
1017 hton24(fh->fh_f_ctl, f_ctl);
1020 fh->fh_seq_id = rx_fh->fh_seq_id;
1021 fh->fh_seq_cnt = rx_fh->fh_seq_cnt;
1022 fh->fh_parm_offset = htonl(1); /* ack single frame */
1048 struct fc_frame_header *fh;
1057 fh = fc_frame_header_get(fp);
1060 memset(fh, 0, sizeof(*fh) + sizeof(*rp));
1069 memcpy(fh->fh_s_id, rx_fh->fh_d_id, 3);
1070 memcpy(fh->fh_d_id, rx_fh->fh_s_id, 3);
1071 fh->fh_ox_id = rx_fh->fh_ox_id;
1072 fh->fh_rx_id = rx_fh->fh_rx_id;
1073 fh->fh_seq_cnt = rx_fh->fh_seq_cnt;
1074 fh->fh_r_ctl = FC_RCTL_BA_RJT;
1075 fh->fh_type = FC_TYPE_BLS;
1092 hton24(fh->fh_f_ctl, f_ctl);
1115 struct fc_frame_header *fh;
1135 fh = fc_frame_header_get(fp);
1143 ap->ba_high_seq_cnt = fh->fh_seq_cnt;
1192 struct fc_frame_header *fh = fc_frame_header_get(fp);
1200 lport = fc_vport_id_lookup(lport, ntoh24(fh->fh_d_id));
1213 if (fh->fh_rx_id == htons(FC_XID_UNKNOWN))
1255 struct fc_frame_header *fh = fc_frame_header_get(fp);
1264 ep = fc_exch_find(mp, ntohs(fh->fh_ox_id));
1274 ep->rxid = ntohs(fh->fh_rx_id);
1275 if (ep->sid != 0 && ep->sid != ntoh24(fh->fh_d_id)) {
1279 if (ep->did != ntoh24(fh->fh_s_id) &&
1288 sp->id = fh->fh_seq_id;
1289 } else if (sp->id != fh->fh_seq_id) {
1294 f_ctl = ntoh24(fh->fh_f_ctl);
1304 if (fh->fh_type != FC_TYPE_FCP && fr_eof(fp) == FC_EOF_T &&
1372 struct fc_frame_header *fh;
1379 fh = fc_frame_header_get(fp);
1380 FC_EXCH_DBG(ep, "exch: BLS rctl %x - %s\n", fh->fh_r_ctl,
1381 fc_exch_rctl_name(fh->fh_r_ctl));
1387 switch (fh->fh_r_ctl) {
1425 ntoh24(fh->fh_f_ctl) & FC_FC_LAST_SEQ)
1451 struct fc_frame_header *fh;
1455 fh = fc_frame_header_get(fp);
1456 f_ctl = ntoh24(fh->fh_f_ctl);
1460 ntohs(fh->fh_ox_id) : ntohs(fh->fh_rx_id));
1471 switch (fh->fh_r_ctl) {
1477 fh->fh_r_ctl,
1478 fc_exch_rctl_name(fh->fh_r_ctl));
1483 switch (fh->fh_r_ctl) {
1814 struct fc_frame_header *fh;
1823 fh = fc_frame_header_get(fp);
1824 fc_exch_set_addr(ep, ntoh24(fh->fh_s_id), ntoh24(fh->fh_d_id));
1832 ep->fh_type = fh->fh_type; /* save for possbile timeout handling */
1833 ep->f_ctl = ntoh24(fh->fh_f_ctl);
1837 if (ep->xid <= lport->lro_xid && fh->fh_r_ctl == FC_RCTL_DD_UNSOL_CMD)
2156 struct fc_frame_header *fh = fc_frame_header_get(fp);
2169 f_ctl = ntoh24(fh->fh_f_ctl);
2170 oxid = ntohs(fh->fh_ox_id);
2198 if (fh->fh_type == FC_TYPE_BLS)