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()
235 struct ib_smp *in_mad = NULL; in mthca_query_pkey() local
239 in_mad = kzalloc(sizeof *in_mad, GFP_KERNEL); in mthca_query_pkey()
241 if (!in_mad || !out_mad) in mthca_query_pkey()
244 init_query_mad(in_mad); in mthca_query_pkey()
245 in_mad->attr_id = IB_SMP_ATTR_PKEY_TABLE; in mthca_query_pkey()
246 in_mad->attr_mod = cpu_to_be32(index / 32); in mthca_query_pkey()
249 port, NULL, NULL, in_mad, out_mad); in mthca_query_pkey()
256 kfree(in_mad); in mthca_query_pkey()
264 struct ib_smp *in_mad = NULL; in mthca_query_gid() local
268 in_mad = kzalloc(sizeof *in_mad, GFP_KERNEL); in mthca_query_gid()
270 if (!in_mad || !out_mad) in mthca_query_gid()
273 init_query_mad(in_mad); in mthca_query_gid()
274 in_mad->attr_id = IB_SMP_ATTR_PORT_INFO; in mthca_query_gid()
275 in_mad->attr_mod = cpu_to_be32(port); in mthca_query_gid()
278 port, NULL, NULL, in_mad, out_mad); in mthca_query_gid()
284 init_query_mad(in_mad); in mthca_query_gid()
285 in_mad->attr_id = IB_SMP_ATTR_GUID_INFO; in mthca_query_gid()
286 in_mad->attr_mod = cpu_to_be32(index / 8); in mthca_query_gid()
289 port, NULL, NULL, in_mad, out_mad); in mthca_query_gid()
296 kfree(in_mad); in mthca_query_gid()
1219 struct ib_smp *in_mad = NULL; in mthca_init_node_data() local
1223 in_mad = kzalloc(sizeof *in_mad, GFP_KERNEL); in mthca_init_node_data()
1225 if (!in_mad || !out_mad) in mthca_init_node_data()
1228 init_query_mad(in_mad); in mthca_init_node_data()
1229 in_mad->attr_id = IB_SMP_ATTR_NODE_DESC; in mthca_init_node_data()
1232 1, NULL, NULL, in_mad, out_mad); in mthca_init_node_data()
1238 in_mad->attr_id = IB_SMP_ATTR_NODE_INFO; in mthca_init_node_data()
1241 1, NULL, NULL, in_mad, out_mad); in mthca_init_node_data()
1250 kfree(in_mad); in mthca_init_node_data()