Lines Matching refs:mad_hdr

261 	mad.mad_hdr.tid = mlx4_ib_get_new_demux_tid(group->demux);  in send_join_to_wire()
262 group->last_req_tid = mad.mad_hdr.tid; /* keep it for later validation */ in send_join_to_wire()
282 mad.mad_hdr.base_version = 1; in send_leave_to_wire()
283 mad.mad_hdr.mgmt_class = IB_MGMT_CLASS_SUBN_ADM; in send_leave_to_wire()
284 mad.mad_hdr.class_version = 2; in send_leave_to_wire()
285 mad.mad_hdr.method = IB_SA_METHOD_DELETE; in send_leave_to_wire()
286 mad.mad_hdr.status = cpu_to_be16(0); in send_leave_to_wire()
287 mad.mad_hdr.class_specific = cpu_to_be16(0); in send_leave_to_wire()
288 mad.mad_hdr.tid = mlx4_ib_get_new_demux_tid(group->demux); in send_leave_to_wire()
289 group->last_req_tid = mad.mad_hdr.tid; /* keep it for later validation */ in send_leave_to_wire()
290 mad.mad_hdr.attr_id = cpu_to_be16(IB_SA_ATTR_MC_MEMBER_REC); in send_leave_to_wire()
291 mad.mad_hdr.attr_mod = cpu_to_be32(0); in send_leave_to_wire()
323 mad.mad_hdr.base_version = 1; in send_reply_to_slave()
324 mad.mad_hdr.mgmt_class = IB_MGMT_CLASS_SUBN_ADM; in send_reply_to_slave()
325 mad.mad_hdr.class_version = 2; in send_reply_to_slave()
326 mad.mad_hdr.method = IB_MGMT_METHOD_GET_RESP; in send_reply_to_slave()
327 mad.mad_hdr.status = cpu_to_be16(status); in send_reply_to_slave()
328 mad.mad_hdr.class_specific = cpu_to_be16(0); in send_reply_to_slave()
329 mad.mad_hdr.tid = req_sa_mad->mad_hdr.tid; in send_reply_to_slave()
330 *(u8 *)&mad.mad_hdr.tid = 0; /* resetting tid to 0 */ in send_reply_to_slave()
331 mad.mad_hdr.attr_id = cpu_to_be16(IB_SA_ATTR_MC_MEMBER_REC); in send_reply_to_slave()
332 mad.mad_hdr.attr_mod = cpu_to_be32(0); in send_reply_to_slave()
659 status = be16_to_cpu(group->response_sa_mad.mad_hdr.status); in mlx4_ib_mcg_work_handler()
660 method = group->response_sa_mad.mad_hdr.method; in mlx4_ib_mcg_work_handler()
661 if (group->last_req_tid != group->response_sa_mad.mad_hdr.tid) { in mlx4_ib_mcg_work_handler()
663 be64_to_cpu(group->response_sa_mad.mad_hdr.tid), in mlx4_ib_mcg_work_handler()
714 if (req->sa_mad.mad_hdr.method == IB_SA_METHOD_DELETE) in mlx4_ib_mcg_work_handler()
890 switch (mad->mad_hdr.method) { in mlx4_ib_mcg_demux_handler()
897 if (mad->mad_hdr.method == IB_MGMT_METHOD_GET_RESP) { in mlx4_ib_mcg_demux_handler()
898 __be64 tid = mad->mad_hdr.tid; in mlx4_ib_mcg_demux_handler()
926 port, mad->mad_hdr.method); in mlx4_ib_mcg_demux_handler()
944 switch (sa_mad->mad_hdr.method) { in mlx4_ib_mcg_multiplex_handler()
984 port, slave, sa_mad->mad_hdr.method); in mlx4_ib_mcg_multiplex_handler()
1011 be64_to_cpu(req->sa_mad.mad_hdr.tid)); in sysfs_show_group()
1158 mad->mad_hdr.method = IB_SA_METHOD_DELETE; in build_leave_mad()