/freebsd-current/sys/dev/mthca/ |
H A D | mthca_mad.c | 112 if ((mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED || 113 mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) && 114 mad->mad_hdr.method == IB_MGMT_METHOD_SET) { 115 if (mad->mad_hdr.attr_id == IB_SMP_ATTR_PORT_INFO) { 139 if (mad->mad_hdr.attr_id == IB_SMP_ATTR_PKEY_TABLE) { 151 if ((mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED || 152 mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) && 153 mad->mad_hdr.method == IB_MGMT_METHOD_GET_RESP && 154 mad->mad_hdr.attr_id == IB_SMP_ATTR_NODE_DESC) { 166 int qpn = mad->mad_hdr [all...] |
/freebsd-current/sys/ofed/drivers/infiniband/core/ |
H A D | agent.h | 49 extern void agent_send_response(const struct ib_mad_hdr *mad_hdr, const struct ib_grh *grh,
|
H A D | ib_mad_rmpp.c | 125 memcpy(ack, &data->mad_hdr, msg->hdr_len); 127 ack->mad_hdr.method ^= IB_MGMT_METHOD_RESP; 144 hdr_len = ib_get_mad_data_offset(recv_wc->recv_buf.mad->mad_hdr.mgmt_class); 171 hdr_len = ib_get_mad_data_offset(recv_wc->recv_buf.mad->mad_hdr.mgmt_class); 200 rmpp_mad->mad_hdr.method ^= IB_MGMT_METHOD_RESP; 233 rmpp_mad->mad_hdr.method ^= IB_MGMT_METHOD_RESP; 291 struct ib_mad_hdr *mad_hdr; local 319 mad_hdr = &mad_recv_wc->recv_buf.mad->mad_hdr; 320 rmpp_recv->tid = mad_hdr 338 struct ib_mad_hdr *mad_hdr = &mad_recv_wc->recv_buf.mad->mad_hdr; local 856 struct ib_mad_hdr *mad_hdr = mad_send_wr->send_buf.mad; local [all...] |
H A D | ib_agent.c | 83 void agent_send_response(const struct ib_mad_hdr *mad_hdr, const struct ib_grh *grh, argument 111 if (opa && mad_hdr->base_version != OPA_MGMT_BASE_VERSION) 118 mad_hdr->base_version); 124 memcpy(send_buf->mad, mad_hdr, resp_mad_len);
|
H A D | ib_sa_query.c | 782 mad->mad_hdr.base_version = IB_MGMT_BASE_VERSION; 783 mad->mad_hdr.mgmt_class = IB_MGMT_CLASS_SUBN_ADM; 784 mad->mad_hdr.class_version = IB_SA_CLASS_VERSION; 787 mad->mad_hdr.tid = 939 mad->mad_hdr.method = IB_MGMT_METHOD_GET; 940 mad->mad_hdr.attr_id = cpu_to_be16(IB_SA_ATTR_PATH_REC); 1064 mad->mad_hdr.method = method; 1065 mad->mad_hdr.attr_id = cpu_to_be16(IB_SA_ATTR_SERVICE_REC); 1156 mad->mad_hdr.method = method; 1157 mad->mad_hdr [all...] |
H A D | ib_mad.c | 1702 const struct ib_mad_hdr *mad_hdr) 1708 if (ib_response_mad(mad_hdr)) { 1716 hi_tid = be64_to_cpu(mad_hdr->tid) >> 32; 1735 if (mad_hdr->class_version >= MAX_MGMT_VERSION) 1737 if (!is_vendor_class(mad_hdr->mgmt_class)) { 1739 mad_hdr->class_version].class; 1742 if (convert_mgmt_class(mad_hdr->mgmt_class) >= 1746 mad_hdr->mgmt_class)]; 1748 mad_agent = method->agent[mad_hdr->method & 1752 mad_hdr 1701 find_mad_agent(struct ib_mad_port_private *port_priv, const struct ib_mad_hdr *mad_hdr) argument 1788 validate_mad(const struct ib_mad_hdr *mad_hdr, const struct ib_mad_qp_info *qp_info, bool opa) argument 1823 is_rmpp_data_mad(const struct ib_mad_agent_private *mad_agent_priv, const struct ib_mad_hdr *mad_hdr) argument 1904 const struct ib_mad_hdr *mad_hdr; local 2161 struct ib_mad_hdr *mad_hdr = (struct ib_mad_hdr *)recv->mad; local [all...] |
H A D | ib_sysfs.c | 485 in_mad->mad_hdr.base_version = 1; 486 in_mad->mad_hdr.mgmt_class = IB_MGMT_CLASS_PERF_MGMT; 487 in_mad->mad_hdr.class_version = 1; 488 in_mad->mad_hdr.method = IB_MGMT_METHOD_GET; 489 in_mad->mad_hdr.attr_id = attr;
|
H A D | ib_user_mad.c | 303 offset = ib_get_mad_data_offset(recv_buf->mad->mad_hdr.mgmt_class); 517 hdr_len = ib_get_mad_data_offset(rmpp_mad->mad_hdr.mgmt_class); 519 if (ib_is_mad_class_rmpp(rmpp_mad->mad_hdr.mgmt_class) 571 rmpp_mad->mad_hdr.tid = *tid; 575 && ib_is_mad_class_rmpp(rmpp_mad->mad_hdr.mgmt_class)
|
H A D | ib_cm.c | 3741 switch (mad_recv_wc->recv_buf.mad->mad_hdr.attr_id) { 3783 attr_id = be16_to_cpu(mad_recv_wc->recv_buf.mad->mad_hdr.attr_id);
|
/freebsd-current/sys/ofed/drivers/infiniband/util/ |
H A D | madeye.c | 234 static void print_mad_hdr(struct ib_mad_hdr *mad_hdr) argument 236 printk("MAD version....0x%01x\n", mad_hdr->base_version); 237 printk("Class..........0x%01x (%s)\n", mad_hdr->mgmt_class, 238 get_class_name(mad_hdr->mgmt_class)); 239 printk("Class version..0x%01x\n", mad_hdr->class_version); 240 printk("Method.........0x%01x (%s)\n", mad_hdr->method, 241 get_method_name(mad_hdr->mgmt_class, mad_hdr->method)); 242 printk("Status.........0x%02x\n", be16_to_cpu(mad_hdr->status)); 243 if (mad_hdr 428 is_rmpp_mad(struct ib_mad_hdr *mad_hdr) argument [all...] |
/freebsd-current/sys/dev/mlx4/mlx4_ib/ |
H A D | mlx4_ib_cm.c | 77 if (mad->mad_hdr.attr_id == CM_SIDR_REQ_ATTR_ID) { 81 } else if (mad->mad_hdr.attr_id == CM_SIDR_REP_ATTR_ID) { 92 if (mad->mad_hdr.attr_id == CM_SIDR_REQ_ATTR_ID) { 96 } else if (mad->mad_hdr.attr_id == CM_SIDR_REP_ATTR_ID) { 107 if (mad->mad_hdr.attr_id == CM_SIDR_REP_ATTR_ID) { 111 } else if (mad->mad_hdr.attr_id == CM_SIDR_REQ_ATTR_ID) { 122 if (mad->mad_hdr.attr_id == CM_SIDR_REP_ATTR_ID) { 126 } else if (mad->mad_hdr.attr_id == CM_SIDR_REQ_ATTR_ID) { 324 if (mad->mad_hdr.attr_id == CM_REQ_ATTR_ID || 325 mad->mad_hdr [all...] |
H A D | mlx4_ib_mcg.c | 265 mad.mad_hdr.tid = mlx4_ib_get_new_demux_tid(group->demux); 266 group->last_req_tid = mad.mad_hdr.tid; /* keep it for later validation */ 286 mad.mad_hdr.base_version = 1; 287 mad.mad_hdr.mgmt_class = IB_MGMT_CLASS_SUBN_ADM; 288 mad.mad_hdr.class_version = 2; 289 mad.mad_hdr.method = IB_SA_METHOD_DELETE; 290 mad.mad_hdr.status = cpu_to_be16(0); 291 mad.mad_hdr.class_specific = cpu_to_be16(0); 292 mad.mad_hdr.tid = mlx4_ib_get_new_demux_tid(group->demux); 293 group->last_req_tid = mad.mad_hdr [all...] |
H A D | mlx4_ib_mad.c | 228 if ((mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED || 229 mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) && 230 mad->mad_hdr.method == IB_MGMT_METHOD_SET) 231 switch (mad->mad_hdr.attr_id) { 368 if ((mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED || 369 mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) && 370 mad->mad_hdr.method == IB_MGMT_METHOD_GET_RESP && 371 mad->mad_hdr.attr_id == IB_SMP_ATTR_NODE_DESC) { 381 int qpn = mad->mad_hdr.mgmt_class != IB_MGMT_CLASS_SUBN_LID_ROUTED; 418 switch (be16_to_cpu(sa_mad->mad_hdr [all...] |
/freebsd-current/contrib/ofed/libibumad/ |
H A D | umad_types.h | 149 struct umad_hdr mad_hdr; member in struct:umad_packet 154 struct umad_hdr mad_hdr; member in struct:umad_rmpp_packet 160 struct umad_hdr mad_hdr; member in struct:umad_dm_packet 166 struct umad_hdr mad_hdr; member in struct:umad_vendor_packet
|
H A D | umad_sa.h | 138 struct umad_hdr mad_hdr; member in struct:umad_sa_packet
|
/freebsd-current/sys/dev/mlx5/mlx5_ib/ |
H A D | mlx5_ib_mad.c | 66 if (in_mad->mad_hdr.method == IB_MGMT_METHOD_TRAP && slid == 0) 69 if (in_mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED || 70 in_mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) { 71 if (in_mad->mad_hdr.method != IB_MGMT_METHOD_GET && 72 in_mad->mad_hdr.method != IB_MGMT_METHOD_SET && 73 in_mad->mad_hdr.method != IB_MGMT_METHOD_TRAP_REPRESS) 78 if (in_mad->mad_hdr.attr_id == IB_SMP_ATTR_SM_INFO) 80 } else if (in_mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_PERF_MGMT || 81 in_mad->mad_hdr.mgmt_class == MLX5_IB_VENDOR_CLASS1 || 82 in_mad->mad_hdr [all...] |
/freebsd-current/sys/ofed/include/rdma/ |
H A D | ib_mad.h | 206 struct ib_mad_hdr mad_hdr; member in struct:ib_mad 211 struct ib_mad_hdr mad_hdr; member in struct:opa_mad 216 struct ib_mad_hdr mad_hdr; member in struct:ib_rmpp_mad 222 struct ib_mad_hdr mad_hdr; member in struct:opa_rmpp_mad 228 struct ib_mad_hdr mad_hdr; member in struct:ib_sa_mad 235 struct ib_mad_hdr mad_hdr; member in struct:ib_vendor_mad
|
H A D | ib_pma.h | 58 struct ib_mad_hdr mad_hdr; member in struct:ib_pma_mad
|
/freebsd-current/sys/dev/qlnx/qlnxr/ |
H A D | qlnxr_verbs.h | 133 const struct ib_mad_hdr *mad_hdr,
|
H A D | qlnxr_verbs.c | 5580 const struct ib_mad_hdr *mad_hdr, 5595 // in_mad->mad_hdr.attr_id, in_mad->mad_hdr.base_version, 5596 // in_mad->mad_hdr.attr_mod, in_mad->mad_hdr.class_specific, 5597 // in_mad->mad_hdr.class_version, in_mad->mad_hdr.method, 5598 // in_mad->mad_hdr.mgmt_class, in_mad->mad_hdr.status); 5575 qlnxr_process_mad(struct ib_device *ibdev, int process_mad_flags, u8 port_num, const struct ib_wc *in_wc, const struct ib_grh *in_grh, const struct ib_mad_hdr *mad_hdr, size_t in_mad_size, struct ib_mad_hdr *out_mad, size_t *out_mad_size, u16 *out_mad_pkey_index) argument
|