• Home
  • Raw
  • Download

Lines Matching refs:port_num

89 static void handle_client_rereg_event(struct mlx4_ib_dev *dev, u8 port_num);
90 static void handle_lid_change_event(struct mlx4_ib_dev *dev, u8 port_num);
91 static void __propagate_pkey_ev(struct mlx4_ib_dev *dev, int port_num,
187 static void update_sm_ah(struct mlx4_ib_dev *dev, u8 port_num, u16 lid, u8 sl) in update_sm_ah() argument
193 if (!dev->send_agent[port_num - 1][0]) in update_sm_ah()
199 ah_attr.port_num = port_num; in update_sm_ah()
201 new_ah = ib_create_ah(dev->send_agent[port_num - 1][0]->qp->pd, in update_sm_ah()
207 if (dev->sm_ah[port_num - 1]) in update_sm_ah()
208 ib_destroy_ah(dev->sm_ah[port_num - 1]); in update_sm_ah()
209 dev->sm_ah[port_num - 1] = new_ah; in update_sm_ah()
217 static void smp_snoop(struct ib_device *ibdev, u8 port_num, const struct ib_mad *mad, in smp_snoop() argument
238 update_sm_ah(dev, port_num, in smp_snoop()
243 handle_client_rereg_event(dev, port_num); in smp_snoop()
246 handle_lid_change_event(dev, port_num); in smp_snoop()
253 mlx4_ib_dispatch_event(dev, port_num, in smp_snoop()
268 dev->pkeys.phys_pkey_cache[port_num - 1][i + bn*32]) { in smp_snoop()
270 dev->pkeys.phys_pkey_cache[port_num - 1][i + bn*32] = in smp_snoop()
276 port_num, bn, pkey_change_bitmap); in smp_snoop()
279 mlx4_ib_dispatch_event(dev, port_num, in smp_snoop()
282 __propagate_pkey_ev(dev, port_num, bn, in smp_snoop()
292 mlx4_ib_dispatch_event(dev, port_num, in smp_snoop()
298 mlx4_ib_update_cache_on_guid_change(dev, bn, port_num, in smp_snoop()
300 mlx4_ib_notify_slaves_on_guid_change(dev, bn, port_num, in smp_snoop()
319 port_num, jj, sl2vl64.sl8[jj]); in smp_snoop()
321 atomic64_set(&dev->sl2vl[port_num - 1], sl2vl64.sl64); in smp_snoop()
330 static void __propagate_pkey_ev(struct mlx4_ib_dev *dev, int port_num, in __propagate_pkey_ev() argument
347 ix < dev->dev->caps.pkey_table_len[port_num]; ix++) { in __propagate_pkey_ev()
348 if (dev->pkeys.virt2phys_pkey[slave][port_num - 1] in __propagate_pkey_ev()
350 err = mlx4_gen_pkey_eqe(dev->dev, slave, port_num); in __propagate_pkey_ev()
353 slave, port_num, ix, err); in __propagate_pkey_ev()
380 static void forward_trap(struct mlx4_ib_dev *dev, u8 port_num, const struct ib_mad *mad) in forward_trap() argument
384 struct ib_mad_agent *agent = dev->send_agent[port_num - 1][qpn]; in forward_trap()
402 if ((send_buf->ah = dev->sm_ah[port_num - 1])) in forward_trap()
539 attr.port_num = port; in mlx4_ib_send_to_slave()
615 wr.port_num = port; in mlx4_ib_send_to_slave()
771 static int ib_process_mad(struct ib_device *ibdev, int mad_flags, u8 port_num, in ib_process_mad() argument
801 forward_trap(to_mdev(ibdev), port_num, in_mad); in ib_process_mad()
831 !ib_query_port(ibdev, port_num, &pattr)) in ib_process_mad()
838 port_num, in_wc, in_grh, in_mad, out_mad); in ib_process_mad()
843 smp_snoop(ibdev, port_num, in_mad, prev_lid); in ib_process_mad()
904 static int iboe_process_mad(struct ib_device *ibdev, int mad_flags, u8 port_num, in iboe_process_mad() argument
920 mutex_lock(&dev->counters_table[port_num - 1].mutex); in iboe_process_mad()
922 &dev->counters_table[port_num - 1].counters_list, in iboe_process_mad()
934 mutex_unlock(&dev->counters_table[port_num - 1].mutex); in iboe_process_mad()
952 int mlx4_ib_process_mad(struct ib_device *ibdev, int mad_flags, u8 port_num, in mlx4_ib_process_mad() argument
961 enum rdma_link_layer link = rdma_port_get_link_layer(ibdev, port_num); in mlx4_ib_process_mad()
976 return iboe_process_mad(ibdev, mad_flags, port_num, in_wc, in mlx4_ib_process_mad()
979 return ib_process_mad(ibdev, mad_flags, port_num, in_wc, in mlx4_ib_process_mad()
984 return iboe_process_mad(ibdev, mad_flags, port_num, in_wc, in mlx4_ib_process_mad()
1053 static void handle_lid_change_event(struct mlx4_ib_dev *dev, u8 port_num) in handle_lid_change_event() argument
1055 mlx4_ib_dispatch_event(dev, port_num, IB_EVENT_LID_CHANGE); in handle_lid_change_event()
1058 mlx4_gen_slaves_port_mgt_ev(dev->dev, port_num, in handle_lid_change_event()
1062 static void handle_client_rereg_event(struct mlx4_ib_dev *dev, u8 port_num) in handle_client_rereg_event() argument
1066 mlx4_ib_invalidate_all_guid_record(dev, port_num); in handle_client_rereg_event()
1069 mlx4_ib_mcg_port_cleanup(&dev->sriov.demux[port_num - 1], 0); in handle_client_rereg_event()
1070 mlx4_gen_slaves_port_mgt_ev(dev->dev, port_num, in handle_client_rereg_event()
1087 mlx4_ib_sl2vl_update(dev, port_num); in handle_client_rereg_event()
1089 mlx4_sched_ib_sl2vl_update_work(dev, port_num); in handle_client_rereg_event()
1091 mlx4_ib_dispatch_event(dev, port_num, IB_EVENT_CLIENT_REREGISTER); in handle_client_rereg_event()
1094 static void propagate_pkey_ev(struct mlx4_ib_dev *dev, int port_num, in propagate_pkey_ev() argument
1097 __propagate_pkey_ev(dev, port_num, GET_BLK_PTR_FROM_EQE(eqe), in propagate_pkey_ev()
1101 static void handle_slaves_guid_change(struct mlx4_ib_dev *dev, u8 port_num, in handle_slaves_guid_change() argument
1135 port_num, NULL, NULL, in_mad, out_mad)) { in handle_slaves_guid_change()
1141 port_num, in handle_slaves_guid_change()
1144 port_num, in handle_slaves_guid_change()
1256 void mlx4_ib_dispatch_event(struct mlx4_ib_dev *dev, u8 port_num, in mlx4_ib_dispatch_event() argument
1262 event.element.port_num = port_num; in mlx4_ib_dispatch_event()
1407 wr.port_num = port; in mlx4_ib_send_to_wire()
1797 qp_init_attr.init_attr.port_num = ctx->port; in create_pv_sqp()
1820 attr.port_num = ctx->port; in create_pv_sqp()