Lines Matching full:pf
60 #define i40e_default_queues_per_vmdq(pf) \ argument
61 (((pf)->hw_features & I40E_HW_RSS_AQ_CAPABLE) ? 4 : 1)
64 #define i40e_pf_get_max_q_per_tc(pf) \ argument
65 (((pf)->hw_features & I40E_HW_128_QP_RSS_CAPABLE) ? 128 : 64)
440 u16 num_vmdq_vsis; /* num vmdq vsis this PF has set up */
443 u16 num_req_vfs; /* num VFs requested for this PF */
445 u16 num_lan_qps; /* num lan queues this PF has set up */
446 u16 num_lan_msix; /* num queue vectors for the base PF vsi */
448 u16 num_iwarp_msix; /* num of iwarp vectors for this PF */
453 u16 fdir_pf_filter_count; /* num of guaranteed filters for this PF */
583 u16 pfr_count; /* PF reset count */
616 /* DCBx/DCBNL capability for PF that indicates
706 struct i40e_pf *pf; member
816 struct i40e_pf *back; /* Backreference to associated PF */
817 u16 idx; /* index in pf->vsi[] */
879 struct i40e_pf *pf; member
925 * i40e_netdev_to_pf: Retrieve the PF struct for given netdev
928 * Return the PF struct for the given netdev
946 * @pf: pointer to the PF struct
948 static inline int i40e_get_fd_cnt_all(struct i40e_pf *pf) in i40e_get_fd_cnt_all() argument
950 return pf->hw.fdir_shared_filter_count + pf->fdir_pf_filter_count; in i40e_get_fd_cnt_all()
955 * @pf: pointer to the PF struct
961 static inline u64 i40e_read_fd_input_set(struct i40e_pf *pf, u16 addr) in i40e_read_fd_input_set() argument
965 val = i40e_read_rx_ctl(&pf->hw, I40E_PRTQF_FD_INSET(addr, 1)); in i40e_read_fd_input_set()
967 val += i40e_read_rx_ctl(&pf->hw, I40E_PRTQF_FD_INSET(addr, 0)); in i40e_read_fd_input_set()
974 * @pf: pointer to the PF struct
981 static inline void i40e_write_fd_input_set(struct i40e_pf *pf, in i40e_write_fd_input_set() argument
984 i40e_write_rx_ctl(&pf->hw, I40E_PRTQF_FD_INSET(addr, 1), in i40e_write_fd_input_set()
986 i40e_write_rx_ctl(&pf->hw, I40E_PRTQF_FD_INSET(addr, 0), in i40e_write_fd_input_set()
994 void i40e_do_reset_safe(struct i40e_pf *pf, u32 reset_flags);
995 void i40e_do_reset(struct i40e_pf *pf, u32 reset_flags, bool lock_acquired);
998 void i40e_fill_rss_lut(struct i40e_pf *pf, u8 *lut,
1000 struct i40e_vsi *i40e_find_vsi_from_id(struct i40e_pf *pf, u16 id);
1003 * @pf: PF to search for VSI
1007 i40e_find_vsi_by_type(struct i40e_pf *pf, u16 type) in i40e_find_vsi_by_type() argument
1011 for (i = 0; i < pf->num_alloc_vsi; i++) { in i40e_find_vsi_by_type()
1012 struct i40e_vsi *vsi = pf->vsi[i]; in i40e_find_vsi_by_type()
1024 int i40e_fetch_switch_configuration(struct i40e_pf *pf,
1029 void i40e_fdir_check_and_reenable(struct i40e_pf *pf);
1030 u32 i40e_get_current_fd_count(struct i40e_pf *pf);
1031 u32 i40e_get_cur_guaranteed_fd_count(struct i40e_pf *pf);
1032 u32 i40e_get_current_atr_cnt(struct i40e_pf *pf);
1033 u32 i40e_get_global_fd_count(struct i40e_pf *pf);
1034 bool i40e_set_ntuple(struct i40e_pf *pf, netdev_features_t features);
1041 struct i40e_vsi *i40e_vsi_setup(struct i40e_pf *pf, u8 type,
1044 void i40e_service_event_schedule(struct i40e_pf *pf);
1048 int i40e_control_wait_tx_q(int seid, struct i40e_pf *pf, int pf_q, bool is_xdp,
1050 int i40e_control_wait_rx_q(struct i40e_pf *pf, int pf_q, bool enable);
1055 int i40e_reconfig_rss_queues(struct i40e_pf *pf, int queue_count);
1056 struct i40e_veb *i40e_veb_setup(struct i40e_pf *pf, u16 flags, u16 uplink_seid,
1064 void i40e_pf_reset_stats(struct i40e_pf *pf);
1066 void i40e_dbg_pf_init(struct i40e_pf *pf);
1067 void i40e_dbg_pf_exit(struct i40e_pf *pf);
1071 static inline void i40e_dbg_pf_init(struct i40e_pf *pf) {} in i40e_dbg_pf_init() argument
1072 static inline void i40e_dbg_pf_exit(struct i40e_pf *pf) {} in i40e_dbg_pf_exit() argument
1077 int i40e_lan_add_device(struct i40e_pf *pf);
1078 int i40e_lan_del_device(struct i40e_pf *pf);
1079 void i40e_client_subtask(struct i40e_pf *pf);
1082 void i40e_notify_client_of_vf_enable(struct i40e_pf *pf, u32 num_vfs);
1083 void i40e_notify_client_of_vf_reset(struct i40e_pf *pf, u32 vf_id);
1084 void i40e_client_update_msix_info(struct i40e_pf *pf);
1085 int i40e_vf_client_capable(struct i40e_pf *pf, u32 vf_id);
1093 struct i40e_pf *pf = vsi->back; in i40e_irq_dynamic_enable() local
1094 struct i40e_hw *hw = &pf->hw; in i40e_irq_dynamic_enable()
1104 void i40e_irq_dynamic_disable_icr0(struct i40e_pf *pf);
1105 void i40e_irq_dynamic_enable_icr0(struct i40e_pf *pf);
1123 void i40e_dcbnl_flush_apps(struct i40e_pf *pf,
1128 bool i40e_dcb_need_reconfig(struct i40e_pf *pf,
1132 void i40e_ptp_rx_hang(struct i40e_pf *pf);
1133 void i40e_ptp_tx_hang(struct i40e_pf *pf);
1134 void i40e_ptp_tx_hwtstamp(struct i40e_pf *pf);
1135 void i40e_ptp_rx_hwtstamp(struct i40e_pf *pf, struct sk_buff *skb, u8 index);
1136 void i40e_ptp_set_increment(struct i40e_pf *pf);
1137 int i40e_ptp_set_ts_config(struct i40e_pf *pf, struct ifreq *ifr);
1138 int i40e_ptp_get_ts_config(struct i40e_pf *pf, struct ifreq *ifr);
1139 void i40e_ptp_save_hw_time(struct i40e_pf *pf);
1140 void i40e_ptp_restore_hw_time(struct i40e_pf *pf);
1141 void i40e_ptp_init(struct i40e_pf *pf);
1142 void i40e_ptp_stop(struct i40e_pf *pf);
1144 i40e_status i40e_get_partition_bw_setting(struct i40e_pf *pf);
1145 i40e_status i40e_set_partition_bw_setting(struct i40e_pf *pf);
1146 i40e_status i40e_commit_partition_bw_setting(struct i40e_pf *pf);