Lines Matching refs:i40e_pf
466 struct i40e_pf { struct
699 __i40e_pf_next_vsi(struct i40e_pf *pf, int *idx) in __i40e_pf_next_vsi() argument
723 __i40e_pf_next_veb(struct i40e_pf *pf, int *idx) in __i40e_pf_next_veb()
786 struct i40e_pf *pf;
899 struct i40e_pf *back; /* Backreference to associated PF */
966 struct i40e_pf *pf;
1078 static inline struct i40e_pf *i40e_netdev_to_pf(struct net_device *netdev) in i40e_netdev_to_pf()
1096 static inline int i40e_get_fd_cnt_all(struct i40e_pf *pf) in i40e_get_fd_cnt_all()
1109 static inline u64 i40e_read_fd_input_set(struct i40e_pf *pf, u16 addr) in i40e_read_fd_input_set()
1129 static inline void i40e_write_fd_input_set(struct i40e_pf *pf, in i40e_write_fd_input_set()
1157 void i40e_do_reset_safe(struct i40e_pf *pf, u32 reset_flags);
1158 void i40e_do_reset(struct i40e_pf *pf, u32 reset_flags, bool lock_acquired);
1161 void i40e_fill_rss_lut(struct i40e_pf *pf, u8 *lut,
1163 struct i40e_vsi *i40e_find_vsi_from_id(struct i40e_pf *pf, u16 id);
1170 i40e_find_vsi_by_type(struct i40e_pf *pf, u16 type) in i40e_find_vsi_by_type()
1185 int i40e_fetch_switch_configuration(struct i40e_pf *pf,
1190 void i40e_fdir_check_and_reenable(struct i40e_pf *pf);
1191 u32 i40e_get_current_fd_count(struct i40e_pf *pf);
1192 u32 i40e_get_cur_guaranteed_fd_count(struct i40e_pf *pf);
1193 u32 i40e_get_current_atr_cnt(struct i40e_pf *pf);
1194 u32 i40e_get_global_fd_count(struct i40e_pf *pf);
1195 bool i40e_set_ntuple(struct i40e_pf *pf, netdev_features_t features);
1202 struct i40e_vsi *i40e_vsi_setup(struct i40e_pf *pf, u8 type,
1205 void i40e_service_event_schedule(struct i40e_pf *pf);
1209 int i40e_control_wait_tx_q(int seid, struct i40e_pf *pf, int pf_q, bool is_xdp,
1211 int i40e_control_wait_rx_q(struct i40e_pf *pf, int pf_q, bool enable);
1216 int i40e_reconfig_rss_queues(struct i40e_pf *pf, int queue_count);
1217 struct i40e_veb *i40e_veb_setup(struct i40e_pf *pf, u16 uplink_seid,
1225 void i40e_pf_reset_stats(struct i40e_pf *pf);
1227 void i40e_dbg_pf_init(struct i40e_pf *pf);
1228 void i40e_dbg_pf_exit(struct i40e_pf *pf);
1232 static inline void i40e_dbg_pf_init(struct i40e_pf *pf) {} in i40e_dbg_pf_init()
1233 static inline void i40e_dbg_pf_exit(struct i40e_pf *pf) {} in i40e_dbg_pf_exit()
1238 int i40e_lan_add_device(struct i40e_pf *pf);
1239 int i40e_lan_del_device(struct i40e_pf *pf);
1240 void i40e_client_subtask(struct i40e_pf *pf);
1241 void i40e_notify_client_of_l2_param_changes(struct i40e_pf *pf);
1242 void i40e_notify_client_of_netdev_close(struct i40e_pf *pf, bool reset);
1243 void i40e_notify_client_of_vf_enable(struct i40e_pf *pf, u32 num_vfs);
1244 void i40e_notify_client_of_vf_reset(struct i40e_pf *pf, u32 vf_id);
1245 void i40e_client_update_msix_info(struct i40e_pf *pf);
1246 int i40e_vf_client_capable(struct i40e_pf *pf, u32 vf_id);
1254 struct i40e_pf *pf = vsi->back; in i40e_irq_dynamic_enable()
1265 void i40e_irq_dynamic_disable_icr0(struct i40e_pf *pf);
1266 void i40e_irq_dynamic_enable_icr0(struct i40e_pf *pf);
1283 static inline bool i40e_is_sw_dcb(struct i40e_pf *pf) in i40e_is_sw_dcb()
1289 void i40e_dcbnl_flush_apps(struct i40e_pf *pf,
1294 bool i40e_dcb_need_reconfig(struct i40e_pf *pf,
1297 int i40e_hw_dcb_config(struct i40e_pf *pf, struct i40e_dcbx_config *new_cfg);
1298 int i40e_dcb_sw_default_config(struct i40e_pf *pf);
1300 void i40e_ptp_rx_hang(struct i40e_pf *pf);
1301 void i40e_ptp_tx_hang(struct i40e_pf *pf);
1302 void i40e_ptp_tx_hwtstamp(struct i40e_pf *pf);
1303 void i40e_ptp_rx_hwtstamp(struct i40e_pf *pf, struct sk_buff *skb, u8 index);
1304 void i40e_ptp_set_increment(struct i40e_pf *pf);
1305 int i40e_ptp_set_ts_config(struct i40e_pf *pf, struct ifreq *ifr);
1306 int i40e_ptp_get_ts_config(struct i40e_pf *pf, struct ifreq *ifr);
1307 void i40e_ptp_save_hw_time(struct i40e_pf *pf);
1308 void i40e_ptp_restore_hw_time(struct i40e_pf *pf);
1309 void i40e_ptp_init(struct i40e_pf *pf);
1310 void i40e_ptp_stop(struct i40e_pf *pf);
1311 int i40e_ptp_alloc_pins(struct i40e_pf *pf);
1314 int i40e_get_partition_bw_setting(struct i40e_pf *pf);
1315 int i40e_set_partition_bw_setting(struct i40e_pf *pf);
1316 int i40e_commit_partition_bw_setting(struct i40e_pf *pf);
1343 static inline bool i40e_is_tc_mqprio_enabled(struct i40e_pf *pf) in i40e_is_tc_mqprio_enabled()
1352 static inline struct i40e_pf *i40e_hw_to_pf(struct i40e_hw *hw) in i40e_hw_to_pf()
1354 return container_of(hw, struct i40e_pf, hw); in i40e_hw_to_pf()
1365 i40e_pf_get_vsi_by_seid(struct i40e_pf *pf, u16 seid) in i40e_pf_get_vsi_by_seid()
1383 static inline struct i40e_vsi *i40e_pf_get_main_vsi(struct i40e_pf *pf) in i40e_pf_get_main_vsi()
1394 i40e_pf_get_veb_by_seid(struct i40e_pf *pf, u16 seid) in i40e_pf_get_veb_by_seid()
1412 static inline struct i40e_veb *i40e_pf_get_main_veb(struct i40e_pf *pf) in i40e_pf_get_main_veb()