/linux/drivers/net/ethernet/intel/ice/ |
H A D | ice_dcb_lib.h | 17 void ice_dcb_rebuild(struct ice_pf *pf); 18 int ice_dcb_sw_dflt_cfg(struct ice_pf *pf, bool ets_willing, bool locked); 21 bool ice_is_pfc_causing_hung_q(struct ice_pf *pf, unsigned int txqueue); 24 ice_pf_dcb_cfg(struct ice_pf *pf, struct ice_dcbx_cfg *new_cfg, bool locked); 25 int ice_dcb_bwchk(struct ice_pf *pf, struct ice_dcbx_cfg *dcbcfg); 26 void ice_pf_dcb_recfg(struct ice_pf *pf, bool locked); 28 int ice_init_pf_dcb(struct ice_pf *pf, bool locked); 29 void ice_update_dcb_stats(struct ice_pf *pf); 34 ice_dcb_process_lldp_set_mib_change(struct ice_pf *pf, 55 static inline bool ice_is_dcb_active(struct ice_pf *pf) in ice_is_dcb_active() [all …]
|
H A D | ice_ptp.h | 278 container_of(__ptp_port_to_ptp((p)), struct ice_pf, ptp) 283 container_of(__ptp_info_to_ptp((i)), struct ice_pf, ptp) 296 int ice_ptp_clock_index(struct ice_pf *pf); 297 struct ice_pf; 298 int ice_ptp_set_ts_config(struct ice_pf *pf, struct ifreq *ifr); 299 int ice_ptp_get_ts_config(struct ice_pf *pf, struct ifreq *ifr); 300 void ice_ptp_restore_timestamp_mode(struct ice_pf *pf); 302 void ice_ptp_extts_event(struct ice_pf *pf); 306 enum ice_tx_tstamp_work ice_ptp_process_ts(struct ice_pf *pf); 310 void ice_ptp_rebuild(struct ice_pf *pf, enum ice_reset_req reset_type); [all …]
|
H A D | ice_sriov.h | 29 void ice_process_vflr_event(struct ice_pf *pf); 31 int __ice_set_vf_mac(struct ice_pf *pf, u16 vf_id, const u8 *mac); 36 void ice_free_vfs(struct ice_pf *pf); 37 void ice_restore_all_vfs_msi_state(struct ice_pf *pf); 59 ice_vf_lan_overflow_event(struct ice_pf *pf, struct ice_rq_event_info *event); 60 void ice_print_vfs_mdd_events(struct ice_pf *pf); 68 static inline void ice_process_vflr_event(struct ice_pf *pf) { } in ice_process_vflr_event() 69 static inline void ice_free_vfs(struct ice_pf *pf) { } in ice_free_vfs() 71 void ice_vf_lan_overflow_event(struct ice_pf *pf, struct ice_rq_event_info *event) { } in ice_vf_lan_overflow_event() 72 static inline void ice_print_vfs_mdd_events(struct ice_pf *pf) { } in ice_print_vfs_mdd_events() [all …]
|
H A D | ice_vf_lib.h | 24 struct ice_pf; 97 struct ice_pf *pf; 226 struct ice_vf *ice_get_vf_by_id(struct ice_pf *pf, u16 vf_id); 228 bool ice_has_vfs(struct ice_pf *pf); 229 u16 ice_get_num_vfs(struct ice_pf *pf); 234 bool ice_is_any_vf_in_unicast_promisc(struct ice_pf *pf); 243 void ice_reset_all_vfs(struct ice_pf *pf); 244 struct ice_vsi *ice_get_vf_ctrl_vsi(struct ice_pf *pf, struct ice_vsi *vsi); 246 static inline struct ice_vf *ice_get_vf_by_id(struct ice_pf *pf, u16 vf_id) in ice_get_vf_by_id() 255 static inline bool ice_has_vfs(struct ice_pf *pf) in ice_has_vfs() [all …]
|
H A D | ice_lib.h | 16 bool ice_pf_state_is_nominal(struct ice_pf *pf); 45 ice_vsi_setup(struct ice_pf *pf, struct ice_vsi_cfg_params *params); 63 struct ice_vsi *ice_vsi_alloc(struct ice_pf *pf); 67 int ice_wait_for_reset(struct ice_pf *pf, unsigned long timeout); 91 bool ice_is_safe_mode(struct ice_pf *pf); 92 bool ice_is_rdma_ena(struct ice_pf *pf); 113 bool ice_is_feature_supported(struct ice_pf *pf, enum ice_feature f); 114 void ice_set_feature_support(struct ice_pf *pf, enum ice_feature f); 115 void ice_clear_feature_support(struct ice_pf *pf, enum ice_feature f); 116 void ice_init_feature_support(struct ice_pf *pf);
|
H A D | ice_eswitch.c | 20 static int ice_eswitch_setup_env(struct ice_pf *pf) in ice_eswitch_setup_env() 88 ice_eswitch_release_repr(struct ice_pf *pf, struct ice_repr *repr) in ice_eswitch_release_repr() 108 static int ice_eswitch_setup_repr(struct ice_pf *pf, struct ice_repr *repr) in ice_eswitch_setup_repr() 177 struct ice_pf *pf = vsi->back; in ice_eswitch_update_repr() 265 static void ice_eswitch_release_env(struct ice_pf *pf) in ice_eswitch_release_env() 287 static int ice_eswitch_enable_switchdev(struct ice_pf *pf) in ice_eswitch_enable_switchdev() 322 static void ice_eswitch_disable_switchdev(struct ice_pf *pf) in ice_eswitch_disable_switchdev() 340 struct ice_pf *pf = devlink_priv(devlink); in ice_eswitch_mode_set() 388 struct ice_pf *pf = devlink_priv(devlink); in ice_eswitch_mode_get() 401 bool ice_is_eswitch_mode_switchdev(struct ice_pf *pf) in ice_is_eswitch_mode_switchdev() [all …]
|
H A D | ice_ptp.c | 60 static struct ice_pf *ice_get_ctrl_pf(struct ice_pf *pf) in ice_get_ctrl_pf() 65 static struct ice_ptp *ice_get_ctrl_ptp(struct ice_pf *pf) in ice_get_ctrl_ptp() 67 struct ice_pf *ctrl_pf = ice_get_ctrl_pf(pf); in ice_get_ctrl_ptp() 80 static int ice_ptp_find_pin_idx(struct ice_pf *pf, enum ptp_pin_function func, in ice_ptp_find_pin_idx() 101 static void ice_ptp_update_sma_data(struct ice_pf *pf, unsigned int sma_pins[], in ice_ptp_update_sma_data() 156 static int ice_ptp_set_sma_cfg(struct ice_pf *pf) in ice_ptp_set_sma_cfg() 197 static void ice_ptp_cfg_tx_interrupt(struct ice_pf *pf) in ice_ptp_cfg_tx_interrupt() 234 static void ice_set_rx_tstamp(struct ice_pf *pf, bool on) in ice_set_rx_tstamp() 259 static void ice_ptp_disable_timestamp_mode(struct ice_pf *pf) in ice_ptp_disable_timestamp_mode() 278 void ice_ptp_restore_timestamp_mode(struct ice_pf *pf) in ice_ptp_restore_timestamp_mode() [all …]
|
H A D | ice_lag.h | 24 struct ice_pf; 34 struct ice_pf *pf; /* backlink to PF struct */ 68 int ice_init_lag(struct ice_pf *pf); 69 void ice_deinit_lag(struct ice_pf *pf); 70 void ice_lag_rebuild(struct ice_pf *pf); 71 bool ice_lag_is_switchdev_running(struct ice_pf *pf);
|
H A D | ice_irq.h | 18 int ice_init_interrupt_scheme(struct ice_pf *pf); 19 void ice_clear_interrupt_scheme(struct ice_pf *pf); 21 struct msi_map ice_alloc_irq(struct ice_pf *pf, bool dyn_only); 22 void ice_free_irq(struct ice_pf *pf, struct msi_map map); 23 int ice_get_max_used_msix_vector(struct ice_pf *pf);
|
H A D | ice_idc.c | 18 static struct iidc_auxiliary_drv *ice_get_auxiliary_drv(struct ice_pf *pf) in ice_get_auxiliary_drv() 35 void ice_send_event_to_aux(struct ice_pf *pf, struct iidc_event *event) in ice_send_event_to_aux() 60 int ice_add_rdma_qset(struct ice_pf *pf, struct iidc_rdma_qset_params *qset) in ice_add_rdma_qset() 115 int ice_del_rdma_qset(struct ice_pf *pf, struct iidc_rdma_qset_params *qset) in ice_del_rdma_qset() 144 int ice_rdma_request_reset(struct ice_pf *pf, enum iidc_reset_type reset_type) in ice_rdma_request_reset() 176 int ice_rdma_update_vsi_filter(struct ice_pf *pf, u16 vsi_id, bool enable) in ice_rdma_update_vsi_filter() 208 void ice_get_qos_params(struct ice_pf *pf, struct iidc_qos_params *qos) in ice_get_qos_params() 235 static int ice_alloc_rdma_qvectors(struct ice_pf *pf) in ice_alloc_rdma_qvectors() 268 static void ice_free_rdma_qvector(struct ice_pf *pf) in ice_free_rdma_qvector() 303 int ice_plug_aux_dev(struct ice_pf *pf) in ice_plug_aux_dev() [all …]
|
H A D | ice_arfs.h | 50 void ice_sync_arfs_fltrs(struct ice_pf *pf); 52 void ice_remove_arfs(struct ice_pf *pf); 53 void ice_rebuild_arfs(struct ice_pf *pf); 61 static inline void ice_sync_arfs_fltrs(struct ice_pf *pf) { } in ice_sync_arfs_fltrs() 62 static inline void ice_remove_arfs(struct ice_pf *pf) { } in ice_remove_arfs() 63 static inline void ice_rebuild_arfs(struct ice_pf *pf) { } in ice_rebuild_arfs()
|
H A D | ice_dpll.h | 25 struct ice_pf *pf; 55 struct ice_pf *pf; 107 void ice_dpll_init(struct ice_pf *pf); 108 void ice_dpll_deinit(struct ice_pf *pf); 110 static inline void ice_dpll_init(struct ice_pf *pf) { } in ice_dpll_init() 111 static inline void ice_dpll_deinit(struct ice_pf *pf) { } in ice_dpll_deinit()
|
H A D | ice_gnss.h | 32 struct ice_pf *back; 38 void ice_gnss_init(struct ice_pf *pf); 39 void ice_gnss_exit(struct ice_pf *pf); 42 static inline void ice_gnss_init(struct ice_pf *pf) { } in ice_gnss_init() 43 static inline void ice_gnss_exit(struct ice_pf *pf) { } in ice_gnss_exit()
|
H A D | ice_irq.c | 15 ice_init_irq_tracker(struct ice_pf *pf, unsigned int max_vectors, in ice_init_irq_tracker() 27 static void ice_deinit_irq_tracker(struct ice_pf *pf) in ice_deinit_irq_tracker() 37 static void ice_free_irq_res(struct ice_pf *pf, u16 index) in ice_free_irq_res() 56 static struct ice_irq_entry *ice_get_irq_res(struct ice_pf *pf, bool dyn_only) in ice_get_irq_res() 96 static void ice_reduce_msix_usage(struct ice_pf *pf, int v_remain) in ice_reduce_msix_usage() 137 static int ice_ena_msix_range(struct ice_pf *pf) in ice_ena_msix_range() 242 void ice_clear_interrupt_scheme(struct ice_pf *pf) in ice_clear_interrupt_scheme() 252 int ice_init_interrupt_scheme(struct ice_pf *pf) in ice_init_interrupt_scheme() 294 struct msi_map ice_alloc_irq(struct ice_pf *pf, bool dyn_only) in ice_alloc_irq() 335 void ice_free_irq(struct ice_pf *pf, struct msi_map map) in ice_free_irq() [all …]
|
H A D | ice_dcb_nl.c | 16 struct ice_pf *pf = ice_netdev_to_pf(netdev); in ice_dcbnl_devreset() 35 struct ice_pf *pf; in ice_dcbnl_getets() 64 struct ice_pf *pf = ice_netdev_to_pf(netdev); in ice_dcbnl_setets() 134 struct ice_pf *pf = ice_netdev_to_pf(dev); in ice_dcbnl_getnumtcs() 149 struct ice_pf *pf = ice_netdev_to_pf(netdev); in ice_dcbnl_getdcbx() 161 struct ice_pf *pf = ice_netdev_to_pf(netdev); in ice_dcbnl_setdcbx() 207 struct ice_pf *pf = ice_netdev_to_pf(netdev); in ice_dcbnl_get_perm_hw_addr() 240 struct ice_pf *pf = ice_netdev_to_pf(netdev); in ice_dcbnl_getpfc() 266 struct ice_pf *pf = ice_netdev_to_pf(netdev); in ice_dcbnl_setpfc() 308 struct ice_pf *pf = ice_netdev_to_pf(netdev); in ice_dcbnl_get_pfc_cfg() [all …]
|
H A D | ice_sriov.c | 24 static void ice_free_vf_entries(struct ice_pf *pf) in ice_free_vf_entries() 50 struct ice_pf *pf = vf->pf; in ice_free_vf_res() 90 struct ice_pf *pf = vf->pf; in ice_dis_vf_mappings() 135 static int ice_sriov_free_msix_res(struct ice_pf *pf) in ice_sriov_free_msix_res() 151 void ice_free_vfs(struct ice_pf *pf) in ice_free_vfs() 222 struct ice_pf *pf = vf->pf; in ice_vf_vsi_setup() 256 struct ice_pf *pf = vf->pf; in ice_ena_vf_msix_mappings() 386 static int ice_sriov_set_msix_res(struct ice_pf *pf, u16 num_msix_needed) in ice_sriov_set_msix_res() 427 static int ice_set_per_vf_res(struct ice_pf *pf, u16 num_vfs) in ice_set_per_vf_res() 515 static int ice_sriov_get_irqs(struct ice_pf *pf, u16 needed) in ice_sriov_get_irqs() [all …]
|
H A D | ice_hwmon.h | 8 void ice_hwmon_init(struct ice_pf *pf); 9 void ice_hwmon_exit(struct ice_pf *pf); 11 static inline void ice_hwmon_init(struct ice_pf *pf) { } in ice_hwmon_init() 12 static inline void ice_hwmon_exit(struct ice_pf *pf) { } in ice_hwmon_exit()
|
H A D | ice_dpll.c | 50 static bool ice_dpll_is_reset(struct ice_pf *pf, struct netlink_ext_ack *extack) in ice_dpll_is_reset() 75 ice_dpll_pin_freq_set(struct ice_pf *pf, struct ice_dpll_pin *pin, in ice_dpll_pin_freq_set() 135 struct ice_pf *pf = d->pf; in ice_dpll_frequency_set() 223 struct ice_pf *pf = d->pf; in ice_dpll_frequency_get() 394 ice_dpll_pin_state_update(struct ice_pf *pf, struct ice_dpll_pin *pin, in ice_dpll_pin_state_update() 511 ice_dpll_hw_input_prio_set(struct ice_pf *pf, struct ice_dpll *dpll, in ice_dpll_hw_input_prio_set() 553 struct ice_pf *pf = d->pf; in ice_dpll_lock_status_get() 581 struct ice_pf *pf = d->pf; in ice_dpll_mode_get() 615 struct ice_pf *pf = d->pf; in ice_dpll_pin_state_set() 723 struct ice_pf *pf = d->pf; in ice_dpll_pin_state_get() [all …]
|
H A D | ice_debugfs.c | 106 static int ice_find_module_by_dentry(struct ice_pf *pf, struct dentry *d) in ice_find_module_by_dentry() 131 struct ice_pf *pf; in ice_debugfs_module_show() 164 struct ice_pf *pf = file_inode(filp)->i_private; in ice_debugfs_module_write() 228 struct ice_pf *pf = filp->private_data; in ice_debugfs_nr_messages_read() 249 struct ice_pf *pf = filp->private_data; in ice_debugfs_nr_messages_write() 303 struct ice_pf *pf = filp->private_data; in ice_debugfs_enable_read() 325 struct ice_pf *pf = filp->private_data; in ice_debugfs_enable_write() 398 struct ice_pf *pf = filp->private_data; in ice_debugfs_log_size_read() 420 struct ice_pf *pf = filp->private_data; in ice_debugfs_log_size_write() 487 struct ice_pf *pf = filp->private_data; in ice_debugfs_data_read() [all …]
|
H A D | ice_main.c | 65 struct ice_pf *pf = container_of(hw, struct ice_pf, hw); in ice_hw_to_dev() 75 static void ice_rebuild(struct ice_pf *pf, enum ice_reset_req reset_type); 77 static void ice_vsi_release_all(struct ice_pf *pf); 79 static int ice_rebuild_channels(struct ice_pf *pf); 115 static void ice_check_for_hang_subtask(struct ice_pf *pf) in ice_check_for_hang_subtask() 183 static int ice_init_mac_fltr(struct ice_pf *pf) in ice_init_mac_fltr() 328 struct ice_pf *pf = vsi->back; in ice_vsi_sync_fltr() 485 static void ice_sync_fltr_subtask(struct ice_pf *pf) in ice_sync_fltr_subtask() 508 static void ice_pf_dis_all_vsi(struct ice_pf *pf, bool locked) in ice_pf_dis_all_vsi() 532 ice_prepare_for_reset(struct ice_pf *pf, enum ice_reset_req reset_type) in ice_prepare_for_reset() [all …]
|
H A D | ice_vf_lib.c | 25 struct ice_vf *ice_get_vf_by_id(struct ice_pf *pf, u16 vf_id) in ice_get_vf_by_id() 89 bool ice_has_vfs(struct ice_pf *pf) in ice_has_vfs() 105 u16 ice_get_num_vfs(struct ice_pf *pf) in ice_get_num_vfs() 145 struct ice_pf *pf = vf->pf; in ice_is_vf_disabled() 262 struct ice_pf *pf = vf->pf; in ice_vf_reconfig_vsi() 296 struct ice_pf *pf = vf->pf; in ice_vf_rebuild_vsi() 465 struct ice_pf *pf = vsi->back; in ice_vf_rebuild_aggregator_node_cfg() 575 bool ice_is_any_vf_in_unicast_promisc(struct ice_pf *pf) in ice_is_any_vf_in_unicast_promisc() 628 struct ice_pf *pf = vf->pf; in ice_vf_clear_all_promisc_modes() 728 struct ice_pf *pf = vf->pf; in ice_reset_vf_mbx_cnt() [all …]
|
H A D | ice_hwmon.c | 23 struct ice_pf *pf = dev_get_drvdata(dev); in ice_hwmon_read() 88 static bool ice_is_internal_reading_supported(struct ice_pf *pf) in ice_is_internal_reading_supported() 102 void ice_hwmon_init(struct ice_pf *pf) in ice_hwmon_init() 121 void ice_hwmon_exit(struct ice_pf *pf) in ice_hwmon_exit()
|
/linux/drivers/net/ethernet/intel/ice/devlink/ |
H A D | devlink.h | 7 struct ice_pf *ice_allocate_pf(struct device *dev); 8 struct ice_sf_priv *ice_allocate_sf(struct device *dev, struct ice_pf *pf); 10 void ice_devlink_register(struct ice_pf *pf); 11 void ice_devlink_unregister(struct ice_pf *pf); 12 int ice_devlink_register_params(struct ice_pf *pf); 13 void ice_devlink_unregister_params(struct ice_pf *pf); 14 int ice_devlink_create_pf_port(struct ice_pf *pf); 15 void ice_devlink_destroy_pf_port(struct ice_pf *pf); 19 void ice_devlink_init_regions(struct ice_pf *pf); 20 void ice_devlink_destroy_regions(struct ice_pf *pf); [all …]
|
H A D | devlink.c | 34 static void ice_info_get_dsn(struct ice_pf *pf, struct ice_info_ctx *ctx) in ice_info_get_dsn() 44 static void ice_info_pba(struct ice_pf *pf, struct ice_info_ctx *ctx) in ice_info_pba() 56 static void ice_info_fw_mgmt(struct ice_pf *pf, struct ice_info_ctx *ctx) in ice_info_fw_mgmt() 64 static void ice_info_fw_api(struct ice_pf *pf, struct ice_info_ctx *ctx) in ice_info_fw_api() 72 static void ice_info_fw_build(struct ice_pf *pf, struct ice_info_ctx *ctx) in ice_info_fw_build() 79 static void ice_info_orom_ver(struct ice_pf *pf, struct ice_info_ctx *ctx) in ice_info_orom_ver() 88 ice_info_pending_orom_ver(struct ice_pf __always_unused *pf, in ice_info_pending_orom_ver() 98 static void ice_info_nvm_ver(struct ice_pf *pf, struct ice_info_ctx *ctx) in ice_info_nvm_ver() 106 ice_info_pending_nvm_ver(struct ice_pf __always_unused *pf, in ice_info_pending_nvm_ver() 116 static void ice_info_eetrack(struct ice_pf *pf, struct ice_info_ctx *ctx) in ice_info_eetrack() [all …]
|
/linux/include/linux/net/intel/ |
H A D | iidc.h | 74 struct ice_pf; 76 int ice_add_rdma_qset(struct ice_pf *pf, struct iidc_rdma_qset_params *qset); 77 int ice_del_rdma_qset(struct ice_pf *pf, struct iidc_rdma_qset_params *qset); 78 int ice_rdma_request_reset(struct ice_pf *pf, enum iidc_reset_type reset_type); 79 int ice_rdma_update_vsi_filter(struct ice_pf *pf, u16 vsi_id, bool enable); 80 void ice_get_qos_params(struct ice_pf *pf, struct iidc_qos_params *qos); 89 struct ice_pf *pf; 104 void (*event_handler)(struct ice_pf *pf, struct iidc_event *event);
|