• Home
  • Raw
  • Download

Lines Matching refs:port_num

50 static int mthca_update_rate(struct mthca_dev *dev, u8 port_num)  in mthca_update_rate()  argument
59 ret = ib_query_port(&dev->ib_dev, port_num, tprops); in mthca_update_rate()
63 port_num); in mthca_update_rate()
67 dev->rate[port_num - 1] = tprops->active_speed * in mthca_update_rate()
76 u8 port_num, u16 lid, u8 sl) in update_sm_ah() argument
82 if (!dev->send_agent[port_num - 1][0]) in update_sm_ah()
86 ah_attr.type = rdma_ah_find_type(&dev->ib_dev, port_num); in update_sm_ah()
89 rdma_ah_set_port_num(&ah_attr, port_num); in update_sm_ah()
91 new_ah = rdma_create_ah(dev->send_agent[port_num - 1][0]->qp->pd, in update_sm_ah()
97 if (dev->sm_ah[port_num - 1]) in update_sm_ah()
98 rdma_destroy_ah(dev->sm_ah[port_num - 1], 0); in update_sm_ah()
99 dev->sm_ah[port_num - 1] = new_ah; in update_sm_ah()
108 u8 port_num, in smp_snoop() argument
122 mthca_update_rate(to_mdev(ibdev), port_num); in smp_snoop()
123 update_sm_ah(to_mdev(ibdev), port_num, in smp_snoop()
128 event.element.port_num = port_num; in smp_snoop()
144 event.element.port_num = port_num; in smp_snoop()
165 u32 port_num, in forward_trap() argument
170 struct ib_mad_agent *agent = dev->send_agent[port_num - 1][qpn]; in forward_trap()
188 if ((send_buf->ah = dev->sm_ah[port_num - 1])) in forward_trap()
199 int mthca_process_mad(struct ib_device *ibdev, int mad_flags, u32 port_num, in mthca_process_mad() argument
211 forward_trap(to_mdev(ibdev), port_num, in); in mthca_process_mad()
248 !ib_query_port(ibdev, port_num, &pattr)) in mthca_process_mad()
252 mad_flags & IB_MAD_IGNORE_BKEY, port_num, in_wc, in mthca_process_mad()
262 smp_snoop(ibdev, port_num, in, prev_lid); in mthca_process_mad()