Lines Matching refs:mad_hdr
265 mad.mad_hdr.tid = mlx4_ib_get_new_demux_tid(group->demux); in send_join_to_wire()
266 group->last_req_tid = mad.mad_hdr.tid; /* keep it for later validation */ in send_join_to_wire()
286 mad.mad_hdr.base_version = 1; in send_leave_to_wire()
287 mad.mad_hdr.mgmt_class = IB_MGMT_CLASS_SUBN_ADM; in send_leave_to_wire()
288 mad.mad_hdr.class_version = 2; in send_leave_to_wire()
289 mad.mad_hdr.method = IB_SA_METHOD_DELETE; in send_leave_to_wire()
290 mad.mad_hdr.status = cpu_to_be16(0); in send_leave_to_wire()
291 mad.mad_hdr.class_specific = cpu_to_be16(0); in send_leave_to_wire()
292 mad.mad_hdr.tid = mlx4_ib_get_new_demux_tid(group->demux); in send_leave_to_wire()
293 group->last_req_tid = mad.mad_hdr.tid; /* keep it for later validation */ in send_leave_to_wire()
294 mad.mad_hdr.attr_id = cpu_to_be16(IB_SA_ATTR_MC_MEMBER_REC); in send_leave_to_wire()
295 mad.mad_hdr.attr_mod = cpu_to_be32(0); in send_leave_to_wire()
327 mad.mad_hdr.base_version = 1; in send_reply_to_slave()
328 mad.mad_hdr.mgmt_class = IB_MGMT_CLASS_SUBN_ADM; in send_reply_to_slave()
329 mad.mad_hdr.class_version = 2; in send_reply_to_slave()
330 mad.mad_hdr.method = IB_MGMT_METHOD_GET_RESP; in send_reply_to_slave()
331 mad.mad_hdr.status = cpu_to_be16(status); in send_reply_to_slave()
332 mad.mad_hdr.class_specific = cpu_to_be16(0); in send_reply_to_slave()
333 mad.mad_hdr.tid = req_sa_mad->mad_hdr.tid; in send_reply_to_slave()
334 *(u8 *)&mad.mad_hdr.tid = 0; /* resetting tid to 0 */ in send_reply_to_slave()
335 mad.mad_hdr.attr_id = cpu_to_be16(IB_SA_ATTR_MC_MEMBER_REC); in send_reply_to_slave()
336 mad.mad_hdr.attr_mod = cpu_to_be32(0); in send_reply_to_slave()
663 status = be16_to_cpu(group->response_sa_mad.mad_hdr.status); in mlx4_ib_mcg_work_handler()
664 method = group->response_sa_mad.mad_hdr.method; in mlx4_ib_mcg_work_handler()
665 if (group->last_req_tid != group->response_sa_mad.mad_hdr.tid) { in mlx4_ib_mcg_work_handler()
667 be64_to_cpu(group->response_sa_mad.mad_hdr.tid), in mlx4_ib_mcg_work_handler()
718 if (req->sa_mad.mad_hdr.method == IB_SA_METHOD_DELETE) in mlx4_ib_mcg_work_handler()
894 switch (mad->mad_hdr.method) { in mlx4_ib_mcg_demux_handler()
901 if (mad->mad_hdr.method == IB_MGMT_METHOD_GET_RESP) { in mlx4_ib_mcg_demux_handler()
902 __be64 tid = mad->mad_hdr.tid; in mlx4_ib_mcg_demux_handler()
930 port, mad->mad_hdr.method); in mlx4_ib_mcg_demux_handler()
948 switch (sa_mad->mad_hdr.method) { in mlx4_ib_mcg_multiplex_handler()
988 port, slave, sa_mad->mad_hdr.method); in mlx4_ib_mcg_multiplex_handler()
1015 be64_to_cpu(req->sa_mad.mad_hdr.tid)); in sysfs_show_group()
1162 mad->mad_hdr.method = IB_SA_METHOD_DELETE; in build_leave_mad()