Lines Matching defs:hfi1_pportdata
769 struct hfi1_pportdata { struct
770 struct hfi1_ibport ibport_data;
772 struct hfi1_devdata *dd;
773 struct kobject pport_cc_kobj;
774 struct kobject sc2vl_kobj;
775 struct kobject sl2sc_kobj;
776 struct kobject vl2mtu_kobj;
779 struct qsfp_data qsfp_info;
781 u32 port_type;
782 u32 tx_preset_eq;
783 u32 tx_preset_noeq;
784 u32 rx_preset;
785 u8 local_atten;
786 u8 remote_atten;
787 u8 default_atten;
788 u8 max_power_class;
791 bool config_from_scratch;
794 u64 guids[HFI1_GUIDS_PER_PORT];
797 u64 neighbor_guid;
800 u32 linkup;
806 u64 *statusp;
810 struct workqueue_struct *hfi1_wq;
811 struct workqueue_struct *link_wq;
814 struct work_struct link_vc_work;
815 struct work_struct link_up_work;
816 struct work_struct link_down_work;
817 struct work_struct sma_message_work;
818 struct work_struct freeze_work;
819 struct work_struct link_downgrade_work;
820 struct work_struct link_bounce_work;
821 struct delayed_work start_link_work;
823 struct mutex hls_lock;
824 u32 host_link_state;
828 u32 ibmtu; /* The MTU programmed for this unit */
833 u32 ibmaxlen;
834 u32 current_egress_rate; /* units [10^6 bits/sec] */
836 u32 lid;
838 u16 pkeys[MAX_PKEY_VALUES];
839 u16 link_width_supported;
840 u16 link_width_downgrade_supported;
841 u16 link_speed_supported;
842 u16 link_width_enabled;
843 u16 link_width_downgrade_enabled;
844 u16 link_speed_enabled;
845 u16 link_width_active;
846 u16 link_width_downgrade_tx_active;
847 u16 link_width_downgrade_rx_active;
848 u16 link_speed_active;
849 u8 vls_supported;
850 u8 vls_operational;
851 u8 actual_vls_operational;
853 u8 lmc;
855 u8 rx_pol_inv;
857 u8 hw_pidx; /* physical port index */
858 u8 port; /* IB port number and index into dd->pports - 1 */
860 u8 neighbor_type;
861 u8 neighbor_normal;
862 u8 neighbor_fm_security; /* 1 if firmware checking is disabled */
863 u8 neighbor_port_number;
864 u8 is_sm_config_started;
865 u8 offline_disabled_reason;
866 u8 is_active_optimize_enabled;
867 u8 driver_link_ready; /* driver ready for active link */
868 u8 link_enabled; /* link enabled? */
869 u8 linkinit_reason;
870 u8 local_tx_rate; /* rate given to 8051 firmware */
871 u8 qsfp_retry_count;
874 u8 overrun_threshold;
875 u8 phy_error_threshold;
876 unsigned int is_link_down_queued;
883 unsigned long led_override_vals[2];
884 u8 led_override_phase; /* LSB picks from vals[] */
885 atomic_t led_override_timer_active;
887 struct timer_list led_override_timer;
889 u32 sm_trap_qp;
890 u32 sa_qp;
896 spinlock_t cca_timer_lock ____cacheline_aligned_in_smp;
897 struct cca_timer cca_timer[OPA_MAX_SLS];
900 struct ib_cc_table_entry_shadow ccti_entries[CC_TABLE_SHADOW_MAX];
904 congestion_entries[OPA_MAX_SLS];
910 spinlock_t cc_state_lock ____cacheline_aligned_in_smp;
912 struct cc_state __rcu *cc_state;
915 u16 total_cct_entry;
918 u32 cc_sl_control_map;
921 u8 cc_max_table_entries;
927 spinlock_t cc_log_lock ____cacheline_aligned_in_smp;
928 u8 threshold_cong_event_map[OPA_MAX_SLS / 8];
929 u16 threshold_event_counter;
930 struct opa_hfi1_cong_log_event_internal cc_events[OPA_CONG_LOG_ELEMS];
931 int cc_log_idx; /* index for logging events */
932 int cc_mad_idx; /* index for reporting events */
935 struct vl_arb_cache vl_arb_cache[MAX_PRIO_TABLE];
938 u64 *cntrs;
940 u64 *scntrs;
942 u64 port_xmit_discards;
943 u64 port_xmit_discards_vl[C_VL_COUNT];
944 u64 port_xmit_constraint_errors;
945 u64 port_rcv_constraint_errors;
947 u64 link_downed;
949 u64 link_up;
951 u64 unknown_frame_count;
953 u16 port_ltp_crc_mode;
955 u8 port_crc_mode_enabled;
957 u8 mgmt_allowed;
958 u8 part_enforce; /* partition enforcement flags */
959 struct link_down_reason local_link_down_reason;
960 struct link_down_reason neigh_link_down_reason;
962 u8 remote_link_down_reason;
964 u32 port_error_action;
965 struct work_struct linkstate_active_work;
967 bool cc_prescan;
972 u64 port_vl_xmit_wait_last[C_VL_COUNT + 1];
973 u16 prev_link_width;
974 u64 vl_xmit_flit_cnt[C_VL_COUNT + 1];