Lines Matching refs:in_mad

111 		 const void *in_mad, void *response_mad)  in mlx4_MAD_IFC()  argument
130 memcpy(inbox, in_mad, 256); in mlx4_MAD_IFC()
824 const struct ib_mad *in_mad, struct ib_mad *out_mad) in ib_process_mad() argument
832 if (in_mad->mad_hdr.method == IB_MGMT_METHOD_TRAP && slid == 0) { in ib_process_mad()
833 forward_trap(to_mdev(ibdev), port_num, in_mad); in ib_process_mad()
837 if (in_mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED || in ib_process_mad()
838 in_mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) { in ib_process_mad()
839 if (in_mad->mad_hdr.method != IB_MGMT_METHOD_GET && in ib_process_mad()
840 in_mad->mad_hdr.method != IB_MGMT_METHOD_SET && in ib_process_mad()
841 in_mad->mad_hdr.method != IB_MGMT_METHOD_TRAP_REPRESS) in ib_process_mad()
847 if (in_mad->mad_hdr.attr_id == IB_SMP_ATTR_SM_INFO) in ib_process_mad()
849 } else if (in_mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_PERF_MGMT || in ib_process_mad()
850 in_mad->mad_hdr.mgmt_class == MLX4_IB_VENDOR_CLASS1 || in ib_process_mad()
851 in_mad->mad_hdr.mgmt_class == MLX4_IB_VENDOR_CLASS2 || in ib_process_mad()
852 in_mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_CONG_MGMT) { in ib_process_mad()
853 if (in_mad->mad_hdr.method != IB_MGMT_METHOD_GET && in ib_process_mad()
854 in_mad->mad_hdr.method != IB_MGMT_METHOD_SET) in ib_process_mad()
859 if ((in_mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED || in ib_process_mad()
860 in_mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) && in ib_process_mad()
861 in_mad->mad_hdr.method == IB_MGMT_METHOD_SET && in ib_process_mad()
862 in_mad->mad_hdr.attr_id == IB_SMP_ATTR_PORT_INFO && in ib_process_mad()
870 port_num, in_wc, in_grh, in_mad, out_mad); in ib_process_mad()
875 smp_snoop(ibdev, port_num, in_mad, prev_lid); in ib_process_mad()
882 if (in_mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE) in ib_process_mad()
885 if (in_mad->mad_hdr.method == IB_MGMT_METHOD_TRAP_REPRESS) in ib_process_mad()
939 const struct ib_mad *in_mad, struct ib_mad *out_mad) in iboe_process_mad() argument
946 if (in_mad->mad_hdr.mgmt_class != IB_MGMT_CLASS_PERF_MGMT) in iboe_process_mad()
949 if (in_mad->mad_hdr.attr_id == IB_PMA_CLASS_PORT_INFO) in iboe_process_mad()
973 in_mad->mad_hdr.attr_id); in iboe_process_mad()
1129 struct ib_smp *in_mad = NULL; in handle_slaves_guid_change() local
1136 in_mad = kmalloc(sizeof *in_mad, GFP_KERNEL); in handle_slaves_guid_change()
1138 if (!in_mad || !out_mad) in handle_slaves_guid_change()
1146 memset(in_mad, 0, sizeof *in_mad); in handle_slaves_guid_change()
1149 in_mad->base_version = 1; in handle_slaves_guid_change()
1150 in_mad->mgmt_class = IB_MGMT_CLASS_SUBN_LID_ROUTED; in handle_slaves_guid_change()
1151 in_mad->class_version = 1; in handle_slaves_guid_change()
1152 in_mad->method = IB_MGMT_METHOD_GET; in handle_slaves_guid_change()
1153 in_mad->attr_id = IB_SMP_ATTR_GUID_INFO; in handle_slaves_guid_change()
1154 in_mad->attr_mod = cpu_to_be32(guid_tbl_blk_num + i); in handle_slaves_guid_change()
1158 port_num, NULL, NULL, in_mad, out_mad)) { in handle_slaves_guid_change()
1172 kfree(in_mad); in handle_slaves_guid_change()