Lines Matching refs:pip
460 struct ib_port_info *pip = (struct ib_port_info *)smp->data; in subn_get_portinfo() local
496 pip->mkey = ibp->rvp.mkey; in subn_get_portinfo()
497 pip->gid_prefix = ibp->rvp.gid_prefix; in subn_get_portinfo()
498 pip->lid = cpu_to_be16(ppd->lid); in subn_get_portinfo()
499 pip->sm_lid = cpu_to_be16((u16)ibp->rvp.sm_lid); in subn_get_portinfo()
500 pip->cap_mask = cpu_to_be32(ibp->rvp.port_cap_flags); in subn_get_portinfo()
502 pip->mkey_lease_period = cpu_to_be16(ibp->rvp.mkey_lease_period); in subn_get_portinfo()
503 pip->local_port_num = port; in subn_get_portinfo()
504 pip->link_width_enabled = ppd->link_width_enabled; in subn_get_portinfo()
505 pip->link_width_supported = ppd->link_width_supported; in subn_get_portinfo()
506 pip->link_width_active = ppd->link_width_active; in subn_get_portinfo()
508 pip->linkspeed_portstate = ppd->link_speed_supported << 4 | state; in subn_get_portinfo()
510 pip->portphysstate_linkdown = in subn_get_portinfo()
513 pip->mkeyprot_resv_lmc = (ibp->rvp.mkeyprot << 6) | ppd->lmc; in subn_get_portinfo()
514 pip->linkspeedactive_enabled = (ppd->link_speed_active << 4) | in subn_get_portinfo()
534 pip->neighbormtu_mastersmsl = (mtu << 4) | ibp->rvp.sm_sl; in subn_get_portinfo()
535 pip->vlcap_inittype = ppd->vls_supported << 4; /* InitType = 0 */ in subn_get_portinfo()
536 pip->vl_high_limit = ibp->rvp.vl_high_limit; in subn_get_portinfo()
537 pip->vl_arb_high_cap = in subn_get_portinfo()
539 pip->vl_arb_low_cap = in subn_get_portinfo()
542 pip->inittypereply_mtucap = qib_ibmtu ? qib_ibmtu : IB_MTU_4096; in subn_get_portinfo()
545 pip->operationalvl_pei_peo_fpi_fpo = in subn_get_portinfo()
547 pip->mkey_violations = cpu_to_be16(ibp->rvp.mkey_violations); in subn_get_portinfo()
549 pip->pkey_violations = cpu_to_be16(ibp->rvp.pkey_violations); in subn_get_portinfo()
550 pip->qkey_violations = cpu_to_be16(ibp->rvp.qkey_violations); in subn_get_portinfo()
552 pip->guid_cap = QIB_GUIDS_PER_PORT; in subn_get_portinfo()
553 pip->clientrereg_resv_subnetto = ibp->rvp.subnet_timeout; in subn_get_portinfo()
555 pip->resv_resptimevalue = 3; in subn_get_portinfo()
556 pip->localphyerrors_overrunerrors = in subn_get_portinfo()
564 pip->link_roundtrip_latency[0] = v >> 16; in subn_get_portinfo()
565 pip->link_roundtrip_latency[1] = v >> 8; in subn_get_portinfo()
566 pip->link_roundtrip_latency[2] = v; in subn_get_portinfo()
656 struct ib_port_info *pip = (struct ib_port_info *)smp->data; in subn_set_portinfo() local
661 u8 clientrereg = (pip->clientrereg_resv_subnetto & 0x80); in subn_set_portinfo()
690 ibp->rvp.mkey = pip->mkey; in subn_set_portinfo()
691 ibp->rvp.gid_prefix = pip->gid_prefix; in subn_set_portinfo()
692 ibp->rvp.mkey_lease_period = be16_to_cpu(pip->mkey_lease_period); in subn_set_portinfo()
694 lid = be16_to_cpu(pip->lid); in subn_set_portinfo()
698 else if (ppd->lid != lid || ppd->lmc != (pip->mkeyprot_resv_lmc & 7)) { in subn_set_portinfo()
701 if (ppd->lmc != (pip->mkeyprot_resv_lmc & 7)) in subn_set_portinfo()
703 qib_set_lid(ppd, lid, pip->mkeyprot_resv_lmc & 7); in subn_set_portinfo()
708 smlid = be16_to_cpu(pip->sm_lid); in subn_set_portinfo()
709 msl = pip->neighbormtu_mastersmsl & 0xF; in subn_set_portinfo()
732 lwe = pip->link_width_enabled; in subn_set_portinfo()
742 lse = pip->linkspeedactive_enabled & 0xF; in subn_set_portinfo()
759 switch (pip->portphysstate_linkdown & 0xF) { in subn_set_portinfo()
774 ibp->rvp.mkeyprot = pip->mkeyprot_resv_lmc >> 6; in subn_set_portinfo()
775 ibp->rvp.vl_high_limit = pip->vl_high_limit; in subn_set_portinfo()
779 mtu = ib_mtu_enum_to_int((pip->neighbormtu_mastersmsl >> 4) & 0xF); in subn_set_portinfo()
786 vls = (pip->operationalvl_pei_peo_fpi_fpo >> 4) & 0xF; in subn_set_portinfo()
794 if (pip->mkey_violations == 0) in subn_set_portinfo()
797 if (pip->pkey_violations == 0) in subn_set_portinfo()
800 if (pip->qkey_violations == 0) in subn_set_portinfo()
803 ore = pip->localphyerrors_overrunerrors; in subn_set_portinfo()
810 ibp->rvp.subnet_timeout = pip->clientrereg_resv_subnetto & 0x1F; in subn_set_portinfo()
818 state = pip->linkspeed_portstate & 0xF; in subn_set_portinfo()
819 lstate = (pip->portphysstate_linkdown >> 4) & 0xF; in subn_set_portinfo()
875 pip->clientrereg_resv_subnetto |= clientrereg; in subn_set_portinfo()