H A D | ice_common.c | 1 /* SPDX-License-Identifier: BSD-3-Clause */ 127 * ice_dump_phy_type - helper function to dump phy_type in ice_dump_phy_type() 128 * @hw: pointer to the HW structure in ice_dump_phy_type() 134 ice_dump_phy_type(struct ice_hw *hw, u64 low, u64 high, const char *prefix) in ice_dump_phy_type() 138 ice_debug(hw, ICE_DBG_PHY, "%s: phy_type_low: 0x%016llx\n", prefix, in ice_dump_phy_type() 143 ice_debug(hw, ICE_DBG_PH in ice_dump_phy_type() 124 ice_dump_phy_type(struct ice_hw * hw,u64 low,u64 high,const char * prefix) ice_dump_phy_type() argument 154 ice_set_mac_type(struct ice_hw * hw) ice_set_mac_type() argument 206 ice_is_e810(struct ice_hw * hw) ice_is_e810() argument 217 ice_is_e810t(struct ice_hw * hw) ice_is_e810t() argument 252 ice_is_e823(struct ice_hw * hw) ice_is_e823() argument 278 ice_clear_pf_cfg(struct ice_hw * hw) ice_clear_pf_cfg() argument 303 ice_aq_manage_mac_read(struct ice_hw * hw,void * buf,u16 buf_size,struct ice_sq_cd * cd) ice_aq_manage_mac_read() argument 448 struct ice_hw *hw; ice_aq_get_phy_caps() local 535 ice_aq_get_netlist_node(struct ice_hw * hw,struct ice_aqc_get_link_topo * cmd,u8 * node_part_number,u16 * node_handle) ice_aq_get_netlist_node() argument 568 ice_find_netlist_node(struct ice_hw * hw,u8 node_type_ctx,u8 node_part_number,u16 * node_handle) ice_find_netlist_node() argument 601 ice_get_link_status_datalen(hw) global() argument 623 struct ice_hw *hw; ice_aq_get_link_info() local 711 ice_fill_tx_timer_and_fc_thresh(struct ice_hw * hw,struct ice_aqc_set_mac_cfg * cmd) ice_fill_tx_timer_and_fc_thresh() argument 749 ice_aq_set_mac_cfg(struct ice_hw * hw,u16 max_frame_size,bool auto_drop,struct ice_sq_cd * cd) ice_aq_set_mac_cfg() argument 775 ice_init_fltr_mgmt_struct(struct ice_hw * hw) ice_init_fltr_mgmt_struct() argument 805 ice_cleanup_fltr_mgmt_single(struct ice_hw * hw,struct ice_switch_info * sw) ice_cleanup_fltr_mgmt_single() argument 869 ice_cleanup_fltr_mgmt_struct(struct ice_hw * hw) ice_cleanup_fltr_mgmt_struct() argument 881 ice_get_itr_intrl_gran(struct ice_hw * hw) ice_get_itr_intrl_gran() argument 905 ice_print_rollback_msg(struct ice_hw * hw) ice_print_rollback_msg() argument 928 ice_set_umac_shared(struct ice_hw * hw) ice_set_umac_shared() argument 937 ice_init_hw(struct ice_hw * hw) ice_init_hw() argument 1113 ice_deinit_hw(struct ice_hw * hw) ice_deinit_hw() argument 1138 ice_check_reset(struct ice_hw * hw) ice_check_reset() argument 1200 ice_pf_reset(struct ice_hw * hw) ice_pf_reset() argument 1258 ice_reset(struct ice_hw * hw,enum ice_reset_req req) ice_reset() argument 1294 ice_copy_rxq_ctx_to_hw(struct ice_hw * hw,u8 * ice_rxq_ctx,u32 rxq_index) ice_copy_rxq_ctx_to_hw() argument 1325 ice_copy_rxq_ctx_from_hw(struct ice_hw * hw,u8 * ice_rxq_ctx,u32 rxq_index) ice_copy_rxq_ctx_from_hw() argument 1384 ice_write_rxq_ctx(struct ice_hw * hw,struct ice_rlan_ctx * rlan_ctx,u32 rxq_index) ice_write_rxq_ctx() argument 1408 ice_read_rxq_ctx(struct ice_hw * hw,struct ice_rlan_ctx * rlan_ctx,u32 rxq_index) ice_read_rxq_ctx() argument 1431 ice_clear_rxq_ctx(struct ice_hw * hw,u32 rxq_index) ice_clear_rxq_ctx() argument 1490 ice_copy_tx_cmpltnq_ctx_to_hw(struct ice_hw * hw,u8 * ice_tx_cmpltnq_ctx,u32 tx_cmpltnq_index) ice_copy_tx_cmpltnq_ctx_to_hw() argument 1539 ice_write_tx_cmpltnq_ctx(struct ice_hw * hw,struct ice_tx_cmpltnq_ctx * tx_cmpltnq_ctx,u32 tx_cmpltnq_index) ice_write_tx_cmpltnq_ctx() argument 1557 ice_clear_tx_cmpltnq_ctx(struct ice_hw * hw,u32 tx_cmpltnq_index) ice_clear_tx_cmpltnq_ctx() argument 1580 ice_copy_tx_drbell_q_ctx_to_hw(struct ice_hw * hw,u8 * ice_tx_drbell_q_ctx,u32 tx_drbell_q_index) ice_copy_tx_drbell_q_ctx_to_hw() argument 1630 ice_write_tx_drbell_q_ctx(struct ice_hw * hw,struct ice_tx_drbell_q_ctx * tx_drbell_q_ctx,u32 tx_drbell_q_index) ice_write_tx_drbell_q_ctx() argument 1649 ice_clear_tx_drbell_q_ctx(struct ice_hw * hw,u32 tx_drbell_q_index) ice_clear_tx_drbell_q_ctx() argument 1706 ice_sq_send_cmd_retry(struct ice_hw * hw,struct ice_ctl_q_info * cq,struct ice_aq_desc * desc,void * buf,u16 buf_size,struct ice_sq_cd * cd) ice_sq_send_cmd_retry() argument 1767 ice_aq_send_cmd(struct ice_hw * hw,struct ice_aq_desc * desc,void * buf,u16 buf_size,struct ice_sq_cd * cd) ice_aq_send_cmd() argument 1780 ice_aq_get_fw_ver(struct ice_hw * hw,struct ice_sq_cd * cd) ice_aq_get_fw_ver() argument 1816 ice_aq_send_driver_ver(struct ice_hw * hw,struct ice_driver_ver * dv,struct ice_sq_cd * cd) ice_aq_send_driver_ver() argument 1852 ice_aq_q_shutdown(struct ice_hw * hw,bool unloading) ice_aq_q_shutdown() argument 1894 ice_aq_req_res(struct ice_hw * hw,enum ice_aq_res_ids res,enum ice_aq_res_access_type access,u8 sdp_number,u32 * timeout,struct ice_sq_cd * cd) ice_aq_req_res() argument 1895 ice_aq_req_res(struct ice_hw * hw,enum ice_aq_res_ids res,enum ice_aq_res_access_type access,u8 sdp_number,u32 * timeout,struct ice_sq_cd * cd) ice_aq_req_res() argument 1965 ice_aq_release_res(struct ice_hw * hw,enum ice_aq_res_ids res,u8 sdp_number,struct ice_sq_cd * cd) ice_aq_release_res() argument 1993 ice_acquire_res(struct ice_hw * hw,enum ice_aq_res_ids res,enum ice_aq_res_access_type access,u32 timeout) ice_acquire_res() argument 1994 ice_acquire_res(struct ice_hw * hw,enum ice_aq_res_ids res,enum ice_aq_res_access_type access,u32 timeout) ice_acquire_res() argument 2051 ice_release_res(struct ice_hw * hw,enum ice_aq_res_ids res) ice_release_res() argument 2083 ice_aq_alloc_free_res(struct ice_hw * hw,u16 num_entries,struct ice_aqc_alloc_free_res_elem * buf,u16 buf_size,enum ice_adminq_opc opc,struct ice_sq_cd * cd) ice_aq_alloc_free_res() argument 2118 ice_alloc_hw_res(struct ice_hw * hw,u16 type,u16 num,bool btm,u16 * res) ice_alloc_hw_res() argument 2156 ice_free_hw_res(struct ice_hw * hw,u16 type,u16 num,u16 * res) ice_free_hw_res() argument 2191 ice_get_num_per_func(struct ice_hw * hw,u32 max) ice_get_num_per_func() argument 2213 ice_print_led_caps(struct ice_hw * hw,struct ice_hw_common_caps * caps,char const * prefix,bool dbg) ice_print_led_caps() argument 2246 ice_print_sdp_caps(struct ice_hw * hw,struct ice_hw_common_caps * caps,char const * prefix,bool dbg) ice_print_sdp_caps() argument 2285 ice_parse_common_caps(struct ice_hw * hw,struct ice_hw_common_caps * caps,struct ice_aqc_list_caps_elem * elem,const char * prefix) ice_parse_common_caps() argument 2537 ice_recalc_port_limited_caps(struct ice_hw * hw,struct ice_hw_common_caps * caps) ice_recalc_port_limited_caps() argument 2569 ice_parse_vf_func_caps(struct ice_hw * hw,struct ice_hw_func_caps * func_p,struct ice_aqc_list_caps_elem * cap) ice_parse_vf_func_caps() argument 2592 ice_parse_vsi_func_caps(struct ice_hw * hw,struct ice_hw_func_caps * func_p,struct ice_aqc_list_caps_elem * cap) ice_parse_vsi_func_caps() argument 2617 ice_parse_func_caps(struct ice_hw * hw,struct ice_hw_func_caps * func_p,void * buf,u32 cap_count) ice_parse_func_caps() argument 2665 ice_parse_valid_functions_cap(struct ice_hw * hw,struct ice_hw_dev_caps * dev_p,struct ice_aqc_list_caps_elem * cap) ice_parse_valid_functions_cap() argument 2685 ice_parse_vf_dev_caps(struct ice_hw * hw,struct ice_hw_dev_caps * dev_p,struct ice_aqc_list_caps_elem * cap) ice_parse_vf_dev_caps() argument 2704 ice_parse_vsi_dev_caps(struct ice_hw * hw,struct ice_hw_dev_caps * dev_p,struct ice_aqc_list_caps_elem * cap) ice_parse_vsi_dev_caps() argument 2723 ice_parse_nac_topo_dev_caps(struct ice_hw * hw,struct ice_hw_dev_caps * dev_p,struct ice_aqc_list_caps_elem * cap) ice_parse_nac_topo_dev_caps() argument 2747 ice_parse_sensor_reading_cap(struct ice_hw * hw,struct ice_hw_dev_caps * dev_p,struct ice_aqc_list_caps_elem * cap) ice_parse_sensor_reading_cap() argument 2772 ice_parse_dev_caps(struct ice_hw * hw,struct ice_hw_dev_caps * dev_p,void * buf,u32 cap_count) ice_parse_dev_caps() argument 2840 ice_aq_list_caps(struct ice_hw * hw,void * buf,u16 buf_size,u32 * cap_count,enum ice_adminq_opc opc,struct ice_sq_cd * cd) ice_aq_list_caps() argument 2871 ice_discover_dev_caps(struct ice_hw * hw,struct ice_hw_dev_caps * dev_caps) ice_discover_dev_caps() argument 2905 ice_discover_func_caps(struct ice_hw * hw,struct ice_hw_func_caps * func_caps) ice_discover_func_caps() argument 2934 ice_set_safe_mode_caps(struct ice_hw * hw) ice_set_safe_mode_caps() argument 2997 ice_get_caps(struct ice_hw * hw) ice_get_caps() argument 3018 ice_aq_manage_mac_write(struct ice_hw * hw,const u8 * mac_addr,u8 flags,struct ice_sq_cd * cd) ice_aq_manage_mac_write() argument 3039 ice_aq_clear_pxe_mode(struct ice_hw * hw) ice_aq_clear_pxe_mode() argument 3056 ice_clear_pxe_mode(struct ice_hw * hw) ice_clear_pxe_mode() argument 3079 struct ice_hw *hw = pi->hw; ice_aq_set_port_params() local 3105 ice_is_100m_speed_supported(struct ice_hw * hw) ice_is_100m_speed_supported() argument 3307 ice_aq_set_phy_cfg(struct ice_hw * hw,struct ice_port_info * pi,struct ice_aqc_set_phy_cfg_data * cfg,struct ice_sq_cd * cd) ice_aq_set_phy_cfg() argument 3372 struct ice_hw *hw; ice_update_link_info() local 3560 struct ice_hw *hw; ice_set_fc() local 3707 struct ice_hw *hw; ice_cfg_phy_fec() local 3869 ice_aq_set_event_mask(struct ice_hw * hw,u8 port_num,u16 mask,struct ice_sq_cd * cd) ice_aq_set_event_mask() argument 3894 ice_aq_set_mac_loopback(struct ice_hw * hw,bool ena_lpbk,struct ice_sq_cd * cd) ice_aq_set_mac_loopback() argument 3921 struct ice_hw *hw = pi->hw; ice_aq_set_port_id_led() local 3952 ice_aq_sff_eeprom(struct ice_hw * hw,u16 lport,u8 bus_addr,u16 mem_addr,u8 page,u8 set_page,u8 * data,u8 length,bool write,struct ice_sq_cd * cd) ice_aq_sff_eeprom() argument 3992 ice_aq_prog_topo_dev_nvm(struct ice_hw * hw,struct ice_aqc_link_topo_params * topo_params,struct ice_sq_cd * cd) ice_aq_prog_topo_dev_nvm() argument 4021 ice_aq_read_topo_dev_nvm(struct ice_hw * hw,struct ice_aqc_link_topo_params * topo_params,u32 start_address,u8 * data,u8 data_size,struct ice_sq_cd * cd) ice_aq_read_topo_dev_nvm() argument 4106 __ice_aq_get_set_rss_lut(struct ice_hw * hw,struct ice_aq_get_set_rss_lut_params * params,bool set) __ice_aq_get_set_rss_lut() argument 4168 ice_aq_get_rss_lut(struct ice_hw * hw,struct ice_aq_get_set_rss_lut_params * get_params) ice_aq_get_rss_lut() argument 4181 ice_aq_set_rss_lut(struct ice_hw * hw,struct ice_aq_get_set_rss_lut_params * set_params) ice_aq_set_rss_lut() argument 4196 __ice_aq_get_set_rss_key(struct ice_hw * hw,u16 vsi_id,struct ice_aqc_get_set_rss_keys * key,bool set) __ice_aq_get_set_rss_key() argument 4230 ice_aq_get_rss_key(struct ice_hw * hw,u16 vsi_handle,struct ice_aqc_get_set_rss_keys * key) ice_aq_get_rss_key() argument 4249 ice_aq_set_rss_key(struct ice_hw * hw,u16 vsi_handle,struct ice_aqc_get_set_rss_keys * keys) ice_aq_set_rss_key() argument 4281 ice_aq_add_lan_txq(struct ice_hw * hw,u8 num_qgrps,struct ice_aqc_add_tx_qgrp * qg_list,u16 buf_size,struct ice_sq_cd * cd) ice_aq_add_lan_txq() argument 4331 ice_aq_dis_lan_txq(struct ice_hw * hw,u8 num_qgrps,struct ice_aqc_dis_txq_item * qg_list,u16 buf_size,enum ice_disq_rst_src rst_src,u16 vmvf_num,struct ice_sq_cd * cd) ice_aq_dis_lan_txq() argument 4434 ice_aq_move_recfg_lan_txq(struct ice_hw * hw,u8 num_qs,bool is_move,bool is_tc_change,bool subseq_call,bool flush_pipe,u8 timeout,u32 * blocked_cgds,struct ice_aqc_move_txqs_data * buf,u16 buf_size,u8 * txqs_moved,struct ice_sq_cd * cd) ice_aq_move_recfg_lan_txq() argument 4436 ice_aq_move_recfg_lan_txq(struct ice_hw * hw,u8 num_qs,bool is_move,bool is_tc_change,bool subseq_call,bool flush_pipe,u8 timeout,u32 * blocked_cgds,struct ice_aqc_move_txqs_data * buf,u16 buf_size,u8 * txqs_moved,struct ice_sq_cd * cd) ice_aq_move_recfg_lan_txq() argument 4498 ice_aq_add_rdma_qsets(struct ice_hw * hw,u8 num_qset_grps,struct ice_aqc_add_rdma_qset_data * qset_list,u16 buf_size,struct ice_sq_cd * cd) ice_aq_add_rdma_qsets() argument 4731 ice_set_ctx(struct ice_hw * hw,u8 * src_ctx,u8 * dest_ctx,const struct ice_ctx_ele * ce_info) ice_set_ctx() argument 4783 ice_aq_get_internal_data(struct ice_hw * hw,u8 cluster_id,u16 table_id,u32 start,void * buf,u16 buf_size,u16 * ret_buf_size,u16 * ret_next_table,u32 * ret_next_index,struct ice_sq_cd * cd) ice_aq_get_internal_data() argument 5040 ice_get_lan_q_ctx(struct ice_hw * hw,u16 vsi_handle,u8 tc,u16 q_handle) ice_get_lan_q_ctx() argument 5078 struct ice_hw *hw; ice_ena_vsi_txq() local 5183 struct ice_hw *hw; ice_dis_vsi_txq() local 5335 struct ice_hw *hw; ice_ena_vsi_rdma_qset() local 5409 struct ice_hw *hw; ice_dis_vsi_rdma_qset() local 5462 ice_aq_get_sensor_reading(struct ice_hw * hw,u8 sensor,u8 format,struct ice_aqc_get_sensor_reading_resp * data,struct ice_sq_cd * cd) ice_aq_get_sensor_reading() argument 5495 ice_is_main_vsi(struct ice_hw * hw,u16 vsi_handle) ice_is_main_vsi() argument 5508 ice_replay_pre_init(struct ice_hw * hw,struct ice_switch_info * sw) ice_replay_pre_init() argument 5539 ice_replay_vsi(struct ice_hw * hw,u16 vsi_handle) ice_replay_vsi() argument 5571 ice_replay_post(struct ice_hw * hw) ice_replay_post() argument 5587 ice_stat_update40(struct ice_hw * hw,u32 reg,bool prev_stat_loaded,u64 * prev_stat,u64 * cur_stat) ice_stat_update40() argument 5624 ice_stat_update32(struct ice_hw * hw,u32 reg,bool prev_stat_loaded,u64 * prev_stat,u64 * cur_stat) ice_stat_update32() argument 5677 ice_stat_update_repc(struct ice_hw * hw,u16 vsi_handle,bool prev_stat_loaded,struct ice_eth_stats * cur_stats) ice_stat_update_repc() argument 5717 ice_aq_alternate_write(struct ice_hw * hw,u32 reg_addr0,u32 reg_val0,u32 reg_addr1,u32 reg_val1) ice_aq_alternate_write() argument 5750 ice_aq_alternate_read(struct ice_hw * hw,u32 reg_addr0,u32 * reg_val0,u32 reg_addr1,u32 * reg_val1) ice_aq_alternate_read() argument 5787 ice_aq_alternate_write_done(struct ice_hw * hw,u8 bios_mode,bool * reset_needed) ice_aq_alternate_write_done() argument 5816 ice_aq_alternate_clear(struct ice_hw * hw) ice_aq_alternate_clear() argument 5837 ice_sched_query_elem(struct ice_hw * hw,u32 node_teid,struct ice_aqc_txsched_elem_data * buf) ice_sched_query_elem() argument 5857 ice_get_fw_mode(struct ice_hw * hw) ice_get_fw_mode() argument 5884 ice_get_cur_lldp_persist_status(struct ice_hw * hw,u32 * lldp_status) ice_get_cur_lldp_persist_status() argument 5924 ice_get_dflt_lldp_persist_status(struct ice_hw * hw,u32 * lldp_status) ice_get_dflt_lldp_persist_status() argument 6003 ice_aq_read_i2c(struct ice_hw * hw,struct ice_aqc_link_topo_addr topo_addr,u16 bus_addr,__le16 addr,u8 params,u8 * data,struct ice_sq_cd * cd) ice_aq_read_i2c() argument 6053 ice_aq_write_i2c(struct ice_hw * hw,struct ice_aqc_link_topo_addr topo_addr,u16 bus_addr,__le16 addr,u8 params,u8 * data,struct ice_sq_cd * cd) ice_aq_write_i2c() argument 6094 ice_aq_set_gpio(struct ice_hw * hw,u16 gpio_ctrl_handle,u8 pin_idx,bool value,struct ice_sq_cd * cd) ice_aq_set_gpio() argument 6121 ice_aq_get_gpio(struct ice_hw * hw,u16 gpio_ctrl_handle,u8 pin_idx,bool * value,struct ice_sq_cd * cd) ice_aq_get_gpio() argument 6150 ice_is_fw_api_min_ver(struct ice_hw * hw,u8 maj,u8 min,u8 patch) ice_is_fw_api_min_ver() argument 6174 ice_is_fw_min_ver(struct ice_hw * hw,u8 branch,u8 maj,u8 min,u8 patch) ice_is_fw_min_ver() argument 6199 ice_fw_supports_link_override(struct ice_hw * hw) ice_fw_supports_link_override() argument 6218 struct ice_hw *hw = pi->hw; ice_get_link_default_override() local 6301 ice_is_fw_health_report_supported(struct ice_hw * hw) ice_is_fw_health_report_supported() argument 6327 ice_aq_set_health_status_config(struct ice_hw * hw,u8 event_source,struct ice_sq_cd * cd) ice_aq_set_health_status_config() argument 6360 ice_aq_get_port_options(struct ice_hw * hw,struct ice_aqc_get_port_options_elem * options,u8 * option_count,u8 lport,bool lport_valid,u8 * active_option_idx,bool * active_option_valid,u8 * pending_option_idx,bool * pending_option_valid) ice_aq_get_port_options() argument 6432 ice_aq_set_port_option(struct ice_hw * hw,u8 lport,u8 lport_valid,u8 new_option) ice_aq_set_port_option() argument 6463 ice_aq_set_lldp_mib(struct ice_hw * hw,u8 mib_type,void * buf,u16 buf_size,struct ice_sq_cd * cd) ice_aq_set_lldp_mib() argument 6489 ice_fw_supports_lldp_fltr_ctrl(struct ice_hw * hw) ice_fw_supports_lldp_fltr_ctrl() argument 6506 ice_lldp_fltr_add_remove(struct ice_hw * hw,u16 vsi_num,bool add) ice_lldp_fltr_add_remove() argument 6529 ice_lldp_execute_pending_mib(struct ice_hw * hw) ice_lldp_execute_pending_mib() argument 6544 ice_fw_supports_report_dflt_cfg(struct ice_hw * hw) ice_fw_supports_report_dflt_cfg() argument 6592 ice_fw_supports_fec_dis_auto(struct ice_hw * hw) ice_fw_supports_fec_dis_auto() argument 6606 ice_is_fw_auto_drop_supported(struct ice_hw * hw) ice_is_fw_auto_drop_supported() argument [all...] |