• Home
  • Raw
  • Download

Lines Matching refs:xid

452 	index = (ep->xid - ep->em->min_xid) >> fc_cpu_order;  in fc_exch_delete()
788 ep->oxid = ep->xid = (index << fc_cpu_order | cpu) + mp->min_xid; in fc_exch_em_alloc()
832 static struct fc_exch *fc_exch_find(struct fc_exch_mgr *mp, u16 xid) in fc_exch_find() argument
837 if ((xid >= mp->min_xid) && (xid <= mp->max_xid)) { in fc_exch_find()
838 pool = per_cpu_ptr(mp->pool, xid & fc_cpu_mask); in fc_exch_find()
840 ep = fc_exch_ptr_get(pool, (xid - mp->min_xid) >> fc_cpu_order); in fc_exch_find()
841 if (ep && ep->xid == xid) in fc_exch_find()
900 ep->rxid = ep->xid; in fc_exch_resp()
931 u16 xid; in fc_seq_lookup_recip() local
940 xid = ntohs(fh->fh_ox_id); /* we originated exch */ in fc_seq_lookup_recip()
941 ep = fc_exch_find(mp, xid); in fc_seq_lookup_recip()
954 xid = ntohs(fh->fh_rx_id); /* we are the responder */ in fc_seq_lookup_recip()
961 if (xid == 0 && fh->fh_r_ctl == FC_RCTL_ELS_REQ && in fc_seq_lookup_recip()
964 xid = FC_XID_UNKNOWN; in fc_seq_lookup_recip()
970 ep = fc_exch_find(mp, xid); in fc_seq_lookup_recip()
982 xid = ep->xid; /* get our XID */ in fc_seq_lookup_recip()
1057 u16 xid; in fc_seq_lookup_orig() local
1061 xid = ntohs((f_ctl & FC_FC_EX_CTX) ? fh->fh_ox_id : fh->fh_rx_id); in fc_seq_lookup_orig()
1062 ep = fc_exch_find(mp, xid); in fc_seq_lookup_orig()
1854 static struct fc_exch *fc_exch_lookup(struct fc_lport *lport, u32 xid) in fc_exch_lookup() argument
1859 if (ema->mp->min_xid <= xid && xid <= ema->mp->max_xid) in fc_exch_lookup()
1860 return fc_exch_find(ema->mp, xid); in fc_exch_lookup()
2030 if (ep->xid <= lport->lro_xid && fh->fh_r_ctl == FC_RCTL_DD_UNSOL_CMD) { in fc_exch_seq_send()
2032 fc_fcp_ddp_setup(fr_fsp(fp), ep->xid); in fc_exch_seq_send()
2118 u16 xid; in fc_exch_els_rrq() local
2131 xid = fc_host_port_id(lport->host) == sid ? in fc_exch_els_rrq()
2133 ep = fc_exch_lookup(lport, xid); in fc_exch_els_rrq()
2395 u16 xid; in fc_find_ema() local
2398 xid = ntohs(fh->fh_ox_id); in fc_find_ema()
2400 xid = ntohs(fh->fh_rx_id); in fc_find_ema()
2401 if (xid == FC_XID_UNKNOWN) in fc_find_ema()
2407 if ((xid >= ema->mp->min_xid) && in fc_find_ema()
2408 (xid <= ema->mp->max_xid)) in fc_find_ema()