Home
last modified time | relevance | path

Searched refs:attr_id (Results 1 – 25 of 69) sorted by relevance

123

/freebsd-10-stable/sys/ofed/drivers/infiniband/util/
Dmadeye.c67 static int attr_id = 0; variable
73 module_param(attr_id, int, 0444);
79 MODULE_PARM_DESC(attr_id, "Display add MADs of specified attribute ID (default=0)");
248 be16_to_cpu(mad_hdr->attr_id), in print_mad_hdr()
249 get_sa_attr(be16_to_cpu(mad_hdr->attr_id))); in print_mad_hdr()
252 be16_to_cpu(mad_hdr->attr_id)); in print_mad_hdr()
370 printk("Attr ID........0x%02x (%s)\n", be16_to_cpu(smp->attr_id), in print_smp()
371 get_smp_attr(smp->attr_id)); in print_smp()
407 if (attr_id && be16_to_cpu(hdr->attr_id) != attr_id) in snoop_smi_handler()
419 if (attr_id && be16_to_cpu(mad_recv_wc->recv_buf.mad->mad_hdr.attr_id) != attr_id) in recv_smi_handler()
[all …]
/freebsd-10-stable/contrib/ofed/management/opensm/opensm/
Dosm_req.c65 IN const uint16_t attr_id, in osm_req_get() argument
79 CL_ASSERT(attr_id); in osm_req_get()
101 ib_get_sm_attr_str(attr_id), cl_ntoh16(attr_id), in osm_req_get()
107 attr_id, in osm_req_get()
142 IN const uint16_t attr_id, in osm_req_set() argument
156 CL_ASSERT(attr_id); in osm_req_set()
179 ib_get_sm_attr_str(attr_id), cl_ntoh16(attr_id), in osm_req_set()
185 attr_id, in osm_req_set()
258 smp->attr_id = IB_MAD_ATTR_NOTICE; in osm_send_trap144()
Dosm_sm_mad_ctrl.c222 switch (p_smp->attr_id) { in __osm_sm_mad_ctrl_process_get_resp()
262 cl_ntoh16(p_smp->attr_id)); in __osm_sm_mad_ctrl_process_get_resp()
284 CL_STATUS_MSG(status), cl_ntoh16(p_smp->attr_id)); in __osm_sm_mad_ctrl_process_get_resp()
317 switch (p_smp->attr_id) { in __osm_sm_mad_ctrl_process_get()
326 cl_ntoh16(p_smp->attr_id)); in __osm_sm_mad_ctrl_process_get()
396 switch (p_smp->attr_id) { in __osm_sm_mad_ctrl_process_set()
405 cl_ntoh16(p_smp->attr_id)); in __osm_sm_mad_ctrl_process_set()
485 switch (p_smp->attr_id) { in __osm_sm_mad_ctrl_process_trap()
494 cl_ntoh16(p_smp->attr_id)); in __osm_sm_mad_ctrl_process_trap()
687 (p_smp->attr_id == IB_MAD_ATTR_PORT_INFO || in __osm_sm_mad_ctrl_send_err_cb()
[all …]
Dosm_resp.c149 ib_get_sm_attr_str(p_smp->attr_id), cl_ntoh16(p_smp->attr_id), in osm_resp_send()
Dosm_sa_mad_ctrl.c143 switch (p_sa_mad->attr_id) { in __osm_sa_mad_ctrl_process()
221 cl_ntoh16(p_sa_mad->attr_id)); in __osm_sa_mad_ctrl_process()
245 cl_ntoh16(p_sa_mad->attr_id)); in __osm_sa_mad_ctrl_process()
Dosm_pkey_rcv.c85 CL_ASSERT(p_smp->attr_id == IB_MAD_ATTR_P_KEY_TABLE); in osm_pkey_rcv_process()
Dosm_slvl_map_rcv.c90 CL_ASSERT(p_smp->attr_id == IB_MAD_ATTR_SLVL_TABLE); in osm_slvl_rcv_process()
/freebsd-10-stable/contrib/ofed/management/opensm/libvendor/
Dosm_vendor_ibumad_sa.c314 ib_net16_t attr_id; member
404 p_sa_mad_data->attr_id, /* attr id */ in __osmv_send_sa_req()
504 sa_mad_data.attr_id = p_user_query->attr_id; in osmv_query_sa()
512 sa_mad_data.attr_id = IB_MAD_ATTR_SERVICE_RECORD; in osmv_query_sa()
522 sa_mad_data.attr_id = IB_MAD_ATTR_SERVICE_RECORD; in osmv_query_sa()
533 sa_mad_data.attr_id = IB_MAD_ATTR_SERVICE_RECORD; in osmv_query_sa()
545 sa_mad_data.attr_id = IB_MAD_ATTR_CLASS_PORT_INFO; in osmv_query_sa()
554 sa_mad_data.attr_id = IB_MAD_ATTR_NODE_RECORD; in osmv_query_sa()
565 sa_mad_data.attr_id = IB_MAD_ATTR_PORTINFO_RECORD; in osmv_query_sa()
577 sa_mad_data.attr_id = IB_MAD_ATTR_PORTINFO_RECORD; in osmv_query_sa()
[all …]
Dosm_vendor_mlx_sa.c422 ib_net16_t attr_id; member
517 p_sa_mad_data->attr_id, /* attr id */ in __osmv_send_sa_req()
615 sa_mad_data.attr_id = p_user_query->attr_id; in osmv_query_sa()
625 sa_mad_data.attr_id = IB_MAD_ATTR_SERVICE_RECORD; in osmv_query_sa()
636 sa_mad_data.attr_id = IB_MAD_ATTR_SERVICE_RECORD; in osmv_query_sa()
648 sa_mad_data.attr_id = IB_MAD_ATTR_SERVICE_RECORD; in osmv_query_sa()
661 sa_mad_data.attr_id = IB_MAD_ATTR_CLASS_PORT_INFO; in osmv_query_sa()
673 sa_mad_data.attr_id = IB_MAD_ATTR_NODE_RECORD; in osmv_query_sa()
686 sa_mad_data.attr_id = IB_MAD_ATTR_PORTINFO_RECORD; in osmv_query_sa()
700 sa_mad_data.attr_id = IB_MAD_ATTR_PORTINFO_RECORD; in osmv_query_sa()
[all …]
Dosm_vendor_mlx_sim.c107 cl_ntoh16(p_mad->header.attr_id), in __osmv_ibms_receiver_callback()
296 cl_ntoh16(mad_msg.header.attr_id), in osmv_transport_mad_send()
/freebsd-10-stable/contrib/ofed/management/opensm/include/vendor/
Dosm_vendor_sa_api.h183 ib_net16_t attr_id; member
455 CL_ASSERT(p_sa_mad && p_sa_mad->attr_id == IB_MAD_ATTR_PATH_RECORD); in osmv_get_query_path_rec()
497 CL_ASSERT(p_sa_mad && p_sa_mad->attr_id == IB_MAD_ATTR_PORTINFO_RECORD); in osmv_get_query_portinfo_rec()
539 CL_ASSERT(p_sa_mad && p_sa_mad->attr_id == IB_MAD_ATTR_NODE_RECORD); in osmv_get_query_node_rec()
581 CL_ASSERT(p_sa_mad && p_sa_mad->attr_id == IB_MAD_ATTR_SERVICE_RECORD); in osmv_get_query_svc_rec()
622 CL_ASSERT(p_sa_mad && p_sa_mad->attr_id == IB_MAD_ATTR_MCMEMBER_RECORD); in osmv_get_query_mc_rec()
668 && p_sa_mad->attr_id == IB_MAD_ATTR_INFORM_INFO_RECORD); in osmv_get_query_inform_info_rec()
/freebsd-10-stable/sys/dev/mlx5/mlx5_ib/
Dmlx5_ib_mad.c96 if (in_mad->mad_hdr.attr_id == IB_SMP_ATTR_SM_INFO) in process_mad()
173 ext = in_mad->mad_hdr.attr_id == IB_PMA_PORT_COUNTERS_EXT; in process_pma_cmd()
231 in_mad->attr_id = MLX5_ATTR_EXTENDED_PORT_INFO; in mlx5_query_ext_port_caps()
258 in_mad->attr_id = IB_SMP_ATTR_NODE_INFO; in mlx5_query_smp_attr_node_info_mad_ifc()
345 in_mad->attr_id = IB_SMP_ATTR_NODE_DESC; in mlx5_query_node_desc_mad_ifc()
370 in_mad->attr_id = IB_SMP_ATTR_NODE_INFO; in mlx5_query_node_guid_mad_ifc()
396 in_mad->attr_id = IB_SMP_ATTR_PKEY_TABLE; in mlx5_query_pkey_mad_ifc()
425 in_mad->attr_id = IB_SMP_ATTR_PORT_INFO; in mlx5_query_gids_mad_ifc()
436 in_mad->attr_id = IB_SMP_ATTR_GUID_INFO; in mlx5_query_gids_mad_ifc()
475 in_mad->attr_id = IB_SMP_ATTR_PORT_INFO; in mlx5_query_port_mad_ifc()
[all …]
/freebsd-10-stable/sys/ofed/drivers/infiniband/hw/mlx4/
Dcm.c290 if (mad->mad_hdr.attr_id == CM_REQ_ATTR_ID || in mlx4_ib_multiplex_cm_handler()
291 mad->mad_hdr.attr_id == CM_REP_ATTR_ID) { in mlx4_ib_multiplex_cm_handler()
298 } else if (mad->mad_hdr.attr_id == CM_REJ_ATTR_ID) { in mlx4_ib_multiplex_cm_handler()
312 if (mad->mad_hdr.attr_id == CM_DREQ_ATTR_ID) in mlx4_ib_multiplex_cm_handler()
314 else if (mad->mad_hdr.attr_id == CM_DREP_ATTR_ID) in mlx4_ib_multiplex_cm_handler()
326 if (mad->mad_hdr.attr_id == CM_REQ_ATTR_ID) { in mlx4_ib_demux_cm_handler()
354 if (mad->mad_hdr.attr_id == CM_DREQ_ATTR_ID) in mlx4_ib_demux_cm_handler()
356 else if (mad->mad_hdr.attr_id == CM_REJ_ATTR_ID || in mlx4_ib_demux_cm_handler()
357 mad->mad_hdr.attr_id == CM_DREP_ATTR_ID) { in mlx4_ib_demux_cm_handler()
Dmad.c229 switch (mad->mad_hdr.attr_id) { in smp_snoop()
344 mad->mad_hdr.attr_id == IB_SMP_ATTR_NODE_DESC) { in node_desc_override()
389 switch (be16_to_cpu(sa_mad->mad_hdr.attr_id)) { in mlx4_ib_demux_sa_handler()
696 be16_to_cpu(in_mad->mad_hdr.attr_id)); in ib_process_mad()
725 if (in_mad->mad_hdr.attr_id == IB_SMP_ATTR_SM_INFO) in ib_process_mad()
740 in_mad->mad_hdr.attr_id == IB_SMP_ATTR_PORT_INFO && in ib_process_mad()
772 __be16 attr_id) in edit_counter_ext() argument
774 switch (attr_id) { in edit_counter_ext()
889 pr_warn("Unsupported attr_id 0x%x\n", attr_id); in edit_counter_ext()
896 __be16 attr_id) in edit_counter() argument
[all …]
/freebsd-10-stable/sys/ofed/drivers/infiniband/hw/mthca/
Dmthca_mad.c115 if (mad->mad_hdr.attr_id == IB_SMP_ATTR_PORT_INFO) { in smp_snoop()
139 if (mad->mad_hdr.attr_id == IB_SMP_ATTR_PKEY_TABLE) { in smp_snoop()
154 mad->mad_hdr.attr_id == IB_SMP_ATTR_NODE_DESC) { in node_desc_override()
231 if (in_mad->mad_hdr.attr_id == IB_SMP_ATTR_SM_INFO || in mthca_process_mad()
232 ((in_mad->mad_hdr.attr_id & IB_SMP_ATTR_VENDOR_MASK) == in mthca_process_mad()
246 in_mad->mad_hdr.attr_id == IB_SMP_ATTR_PORT_INFO && in mthca_process_mad()
/freebsd-10-stable/sbin/camcontrol/
Dattrib.c71 int attr_id;
437 int attr_id; in scsiattrib() local
455 attr_id = scsi_2btoul(cur_id); in scsiattrib()
458 && (attr_id != attr_num)) in scsiattrib()
461 entry = scsi_get_attrib_entry(attr_id); in scsiattrib()
462 fprintf(stdout, "0x%.4x", attr_id); in scsiattrib()
/freebsd-10-stable/contrib/ofed/management/opensm/osmtest/
Dosmt_inform.c196 p_sa_mad->attr_id = IB_MAD_ATTR_INFORM_INFO; in osmt_reg_unreg_inform_info()
331 if (p_sa_mad->attr_id != IB_MAD_ATTR_INFORM_INFO) { in osmt_reg_unreg_inform_info()
334 cl_ntoh16(p_sa_mad->attr_id)); in osmt_reg_unreg_inform_info()
387 p_smp->attr_id = IB_MAD_ATTR_NOTICE; in osmt_send_trap_wait_for_forward()
466 if (p_sa_mad->attr_id == IB_MAD_ATTR_NOTICE) { in osmt_send_trap_wait_for_forward()
472 cl_ntoh16(p_sa_mad->attr_id)); in osmt_send_trap_wait_for_forward()
532 if (p_sa_mad->attr_id == IB_MAD_ATTR_NOTICE) { in osmt_trap_wait()
539 cl_ntoh16(p_sa_mad->attr_id)); in osmt_trap_wait()
Dosmt_service.c112 user.attr_id = IB_MAD_ATTR_SERVICE_RECORD; in osmt_register_service()
220 user.attr_id = IB_MAD_ATTR_SERVICE_RECORD; in osmt_register_service_with_full_key()
354 user.attr_id = IB_MAD_ATTR_SERVICE_RECORD; in osmt_register_service_with_data()
498 user.attr_id = IB_MAD_ATTR_SERVICE_RECORD; in osmt_get_service_by_id_and_name()
622 user.attr_id = IB_MAD_ATTR_SERVICE_RECORD; in osmt_get_service_by_id()
757 user.attr_id = IB_MAD_ATTR_SERVICE_RECORD; in osmt_get_service_by_name_and_key()
1119 user.attr_id = IB_MAD_ATTR_SERVICE_RECORD; in osmt_delete_service_by_name()
/freebsd-10-stable/contrib/ofed/management/infiniband-diags/src/
Dsmpdump.c93 uint16_t attr_id; member
117 smp->attr_id = (uint16_t)htons((uint16_t)attr); in drsmp_get_init()
143 smp->attr_id = (uint16_t)htons((uint16_t)attr); in smp_get_init()
158 smp->attr_id = (uint16_t)htons((uint16_t)attr); in drsmp_set_init()
/freebsd-10-stable/contrib/binutils/binutils/
Dsysinfo.y50 %type <s> attr_desc attr_id attr_type
254 '(' attr_desc '(' attr_type attr_size ')' attr_id
377 attr_id:
/freebsd-10-stable/sys/ofed/drivers/infiniband/core/
Dsa.h56 int ib_sa_pack_attr(void *dst, void *src, int attr_id);
58 int ib_sa_unpack_attr(void *dst, void *src, int attr_id);
Dsa_query.c489 int ib_sa_pack_attr(void *dst, void *src, int attr_id) in ib_sa_pack_attr() argument
491 switch (attr_id) { in ib_sa_pack_attr()
501 int ib_sa_unpack_attr(void *dst, void *src, int attr_id) in ib_sa_unpack_attr() argument
503 switch (attr_id) { in ib_sa_unpack_attr()
848 mad->mad_hdr.attr_id = cpu_to_be16(IB_SA_ATTR_PATH_REC); in ib_sa_path_rec_query()
969 mad->mad_hdr.attr_id = cpu_to_be16(IB_SA_ATTR_SERVICE_REC); in ib_sa_service_rec_query()
1061 mad->mad_hdr.attr_id = cpu_to_be16(IB_SA_ATTR_MC_MEMBER_REC); in ib_sa_mcmember_rec_query()
1197 mad->mad_hdr.attr_id = cpu_to_be16(IB_SA_ATTR_INFORM_INFO); in ib_sa_informinfo_query()
/freebsd-10-stable/contrib/ofed/management/opensm/include/opensm/
Dosm_sm.h407 IN const uint16_t attr_id,
455 IN const uint16_t attr_id,
/freebsd-10-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/
Dsa.c963 sa_attr_type_t attr_id; in sa_attr_table_setup() local
965 attr_id = sa->sa_user_table[i]; in sa_attr_table_setup()
966 if (tb[attr_id].sa_name) in sa_attr_table_setup()
969 tb[attr_id].sa_length = reg_attrs[i].sa_length; in sa_attr_table_setup()
970 tb[attr_id].sa_byteswap = reg_attrs[i].sa_byteswap; in sa_attr_table_setup()
971 tb[attr_id].sa_attr = attr_id; in sa_attr_table_setup()
972 tb[attr_id].sa_name = in sa_attr_table_setup()
974 (void) strlcpy(tb[attr_id].sa_name, reg_attrs[i].sa_name, in sa_attr_table_setup()
/freebsd-10-stable/sys/ofed/include/rdma/
Dib_smi.h55 __be16 attr_id; member

123