Lines Matching refs:pi
1900 hermon_port_query(hermon_state_t *state, uint_t port, ibt_hca_portinfo_t *pi)
1911 _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*pi))
1942 pi->p_base_lid = portinfo.LID;
1943 pi->p_qkey_violations = portinfo.Q_KeyViolations;
1944 pi->p_pkey_violations = portinfo.P_KeyViolations;
1945 pi->p_sm_sl = portinfo.MasterSMSL;
1946 pi->p_sm_lid = portinfo.MasterSMLID;
1947 pi->p_linkstate = portinfo.PortState;
1948 pi->p_port_num = portinfo.LocalPortNum;
1949 pi->p_phys_state = portinfo.PortPhysicalState;
1950 pi->p_width_supported = portinfo.LinkWidthSupported;
1951 pi->p_width_enabled = portinfo.LinkWidthEnabled;
1952 pi->p_width_active = portinfo.LinkWidthActive;
1953 pi->p_speed_supported = portinfo.LinkSpeedSupported;
1954 pi->p_speed_enabled = portinfo.LinkSpeedEnabled;
1955 pi->p_speed_active = portinfo.LinkSpeedActive;
1956 pi->p_mtu = portinfo.MTUCap;
1957 pi->p_lmc = portinfo.LMC;
1958 pi->p_max_vl = portinfo.VLCap;
1959 pi->p_subnet_timeout = portinfo.SubnetTimeOut;
1960 pi->p_msg_sz = ((uint32_t)1 << HERMON_QP_LOG_MAX_MSGSZ);
1962 pi->p_sgid_tbl_sz = (1 << tbl_size);
1964 pi->p_pkey_tbl_sz = (1 << tbl_size);
1972 pi->p_capabilities |= IBT_PORT_CAP_SM;
1974 pi->p_capabilities |= IBT_PORT_CAP_SM_DISABLED;
1976 pi->p_capabilities |= IBT_PORT_CAP_SNMP_TUNNEL;
1978 pi->p_capabilities |= IBT_PORT_CAP_DM;
1980 pi->p_capabilities |= IBT_PORT_CAP_VENDOR;
1982 pi->p_capabilities |= IBT_PORT_CAP_CLNT_REREG;
1993 for (i = 0; i < pi->p_sgid_tbl_sz; i += 8) {
2007 sgid_max = min((pi->p_sgid_tbl_sz - i), 8);
2010 sgid = &pi->p_sgid_tbl[indx];
2026 for (i = 0; i < pi->p_pkey_tbl_sz; i += 32) {
2040 pkey_max = min((pi->p_pkey_tbl_sz - i), 32);
2043 pkeyp[indx] = pi->p_pkey_tbl[indx] =