Lines Matching refs:pip

458 	struct ib_port_info *pip = (struct ib_port_info *)smp->data;  in subn_get_portinfo()  local
494 pip->mkey = ibp->mkey; in subn_get_portinfo()
495 pip->gid_prefix = ibp->gid_prefix; in subn_get_portinfo()
496 pip->lid = cpu_to_be16(ppd->lid); in subn_get_portinfo()
497 pip->sm_lid = cpu_to_be16(ibp->sm_lid); in subn_get_portinfo()
498 pip->cap_mask = cpu_to_be32(ibp->port_cap_flags); in subn_get_portinfo()
500 pip->mkey_lease_period = cpu_to_be16(ibp->mkey_lease_period); in subn_get_portinfo()
501 pip->local_port_num = port; in subn_get_portinfo()
502 pip->link_width_enabled = ppd->link_width_enabled; in subn_get_portinfo()
503 pip->link_width_supported = ppd->link_width_supported; in subn_get_portinfo()
504 pip->link_width_active = ppd->link_width_active; in subn_get_portinfo()
506 pip->linkspeed_portstate = ppd->link_speed_supported << 4 | state; in subn_get_portinfo()
508 pip->portphysstate_linkdown = in subn_get_portinfo()
511 pip->mkeyprot_resv_lmc = (ibp->mkeyprot << 6) | ppd->lmc; in subn_get_portinfo()
512 pip->linkspeedactive_enabled = (ppd->link_speed_active << 4) | in subn_get_portinfo()
532 pip->neighbormtu_mastersmsl = (mtu << 4) | ibp->sm_sl; in subn_get_portinfo()
533 pip->vlcap_inittype = ppd->vls_supported << 4; /* InitType = 0 */ in subn_get_portinfo()
534 pip->vl_high_limit = ibp->vl_high_limit; in subn_get_portinfo()
535 pip->vl_arb_high_cap = in subn_get_portinfo()
537 pip->vl_arb_low_cap = in subn_get_portinfo()
540 pip->inittypereply_mtucap = qib_ibmtu ? qib_ibmtu : IB_MTU_4096; in subn_get_portinfo()
543 pip->operationalvl_pei_peo_fpi_fpo = in subn_get_portinfo()
545 pip->mkey_violations = cpu_to_be16(ibp->mkey_violations); in subn_get_portinfo()
547 pip->pkey_violations = cpu_to_be16(ibp->pkey_violations); in subn_get_portinfo()
548 pip->qkey_violations = cpu_to_be16(ibp->qkey_violations); in subn_get_portinfo()
550 pip->guid_cap = QIB_GUIDS_PER_PORT; in subn_get_portinfo()
551 pip->clientrereg_resv_subnetto = ibp->subnet_timeout; in subn_get_portinfo()
553 pip->resv_resptimevalue = 3; in subn_get_portinfo()
554 pip->localphyerrors_overrunerrors = in subn_get_portinfo()
562 pip->link_roundtrip_latency[0] = v >> 16; in subn_get_portinfo()
563 pip->link_roundtrip_latency[1] = v >> 8; in subn_get_portinfo()
564 pip->link_roundtrip_latency[2] = v; in subn_get_portinfo()
654 struct ib_port_info *pip = (struct ib_port_info *)smp->data; in subn_set_portinfo() local
659 u8 clientrereg = (pip->clientrereg_resv_subnetto & 0x80); in subn_set_portinfo()
688 ibp->mkey = pip->mkey; in subn_set_portinfo()
689 ibp->gid_prefix = pip->gid_prefix; in subn_set_portinfo()
690 ibp->mkey_lease_period = be16_to_cpu(pip->mkey_lease_period); in subn_set_portinfo()
692 lid = be16_to_cpu(pip->lid); in subn_set_portinfo()
696 else if (ppd->lid != lid || ppd->lmc != (pip->mkeyprot_resv_lmc & 7)) { in subn_set_portinfo()
699 if (ppd->lmc != (pip->mkeyprot_resv_lmc & 7)) in subn_set_portinfo()
701 qib_set_lid(ppd, lid, pip->mkeyprot_resv_lmc & 7); in subn_set_portinfo()
706 smlid = be16_to_cpu(pip->sm_lid); in subn_set_portinfo()
707 msl = pip->neighbormtu_mastersmsl & 0xF; in subn_set_portinfo()
729 lwe = pip->link_width_enabled; in subn_set_portinfo()
739 lse = pip->linkspeedactive_enabled & 0xF; in subn_set_portinfo()
756 switch (pip->portphysstate_linkdown & 0xF) { in subn_set_portinfo()
771 ibp->mkeyprot = pip->mkeyprot_resv_lmc >> 6; in subn_set_portinfo()
772 ibp->vl_high_limit = pip->vl_high_limit; in subn_set_portinfo()
776 mtu = ib_mtu_enum_to_int((pip->neighbormtu_mastersmsl >> 4) & 0xF); in subn_set_portinfo()
783 vls = (pip->operationalvl_pei_peo_fpi_fpo >> 4) & 0xF; in subn_set_portinfo()
791 if (pip->mkey_violations == 0) in subn_set_portinfo()
794 if (pip->pkey_violations == 0) in subn_set_portinfo()
797 if (pip->qkey_violations == 0) in subn_set_portinfo()
800 ore = pip->localphyerrors_overrunerrors; in subn_set_portinfo()
807 ibp->subnet_timeout = pip->clientrereg_resv_subnetto & 0x1F; in subn_set_portinfo()
815 state = pip->linkspeed_portstate & 0xF; in subn_set_portinfo()
816 lstate = (pip->portphysstate_linkdown >> 4) & 0xF; in subn_set_portinfo()
874 pip->clientrereg_resv_subnetto |= clientrereg; in subn_set_portinfo()