Home
last modified time | relevance | path

Searched refs:node_type (Results 1 – 25 of 26) sorted by relevance

12

/drivers/infiniband/core/
Dsmi.c47 u8 node_type, int port_num) in smi_handle_dr_smp_send() argument
65 if (node_type != RDMA_NODE_IB_SWITCH) in smi_handle_dr_smp_send()
78 return (node_type == RDMA_NODE_IB_SWITCH || in smi_handle_dr_smp_send()
97 if (node_type != RDMA_NODE_IB_SWITCH) in smi_handle_dr_smp_send()
109 return (node_type == RDMA_NODE_IB_SWITCH || in smi_handle_dr_smp_send()
127 enum smi_action smi_handle_dr_smp_recv(struct ib_smp *smp, u8 node_type, in smi_handle_dr_smp_recv() argument
143 if (node_type != RDMA_NODE_IB_SWITCH) in smi_handle_dr_smp_recv()
158 return (node_type == RDMA_NODE_IB_SWITCH || in smi_handle_dr_smp_recv()
178 if (node_type != RDMA_NODE_IB_SWITCH) in smi_handle_dr_smp_recv()
194 return (node_type == RDMA_NODE_IB_SWITCH ? in smi_handle_dr_smp_recv()
Dsmi.h54 enum smi_action smi_handle_dr_smp_recv(struct ib_smp *smp, u8 node_type,
59 u8 node_type, int port_num);
Dsysfs.c568 switch (dev->node_type) { in show_node_type()
569 case RDMA_NODE_IB_CA: return sprintf(buf, "%d: CA\n", dev->node_type); in show_node_type()
570 case RDMA_NODE_RNIC: return sprintf(buf, "%d: RNIC\n", dev->node_type); in show_node_type()
571 case RDMA_NODE_IB_SWITCH: return sprintf(buf, "%d: switch\n", dev->node_type); in show_node_type()
572 case RDMA_NODE_IB_ROUTER: return sprintf(buf, "%d: router\n", dev->node_type); in show_node_type()
573 default: return sprintf(buf, "%d: <unknown>\n", dev->node_type); in show_node_type()
640 static DEVICE_ATTR(node_type, S_IRUGO, show_node_type, NULL);
802 if (device->node_type == RDMA_NODE_IB_SWITCH) { in ib_device_register_sysfs()
814 if (device->node_type == RDMA_NODE_RNIC && device->get_protocol_stats) { in ib_device_register_sysfs()
Dagent.c91 if (device->node_type == RDMA_NODE_IB_SWITCH) in agent_send_response()
119 if (device->node_type == RDMA_NODE_IB_SWITCH) { in agent_send_response()
Dcache.c63 return (device->node_type == RDMA_NODE_IB_SWITCH) ? 0 : 1; in start_port()
68 return (device->node_type == RDMA_NODE_IB_SWITCH) ? in end_port()
Dcma.c597 switch (rdma_node_get_transport(id_priv->id.device->node_type)) { in rdma_init_qp_attr()
747 switch (rdma_node_get_transport(id_priv->id.device->node_type)) { in cma_cancel_route()
843 switch (rdma_node_get_transport(id->device->node_type)) { in rdma_destroy_id()
1500 switch (rdma_node_get_transport(id->device->node_type)) { in rdma_listen()
1727 switch (rdma_node_get_transport(id->device->node_type)) { in rdma_resolve_route()
2401 switch (rdma_node_get_transport(id->device->node_type)) { in rdma_connect()
2510 switch (rdma_node_get_transport(id->device->node_type)) { in rdma_accept()
2549 switch (id->device->node_type) { in rdma_notify()
2571 switch (rdma_node_get_transport(id->device->node_type)) { in rdma_reject()
2602 switch (rdma_node_get_transport(id->device->node_type)) { in rdma_disconnect()
[all …]
Dmad.c678 if (device->node_type == RDMA_NODE_IB_SWITCH && in handle_outgoing_dr_smp()
692 smi_handle_dr_smp_send(smp, device->node_type, port_num) == in handle_outgoing_dr_smp()
1883 if (port_priv->device->node_type == RDMA_NODE_IB_SWITCH) in ib_mad_recv_done_handler()
1893 port_priv->device->node_type, in ib_mad_recv_done_handler()
1905 port_priv->device->node_type, in ib_mad_recv_done_handler()
1911 } else if (port_priv->device->node_type == RDMA_NODE_IB_SWITCH) { in ib_mad_recv_done_handler()
2909 if (rdma_node_get_transport(device->node_type) != RDMA_TRANSPORT_IB) in ib_mad_init_device()
2912 if (device->node_type == RDMA_NODE_IB_SWITCH) { in ib_mad_init_device()
2959 if (device->node_type == RDMA_NODE_IB_SWITCH) { in ib_mad_remove_device()
Ddevice.c153 return (device->node_type == RDMA_NODE_IB_SWITCH) ? 0 : 1; in start_port()
159 return (device->node_type == RDMA_NODE_IB_SWITCH) ? in end_port()
Dverbs.c81 rdma_node_get_transport(enum rdma_node_type node_type) in rdma_node_get_transport() argument
83 switch (node_type) { in rdma_node_get_transport()
Dmulticast.c791 if (rdma_node_get_transport(device->node_type) != RDMA_TRANSPORT_IB) in mcast_add_one()
799 if (device->node_type == RDMA_NODE_IB_SWITCH) in mcast_add_one()
Dsa_query.c992 if (rdma_node_get_transport(device->node_type) != RDMA_TRANSPORT_IB) in ib_sa_add_one()
995 if (device->node_type == RDMA_NODE_IB_SWITCH) in ib_sa_add_one()
Duser_mad.c1116 if (rdma_node_get_transport(device->node_type) != RDMA_TRANSPORT_IB) in ib_umad_add_one()
1119 if (device->node_type == RDMA_NODE_IB_SWITCH) in ib_umad_add_one()
Ducma.c617 switch (rdma_node_get_transport(ctx->cm_id->device->node_type)) { in ucma_query_route()
Ducm.c1244 rdma_node_get_transport(device->node_type) != RDMA_TRANSPORT_IB) in ib_ucm_add_one()
/drivers/pci/hotplug/
Drpadlpar_core.c79 static struct device_node *find_dlpar_node(char *drc_name, int *node_type) in find_dlpar_node() argument
85 *node_type = NODE_TYPE_SLOT; in find_dlpar_node()
91 *node_type = NODE_TYPE_PHB; in find_dlpar_node()
97 *node_type = NODE_TYPE_VIO; in find_dlpar_node()
287 int node_type; in dlpar_add_slot() local
294 dn = find_dlpar_node(drc_name, &node_type); in dlpar_add_slot()
300 switch (node_type) { in dlpar_add_slot()
410 int node_type; in dlpar_remove_slot() local
416 dn = find_dlpar_node(drc_name, &node_type); in dlpar_remove_slot()
422 switch (node_type) { in dlpar_remove_slot()
/drivers/infiniband/ulp/ipoib/
Dipoib_main.c1334 if (rdma_node_get_transport(device->node_type) != RDMA_TRANSPORT_IB) in ipoib_add_one()
1343 if (device->node_type == RDMA_NODE_IB_SWITCH) { in ipoib_add_one()
1367 if (rdma_node_get_transport(device->node_type) != RDMA_TRANSPORT_IB) in ipoib_remove_one()
/drivers/infiniband/hw/ipath/
Dipath_mad.c71 u8 node_type; member
96 nip->node_type = 1; /* channel adapter */ in recv_subn_get_nodeinfo()
Dipath_verbs.c2134 dev->node_type = RDMA_NODE_IB_CA; in ipath_register_ib_device()
/drivers/infiniband/hw/amso1100/
Dc2_provider.c811 dev->ibdev.node_type = RDMA_NODE_RNIC; in c2_register_device()
/drivers/infiniband/hw/mlx4/
Dmain.c582 ibdev->ib_dev.node_type = RDMA_NODE_IB_CA; in mlx4_ib_add()
/drivers/infiniband/hw/ehca/
Dehca_main.c461 shca->ib_device.node_type = RDMA_NODE_IB_CA; in ehca_init_device()
/drivers/infiniband/hw/mthca/
Dmthca_provider.c1327 dev->ib_dev.node_type = RDMA_NODE_IB_CA; in mthca_register_device()
/drivers/infiniband/hw/cxgb3/
Diwch_provider.c1322 dev->ibdev.node_type = RDMA_NODE_RNIC; in iwch_register_device()
/drivers/infiniband/ulp/srp/
Dib_srp.c2033 if (device->node_type == RDMA_NODE_IB_SWITCH) { in srp_add_one()
/drivers/infiniband/hw/nes/
Dnes_verbs.c3614 nesibdev->ibdev.node_type = RDMA_NODE_RNIC; in nes_init_ofa_device()

12