Lines Matching refs:port_num

93 __ib_get_mad_port(struct ib_device *device, int port_num)  in __ib_get_mad_port()  argument
98 if (entry->device == device && entry->port_num == port_num) in __ib_get_mad_port()
109 ib_get_mad_port(struct ib_device *device, int port_num) in ib_get_mad_port() argument
115 entry = __ib_get_mad_port(device, port_num); in ib_get_mad_port()
195 u8 port_num, in ib_register_mad_agent() argument
318 port_priv = ib_get_mad_port(device, port_num); in ib_register_mad_agent()
365 mad_agent_priv->agent.port_num = port_num; in ib_register_mad_agent()
491 u8 port_num, in ib_register_mad_snoop() argument
514 port_priv = ib_get_mad_port(device, port_num); in ib_register_mad_snoop()
533 mad_snoop_priv->agent.port_num = port_num; in ib_register_mad_snoop()
703 u64 wr_id, u16 slid, u16 pkey_index, u8 port_num, in build_smp_wc() argument
717 wc->port_num = port_num; in build_smp_wc()
736 u8 port_num; in handle_outgoing_dr_smp() local
742 port_num = send_wr->wr.ud.port_num; in handle_outgoing_dr_smp()
744 port_num = mad_agent_priv->agent.port_num; in handle_outgoing_dr_smp()
754 smi_handle_dr_smp_send(smp, device->node_type, port_num) == in handle_outgoing_dr_smp()
785 send_wr->wr.ud.port_num, &mad_wc); in handle_outgoing_dr_smp()
788 ret = device->process_mad(device, 0, port_num, &mad_wc, NULL, in handle_outgoing_dr_smp()
812 mad_agent_priv->agent.port_num); in handle_outgoing_dr_smp()
1701 &mad_agent->agent, port_priv->port_num); in find_mad_agent()
1765 u8 port_num = mad_agent_priv->agent.port_num; in rcv_has_same_gid() local
1787 if (ib_get_cached_lmc(device, port_num, &lmc)) in rcv_has_same_gid()
1793 if (ib_get_cached_gid(device, port_num, in rcv_has_same_gid()
1955 int port_num; in ib_mad_recv_done_handler() local
1993 port_num = wc->port_num; in ib_mad_recv_done_handler()
1995 port_num = port_priv->port_num; in ib_mad_recv_done_handler()
2003 port_num, in ib_mad_recv_done_handler()
2015 port_num) == IB_SMI_DISCARD) in ib_mad_recv_done_handler()
2041 port_priv->port_num, in ib_mad_recv_done_handler()
2052 port_num, in ib_mad_recv_done_handler()
2070 port_priv->device, port_num, qp_info->qp->qp_num); in ib_mad_recv_done_handler()
2499 0, recv_mad_agent->agent.port_num, &wc); in local_completions()
2767 ret = ib_find_pkey(port_priv->device, port_priv->port_num, in ib_mad_port_start()
2884 qp_init_attr.port_num = qp_info->port_priv->port_num; in create_mad_qp()
2918 int port_num) in ib_mad_port_open() argument
2934 port_priv->port_num = port_num; in ib_mad_port_open()
2941 has_smi = rdma_port_get_link_layer(device, port_num) == IB_LINK_LAYER_INFINIBAND; in ib_mad_port_open()
2977 snprintf(name, sizeof name, "ib_mad%d", port_num); in ib_mad_port_open()
3026 static int ib_mad_port_close(struct ib_device *device, int port_num) in ib_mad_port_close() argument
3032 port_priv = __ib_get_mad_port(device, port_num); in ib_mad_port_close()
3035 dev_err(&device->dev, "Port %d not found\n", port_num); in ib_mad_port_close()