Lines Matching refs:pip
457 struct ib_port_info *pip = (struct ib_port_info *)smp->data; in subn_get_portinfo() local
493 pip->mkey = ibp->mkey; in subn_get_portinfo()
494 pip->gid_prefix = ibp->gid_prefix; in subn_get_portinfo()
495 pip->lid = cpu_to_be16(ppd->lid); in subn_get_portinfo()
496 pip->sm_lid = cpu_to_be16(ibp->sm_lid); in subn_get_portinfo()
497 pip->cap_mask = cpu_to_be32(ibp->port_cap_flags); in subn_get_portinfo()
499 pip->mkey_lease_period = cpu_to_be16(ibp->mkey_lease_period); in subn_get_portinfo()
500 pip->local_port_num = port; in subn_get_portinfo()
501 pip->link_width_enabled = ppd->link_width_enabled; in subn_get_portinfo()
502 pip->link_width_supported = ppd->link_width_supported; in subn_get_portinfo()
503 pip->link_width_active = ppd->link_width_active; in subn_get_portinfo()
505 pip->linkspeed_portstate = ppd->link_speed_supported << 4 | state; in subn_get_portinfo()
507 pip->portphysstate_linkdown = in subn_get_portinfo()
510 pip->mkeyprot_resv_lmc = (ibp->mkeyprot << 6) | ppd->lmc; in subn_get_portinfo()
511 pip->linkspeedactive_enabled = (ppd->link_speed_active << 4) | in subn_get_portinfo()
531 pip->neighbormtu_mastersmsl = (mtu << 4) | ibp->sm_sl; in subn_get_portinfo()
532 pip->vlcap_inittype = ppd->vls_supported << 4; /* InitType = 0 */ in subn_get_portinfo()
533 pip->vl_high_limit = ibp->vl_high_limit; in subn_get_portinfo()
534 pip->vl_arb_high_cap = in subn_get_portinfo()
536 pip->vl_arb_low_cap = in subn_get_portinfo()
539 pip->inittypereply_mtucap = qib_ibmtu ? qib_ibmtu : IB_MTU_4096; in subn_get_portinfo()
542 pip->operationalvl_pei_peo_fpi_fpo = in subn_get_portinfo()
544 pip->mkey_violations = cpu_to_be16(ibp->mkey_violations); in subn_get_portinfo()
546 pip->pkey_violations = cpu_to_be16(ibp->pkey_violations); in subn_get_portinfo()
547 pip->qkey_violations = cpu_to_be16(ibp->qkey_violations); in subn_get_portinfo()
549 pip->guid_cap = QIB_GUIDS_PER_PORT; in subn_get_portinfo()
550 pip->clientrereg_resv_subnetto = ibp->subnet_timeout; in subn_get_portinfo()
552 pip->resv_resptimevalue = 3; in subn_get_portinfo()
553 pip->localphyerrors_overrunerrors = in subn_get_portinfo()
561 pip->link_roundtrip_latency[0] = v >> 16; in subn_get_portinfo()
562 pip->link_roundtrip_latency[1] = v >> 8; in subn_get_portinfo()
563 pip->link_roundtrip_latency[2] = v; in subn_get_portinfo()
653 struct ib_port_info *pip = (struct ib_port_info *)smp->data; in subn_set_portinfo() local
658 u8 clientrereg = (pip->clientrereg_resv_subnetto & 0x80); in subn_set_portinfo()
687 ibp->mkey = pip->mkey; in subn_set_portinfo()
688 ibp->gid_prefix = pip->gid_prefix; in subn_set_portinfo()
689 ibp->mkey_lease_period = be16_to_cpu(pip->mkey_lease_period); in subn_set_portinfo()
691 lid = be16_to_cpu(pip->lid); in subn_set_portinfo()
695 else if (ppd->lid != lid || ppd->lmc != (pip->mkeyprot_resv_lmc & 7)) { in subn_set_portinfo()
698 if (ppd->lmc != (pip->mkeyprot_resv_lmc & 7)) in subn_set_portinfo()
700 qib_set_lid(ppd, lid, pip->mkeyprot_resv_lmc & 7); in subn_set_portinfo()
705 smlid = be16_to_cpu(pip->sm_lid); in subn_set_portinfo()
706 msl = pip->neighbormtu_mastersmsl & 0xF; in subn_set_portinfo()
728 lwe = pip->link_width_enabled; in subn_set_portinfo()
738 lse = pip->linkspeedactive_enabled & 0xF; in subn_set_portinfo()
755 switch (pip->portphysstate_linkdown & 0xF) { in subn_set_portinfo()
770 ibp->mkeyprot = pip->mkeyprot_resv_lmc >> 6; in subn_set_portinfo()
771 ibp->vl_high_limit = pip->vl_high_limit; in subn_set_portinfo()
775 mtu = ib_mtu_enum_to_int((pip->neighbormtu_mastersmsl >> 4) & 0xF); in subn_set_portinfo()
782 vls = (pip->operationalvl_pei_peo_fpi_fpo >> 4) & 0xF; in subn_set_portinfo()
790 if (pip->mkey_violations == 0) in subn_set_portinfo()
793 if (pip->pkey_violations == 0) in subn_set_portinfo()
796 if (pip->qkey_violations == 0) in subn_set_portinfo()
799 ore = pip->localphyerrors_overrunerrors; in subn_set_portinfo()
806 ibp->subnet_timeout = pip->clientrereg_resv_subnetto & 0x1F; in subn_set_portinfo()
814 state = pip->linkspeed_portstate & 0xF; in subn_set_portinfo()
815 lstate = (pip->portphysstate_linkdown >> 4) & 0xF; in subn_set_portinfo()
873 pip->clientrereg_resv_subnetto |= clientrereg; in subn_set_portinfo()