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)
444 u16 num_vmdq_vsis; /* num vmdq vsis this PF has set up */
447 u16 num_req_vfs; /* num VFs requested for this PF */
449 u16 num_lan_qps; /* num lan queues this PF has set up */
450 u16 num_lan_msix; /* num queue vectors for the base PF vsi */
452 u16 num_iwarp_msix; /* num of iwarp vectors for this PF */
457 u16 fdir_pf_filter_count; /* num of guaranteed filters for this PF */
587 u16 pfr_count; /* PF reset count */
620 /* DCBx/DCBNL capability for PF that indicates
710 struct i40e_pf *pf; member
820 struct i40e_pf *back; /* Backreference to associated PF */
821 u16 idx; /* index in pf->vsi[] */
883 struct i40e_pf *pf; member
929 * i40e_netdev_to_pf: Retrieve the PF struct for given netdev
932 * Return the PF struct for the given netdev
950 * @pf: pointer to the PF struct
952 static inline int i40e_get_fd_cnt_all(struct i40e_pf *pf) in i40e_get_fd_cnt_all() argument
954 return pf->hw.fdir_shared_filter_count + pf->fdir_pf_filter_count; in i40e_get_fd_cnt_all()
959 * @pf: pointer to the PF struct
965 static inline u64 i40e_read_fd_input_set(struct i40e_pf *pf, u16 addr) in i40e_read_fd_input_set() argument
969 val = i40e_read_rx_ctl(&pf->hw, I40E_PRTQF_FD_INSET(addr, 1)); in i40e_read_fd_input_set()
971 val += i40e_read_rx_ctl(&pf->hw, I40E_PRTQF_FD_INSET(addr, 0)); in i40e_read_fd_input_set()
978 * @pf: pointer to the PF struct
985 static inline void i40e_write_fd_input_set(struct i40e_pf *pf, in i40e_write_fd_input_set() argument
988 i40e_write_rx_ctl(&pf->hw, I40E_PRTQF_FD_INSET(addr, 1), in i40e_write_fd_input_set()
990 i40e_write_rx_ctl(&pf->hw, I40E_PRTQF_FD_INSET(addr, 0), in i40e_write_fd_input_set()
998 void i40e_do_reset_safe(struct i40e_pf *pf, u32 reset_flags);
999 void i40e_do_reset(struct i40e_pf *pf, u32 reset_flags, bool lock_acquired);
1002 void i40e_fill_rss_lut(struct i40e_pf *pf, u8 *lut,
1004 struct i40e_vsi *i40e_find_vsi_from_id(struct i40e_pf *pf, u16 id);
1007 * @pf: PF to search for VSI
1011 i40e_find_vsi_by_type(struct i40e_pf *pf, u16 type) in i40e_find_vsi_by_type() argument
1015 for (i = 0; i < pf->num_alloc_vsi; i++) { in i40e_find_vsi_by_type()
1016 struct i40e_vsi *vsi = pf->vsi[i]; in i40e_find_vsi_by_type()
1028 int i40e_fetch_switch_configuration(struct i40e_pf *pf,
1033 void i40e_fdir_check_and_reenable(struct i40e_pf *pf);
1034 u32 i40e_get_current_fd_count(struct i40e_pf *pf);
1035 u32 i40e_get_cur_guaranteed_fd_count(struct i40e_pf *pf);
1036 u32 i40e_get_current_atr_cnt(struct i40e_pf *pf);
1037 u32 i40e_get_global_fd_count(struct i40e_pf *pf);
1038 bool i40e_set_ntuple(struct i40e_pf *pf, netdev_features_t features);
1045 struct i40e_vsi *i40e_vsi_setup(struct i40e_pf *pf, u8 type,
1048 void i40e_service_event_schedule(struct i40e_pf *pf);
1052 int i40e_control_wait_tx_q(int seid, struct i40e_pf *pf, int pf_q, bool is_xdp,
1054 int i40e_control_wait_rx_q(struct i40e_pf *pf, int pf_q, bool enable);
1059 int i40e_reconfig_rss_queues(struct i40e_pf *pf, int queue_count);
1060 struct i40e_veb *i40e_veb_setup(struct i40e_pf *pf, u16 flags, u16 uplink_seid,
1068 void i40e_pf_reset_stats(struct i40e_pf *pf);
1070 void i40e_dbg_pf_init(struct i40e_pf *pf);
1071 void i40e_dbg_pf_exit(struct i40e_pf *pf);
1075 static inline void i40e_dbg_pf_init(struct i40e_pf *pf) {} in i40e_dbg_pf_init() argument
1076 static inline void i40e_dbg_pf_exit(struct i40e_pf *pf) {} in i40e_dbg_pf_exit() argument
1081 int i40e_lan_add_device(struct i40e_pf *pf);
1082 int i40e_lan_del_device(struct i40e_pf *pf);
1083 void i40e_client_subtask(struct i40e_pf *pf);
1086 void i40e_notify_client_of_vf_enable(struct i40e_pf *pf, u32 num_vfs);
1087 void i40e_notify_client_of_vf_reset(struct i40e_pf *pf, u32 vf_id);
1088 void i40e_client_update_msix_info(struct i40e_pf *pf);
1089 int i40e_vf_client_capable(struct i40e_pf *pf, u32 vf_id);
1097 struct i40e_pf *pf = vsi->back; in i40e_irq_dynamic_enable() local
1098 struct i40e_hw *hw = &pf->hw; in i40e_irq_dynamic_enable()
1108 void i40e_irq_dynamic_disable_icr0(struct i40e_pf *pf);
1109 void i40e_irq_dynamic_enable_icr0(struct i40e_pf *pf);
1127 void i40e_dcbnl_flush_apps(struct i40e_pf *pf,
1132 bool i40e_dcb_need_reconfig(struct i40e_pf *pf,
1136 void i40e_ptp_rx_hang(struct i40e_pf *pf);
1137 void i40e_ptp_tx_hang(struct i40e_pf *pf);
1138 void i40e_ptp_tx_hwtstamp(struct i40e_pf *pf);
1139 void i40e_ptp_rx_hwtstamp(struct i40e_pf *pf, struct sk_buff *skb, u8 index);
1140 void i40e_ptp_set_increment(struct i40e_pf *pf);
1141 int i40e_ptp_set_ts_config(struct i40e_pf *pf, struct ifreq *ifr);
1142 int i40e_ptp_get_ts_config(struct i40e_pf *pf, struct ifreq *ifr);
1143 void i40e_ptp_save_hw_time(struct i40e_pf *pf);
1144 void i40e_ptp_restore_hw_time(struct i40e_pf *pf);
1145 void i40e_ptp_init(struct i40e_pf *pf);
1146 void i40e_ptp_stop(struct i40e_pf *pf);
1149 i40e_status i40e_get_partition_bw_setting(struct i40e_pf *pf);
1150 i40e_status i40e_set_partition_bw_setting(struct i40e_pf *pf);
1151 i40e_status i40e_commit_partition_bw_setting(struct i40e_pf *pf);