Home
last modified time | relevance | path

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

/linux-4.1.27/drivers/infiniband/core/
Dsmi.c47 u8 node_type, int port_num) in smi_handle_dr_smp_send() argument
69 if (node_type != RDMA_NODE_IB_SWITCH) in smi_handle_dr_smp_send()
82 return (node_type == RDMA_NODE_IB_SWITCH || in smi_handle_dr_smp_send()
101 if (node_type != RDMA_NODE_IB_SWITCH) in smi_handle_dr_smp_send()
113 return (node_type == RDMA_NODE_IB_SWITCH || in smi_handle_dr_smp_send()
131 enum smi_action smi_handle_dr_smp_recv(struct ib_smp *smp, u8 node_type, in smi_handle_dr_smp_recv() argument
151 if (node_type != RDMA_NODE_IB_SWITCH) in smi_handle_dr_smp_recv()
166 return (node_type == RDMA_NODE_IB_SWITCH || in smi_handle_dr_smp_recv()
186 if (node_type != RDMA_NODE_IB_SWITCH) in smi_handle_dr_smp_recv()
202 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.c619 switch (dev->node_type) { in show_node_type()
620 case RDMA_NODE_IB_CA: return sprintf(buf, "%d: CA\n", dev->node_type); in show_node_type()
621 case RDMA_NODE_RNIC: return sprintf(buf, "%d: RNIC\n", dev->node_type); in show_node_type()
622 case RDMA_NODE_USNIC: return sprintf(buf, "%d: usNIC\n", dev->node_type); in show_node_type()
623 case RDMA_NODE_USNIC_UDP: return sprintf(buf, "%d: usNIC UDP\n", dev->node_type); in show_node_type()
624 case RDMA_NODE_IB_SWITCH: return sprintf(buf, "%d: switch\n", dev->node_type); in show_node_type()
625 case RDMA_NODE_IB_ROUTER: return sprintf(buf, "%d: router\n", dev->node_type); in show_node_type()
626 default: return sprintf(buf, "%d: <unknown>\n", dev->node_type); in show_node_type()
687 static DEVICE_ATTR(node_type, S_IRUGO, show_node_type, NULL);
867 if (device->node_type == RDMA_NODE_IB_SWITCH) { in ib_device_register_sysfs()
[all …]
Dagent.c91 if (device->node_type == RDMA_NODE_IB_SWITCH) in agent_send_response()
120 if (device->node_type == RDMA_NODE_IB_SWITCH) { in agent_send_response()
Dcma.c254 rdma_node_get_transport(cma_dev->device->node_type); in cma_attach_to_dev()
378 if (rdma_node_get_transport(cma_dev->device->node_type) == RDMA_TRANSPORT_IB && in cma_acquire_dev()
398 if (rdma_node_get_transport(cma_dev->device->node_type) == RDMA_TRANSPORT_IB && in cma_acquire_dev()
438 if (rdma_node_get_transport(cur_dev->device->node_type) != RDMA_TRANSPORT_IB) in cma_resolve_ib_dev()
636 if (rdma_node_get_transport(id_priv->cma_dev->device->node_type) in cma_modify_qp_rtr()
738 switch (rdma_node_get_transport(id_priv->id.device->node_type)) { in rdma_init_qp_attr()
1057 switch (rdma_node_get_transport(id_priv->id.device->node_type)) { in rdma_destroy_id()
1646 rdma_node_get_transport(cma_dev->device->node_type) != RDMA_TRANSPORT_IB) in cma_listen_on_dev()
1987 switch (rdma_node_get_transport(id->device->node_type)) { in rdma_resolve_route()
2048 rdma_node_get_transport(cur_dev->device->node_type) != RDMA_TRANSPORT_IB) in cma_bind_loopback()
[all …]
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()
Dmad.c740 if (device->node_type == RDMA_NODE_IB_SWITCH && in handle_outgoing_dr_smp()
754 smi_handle_dr_smp_send(smp, device->node_type, port_num) == in handle_outgoing_dr_smp()
1992 if (port_priv->device->node_type == RDMA_NODE_IB_SWITCH) in ib_mad_recv_done_handler()
2002 port_priv->device->node_type, in ib_mad_recv_done_handler()
2014 port_priv->device->node_type, in ib_mad_recv_done_handler()
2020 } else if (port_priv->device->node_type == RDMA_NODE_IB_SWITCH) { in ib_mad_recv_done_handler()
3060 if (rdma_node_get_transport(device->node_type) != RDMA_TRANSPORT_IB) in ib_mad_init_device()
3063 if (device->node_type == RDMA_NODE_IB_SWITCH) { in ib_mad_init_device()
3105 if (rdma_node_get_transport(device->node_type) != RDMA_TRANSPORT_IB) in ib_mad_remove_device()
3108 if (device->node_type == RDMA_NODE_IB_SWITCH) { in ib_mad_remove_device()
Ddevice.c156 return (device->node_type == RDMA_NODE_IB_SWITCH) ? 0 : 1; in start_port()
162 return (device->node_type == RDMA_NODE_IB_SWITCH) ? in end_port()
Dverbs.c111 rdma_node_get_transport(enum rdma_node_type node_type) in rdma_node_get_transport() argument
113 switch (node_type) { in rdma_node_get_transport()
136 switch (rdma_node_get_transport(device->node_type)) { in rdma_port_get_link_layer()
Dmulticast.c811 if (rdma_node_get_transport(device->node_type) != RDMA_TRANSPORT_IB) in mcast_add_one()
819 if (device->node_type == RDMA_NODE_IB_SWITCH) in mcast_add_one()
Dsa_query.c1157 if (rdma_node_get_transport(device->node_type) != RDMA_TRANSPORT_IB) in ib_sa_add_one()
1160 if (device->node_type == RDMA_NODE_IB_SWITCH) in ib_sa_add_one()
Duser_mad.c1277 if (rdma_node_get_transport(device->node_type) != RDMA_TRANSPORT_IB) in ib_umad_add_one()
1280 if (device->node_type == RDMA_NODE_IB_SWITCH) in ib_umad_add_one()
Ducm.c1261 rdma_node_get_transport(device->node_type) != RDMA_TRANSPORT_IB) in ib_ucm_add_one()
Ducma.c725 switch (rdma_node_get_transport(ctx->cm_id->device->node_type)) { in ucma_query_route()
Dcm.c3772 if (rdma_node_get_transport(ib_device->node_type) != RDMA_TRANSPORT_IB) in cm_add_one()
/linux-4.1.27/drivers/pci/hotplug/
Drpadlpar_core.c81 static struct device_node *find_dlpar_node(char *drc_name, int *node_type) in find_dlpar_node() argument
87 *node_type = NODE_TYPE_SLOT; in find_dlpar_node()
93 *node_type = NODE_TYPE_PHB; in find_dlpar_node()
99 *node_type = NODE_TYPE_VIO; in find_dlpar_node()
288 int node_type; in dlpar_add_slot() local
295 dn = find_dlpar_node(drc_name, &node_type); in dlpar_add_slot()
301 switch (node_type) { in dlpar_add_slot()
419 int node_type; in dlpar_remove_slot() local
425 dn = find_dlpar_node(drc_name, &node_type); in dlpar_remove_slot()
431 switch (node_type) { in dlpar_remove_slot()
/linux-4.1.27/fs/ubifs/
Dlpt_commit.c1034 static int make_node_dirty(struct ubifs_info *c, int node_type, int node_num, in make_node_dirty() argument
1037 switch (node_type) { in make_node_dirty()
1055 static int get_lpt_node_len(const struct ubifs_info *c, int node_type) in get_lpt_node_len() argument
1057 switch (node_type) { in get_lpt_node_len()
1097 int pos = 0, node_type; in get_lpt_node_type() local
1099 node_type = ubifs_unpack_bits(&addr, &pos, UBIFS_LPT_TYPE_BITS); in get_lpt_node_type()
1101 return node_type; in get_lpt_node_type()
1115 int pos = 0, node_type, node_len; in is_a_node() local
1120 node_type = ubifs_unpack_bits(&addr, &pos, UBIFS_LPT_TYPE_BITS); in is_a_node()
1121 if (node_type == UBIFS_LPT_NOT_A_NODE) in is_a_node()
[all …]
Dscan.c89 dbg_ntype(ch->node_type), lnum, offs); in ubifs_scan_a_node()
94 if (ch->node_type == UBIFS_PAD_NODE) { in ubifs_scan_a_node()
206 snod->type = ch->node_type; in ubifs_add_snod()
211 switch (ch->node_type) { in ubifs_add_snod()
Dio.c256 type = ch->node_type; in ubifs_check_node()
329 ch->node_type = UBIFS_PAD_NODE; in ubifs_pad()
681 dbg_ntype(((struct ubifs_ch *)buf)->node_type), in ubifs_wbuf_write_nolock()
864 lnum, offs, dbg_ntype(((struct ubifs_ch *)buf)->node_type), len, in ubifs_write_node()
934 if (type != ch->node_type) { in ubifs_read_node_wbuf()
936 ch->node_type, type); in ubifs_read_node_wbuf()
990 if (type != ch->node_type) { in ubifs_read_node()
992 ch->node_type, type); in ubifs_read_node()
Dsb.c167 sup->ch.node_type = UBIFS_SB_NODE; in create_default_filesystem()
209 mst->ch.node_type = UBIFS_MST_NODE; in create_default_filesystem()
275 idx->ch.node_type = UBIFS_IDX_NODE; in create_default_filesystem()
297 ino->ch.node_type = UBIFS_INO_NODE; in create_default_filesystem()
332 cs->ch.node_type = UBIFS_CS_NODE; in create_default_filesystem()
Djournal.c463 ino->ch.node_type = UBIFS_INO_NODE; in pack_inode()
589 dent->ch.node_type = UBIFS_DENT_NODE; in ubifs_jnl_update()
592 dent->ch.node_type = UBIFS_XENT_NODE; in ubifs_jnl_update()
722 data->ch.node_type = UBIFS_DATA_NODE; in ubifs_jnl_write_data()
973 dent->ch.node_type = UBIFS_DENT_NODE; in ubifs_jnl_rename()
985 dent2->ch.node_type = UBIFS_DENT_NODE; in ubifs_jnl_rename()
1170 trun->ch.node_type = UBIFS_TRUN_NODE; in ubifs_jnl_truncate()
1322 xent->ch.node_type = UBIFS_XENT_NODE; in ubifs_jnl_delete_xattr()
Dlog.c240 ref->ch.node_type = UBIFS_REF_NODE; in ubifs_add_bud_to_log()
376 cs->ch.node_type = UBIFS_CS_NODE; in ubifs_log_start_commit()
398 ref->ch.node_type = UBIFS_REF_NODE; in ubifs_log_start_commit()
Dubifs-media.h436 __u8 node_type; member
Drecovery.c162 if (ch->node_type != UBIFS_MST_NODE) in get_master_node()
832 if (cs_node->ch.node_type != UBIFS_CS_NODE) { in get_cs_sqnum()
833 ubifs_err(c, "Node a CS node, type is %d", cs_node->ch.node_type); in get_cs_sqnum()
Dtnc_commit.c44 idx->ch.node_type = UBIFS_IDX_NODE; in make_idx_node()
846 idx->ch.node_type = UBIFS_IDX_NODE; in write_index()
Dlpt.c944 int node_type; in check_lpt_type() local
946 node_type = ubifs_unpack_bits(addr, pos, UBIFS_LPT_TYPE_BITS); in check_lpt_type()
947 if (node_type != type) { in check_lpt_type()
949 node_type, type); in check_lpt_type()
Ddebug.c224 pr_err("\tnode_type %d (%s)\n", ch->node_type, in dump_ch()
225 dbg_ntype(ch->node_type)); in dump_ch()
319 switch (ch->node_type) { in ubifs_dump_node()
543 (int)ch->node_type); in ubifs_dump_node()
Dtnc.c458 if (ch->node_type != type) in try_read_node()
1686 if (ch->node_type != UBIFS_DATA_NODE) { in validate_data_node()
1688 ch->node_type, UBIFS_DATA_NODE); in validate_data_node()
Dorphan.c300 orph->ch.node_type = UBIFS_ORPH_NODE; in write_orph_node()
/linux-4.1.27/net/rds/
Diw.c66 if (device->node_type != RDMA_NODE_RNIC) in rds_iw_add_one()
243 cm_id->device->node_type != RDMA_NODE_RNIC) in rds_iw_laddr_check()
248 cm_id->device ? cm_id->device->node_type : -1); in rds_iw_laddr_check()
Dib.c128 if (device->node_type != RDMA_NODE_IB_CA) in rds_ib_add_one()
342 cm_id->device->node_type != RDMA_NODE_IB_CA) in rds_ib_laddr_check()
347 cm_id->device ? cm_id->device->node_type : -1); in rds_ib_laddr_check()
Drdma_transport.c79 if (cm_id->device->node_type == RDMA_NODE_RNIC) in rds_rdma_cm_event_handler()
/linux-4.1.27/drivers/media/platform/vivid/
Dvivid-core.c651 unsigned node_type = node_types[inst]; in vivid_create_instance() local
705 dev->has_vid_cap = node_type & 0x0001; in vivid_create_instance()
709 dev->has_raw_vbi_cap = node_type & 0x0004; in vivid_create_instance()
710 dev->has_sliced_vbi_cap = node_type & 0x0008; in vivid_create_instance()
715 dev->has_vid_out = node_type & 0x0100; in vivid_create_instance()
719 dev->has_raw_vbi_out = node_type & 0x0400; in vivid_create_instance()
720 dev->has_sliced_vbi_out = node_type & 0x0800; in vivid_create_instance()
725 dev->has_radio_rx = node_type & 0x0010; in vivid_create_instance()
728 dev->has_radio_tx = node_type & 0x1000; in vivid_create_instance()
731 dev->has_sdr_cap = node_type & 0x0020; in vivid_create_instance()
[all …]
/linux-4.1.27/include/uapi/rdma/
Drdma_netlink.h53 __u8 node_type; member
/linux-4.1.27/Documentation/infiniband/
Dsysfs.txt6 node_type - Node type (CA, switch or router)
/linux-4.1.27/drivers/infiniband/hw/qib/
Dqib_mad.h47 u8 node_type; member
Dqib_verbs.c2187 ibdev->node_type = RDMA_NODE_IB_CA; in qib_register_ib_device()
Dqib_mad.c293 nip->node_type = 1; /* channel adapter */ in subn_get_nodeinfo()
/linux-4.1.27/fs/dlm/
Dconfig.c424 static struct config_item_type node_type = { variable
631 config_item_init_type_name(&nd->item, name, &node_type); in make_node()
/linux-4.1.27/drivers/infiniband/ulp/ipoib/
Dipoib_main.c1689 if (rdma_node_get_transport(device->node_type) != RDMA_TRANSPORT_IB) in ipoib_add_one()
1698 if (device->node_type == RDMA_NODE_IB_SWITCH) { in ipoib_add_one()
1724 if (rdma_node_get_transport(device->node_type) != RDMA_TRANSPORT_IB) in ipoib_remove_one()
/linux-4.1.27/drivers/gpu/drm/amd/amdkfd/
Dkfd_topology.c749 static struct kobj_type node_type = { variable
832 ret = kobject_init_and_add(dev->kobj_node, &node_type, in kfd_build_sysfs_node_entry()
/linux-4.1.27/drivers/infiniband/hw/usnic/
Dusnic_ib_main.c335 us_ibdev->ib_dev.node_type = RDMA_NODE_USNIC_UDP; in usnic_ib_device_add()
/linux-4.1.27/drivers/infiniband/hw/ocrdma/
Docrdma_main.c240 dev->ibdev.node_type = RDMA_NODE_IB_CA; in ocrdma_register_device()
/linux-4.1.27/drivers/infiniband/hw/ipath/
Dipath_mad.c72 u8 node_type; member
97 nip->node_type = 1; /* channel adapter */ in recv_subn_get_nodeinfo()
Dipath_verbs.c2136 dev->node_type = RDMA_NODE_IB_CA; in ipath_register_ib_device()
/linux-4.1.27/include/rdma/
Dib_verbs.h85 rdma_node_get_transport(enum rdma_node_type node_type);
1676 u8 node_type; member
/linux-4.1.27/net/sunrpc/xprtrdma/
Dsvc_rdma_recvfrom.c120 if (rdma_node_get_transport(xprt->sc_cm_id->device->node_type) == in rdma_read_max_sge()
Dsvc_rdma_transport.c988 switch (rdma_node_get_transport(newxprt->sc_cm_id->device->node_type)) { in svc_rdma_accept()
/linux-4.1.27/drivers/infiniband/hw/cxgb4/
Dprovider.c502 dev->ibdev.node_type = RDMA_NODE_RNIC; in c4iw_register_device()
/linux-4.1.27/drivers/infiniband/hw/amso1100/
Dc2_provider.c796 dev->ibdev.node_type = RDMA_NODE_RNIC; in c2_register_device()
/linux-4.1.27/drivers/infiniband/hw/ehca/
Dehca_main.c464 shca->ib_device.node_type = RDMA_NODE_IB_CA; in ehca_init_device()
/linux-4.1.27/sound/pci/asihpi/
Dhpi.h1154 u16 node_type; /**< what type of node is the control on ? */ member
/linux-4.1.27/drivers/infiniband/hw/mlx5/
Dmain.c1209 dev->ib_dev.node_type = RDMA_NODE_IB_CA; in mlx5_ib_add()
/linux-4.1.27/drivers/infiniband/hw/mthca/
Dmthca_provider.c1278 dev->ib_dev.node_type = RDMA_NODE_IB_CA; in mthca_register_device()
/linux-4.1.27/drivers/infiniband/hw/cxgb3/
Diwch_provider.c1381 dev->ibdev.node_type = RDMA_NODE_RNIC; in iwch_register_device()
/linux-4.1.27/drivers/infiniband/hw/mlx4/
Dmain.c2163 ibdev->ib_dev.node_type = RDMA_NODE_IB_CA; in mlx4_ib_add()
/linux-4.1.27/drivers/infiniband/ulp/srp/
Dib_srp.c3457 if (device->node_type == RDMA_NODE_IB_SWITCH) { in srp_add_one()
/linux-4.1.27/drivers/infiniband/hw/nes/
Dnes_verbs.c3848 nesibdev->ibdev.node_type = RDMA_NODE_RNIC; in nes_init_ofa_device()