/freebsd/contrib/ofed/libibumad/ |
H A D | umad_str.c | 191 static const char *umad_common_attr_str(__be16 attr_id) in umad_common_attr_str() argument 193 switch(be16toh(attr_id)) { in umad_common_attr_str() 205 static const char * umad_sm_attr_str(__be16 attr_id) in umad_sm_attr_str() argument 207 switch(be16toh(attr_id)) { in umad_sm_attr_str() 247 return (umad_common_attr_str(attr_id)); in umad_sm_attr_str() 251 static const char * umad_sa_attr_str(__be16 attr_id) in umad_sa_attr_str() argument 253 switch(be16toh(attr_id)) { in umad_sa_attr_str() 301 return (umad_common_attr_str(attr_id)); in umad_sa_attr_str() 305 static const char * umad_cm_attr_str(__be16 attr_id) in umad_cm_attr_str() argument 307 switch(be16toh(attr_id)) { in umad_cm_attr_str() [all …]
|
H A D | umad_str.h | 51 const char * umad_attribute_str(uint8_t mgmt_class, __be16 attr_id);
|
/freebsd/sys/ofed/drivers/infiniband/util/ |
H A D | madeye.c | 69 static int attr_id = 0; variable 75 module_param(attr_id, int, 0444); 81 MODULE_PARM_DESC(attr_id, "Display add MADs of specified attribute ID (default=0)"); 250 be16_to_cpu(mad_hdr->attr_id), in print_mad_hdr() 251 get_sa_attr(be16_to_cpu(mad_hdr->attr_id))); in print_mad_hdr() 254 be16_to_cpu(mad_hdr->attr_id)); in print_mad_hdr() 372 printk("Attr ID........0x%02x (%s)\n", be16_to_cpu(smp->attr_id), in print_smp() 373 get_smp_attr(smp->attr_id)); in print_smp() 409 if (attr_id && be16_to_cpu(hdr->attr_id) != attr_id) in snoop_smi_handler() 421 if (attr_id && be16_to_cpu(mad_recv_wc->recv_buf.mad->mad_hdr.attr_id) != attr_id) in recv_smi_handler() [all …]
|
/freebsd/contrib/ofed/opensm/opensm/ |
H A D | osm_sm_mad_ctrl.c | 222 switch (p_smp->attr_id) { in sm_mad_ctrl_process_get_resp() 266 cl_ntoh16(p_smp->attr_id), in sm_mad_ctrl_process_get_resp() 267 ib_get_sm_attr_str(p_smp->attr_id)); in sm_mad_ctrl_process_get_resp() 287 CL_STATUS_MSG(status), cl_ntoh16(p_smp->attr_id), in sm_mad_ctrl_process_get_resp() 288 ib_get_sm_attr_str(p_smp->attr_id)); in sm_mad_ctrl_process_get_resp() 320 switch (p_smp->attr_id) { in sm_mad_ctrl_process_get() 328 cl_ntoh16(p_smp->attr_id)); in sm_mad_ctrl_process_get() 389 switch (p_smp->attr_id) { in sm_mad_ctrl_process_set() 397 cl_ntoh16(p_smp->attr_id), in sm_mad_ctrl_process_set() 398 ib_get_sm_attr_str(p_smp->attr_id)); in sm_mad_ctrl_process_set() [all …]
|
H A D | osm_req.c | 157 IN ib_net16_t attr_id, IN ib_net32_t attr_mod, in osm_req_get() argument 172 CL_ASSERT(attr_id); in osm_req_get() 206 ib_get_sm_attr_str(attr_id), cl_ntoh16(attr_id), in osm_req_get() 210 tid, attr_id, attr_mod, p_path->hop_count, in osm_req_get() 241 IN ib_net16_t attr_id, IN ib_net32_t attr_mod, in osm_prepare_req_set() argument 255 CL_ASSERT(attr_id); in osm_prepare_req_set() 289 ib_get_sm_attr_str(attr_id), cl_ntoh16(attr_id), in osm_prepare_req_set() 293 tid, attr_id, attr_mod, p_path->hop_count, in osm_prepare_req_set() 332 IN ib_net16_t attr_id, IN ib_net32_t attr_mod, in osm_req_set() argument 340 p_madw = osm_prepare_req_set(sm, p_path, p_payload, payload_size, attr_id, in osm_req_set() [all …]
|
H A D | osm_sa_mad_ctrl.c | 154 switch (p_sa_mad->attr_id) { in sa_mad_ctrl_process() 232 cl_ntoh16(p_sa_mad->attr_id), in sa_mad_ctrl_process() 233 ib_get_sa_attr_str(p_sa_mad->attr_id)); in sa_mad_ctrl_process() 254 cl_ntoh16(p_sa_mad->attr_id), in sa_mad_ctrl_process() 255 ib_get_sa_attr_str(p_sa_mad->attr_id)); in sa_mad_ctrl_process() 351 p_sa_mad->method, cl_ntoh16(p_sa_mad->attr_id), in sa_mad_ctrl_rcv_callback() 352 ib_get_sa_attr_str(p_sa_mad->attr_id)); in sa_mad_ctrl_rcv_callback() 438 ib_get_sa_attr_str(p_madw->p_mad->attr_id), in sa_mad_ctrl_send_err_callback()
|
H A D | osm_vl15intf.c | 64 ib_net16_t attr_id; in vl15_send_mad() local 69 attr_id = p_smp->attr_id; in vl15_send_mad() 125 cl_ntoh16(attr_id), ib_get_sm_attr_str(attr_id)); in vl15_send_mad()
|
H A D | osm_congestion_control.c | 68 ib_net16_t attr_id, in cc_mad_post() argument 94 p_cc_mad->header.attr_id = attr_id; in cc_mad_post() 462 cl_ntoh16(p_mad->status), cl_ntoh16(p_mad->attr_id), in cc_rcv_mad() 492 if (p_cc_mad->header.attr_id == IB_MAD_ATTR_SW_CONG_SETTING) { in cc_rcv_mad() 498 else if (p_cc_mad->header.attr_id == IB_MAD_ATTR_CA_CONG_SETTING) { in cc_rcv_mad() 504 else if (p_cc_mad->header.attr_id == IB_MAD_ATTR_CC_TBL) { in cc_rcv_mad() 515 cl_ntoh16(p_cc_mad->header.attr_id)); in cc_rcv_mad() 699 p_madw->p_mad->attr_id, in cc_mad_send_err_callback()
|
H A D | osm_resp.c | 144 ib_get_sm_attr_str(p_smp->attr_id), cl_ntoh16(p_smp->attr_id), in osm_resp_send()
|
/freebsd/sys/dev/mlx4/mlx4_ib/ |
H A D | mlx4_ib_cm.c | 77 if (mad->mad_hdr.attr_id == CM_SIDR_REQ_ATTR_ID) { in set_local_comm_id() 81 } else if (mad->mad_hdr.attr_id == CM_SIDR_REP_ATTR_ID) { in set_local_comm_id() 92 if (mad->mad_hdr.attr_id == CM_SIDR_REQ_ATTR_ID) { in get_local_comm_id() 96 } else if (mad->mad_hdr.attr_id == CM_SIDR_REP_ATTR_ID) { in get_local_comm_id() 107 if (mad->mad_hdr.attr_id == CM_SIDR_REP_ATTR_ID) { in set_remote_comm_id() 111 } else if (mad->mad_hdr.attr_id == CM_SIDR_REQ_ATTR_ID) { in set_remote_comm_id() 122 if (mad->mad_hdr.attr_id == CM_SIDR_REP_ATTR_ID) { in get_remote_comm_id() 126 } else if (mad->mad_hdr.attr_id == CM_SIDR_REQ_ATTR_ID) { in get_remote_comm_id() 324 if (mad->mad_hdr.attr_id == CM_REQ_ATTR_ID || in mlx4_ib_multiplex_cm_handler() 325 mad->mad_hdr.attr_id == CM_REP_ATTR_ID || in mlx4_ib_multiplex_cm_handler() [all …]
|
H A D | mlx4_ib_mad.c | 231 switch (mad->mad_hdr.attr_id) { in smp_snoop() 371 mad->mad_hdr.attr_id == IB_SMP_ATTR_NODE_DESC) { in node_desc_override() 418 switch (be16_to_cpu(sa_mad->mad_hdr.attr_id)) { in mlx4_ib_demux_sa_handler() 780 be16_to_cpu(in_mad->mad_hdr.attr_id)); in ib_process_mad() 808 if (in_mad->mad_hdr.attr_id == IB_SMP_ATTR_SM_INFO) in ib_process_mad() 823 in_mad->mad_hdr.attr_id == IB_SMP_ATTR_PORT_INFO && in ib_process_mad() 854 __be16 attr_id) in edit_counter() argument 856 switch (attr_id) { in edit_counter() 911 if (in_mad->mad_hdr.attr_id == IB_PMA_CLASS_PORT_INFO) in iboe_process_mad() 936 in_mad->mad_hdr.attr_id); in iboe_process_mad() [all …]
|
/freebsd/contrib/ofed/opensm/libvendor/ |
H A D | osm_vendor_ibumad_sa.c | 301 ib_net16_t attr_id; member 390 p_sa_mad_data->attr_id, /* attr id */ in __osmv_send_sa_req() 518 sa_mad_data.attr_id = p_user_query->attr_id; in osmv_query_sa() 526 sa_mad_data.attr_id = IB_MAD_ATTR_SERVICE_RECORD; in osmv_query_sa() 534 sa_mad_data.attr_id = IB_MAD_ATTR_SERVICE_RECORD; in osmv_query_sa() 543 sa_mad_data.attr_id = IB_MAD_ATTR_SERVICE_RECORD; in osmv_query_sa() 553 sa_mad_data.attr_id = IB_MAD_ATTR_CLASS_PORT_INFO; in osmv_query_sa() 560 sa_mad_data.attr_id = IB_MAD_ATTR_NODE_RECORD; in osmv_query_sa() 569 sa_mad_data.attr_id = IB_MAD_ATTR_PORTINFO_RECORD; in osmv_query_sa() 579 sa_mad_data.attr_id = IB_MAD_ATTR_PORTINFO_RECORD; in osmv_query_sa() [all …]
|
H A D | osm_vendor_mlx_sa.c | 390 ib_net16_t attr_id; member 482 p_sa_mad_data->attr_id, /* attr id */ in __osmv_send_sa_req() 594 sa_mad_data.attr_id = p_user_query->attr_id; in osmv_query_sa() 602 sa_mad_data.attr_id = IB_MAD_ATTR_SERVICE_RECORD; in osmv_query_sa() 610 sa_mad_data.attr_id = IB_MAD_ATTR_SERVICE_RECORD; in osmv_query_sa() 619 sa_mad_data.attr_id = IB_MAD_ATTR_SERVICE_RECORD; in osmv_query_sa() 629 sa_mad_data.attr_id = IB_MAD_ATTR_CLASS_PORT_INFO; in osmv_query_sa() 636 sa_mad_data.attr_id = IB_MAD_ATTR_NODE_RECORD; in osmv_query_sa() 645 sa_mad_data.attr_id = IB_MAD_ATTR_PORTINFO_RECORD; in osmv_query_sa() 655 sa_mad_data.attr_id = IB_MAD_ATTR_PORTINFO_RECORD; in osmv_query_sa() [all …]
|
H A D | osm_vendor_ibumad.c | 113 cl_ntoh16(p_madw->p_mad->attr_id), in log_send_error() 126 cl_ntoh16(p_madw->p_mad->attr_id), in log_send_error() 415 cl_ntoh16(p_mad->attr_id), in umad_receiver() 445 cl_ntoh16(p_mad->attr_id), in umad_receiver() 463 (p_mad->attr_id != p_req_mad->attr_id && in umad_receiver() 465 p_req_mad->attr_id == in umad_receiver() 467 p_mad->attr_id == IB_MAD_ATTR_PATH_RECORD)) || in umad_receiver() 477 cl_ntoh16(p_req_mad->attr_id), in umad_receiver() 480 cl_ntoh16(p_mad->attr_id), in umad_receiver() 1202 p_mad->method, cl_ntoh16(p_mad->attr_id), tid, ret);
|
/freebsd/contrib/ofed/opensm/include/vendor/ |
H A D | osm_vendor_sa_api.h | 183 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/contrib/wpa/src/eap_common/ |
H A D | eap_sake_common.c | 19 u8 attr_id, u8 len, const u8 *data) in eap_sake_parse_add_attr() argument 23 switch (attr_id) { in eap_sake_parse_add_attr() 133 if (attr_id < 128) { in eap_sake_parse_add_attr() 135 " attribute %d", attr_id); in eap_sake_parse_add_attr() 139 "attribute %d", attr_id); in eap_sake_parse_add_attr() 167 u8 attr_id, attr_len; in eap_sake_parse_attributes() local 174 attr_id = *pos++; in eap_sake_parse_attributes() 190 if (eap_sake_parse_add_attr(attr, attr_id, attr_len, pos)) in eap_sake_parse_attributes()
|
/freebsd/sys/dev/mlx5/mlx5_ib/ |
H A D | mlx5_ib_mad.c | 78 if (in_mad->mad_hdr.attr_id == IB_SMP_ATTR_SM_INFO) in process_mad() 189 if (in_mad->mad_hdr.attr_id == IB_PMA_CLASS_PORT_INFO) { in process_pma_cmd() 197 if (in_mad->mad_hdr.attr_id == IB_PMA_PORT_COUNTERS_EXT) { in process_pma_cmd() 272 in_mad->attr_id = MLX5_ATTR_EXTENDED_PORT_INFO; in mlx5_query_ext_port_caps() 299 in_mad->attr_id = IB_SMP_ATTR_NODE_INFO; in mlx5_query_mad_ifc_smp_attr_node_info() 386 in_mad->attr_id = IB_SMP_ATTR_NODE_DESC; in mlx5_query_mad_ifc_node_desc() 411 in_mad->attr_id = IB_SMP_ATTR_NODE_INFO; in mlx5_query_mad_ifc_node_guid() 437 in_mad->attr_id = IB_SMP_ATTR_PKEY_TABLE; in mlx5_query_mad_ifc_pkey() 466 in_mad->attr_id = IB_SMP_ATTR_PORT_INFO; in mlx5_query_mad_ifc_gids() 477 in_mad->attr_id = IB_SMP_ATTR_GUID_INFO; in mlx5_query_mad_ifc_gids() [all …]
|
/freebsd/sbin/camcontrol/ |
H A D | attrib.c | 69 int attr_id; 427 int attr_id; in scsiattrib() local 445 attr_id = scsi_2btoul(cur_id); in scsiattrib() 448 && (attr_id != attr_num)) in scsiattrib() 451 entry = scsi_get_attrib_entry(attr_id); in scsiattrib() 452 fprintf(stdout, "0x%.4x", attr_id); in scsiattrib()
|
/freebsd/sys/dev/mthca/ |
H A D | mthca_mad.c | 115 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() 241 if (in_mad->mad_hdr.attr_id == IB_SMP_ATTR_SM_INFO || in mthca_process_mad() 242 ((in_mad->mad_hdr.attr_id & IB_SMP_ATTR_VENDOR_MASK) == in mthca_process_mad() 256 in_mad->mad_hdr.attr_id == IB_SMP_ATTR_PORT_INFO && in mthca_process_mad()
|
/freebsd/contrib/ofed/infiniband-diags/src/ |
H A D | smpdump.c | 70 uint16_t attr_id; member 93 smp->attr_id = (uint16_t) htons((uint16_t) attr); in drsmp_get_init() 118 smp->attr_id = (uint16_t) htons((uint16_t) attr); in smp_get_init() 132 smp->attr_id = (uint16_t) htons((uint16_t) attr); in drsmp_set_init()
|
H A D | vendstat.c | 179 uint8_t class, uint8_t method, uint16_t attr_id, in do_vendor() argument 188 call.attrid = attr_id; in do_vendor() 192 fprintf(stderr,"vendstat: method %u, attribute %u failure\n", method, attr_id); in do_vendor()
|
/freebsd/contrib/ofed/opensm/include/opensm/ |
H A D | osm_sm.h | 404 IN ib_net16_t attr_id, IN ib_net32_t attr_mod, 477 IN size_t payload_size, IN ib_net16_t attr_id, 531 IN size_t payload_size, IN ib_net16_t attr_id,
|
/freebsd/contrib/wpa/src/common/ |
H A D | dpp_pkex.c | 315 static int dpp_pkex_identifier_match(const u8 *attr_id, u16 attr_id_len, in dpp_pkex_identifier_match() argument 318 if (!attr_id && identifier) { in dpp_pkex_identifier_match() 324 if (attr_id && !identifier) { in dpp_pkex_identifier_match() 330 if (attr_id && identifier && in dpp_pkex_identifier_match() 332 os_memcmp(identifier, attr_id, attr_id_len) != 0)) { in dpp_pkex_identifier_match() 349 const u8 *attr_group, *attr_id, *attr_key; in dpp_pkex_rx_exchange_req() local 401 attr_id = dpp_get_attr(buf, len, DPP_ATTR_CODE_IDENTIFIER, in dpp_pkex_rx_exchange_req() 403 if (!dpp_pkex_identifier_match(attr_id, attr_id_len, identifier)) in dpp_pkex_rx_exchange_req() 701 const u8 *attr_status, *attr_id, *attr_key, *attr_group; in dpp_pkex_rx_exchange_resp() local 781 attr_id = dpp_get_attr(buf, buflen, DPP_ATTR_CODE_IDENTIFIER, in dpp_pkex_rx_exchange_resp() [all …]
|
/freebsd/contrib/wpa/wpa_supplicant/doc/docbook/ |
H A D | eapol_test.sgml | 159 attr_id:syntax:value, or attr_id alone. attr_id should be the numeric 162 to send. When attr_id is given alone, NULL is used as the attribute
|
/freebsd/sys/ofed/include/uapi/rdma/ |
H A D | rdma_user_ioctl_cmds.h | 60 __u16 attr_id; /* command specific type attribute */ member
|