Lines Matching refs:in_mad
56 struct ib_smp *in_mad; in mthca_query_device() local
64 in_mad = kzalloc(sizeof *in_mad, GFP_KERNEL); in mthca_query_device()
66 if (!in_mad || !out_mad) in mthca_query_device()
73 ib_init_query_mad(in_mad); in mthca_query_device()
74 in_mad->attr_id = IB_SMP_ATTR_NODE_INFO; in mthca_query_device()
77 1, NULL, NULL, in_mad, out_mad); in mthca_query_device()
116 kfree(in_mad); in mthca_query_device()
124 struct ib_smp *in_mad; in mthca_query_port() local
128 in_mad = kzalloc(sizeof *in_mad, GFP_KERNEL); in mthca_query_port()
130 if (!in_mad || !out_mad) in mthca_query_port()
135 ib_init_query_mad(in_mad); in mthca_query_port()
136 in_mad->attr_id = IB_SMP_ATTR_PORT_INFO; in mthca_query_port()
137 in_mad->attr_mod = cpu_to_be32(port); in mthca_query_port()
140 port, NULL, NULL, in_mad, out_mad); in mthca_query_port()
165 kfree(in_mad); in mthca_query_port()
220 struct ib_smp *in_mad; in mthca_query_pkey() local
224 in_mad = kzalloc(sizeof *in_mad, GFP_KERNEL); in mthca_query_pkey()
226 if (!in_mad || !out_mad) in mthca_query_pkey()
229 ib_init_query_mad(in_mad); in mthca_query_pkey()
230 in_mad->attr_id = IB_SMP_ATTR_PKEY_TABLE; in mthca_query_pkey()
231 in_mad->attr_mod = cpu_to_be32(index / 32); in mthca_query_pkey()
234 port, NULL, NULL, in_mad, out_mad); in mthca_query_pkey()
241 kfree(in_mad); in mthca_query_pkey()
249 struct ib_smp *in_mad; in mthca_query_gid() local
253 in_mad = kzalloc(sizeof *in_mad, GFP_KERNEL); in mthca_query_gid()
255 if (!in_mad || !out_mad) in mthca_query_gid()
258 ib_init_query_mad(in_mad); in mthca_query_gid()
259 in_mad->attr_id = IB_SMP_ATTR_PORT_INFO; in mthca_query_gid()
260 in_mad->attr_mod = cpu_to_be32(port); in mthca_query_gid()
263 port, NULL, NULL, in_mad, out_mad); in mthca_query_gid()
269 ib_init_query_mad(in_mad); in mthca_query_gid()
270 in_mad->attr_id = IB_SMP_ATTR_GUID_INFO; in mthca_query_gid()
271 in_mad->attr_mod = cpu_to_be32(index / 8); in mthca_query_gid()
274 port, NULL, NULL, in_mad, out_mad); in mthca_query_gid()
281 kfree(in_mad); in mthca_query_gid()
993 struct ib_smp *in_mad; in mthca_init_node_data() local
997 in_mad = kzalloc(sizeof *in_mad, GFP_KERNEL); in mthca_init_node_data()
999 if (!in_mad || !out_mad) in mthca_init_node_data()
1002 ib_init_query_mad(in_mad); in mthca_init_node_data()
1003 in_mad->attr_id = IB_SMP_ATTR_NODE_DESC; in mthca_init_node_data()
1006 1, NULL, NULL, in_mad, out_mad); in mthca_init_node_data()
1012 in_mad->attr_id = IB_SMP_ATTR_NODE_INFO; in mthca_init_node_data()
1015 1, NULL, NULL, in_mad, out_mad); in mthca_init_node_data()
1024 kfree(in_mad); in mthca_init_node_data()