Lines Matching defs:hfi1_pportdata
705 struct hfi1_pportdata { struct
706 struct hfi1_ibport ibport_data;
708 struct hfi1_devdata *dd;
709 struct kobject pport_cc_kobj;
710 struct kobject sc2vl_kobj;
711 struct kobject sl2sc_kobj;
712 struct kobject vl2mtu_kobj;
715 struct qsfp_data qsfp_info;
717 u32 port_type;
718 u32 tx_preset_eq;
719 u32 tx_preset_noeq;
720 u32 rx_preset;
721 u8 local_atten;
722 u8 remote_atten;
723 u8 default_atten;
724 u8 max_power_class;
727 bool config_from_scratch;
730 u64 guids[HFI1_GUIDS_PER_PORT];
733 u64 neighbor_guid;
736 u32 linkup;
742 u64 *statusp;
746 struct workqueue_struct *hfi1_wq;
747 struct workqueue_struct *link_wq;
750 struct work_struct link_vc_work;
751 struct work_struct link_up_work;
752 struct work_struct link_down_work;
753 struct work_struct sma_message_work;
754 struct work_struct freeze_work;
755 struct work_struct link_downgrade_work;
756 struct work_struct link_bounce_work;
757 struct delayed_work start_link_work;
759 struct mutex hls_lock;
760 u32 host_link_state;
764 u32 ibmtu; /* The MTU programmed for this unit */
769 u32 ibmaxlen;
770 u32 current_egress_rate; /* units [10^6 bits/sec] */
772 u32 lid;
774 u16 pkeys[MAX_PKEY_VALUES];
775 u16 link_width_supported;
776 u16 link_width_downgrade_supported;
777 u16 link_speed_supported;
778 u16 link_width_enabled;
779 u16 link_width_downgrade_enabled;
780 u16 link_speed_enabled;
781 u16 link_width_active;
782 u16 link_width_downgrade_tx_active;
783 u16 link_width_downgrade_rx_active;
784 u16 link_speed_active;
785 u8 vls_supported;
786 u8 vls_operational;
787 u8 actual_vls_operational;
789 u8 lmc;
791 u8 rx_pol_inv;
793 u8 hw_pidx; /* physical port index */
794 u8 port; /* IB port number and index into dd->pports - 1 */
796 u8 neighbor_type;
797 u8 neighbor_normal;
798 u8 neighbor_fm_security; /* 1 if firmware checking is disabled */
799 u8 neighbor_port_number;
800 u8 is_sm_config_started;
801 u8 offline_disabled_reason;
802 u8 is_active_optimize_enabled;
803 u8 driver_link_ready; /* driver ready for active link */
804 u8 link_enabled; /* link enabled? */
805 u8 linkinit_reason;
806 u8 local_tx_rate; /* rate given to 8051 firmware */
807 u8 qsfp_retry_count;
810 u8 overrun_threshold;
811 u8 phy_error_threshold;
812 unsigned int is_link_down_queued;
819 unsigned long led_override_vals[2];
820 u8 led_override_phase; /* LSB picks from vals[] */
821 atomic_t led_override_timer_active;
823 struct timer_list led_override_timer;
825 u32 sm_trap_qp;
826 u32 sa_qp;
832 spinlock_t cca_timer_lock ____cacheline_aligned_in_smp;
833 struct cca_timer cca_timer[OPA_MAX_SLS];
836 struct ib_cc_table_entry_shadow ccti_entries[CC_TABLE_SHADOW_MAX];
840 congestion_entries[OPA_MAX_SLS];
846 spinlock_t cc_state_lock ____cacheline_aligned_in_smp;
848 struct cc_state __rcu *cc_state;
851 u16 total_cct_entry;
854 u32 cc_sl_control_map;
857 u8 cc_max_table_entries;
863 spinlock_t cc_log_lock ____cacheline_aligned_in_smp;
864 u8 threshold_cong_event_map[OPA_MAX_SLS / 8];
865 u16 threshold_event_counter;
866 struct opa_hfi1_cong_log_event_internal cc_events[OPA_CONG_LOG_ELEMS];
867 int cc_log_idx; /* index for logging events */
868 int cc_mad_idx; /* index for reporting events */
871 struct vl_arb_cache vl_arb_cache[MAX_PRIO_TABLE];
874 u64 *cntrs;
876 u64 *scntrs;
878 u64 port_xmit_discards;
879 u64 port_xmit_discards_vl[C_VL_COUNT];
880 u64 port_xmit_constraint_errors;
881 u64 port_rcv_constraint_errors;
883 u64 link_downed;
885 u64 link_up;
887 u64 unknown_frame_count;
889 u16 port_ltp_crc_mode;
891 u8 port_crc_mode_enabled;
893 u8 mgmt_allowed;
894 u8 part_enforce; /* partition enforcement flags */
895 struct link_down_reason local_link_down_reason;
896 struct link_down_reason neigh_link_down_reason;
898 u8 remote_link_down_reason;
900 u32 port_error_action;
901 struct work_struct linkstate_active_work;
903 bool cc_prescan;
908 u64 port_vl_xmit_wait_last[C_VL_COUNT + 1];
909 u16 prev_link_width;
910 u64 vl_xmit_flit_cnt[C_VL_COUNT + 1];