Lines Matching defs:mad
265 * @mad: Datagram that will be sent as response to DM_ATTR_CLASS_PORT_INFO.
270 static void srpt_get_class_port_info(struct ib_dm_mad *mad)
274 cif = (struct ib_class_port_info *)mad->data;
280 mad->mad_hdr.status = 0;
285 * @mad: Datagram that will be sent as response to DM_ATTR_IOU_INFO.
290 static void srpt_get_iou(struct ib_dm_mad *mad)
296 ioui = (struct ib_dm_iou_info *)mad->data;
305 mad->mad_hdr.status = 0;
312 * @mad: Datagram that will be sent as response to DM_ATTR_IOC_PROFILE.
319 struct ib_dm_mad *mad)
325 iocp = (struct ib_dm_ioc_profile *)mad->data;
328 mad->mad_hdr.status
334 mad->mad_hdr.status
366 mad->mad_hdr.status = 0;
375 * @mad: Datagram that will be sent as response to DM_ATTR_SVC_ENTRIES.
381 u16 slot, u8 hi, u8 lo, struct ib_dm_mad *mad)
388 mad->mad_hdr.status
394 mad->mad_hdr.status
399 svc_entries = (struct ib_dm_svc_entries *)mad->data;
408 mad->mad_hdr.status = 0;
478 if (!mad_wc || !mad_wc->recv_buf.mad)
498 dm_mad = rsp->mad;
499 memcpy(dm_mad, mad_wc->recv_buf.mad, sizeof(*dm_mad));
503 switch (mad_wc->recv_buf.mad->mad_hdr.method) {
505 srpt_mgmt_method_get(sport, mad_wc->recv_buf.mad, dm_mad);