| /linux/drivers/net/ethernet/intel/ice/ |
| H A D | ice_ptp.h | 276 container_of(__ptp_port_to_ptp((p)), struct ice_pf, ptp) 281 container_of(__ptp_info_to_ptp((i)), struct ice_pf, ptp) 294 int ice_ptp_clock_index(struct ice_pf *pf); 295 struct ice_pf; 301 void ice_ptp_restore_timestamp_mode(struct ice_pf *pf); 303 void ice_ptp_extts_event(struct ice_pf *pf); 307 void ice_ptp_process_ts(struct ice_pf *pf); 308 irqreturn_t ice_ptp_ts_irq(struct ice_pf *pf); 309 bool ice_ptp_tx_tstamps_pending(struct ice_pf *pf); 310 u64 ice_ptp_read_src_clk_reg(struct ice_pf *pf, [all …]
|
| 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_setup_dcb_qos_info(struct ice_pf *pf, 37 ice_dcb_process_lldp_set_mib_change(struct ice_pf *pf, [all …]
|
| H A D | ice.h | 267 struct ice_pf *pf; 337 struct ice_pf *back; /* back pointer to PF */ 556 struct ice_pf { struct 707 static inline bool ice_ptp_pf_handles_tx_interrupt(struct ice_pf *pf) in ice_ptp_pf_handles_tx_interrupt() 723 ((struct ice_pf *)hw->back)->oicr_irq.index; in ice_irq_dynamic_ena() 742 static inline struct ice_pf *ice_netdev_to_pf(struct net_device *netdev) in ice_netdev_to_pf() 768 struct ice_pf *pf = vsi->back; in ice_is_txtime_ena() 848 static inline int ice_get_max_txq(struct ice_pf *pf) in ice_get_max_txq() 859 static inline int ice_get_max_rxq(struct ice_pf *pf) in ice_get_max_rxq() 870 static inline struct ice_vsi *ice_get_main_vsi(struct ice_pf *pf) in ice_get_main_vsi() [all …]
|
| H A D | ice_irq.c | 15 ice_init_irq_tracker(struct ice_pf *pf, unsigned int max_vectors, in ice_init_irq_tracker() 24 ice_init_virt_irq_tracker(struct ice_pf *pf, u32 base, u32 num_entries) in ice_init_virt_irq_tracker() 40 static void ice_deinit_irq_tracker(struct ice_pf *pf) in ice_deinit_irq_tracker() 45 static void ice_deinit_virt_irq_tracker(struct ice_pf *pf) in ice_deinit_virt_irq_tracker() 55 static void ice_free_irq_res(struct ice_pf *pf, u16 index) in ice_free_irq_res() 74 static struct ice_irq_entry *ice_get_irq_res(struct ice_pf *pf, in ice_get_irq_res() 107 static int ice_get_default_msix_amount(struct ice_pf *pf) in ice_get_default_msix_amount() 119 void ice_clear_interrupt_scheme(struct ice_pf *pf) in ice_clear_interrupt_scheme() 130 int ice_init_interrupt_scheme(struct ice_pf *pf) in ice_init_interrupt_scheme() 183 struct msi_map ice_alloc_irq(struct ice_pf *pf, bool dyn_allowed) in ice_alloc_irq() [all …]
|
| H A D | ice_irq.h | 28 int ice_init_interrupt_scheme(struct ice_pf *pf); 29 void ice_clear_interrupt_scheme(struct ice_pf *pf); 31 struct msi_map ice_alloc_irq(struct ice_pf *pf, bool dyn_only); 32 void ice_free_irq(struct ice_pf *pf, struct msi_map map); 34 int ice_virt_get_irqs(struct ice_pf *pf, u32 needed); 35 void ice_virt_free_irqs(struct ice_pf *pf, u32 index, u32 irqs);
|
| H A D | ice_eswitch.c | 20 static int ice_eswitch_setup_env(struct ice_pf *pf) in ice_eswitch_setup_env() 89 ice_eswitch_release_repr(struct ice_pf *pf, struct ice_repr *repr) in ice_eswitch_release_repr() 109 static int ice_eswitch_setup_repr(struct ice_pf *pf, struct ice_repr *repr) in ice_eswitch_setup_repr() 178 struct ice_pf *pf = vsi->back; in ice_eswitch_update_repr() 270 static void ice_eswitch_release_env(struct ice_pf *pf) in ice_eswitch_release_env() 293 static int ice_eswitch_enable_switchdev(struct ice_pf *pf) in ice_eswitch_enable_switchdev() 328 static void ice_eswitch_disable_switchdev(struct ice_pf *pf) in ice_eswitch_disable_switchdev() 346 struct ice_pf *pf = devlink_priv(devlink); in ice_eswitch_mode_set() 394 struct ice_pf *pf = devlink_priv(devlink); in ice_eswitch_mode_get() 407 bool ice_is_eswitch_mode_switchdev(struct ice_pf *pf) in ice_is_eswitch_mode_switchdev() [all …]
|
| H A D | ice_ptp.c | 57 static struct ice_pf *ice_get_ctrl_pf(struct ice_pf *pf) in ice_get_ctrl_pf() 62 static struct ice_ptp *ice_get_ctrl_ptp(struct ice_pf *pf) in ice_get_ctrl_ptp() 64 struct ice_pf *ctrl_pf = ice_get_ctrl_pf(pf); in ice_get_ctrl_ptp() 77 static int ice_ptp_find_pin_idx(struct ice_pf *pf, enum ptp_pin_function func, in ice_ptp_find_pin_idx() 99 static void ice_ptp_cfg_tx_interrupt(struct ice_pf *pf) in ice_ptp_cfg_tx_interrupt() 136 static void ice_set_rx_tstamp(struct ice_pf *pf, bool on) in ice_set_rx_tstamp() 161 static void ice_ptp_disable_timestamp_mode(struct ice_pf *pf) in ice_ptp_disable_timestamp_mode() 180 void ice_ptp_restore_timestamp_mode(struct ice_pf *pf) in ice_ptp_restore_timestamp_mode() 203 u64 ice_ptp_read_src_clk_reg(struct ice_pf *pf, in ice_ptp_read_src_clk_reg() 341 static u64 ice_ptp_extend_40b_ts(struct ice_pf *pf, u64 in_tstamp) in ice_ptp_extend_40b_ts() [all …]
|
| H A D | ice_arfs.h | 49 void ice_sync_arfs_fltrs(struct ice_pf *pf); 51 void ice_remove_arfs(struct ice_pf *pf); 52 void ice_rebuild_arfs(struct ice_pf *pf); 59 static inline void ice_sync_arfs_fltrs(struct ice_pf *pf) { } in ice_sync_arfs_fltrs() 60 static inline void ice_remove_arfs(struct ice_pf *pf) { } in ice_remove_arfs() 61 static inline void ice_rebuild_arfs(struct ice_pf *pf) { } in ice_rebuild_arfs()
|
| 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_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_idc.c | 38 void ice_send_event_to_aux(struct ice_pf *pf, struct iidc_rdma_event *event) in ice_send_event_to_aux() 76 struct ice_pf *pf; in ice_add_rdma_qset() 133 struct ice_pf *pf; in ice_del_rdma_qset() 165 struct ice_pf *pf; in ice_rdma_request_reset() 199 struct ice_pf *pf; in ice_rdma_update_vsi_filter() 236 struct ice_pf *pf; in ice_alloc_rdma_qvector() 262 struct ice_pf *pf; in ice_free_rdma_qvector() 294 int ice_plug_aux_dev(struct ice_pf *pf) in ice_plug_aux_dev() 347 void ice_unplug_aux_dev(struct ice_pf *pf) in ice_unplug_aux_dev() 371 void ice_rdma_finalize_setup(struct ice_pf *pf) in ice_rdma_finalize_setup() [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_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() 91 struct ice_pf *pf = vf->pf; in ice_dis_vf_mappings() 131 void ice_free_vfs(struct ice_pf *pf) in ice_free_vfs() 200 struct ice_pf *pf = vf->pf; in ice_vf_vsi_setup() 234 struct ice_pf *pf = vf->pf; in ice_ena_vf_msix_mappings() 371 static int ice_set_per_vf_res(struct ice_pf *pf, u16 num_vfs) in ice_set_per_vf_res() 440 struct ice_pf *pf = vf->pf; in ice_init_vf_vsi_res() 467 static int ice_start_vfs(struct ice_pf *pf) in ice_start_vfs() 552 struct ice_pf *pf = vf->pf; in ice_sriov_clear_mbx_register() [all …]
|
| H A D | ice_gnss.c | 20 ice_gnss_do_write(struct ice_pf *pf, const unsigned char *buf, unsigned int size) in ice_gnss_do_write() 91 struct ice_pf *pf; in ice_gnss_read() 171 static struct gnss_serial *ice_gnss_struct_init(struct ice_pf *pf) in ice_gnss_struct_init() 208 struct ice_pf *pf = gnss_get_drvdata(gdev); in ice_gnss_open() 234 struct ice_pf *pf = gnss_get_drvdata(gdev); in ice_gnss_close() 261 struct ice_pf *pf = gnss_get_drvdata(gdev); in ice_gnss_write() 297 static int ice_gnss_register(struct ice_pf *pf) in ice_gnss_register() 331 static void ice_gnss_deregister(struct ice_pf *pf) in ice_gnss_deregister() 344 void ice_gnss_init(struct ice_pf *pf) in ice_gnss_init() 366 void ice_gnss_exit(struct ice_pf *pf) in ice_gnss_exit()
|
| H A D | ice_dpll.c | 99 static bool ice_dpll_is_sw_pin(struct ice_pf *pf, u8 index, bool input) in ice_dpll_is_sw_pin() 124 static bool ice_dpll_is_reset(struct ice_pf *pf, struct netlink_ext_ack *extack) in ice_dpll_is_reset() 149 ice_dpll_pin_freq_set(struct ice_pf *pf, struct ice_dpll_pin *pin, in ice_dpll_pin_freq_set() 209 struct ice_pf *pf = d->pf; in ice_dpll_frequency_set() 297 struct ice_pf *pf = d->pf; in ice_dpll_frequency_get() 557 static int ice_dpll_rclk_update_e825c(struct ice_pf *pf, in ice_dpll_rclk_update_e825c() 599 static int ice_dpll_rclk_update(struct ice_pf *pf, struct ice_dpll_pin *pin, in ice_dpll_rclk_update() 633 ice_dpll_sw_pins_update(struct ice_pf *pf) in ice_dpll_sw_pins_update() 698 ice_dpll_pin_state_update(struct ice_pf *pf, struct ice_dpll_pin *pin, in ice_dpll_pin_state_update() 812 ice_dpll_hw_input_prio_set(struct ice_pf *pf, struct ice_dpll *dpll, in ice_dpll_hw_input_prio_set() [all …]
|
| H A D | ice_main.c | 69 struct ice_pf *pf = container_of(hw, struct ice_pf, hw); in ice_hw_to_dev() 79 static void ice_rebuild(struct ice_pf *pf, enum ice_reset_req reset_type); 81 static void ice_vsi_release_all(struct ice_pf *pf); 83 static int ice_rebuild_channels(struct ice_pf *pf); 119 static void ice_check_for_hang_subtask(struct ice_pf *pf) in ice_check_for_hang_subtask() 187 static int ice_init_mac_fltr(struct ice_pf *pf) in ice_init_mac_fltr() 332 struct ice_pf *pf = vsi->back; in ice_vsi_sync_fltr() 489 static void ice_sync_fltr_subtask(struct ice_pf *pf) in ice_sync_fltr_subtask() 512 static void ice_pf_dis_all_vsi(struct ice_pf *pf, bool locked) in ice_pf_dis_all_vsi() 536 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() 263 struct ice_pf *pf = vf->pf; in ice_vf_reconfig_vsi() 297 struct ice_pf *pf = vf->pf; in ice_vf_rebuild_vsi() 466 struct ice_pf *pf = vsi->back; in ice_vf_rebuild_aggregator_node_cfg() 576 bool ice_is_any_vf_in_unicast_promisc(struct ice_pf *pf) in ice_is_any_vf_in_unicast_promisc() 629 struct ice_pf *pf = vf->pf; in ice_vf_clear_all_promisc_modes() 729 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()
|
| H A D | ice_lib.c | 75 struct ice_pf *pf = vsi->back; in ice_vsi_alloc_arrays() 156 static u16 ice_get_rxq_count(struct ice_pf *pf) in ice_get_rxq_count() 162 static u16 ice_get_txq_count(struct ice_pf *pf) in ice_get_txq_count() 177 struct ice_pf *pf = vsi->back; in ice_vsi_set_num_qs() 286 struct ice_pf *pf = vsi->back; in ice_vsi_delete_from_hw() 315 struct ice_pf *pf = vsi->back; in ice_vsi_free_arrays() 340 struct ice_pf *pf = vsi->back; in ice_vsi_free_stats() 381 struct ice_pf *pf = vsi->back; in ice_vsi_alloc_ring_stats() 446 struct ice_pf *pf = NULL; in ice_vsi_free() 523 struct ice_pf *pf = vsi->back; in ice_vsi_alloc_stat_arrays() [all …]
|
| H A D | ice_fw_update.c | 15 struct ice_pf *pf; 54 struct ice_pf *pf = priv->pf; in ice_send_package_data() 95 ice_check_component_response(struct ice_pf *pf, u16 id, u8 response, u8 code, in ice_check_component_response() 220 struct ice_pf *pf = priv->pf; in ice_send_component_table() 294 int ice_write_one_nvm_block(struct ice_pf *pf, u16 module, u32 offset, in ice_write_one_nvm_block() 406 ice_write_nvm_module(struct ice_pf *pf, u16 module, const char *component, in ice_write_nvm_module() 485 ice_erase_nvm_module(struct ice_pf *pf, u16 module, const char *component, in ice_erase_nvm_module() 571 ice_switch_flash_banks(struct ice_pf *pf, u8 activate_flags, in ice_switch_flash_banks() 644 struct ice_pf *pf = priv->pf; in ice_flash_component() 705 struct ice_pf *pf = priv->pf; in ice_finalize_update() [all …]
|
| H A D | ice_eswitch_br.h | 70 struct ice_pf *pf; 117 ice_eswitch_br_offloads_deinit(struct ice_pf *pf); 119 ice_eswitch_br_offloads_init(struct ice_pf *pf);
|
| /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 …]
|
| H A D | port.h | 29 struct ice_pf *pf; 39 void ice_dealloc_all_dynamic_ports(struct ice_pf *pf); 41 int ice_devlink_create_pf_port(struct ice_pf *pf); 42 void ice_devlink_destroy_pf_port(struct ice_pf *pf);
|
| H A D | port.c | 51 static void ice_devlink_port_options_print(struct ice_pf *pf) in ice_devlink_port_options_print() 126 ice_devlink_aq_set_port_option(struct ice_pf *pf, u8 option_idx, in ice_devlink_aq_set_port_option() 187 struct ice_pf *pf = devlink_priv(devlink); in ice_devlink_port_split() 269 ice_devlink_set_port_split_options(struct ice_pf *pf, in ice_devlink_set_port_split_options() 305 ice_devlink_set_switch_id(struct ice_pf *pf, struct netdev_phys_item_id *ppid) in ice_devlink_set_switch_id() 325 int ice_devlink_create_pf_port(struct ice_pf *pf) in ice_devlink_create_pf_port() 375 void ice_devlink_destroy_pf_port(struct ice_pf *pf) in ice_devlink_destroy_pf_port() 421 struct ice_pf *pf; in ice_devlink_port_set_vf_fn_mac() 451 struct ice_pf *pf; in ice_devlink_create_vf_port() 587 struct ice_pf *pf = dyn_port->pf; in ice_dealloc_dynamic_port() [all …]
|