Lines Matching refs:pip

435 	struct ib_port_info *pip = (struct ib_port_info *)smp->data;  in subn_get_portinfo()  local
470 pip->mkey = ibp->mkey; in subn_get_portinfo()
471 pip->gid_prefix = ibp->gid_prefix; in subn_get_portinfo()
473 pip->lid = lid ? cpu_to_be16(lid) : IB_LID_PERMISSIVE; in subn_get_portinfo()
474 pip->sm_lid = cpu_to_be16(ibp->sm_lid); in subn_get_portinfo()
475 pip->cap_mask = cpu_to_be32(ibp->port_cap_flags); in subn_get_portinfo()
477 pip->mkey_lease_period = cpu_to_be16(ibp->mkey_lease_period); in subn_get_portinfo()
478 pip->local_port_num = port; in subn_get_portinfo()
479 pip->link_width_enabled = ppd->link_width_enabled; in subn_get_portinfo()
480 pip->link_width_supported = ppd->link_width_supported; in subn_get_portinfo()
481 pip->link_width_active = ppd->link_width_active; in subn_get_portinfo()
483 pip->linkspeed_portstate = ppd->link_speed_supported << 4 | state; in subn_get_portinfo()
485 pip->portphysstate_linkdown = in subn_get_portinfo()
488 pip->mkeyprot_resv_lmc = (ibp->mkeyprot << 6) | ppd->lmc; in subn_get_portinfo()
489 pip->linkspeedactive_enabled = (ppd->link_speed_active << 4) | in subn_get_portinfo()
509 pip->neighbormtu_mastersmsl = (mtu << 4) | ibp->sm_sl; in subn_get_portinfo()
510 pip->vlcap_inittype = ppd->vls_supported << 4; /* InitType = 0 */ in subn_get_portinfo()
511 pip->vl_high_limit = ibp->vl_high_limit; in subn_get_portinfo()
512 pip->vl_arb_high_cap = in subn_get_portinfo()
514 pip->vl_arb_low_cap = in subn_get_portinfo()
517 pip->inittypereply_mtucap = qib_ibmtu ? qib_ibmtu : IB_MTU_4096; in subn_get_portinfo()
520 pip->operationalvl_pei_peo_fpi_fpo = in subn_get_portinfo()
522 pip->mkey_violations = cpu_to_be16(ibp->mkey_violations); in subn_get_portinfo()
524 pip->pkey_violations = cpu_to_be16(ibp->pkey_violations); in subn_get_portinfo()
525 pip->qkey_violations = cpu_to_be16(ibp->qkey_violations); in subn_get_portinfo()
527 pip->guid_cap = QIB_GUIDS_PER_PORT; in subn_get_portinfo()
528 pip->clientrereg_resv_subnetto = ibp->subnet_timeout; in subn_get_portinfo()
530 pip->resv_resptimevalue = 3; in subn_get_portinfo()
531 pip->localphyerrors_overrunerrors = in subn_get_portinfo()
539 pip->link_roundtrip_latency[0] = v >> 16; in subn_get_portinfo()
540 pip->link_roundtrip_latency[1] = v >> 8; in subn_get_portinfo()
541 pip->link_roundtrip_latency[2] = v; in subn_get_portinfo()
631 struct ib_port_info *pip = (struct ib_port_info *)smp->data; in subn_set_portinfo() local
665 ibp->mkey = pip->mkey; in subn_set_portinfo()
666 ibp->gid_prefix = pip->gid_prefix; in subn_set_portinfo()
667 ibp->mkey_lease_period = be16_to_cpu(pip->mkey_lease_period); in subn_set_portinfo()
669 lid = be16_to_cpu(pip->lid); in subn_set_portinfo()
673 else if (ppd->lid != lid || ppd->lmc != (pip->mkeyprot_resv_lmc & 7)) { in subn_set_portinfo()
676 if (ppd->lmc != (pip->mkeyprot_resv_lmc & 7)) in subn_set_portinfo()
678 qib_set_lid(ppd, lid, pip->mkeyprot_resv_lmc & 7); in subn_set_portinfo()
683 smlid = be16_to_cpu(pip->sm_lid); in subn_set_portinfo()
684 msl = pip->neighbormtu_mastersmsl & 0xF; in subn_set_portinfo()
706 lwe = pip->link_width_enabled; in subn_set_portinfo()
716 lse = pip->linkspeedactive_enabled & 0xF; in subn_set_portinfo()
733 switch (pip->portphysstate_linkdown & 0xF) { in subn_set_portinfo()
748 ibp->mkeyprot = pip->mkeyprot_resv_lmc >> 6; in subn_set_portinfo()
749 ibp->vl_high_limit = pip->vl_high_limit; in subn_set_portinfo()
753 mtu = ib_mtu_enum_to_int((pip->neighbormtu_mastersmsl >> 4) & 0xF); in subn_set_portinfo()
760 vls = (pip->operationalvl_pei_peo_fpi_fpo >> 4) & 0xF; in subn_set_portinfo()
768 if (pip->mkey_violations == 0) in subn_set_portinfo()
771 if (pip->pkey_violations == 0) in subn_set_portinfo()
774 if (pip->qkey_violations == 0) in subn_set_portinfo()
777 ore = pip->localphyerrors_overrunerrors; in subn_set_portinfo()
784 ibp->subnet_timeout = pip->clientrereg_resv_subnetto & 0x1F; in subn_set_portinfo()
786 if (pip->clientrereg_resv_subnetto & 0x80) { in subn_set_portinfo()
798 state = pip->linkspeed_portstate & 0xF; in subn_set_portinfo()
799 lstate = (pip->portphysstate_linkdown >> 4) & 0xF; in subn_set_portinfo()
852 pip->clientrereg_resv_subnetto |= 0x80; in subn_set_portinfo()