Lines Matching refs:pi
1830 tavor_port_query(tavor_state_t *state, uint_t port, ibt_hca_portinfo_t *pi)
1841 _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*pi))
1872 pi->p_base_lid = portinfo.LID;
1873 pi->p_qkey_violations = portinfo.Q_KeyViolations;
1874 pi->p_pkey_violations = portinfo.P_KeyViolations;
1875 pi->p_sm_sl = portinfo.MasterSMSL;
1876 pi->p_sm_lid = portinfo.MasterSMLID;
1877 pi->p_linkstate = portinfo.PortState;
1878 pi->p_port_num = portinfo.LocalPortNum;
1879 pi->p_phys_state = portinfo.PortPhysicalState;
1880 pi->p_width_supported = portinfo.LinkWidthSupported;
1881 pi->p_width_enabled = portinfo.LinkWidthEnabled;
1882 pi->p_width_active = portinfo.LinkWidthActive;
1883 pi->p_speed_supported = portinfo.LinkSpeedSupported;
1884 pi->p_speed_enabled = portinfo.LinkSpeedEnabled;
1885 pi->p_speed_active = portinfo.LinkSpeedActive;
1886 pi->p_mtu = portinfo.MTUCap;
1887 pi->p_lmc = portinfo.LMC;
1888 pi->p_max_vl = portinfo.VLCap;
1889 pi->p_subnet_timeout = portinfo.SubnetTimeOut;
1890 pi->p_msg_sz = ((uint32_t)1 << TAVOR_QP_LOG_MAX_MSGSZ);
1892 pi->p_sgid_tbl_sz = (1 << tbl_size);
1894 pi->p_pkey_tbl_sz = (1 << tbl_size);
1901 pi->p_capabilities |= IBT_PORT_CAP_SM;
1903 pi->p_capabilities |= IBT_PORT_CAP_SM_DISABLED;
1905 pi->p_capabilities |= IBT_PORT_CAP_SNMP_TUNNEL;
1907 pi->p_capabilities |= IBT_PORT_CAP_DM;
1909 pi->p_capabilities |= IBT_PORT_CAP_VENDOR;
1920 for (i = 0; i < pi->p_sgid_tbl_sz; i += 8) {
1933 sgid_max = min((pi->p_sgid_tbl_sz - i), 8);
1936 sgid = &pi->p_sgid_tbl[indx];
1951 for (i = 0; i < pi->p_pkey_tbl_sz; i += 32) {
1964 pkey_max = min((pi->p_pkey_tbl_sz - i), 32);
1967 pi->p_pkey_tbl[indx] = pkeytable.P_KeyTableBlocks[j];