Lines Matching full:pf

61 #define i40e_default_queues_per_vmdq(pf) \  argument
62 (((pf)->hw_features & I40E_HW_RSS_AQ_CAPABLE) ? 4 : 1)
65 #define i40e_pf_get_max_q_per_tc(pf) \ argument
66 (((pf)->hw_features & I40E_HW_128_QP_RSS_CAPABLE) ? 128 : 64)
445 u16 num_vmdq_vsis; /* num vmdq vsis this PF has set up */
448 u16 num_req_vfs; /* num VFs requested for this PF */
450 u16 num_lan_qps; /* num lan queues this PF has set up */
451 u16 num_lan_msix; /* num queue vectors for the base PF vsi */
453 u16 num_iwarp_msix; /* num of iwarp vectors for this PF */
458 u16 fdir_pf_filter_count; /* num of guaranteed filters for this PF */
588 u16 pfr_count; /* PF reset count */
621 /* DCBx/DCBNL capability for PF that indicates
711 struct i40e_pf *pf; member
821 struct i40e_pf *back; /* Backreference to associated PF */
822 u16 idx; /* index in pf->vsi[] */
884 struct i40e_pf *pf; member
930 * i40e_netdev_to_pf: Retrieve the PF struct for given netdev
933 * Return the PF struct for the given netdev
951 * @pf: pointer to the PF struct
953 static inline int i40e_get_fd_cnt_all(struct i40e_pf *pf) in i40e_get_fd_cnt_all() argument
955 return pf->hw.fdir_shared_filter_count + pf->fdir_pf_filter_count; in i40e_get_fd_cnt_all()
960 * @pf: pointer to the PF struct
966 static inline u64 i40e_read_fd_input_set(struct i40e_pf *pf, u16 addr) in i40e_read_fd_input_set() argument
970 val = i40e_read_rx_ctl(&pf->hw, I40E_PRTQF_FD_INSET(addr, 1)); in i40e_read_fd_input_set()
972 val += i40e_read_rx_ctl(&pf->hw, I40E_PRTQF_FD_INSET(addr, 0)); in i40e_read_fd_input_set()
979 * @pf: pointer to the PF struct
986 static inline void i40e_write_fd_input_set(struct i40e_pf *pf, in i40e_write_fd_input_set() argument
989 i40e_write_rx_ctl(&pf->hw, I40E_PRTQF_FD_INSET(addr, 1), in i40e_write_fd_input_set()
991 i40e_write_rx_ctl(&pf->hw, I40E_PRTQF_FD_INSET(addr, 0), in i40e_write_fd_input_set()
996 * i40e_get_pf_count - get PCI PF count.
1002 * Return: PCI PF count.
1014 void i40e_do_reset_safe(struct i40e_pf *pf, u32 reset_flags);
1015 void i40e_do_reset(struct i40e_pf *pf, u32 reset_flags, bool lock_acquired);
1018 void i40e_fill_rss_lut(struct i40e_pf *pf, u8 *lut,
1020 struct i40e_vsi *i40e_find_vsi_from_id(struct i40e_pf *pf, u16 id);
1023 * @pf: PF to search for VSI
1027 i40e_find_vsi_by_type(struct i40e_pf *pf, u16 type) in i40e_find_vsi_by_type() argument
1031 for (i = 0; i < pf->num_alloc_vsi; i++) { in i40e_find_vsi_by_type()
1032 struct i40e_vsi *vsi = pf->vsi[i]; in i40e_find_vsi_by_type()
1044 int i40e_fetch_switch_configuration(struct i40e_pf *pf,
1049 void i40e_fdir_check_and_reenable(struct i40e_pf *pf);
1050 u32 i40e_get_current_fd_count(struct i40e_pf *pf);
1051 u32 i40e_get_cur_guaranteed_fd_count(struct i40e_pf *pf);
1052 u32 i40e_get_current_atr_cnt(struct i40e_pf *pf);
1053 u32 i40e_get_global_fd_count(struct i40e_pf *pf);
1054 bool i40e_set_ntuple(struct i40e_pf *pf, netdev_features_t features);
1061 struct i40e_vsi *i40e_vsi_setup(struct i40e_pf *pf, u8 type,
1064 void i40e_service_event_schedule(struct i40e_pf *pf);
1068 int i40e_control_wait_tx_q(int seid, struct i40e_pf *pf, int pf_q, bool is_xdp,
1070 int i40e_control_wait_rx_q(struct i40e_pf *pf, int pf_q, bool enable);
1075 int i40e_reconfig_rss_queues(struct i40e_pf *pf, int queue_count);
1076 struct i40e_veb *i40e_veb_setup(struct i40e_pf *pf, u16 flags, u16 uplink_seid,
1084 void i40e_pf_reset_stats(struct i40e_pf *pf);
1086 void i40e_dbg_pf_init(struct i40e_pf *pf);
1087 void i40e_dbg_pf_exit(struct i40e_pf *pf);
1091 static inline void i40e_dbg_pf_init(struct i40e_pf *pf) {} in i40e_dbg_pf_init() argument
1092 static inline void i40e_dbg_pf_exit(struct i40e_pf *pf) {} in i40e_dbg_pf_exit() argument
1097 int i40e_lan_add_device(struct i40e_pf *pf);
1098 int i40e_lan_del_device(struct i40e_pf *pf);
1099 void i40e_client_subtask(struct i40e_pf *pf);
1102 void i40e_notify_client_of_vf_enable(struct i40e_pf *pf, u32 num_vfs);
1103 void i40e_notify_client_of_vf_reset(struct i40e_pf *pf, u32 vf_id);
1104 void i40e_client_update_msix_info(struct i40e_pf *pf);
1105 int i40e_vf_client_capable(struct i40e_pf *pf, u32 vf_id);
1113 struct i40e_pf *pf = vsi->back; in i40e_irq_dynamic_enable() local
1114 struct i40e_hw *hw = &pf->hw; in i40e_irq_dynamic_enable()
1124 void i40e_irq_dynamic_disable_icr0(struct i40e_pf *pf);
1125 void i40e_irq_dynamic_enable_icr0(struct i40e_pf *pf);
1143 void i40e_dcbnl_flush_apps(struct i40e_pf *pf,
1148 bool i40e_dcb_need_reconfig(struct i40e_pf *pf,
1152 void i40e_ptp_rx_hang(struct i40e_pf *pf);
1153 void i40e_ptp_tx_hang(struct i40e_pf *pf);
1154 void i40e_ptp_tx_hwtstamp(struct i40e_pf *pf);
1155 void i40e_ptp_rx_hwtstamp(struct i40e_pf *pf, struct sk_buff *skb, u8 index);
1156 void i40e_ptp_set_increment(struct i40e_pf *pf);
1157 int i40e_ptp_set_ts_config(struct i40e_pf *pf, struct ifreq *ifr);
1158 int i40e_ptp_get_ts_config(struct i40e_pf *pf, struct ifreq *ifr);
1159 void i40e_ptp_save_hw_time(struct i40e_pf *pf);
1160 void i40e_ptp_restore_hw_time(struct i40e_pf *pf);
1161 void i40e_ptp_init(struct i40e_pf *pf);
1162 void i40e_ptp_stop(struct i40e_pf *pf);
1165 i40e_status i40e_get_partition_bw_setting(struct i40e_pf *pf);
1166 i40e_status i40e_set_partition_bw_setting(struct i40e_pf *pf);
1167 i40e_status i40e_commit_partition_bw_setting(struct i40e_pf *pf);