Lines Matching defs:out_mad

63 	struct ib_smp *out_mad = NULL;
71 out_mad = kmalloc(sizeof *out_mad, GFP_KERNEL);
72 if (!in_mad || !out_mad)
83 1, NULL, NULL, in_mad, out_mad);
88 props->vendor_id = be32_to_cpup((__be32 *) (out_mad->data + 36)) &
90 props->vendor_part_id = be16_to_cpup((__be16 *) (out_mad->data + 30));
91 props->hw_ver = be32_to_cpup((__be32 *) (out_mad->data + 32));
92 memcpy(&props->sys_image_guid, out_mad->data + 4, 8);
132 kfree(out_mad);
140 struct ib_smp *out_mad = NULL;
144 out_mad = kmalloc(sizeof *out_mad, GFP_KERNEL);
145 if (!in_mad || !out_mad)
155 port, NULL, NULL, in_mad, out_mad);
159 props->lid = be16_to_cpup((__be16 *) (out_mad->data + 16));
160 props->lmc = out_mad->data[34] & 0x7;
161 props->sm_lid = be16_to_cpup((__be16 *) (out_mad->data + 18));
162 props->sm_sl = out_mad->data[36] & 0xf;
163 props->state = out_mad->data[32] & 0xf;
164 props->phys_state = out_mad->data[33] >> 4;
165 props->port_cap_flags = be32_to_cpup((__be32 *) (out_mad->data + 20));
169 props->bad_pkey_cntr = be16_to_cpup((__be16 *) (out_mad->data + 46));
170 props->qkey_viol_cntr = be16_to_cpup((__be16 *) (out_mad->data + 48));
171 props->active_width = out_mad->data[31] & 0xf;
172 props->active_speed = out_mad->data[35] >> 4;
173 props->max_mtu = out_mad->data[41] & 0xf;
174 props->active_mtu = out_mad->data[36] >> 4;
175 props->subnet_timeout = out_mad->data[51] & 0x1f;
176 props->max_vl_num = out_mad->data[37] >> 4;
177 props->init_type_reply = out_mad->data[41] >> 4;
181 kfree(out_mad);
236 struct ib_smp *out_mad = NULL;
240 out_mad = kmalloc(sizeof *out_mad, GFP_KERNEL);
241 if (!in_mad || !out_mad)
249 port, NULL, NULL, in_mad, out_mad);
253 *pkey = be16_to_cpu(((__be16 *) out_mad->data)[index % 32]);
257 kfree(out_mad);
265 struct ib_smp *out_mad = NULL;
269 out_mad = kmalloc(sizeof *out_mad, GFP_KERNEL);
270 if (!in_mad || !out_mad)
278 port, NULL, NULL, in_mad, out_mad);
282 memcpy(gid->raw, out_mad->data + 8, 8);
289 port, NULL, NULL, in_mad, out_mad);
293 memcpy(gid->raw + 8, out_mad->data + (index % 8) * 8, 8);
297 kfree(out_mad);
1126 struct ib_smp *out_mad = NULL;
1130 out_mad = kmalloc(sizeof *out_mad, GFP_KERNEL);
1131 if (!in_mad || !out_mad)
1138 1, NULL, NULL, in_mad, out_mad);
1142 memcpy(dev->ib_dev.node_desc, out_mad->data, IB_DEVICE_NODE_DESC_MAX);
1147 1, NULL, NULL, in_mad, out_mad);
1152 dev->rev_id = be32_to_cpup((__be32 *) (out_mad->data + 32));
1153 memcpy(&dev->ib_dev.node_guid, out_mad->data + 12, 8);
1157 kfree(out_mad);