Lines Matching refs:out_mad

64 	struct ib_smp *out_mad = NULL;  in mthca_query_device()  local
72 out_mad = kmalloc(sizeof *out_mad, GFP_KERNEL); in mthca_query_device()
73 if (!in_mad || !out_mad) in mthca_query_device()
84 1, NULL, NULL, in_mad, out_mad); in mthca_query_device()
89 props->vendor_id = be32_to_cpup((__be32 *) (out_mad->data + 36)) & in mthca_query_device()
91 props->vendor_part_id = be16_to_cpup((__be16 *) (out_mad->data + 30)); in mthca_query_device()
92 props->hw_ver = be32_to_cpup((__be32 *) (out_mad->data + 32)); in mthca_query_device()
93 memcpy(&props->sys_image_guid, out_mad->data + 4, 8); in mthca_query_device()
133 kfree(out_mad); in mthca_query_device()
141 struct ib_smp *out_mad = NULL; in mthca_query_port() local
145 out_mad = kmalloc(sizeof *out_mad, GFP_KERNEL); in mthca_query_port()
146 if (!in_mad || !out_mad) in mthca_query_port()
156 port, NULL, NULL, in_mad, out_mad); in mthca_query_port()
160 props->lid = be16_to_cpup((__be16 *) (out_mad->data + 16)); in mthca_query_port()
161 props->lmc = out_mad->data[34] & 0x7; in mthca_query_port()
162 props->sm_lid = be16_to_cpup((__be16 *) (out_mad->data + 18)); in mthca_query_port()
163 props->sm_sl = out_mad->data[36] & 0xf; in mthca_query_port()
164 props->state = out_mad->data[32] & 0xf; in mthca_query_port()
165 props->phys_state = out_mad->data[33] >> 4; in mthca_query_port()
166 props->port_cap_flags = be32_to_cpup((__be32 *) (out_mad->data + 20)); in mthca_query_port()
170 props->bad_pkey_cntr = be16_to_cpup((__be16 *) (out_mad->data + 46)); in mthca_query_port()
171 props->qkey_viol_cntr = be16_to_cpup((__be16 *) (out_mad->data + 48)); in mthca_query_port()
172 props->active_width = out_mad->data[31] & 0xf; in mthca_query_port()
173 props->active_speed = out_mad->data[35] >> 4; in mthca_query_port()
174 props->max_mtu = out_mad->data[41] & 0xf; in mthca_query_port()
175 props->active_mtu = out_mad->data[36] >> 4; in mthca_query_port()
176 props->subnet_timeout = out_mad->data[51] & 0x1f; in mthca_query_port()
177 props->max_vl_num = out_mad->data[37] >> 4; in mthca_query_port()
178 props->init_type_reply = out_mad->data[41] >> 4; in mthca_query_port()
182 kfree(out_mad); in mthca_query_port()
236 struct ib_smp *out_mad = NULL; in mthca_query_pkey() local
240 out_mad = kmalloc(sizeof *out_mad, GFP_KERNEL); in mthca_query_pkey()
241 if (!in_mad || !out_mad) in mthca_query_pkey()
249 port, NULL, NULL, in_mad, out_mad); in mthca_query_pkey()
253 *pkey = be16_to_cpu(((__be16 *) out_mad->data)[index % 32]); in mthca_query_pkey()
257 kfree(out_mad); in mthca_query_pkey()
265 struct ib_smp *out_mad = NULL; in mthca_query_gid() local
269 out_mad = kmalloc(sizeof *out_mad, GFP_KERNEL); in mthca_query_gid()
270 if (!in_mad || !out_mad) in mthca_query_gid()
278 port, NULL, NULL, in_mad, out_mad); in mthca_query_gid()
282 memcpy(gid->raw, out_mad->data + 8, 8); in mthca_query_gid()
289 port, NULL, NULL, in_mad, out_mad); in mthca_query_gid()
293 memcpy(gid->raw + 8, out_mad->data + (index % 8) * 8, 8); in mthca_query_gid()
297 kfree(out_mad); in mthca_query_gid()
1220 struct ib_smp *out_mad = NULL; in mthca_init_node_data() local
1224 out_mad = kmalloc(sizeof *out_mad, GFP_KERNEL); in mthca_init_node_data()
1225 if (!in_mad || !out_mad) in mthca_init_node_data()
1232 1, NULL, NULL, in_mad, out_mad); in mthca_init_node_data()
1236 memcpy(dev->ib_dev.node_desc, out_mad->data, 64); in mthca_init_node_data()
1241 1, NULL, NULL, in_mad, out_mad); in mthca_init_node_data()
1246 dev->rev_id = be32_to_cpup((__be32 *) (out_mad->data + 32)); in mthca_init_node_data()
1247 memcpy(&dev->ib_dev.node_guid, out_mad->data + 12, 8); in mthca_init_node_data()
1251 kfree(out_mad); in mthca_init_node_data()