Lines Matching defs:smp
897 struct ib_smp *smp = inbox->buf;
918 if (smp->base_version == 1 &&
919 smp->mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED &&
920 smp->class_version == 1) {
922 if (!network_view && smp->method == IB_MGMT_METHOD_GET) {
923 if (smp->attr_id == IB_SMP_ATTR_PKEY_TABLE) {
924 index = be32_to_cpu(smp->attr_mod);
945 if (smp->attr_id == IB_SMP_ATTR_PORT_INFO) {
948 smp->attr_mod = cpu_to_be32(port);
962 if (smp->attr_id == IB_SMP_ATTR_GUID_INFO) {
970 smp->attr_mod = 0;
992 if (smp->attr_id == IB_SMP_ATTR_NODE_INFO) {
1010 if (!(smp->mgmt_class == IB_MGMT_CLASS_SUBN_LID_ROUTED &&
1011 smp->method == IB_MGMT_METHOD_GET) || network_view) {
1013 slave, smp->mgmt_class, smp->method,
1015 be16_to_cpu(smp->attr_id));