Lines Matching defs:mad

109 			 struct ib_sa_mad *mad);
703 struct ib_sa_mad *mad = query->mad_buf->mad;
704 ib_sa_comp_mask comp_mask = mad->sa_hdr.comp_mask;
788 struct ib_sa_mad *mad;
798 mad = query->mad_buf->mad;
799 len = ib_nl_get_path_rec_attrs_len(mad->sa_hdr.comp_mask);
878 struct ib_sa_mad *mad = NULL;
887 mad = query->mad_buf->mad;
917 mad->mad_hdr.method |= IB_MGMT_METHOD_RESP;
918 memcpy(mad->data, rec_data->path_rec,
920 query->callback(query, 0, mad);
937 mad->mad_hdr.method |= IB_MGMT_METHOD_RESP;
941 query->callback(query, status, mad);
1315 struct ib_sa_mad *mad = query->mad_buf->mad;
1318 memset(mad, 0, sizeof *mad);
1321 mad->mad_hdr.base_version = OPA_MGMT_BASE_VERSION;
1322 mad->mad_hdr.class_version = OPA_SA_CLASS_VERSION;
1324 mad->mad_hdr.base_version = IB_MGMT_BASE_VERSION;
1325 mad->mad_hdr.class_version = IB_SA_CLASS_VERSION;
1327 mad->mad_hdr.mgmt_class = IB_MGMT_CLASS_SUBN_ADM;
1329 mad->mad_hdr.tid =
1447 int status, struct ib_sa_mad *mad)
1453 if (!mad) {
1460 mad->data, &rec);
1467 mad->data, &rec);
1531 struct ib_sa_mad *mad;
1576 mad = query->sa_query.mad_buf->mad;
1581 mad->mad_hdr.method = IB_MGMT_METHOD_GET;
1582 mad->mad_hdr.attr_id = cpu_to_be16(IB_SA_ATTR_PATH_REC);
1583 mad->sa_hdr.comp_mask = comp_mask;
1587 rec, mad->data);
1591 query->conv_pr, mad->data);
1594 rec, mad->data);
1622 int status, struct ib_sa_mad *mad)
1627 if (mad) {
1631 mad->data, &rec);
1658 struct ib_sa_mad *mad;
1681 mad = query->sa_query.mad_buf->mad;
1686 mad->mad_hdr.method = method;
1687 mad->mad_hdr.attr_id = cpu_to_be16(IB_SA_ATTR_MC_MEMBER_REC);
1688 mad->sa_hdr.comp_mask = comp_mask;
1691 rec, mad->data);
1713 int status, struct ib_sa_mad *mad)
1718 if (mad) {
1722 mad->data, &rec);
1748 struct ib_sa_mad *mad;
1777 mad = query->sa_query.mad_buf->mad;
1783 mad->mad_hdr.method = method;
1784 mad->mad_hdr.attr_id = cpu_to_be16(IB_SA_ATTR_GUID_INFO_REC);
1785 mad->sa_hdr.comp_mask = comp_mask;
1788 mad->data);
1822 int status, struct ib_sa_mad *mad)
1829 if (mad) {
1835 mad->data, &rec);
1854 mad->data, &rec);
1886 struct ib_sa_mad *mad;
1907 mad = query->sa_query.mad_buf->mad;
1912 mad->mad_hdr.method = IB_MGMT_METHOD_GET;
1913 mad->mad_hdr.attr_id = cpu_to_be16(IB_SA_ATTR_CLASS_PORTINFO);
1914 mad->sa_hdr.comp_mask = 0;
2030 mad_recv_wc->recv_buf.mad->mad_hdr.status ?
2032 (struct ib_sa_mad *) mad_recv_wc->recv_buf.mad);