Lines Matching defs:mad
271 * @mad: Datagram that will be sent as response to DM_ATTR_CLASS_PORT_INFO.
276 static void srpt_get_class_port_info(struct ib_dm_mad *mad)
280 cif = (struct ib_class_port_info *)mad->data;
286 mad->mad_hdr.status = 0;
291 * @mad: Datagram that will be sent as response to DM_ATTR_IOU_INFO.
296 static void srpt_get_iou(struct ib_dm_mad *mad)
302 ioui = (struct ib_dm_iou_info *)mad->data;
311 mad->mad_hdr.status = 0;
318 * @mad: Datagram that will be sent as response to DM_ATTR_IOC_PROFILE.
325 struct ib_dm_mad *mad)
331 iocp = (struct ib_dm_ioc_profile *)mad->data;
334 mad->mad_hdr.status
340 mad->mad_hdr.status
372 mad->mad_hdr.status = 0;
381 * @mad: Datagram that will be sent as response to DM_ATTR_SVC_ENTRIES.
387 u16 slot, u8 hi, u8 lo, struct ib_dm_mad *mad)
394 mad->mad_hdr.status
400 mad->mad_hdr.status
405 svc_entries = (struct ib_dm_svc_entries *)mad->data;
414 mad->mad_hdr.status = 0;
484 if (!mad_wc || !mad_wc->recv_buf.mad)
504 dm_mad = rsp->mad;
505 memcpy(dm_mad, mad_wc->recv_buf.mad, sizeof(*dm_mad));
509 switch (mad_wc->recv_buf.mad->mad_hdr.method) {
511 srpt_mgmt_method_get(sport, mad_wc->recv_buf.mad, dm_mad);