Lines Matching refs:in_mad

63 	struct ib_smp *in_mad  = NULL;  in mthca_query_device()  local
68 in_mad = kzalloc(sizeof *in_mad, GFP_KERNEL); in mthca_query_device()
70 if (!in_mad || !out_mad) in mthca_query_device()
77 init_query_mad(in_mad); in mthca_query_device()
78 in_mad->attr_id = IB_SMP_ATTR_NODE_INFO; in mthca_query_device()
81 1, NULL, NULL, in_mad, out_mad); in mthca_query_device()
128 kfree(in_mad); in mthca_query_device()
136 struct ib_smp *in_mad = NULL; in mthca_query_port() local
140 in_mad = kzalloc(sizeof *in_mad, GFP_KERNEL); in mthca_query_port()
142 if (!in_mad || !out_mad) in mthca_query_port()
147 init_query_mad(in_mad); in mthca_query_port()
148 in_mad->attr_id = IB_SMP_ATTR_PORT_INFO; in mthca_query_port()
149 in_mad->attr_mod = cpu_to_be32(port); in mthca_query_port()
152 port, NULL, NULL, in_mad, out_mad); in mthca_query_port()
177 kfree(in_mad); in mthca_query_port()
231 struct ib_smp *in_mad = NULL; in mthca_query_pkey() local
235 in_mad = kzalloc(sizeof *in_mad, GFP_KERNEL); in mthca_query_pkey()
237 if (!in_mad || !out_mad) in mthca_query_pkey()
240 init_query_mad(in_mad); in mthca_query_pkey()
241 in_mad->attr_id = IB_SMP_ATTR_PKEY_TABLE; in mthca_query_pkey()
242 in_mad->attr_mod = cpu_to_be32(index / 32); in mthca_query_pkey()
245 port, NULL, NULL, in_mad, out_mad); in mthca_query_pkey()
252 kfree(in_mad); in mthca_query_pkey()
260 struct ib_smp *in_mad = NULL; in mthca_query_gid() local
264 in_mad = kzalloc(sizeof *in_mad, GFP_KERNEL); in mthca_query_gid()
266 if (!in_mad || !out_mad) in mthca_query_gid()
269 init_query_mad(in_mad); in mthca_query_gid()
270 in_mad->attr_id = IB_SMP_ATTR_PORT_INFO; in mthca_query_gid()
271 in_mad->attr_mod = cpu_to_be32(port); in mthca_query_gid()
274 port, NULL, NULL, in_mad, out_mad); in mthca_query_gid()
280 init_query_mad(in_mad); in mthca_query_gid()
281 in_mad->attr_id = IB_SMP_ATTR_GUID_INFO; in mthca_query_gid()
282 in_mad->attr_mod = cpu_to_be32(index / 8); in mthca_query_gid()
285 port, NULL, NULL, in_mad, out_mad); in mthca_query_gid()
292 kfree(in_mad); in mthca_query_gid()
1211 struct ib_smp *in_mad = NULL; in mthca_init_node_data() local
1215 in_mad = kzalloc(sizeof *in_mad, GFP_KERNEL); in mthca_init_node_data()
1217 if (!in_mad || !out_mad) in mthca_init_node_data()
1220 init_query_mad(in_mad); in mthca_init_node_data()
1221 in_mad->attr_id = IB_SMP_ATTR_NODE_DESC; in mthca_init_node_data()
1224 1, NULL, NULL, in_mad, out_mad); in mthca_init_node_data()
1230 in_mad->attr_id = IB_SMP_ATTR_NODE_INFO; in mthca_init_node_data()
1233 1, NULL, NULL, in_mad, out_mad); in mthca_init_node_data()
1242 kfree(in_mad); in mthca_init_node_data()