Lines Matching refs:in_mad
63 struct ib_smp *in_mad = NULL; in mthca_query_device() local
71 in_mad = kzalloc(sizeof *in_mad, GFP_KERNEL); in mthca_query_device()
73 if (!in_mad || !out_mad) in mthca_query_device()
80 init_query_mad(in_mad); in mthca_query_device()
81 in_mad->attr_id = IB_SMP_ATTR_NODE_INFO; in mthca_query_device()
84 1, NULL, NULL, in_mad, out_mad); in mthca_query_device()
132 kfree(in_mad); in mthca_query_device()
140 struct ib_smp *in_mad = NULL; in mthca_query_port() local
144 in_mad = kzalloc(sizeof *in_mad, GFP_KERNEL); in mthca_query_port()
146 if (!in_mad || !out_mad) in mthca_query_port()
151 init_query_mad(in_mad); in mthca_query_port()
152 in_mad->attr_id = IB_SMP_ATTR_PORT_INFO; in mthca_query_port()
153 in_mad->attr_mod = cpu_to_be32(port); in mthca_query_port()
156 port, NULL, NULL, in_mad, out_mad); in mthca_query_port()
181 kfree(in_mad); in mthca_query_port()
236 struct ib_smp *in_mad = NULL; in mthca_query_pkey() local
240 in_mad = kzalloc(sizeof *in_mad, GFP_KERNEL); in mthca_query_pkey()
242 if (!in_mad || !out_mad) in mthca_query_pkey()
245 init_query_mad(in_mad); in mthca_query_pkey()
246 in_mad->attr_id = IB_SMP_ATTR_PKEY_TABLE; in mthca_query_pkey()
247 in_mad->attr_mod = cpu_to_be32(index / 32); in mthca_query_pkey()
250 port, NULL, NULL, in_mad, out_mad); in mthca_query_pkey()
257 kfree(in_mad); in mthca_query_pkey()
265 struct ib_smp *in_mad = NULL; in mthca_query_gid() local
269 in_mad = kzalloc(sizeof *in_mad, GFP_KERNEL); in mthca_query_gid()
271 if (!in_mad || !out_mad) in mthca_query_gid()
274 init_query_mad(in_mad); in mthca_query_gid()
275 in_mad->attr_id = IB_SMP_ATTR_PORT_INFO; in mthca_query_gid()
276 in_mad->attr_mod = cpu_to_be32(port); in mthca_query_gid()
279 port, NULL, NULL, in_mad, out_mad); in mthca_query_gid()
285 init_query_mad(in_mad); in mthca_query_gid()
286 in_mad->attr_id = IB_SMP_ATTR_GUID_INFO; in mthca_query_gid()
287 in_mad->attr_mod = cpu_to_be32(index / 8); in mthca_query_gid()
290 port, NULL, NULL, in_mad, out_mad); in mthca_query_gid()
297 kfree(in_mad); in mthca_query_gid()
1071 struct ib_smp *in_mad = NULL; in mthca_init_node_data() local
1075 in_mad = kzalloc(sizeof *in_mad, GFP_KERNEL); in mthca_init_node_data()
1077 if (!in_mad || !out_mad) in mthca_init_node_data()
1080 init_query_mad(in_mad); in mthca_init_node_data()
1081 in_mad->attr_id = IB_SMP_ATTR_NODE_DESC; in mthca_init_node_data()
1084 1, NULL, NULL, in_mad, out_mad); in mthca_init_node_data()
1090 in_mad->attr_id = IB_SMP_ATTR_NODE_INFO; in mthca_init_node_data()
1093 1, NULL, NULL, in_mad, out_mad); in mthca_init_node_data()
1102 kfree(in_mad); in mthca_init_node_data()