Home
last modified time | relevance | path

Searched refs:ice_hw (Results 1 – 25 of 52) sorted by relevance

123

/linux/drivers/net/ethernet/intel/ice/
H A Dice_common.h83 int ice_init_hw(struct ice_hw *hw);
84 void ice_deinit_hw(struct ice_hw *hw);
85 int ice_check_reset(struct ice_hw *hw);
86 int ice_reset(struct ice_hw *hw, enum ice_reset_req req);
87 int ice_create_all_ctrlq(struct ice_hw *hw);
88 int ice_init_all_ctrlq(struct ice_hw *hw);
89 void ice_shutdown_all_ctrlq(struct ice_hw *hw, bool unloading);
90 void ice_destroy_all_ctrlq(struct ice_hw *hw);
92 ice_clean_rq_elem(struct ice_hw *hw, struct ice_ctl_q_info *cq,
98 ice_acquire_res(struct ice_hw *hw, enum ice_aq_res_ids res,
[all …]
H A Dice_flex_pipe.h12 ice_acquire_change_lock(struct ice_hw *hw, enum ice_aq_res_access_type access);
13 void ice_release_change_lock(struct ice_hw *hw);
15 ice_find_prot_off(struct ice_hw *hw, enum ice_block blk, u8 prof, u16 fv_idx,
18 ice_get_sw_fv_bitmap(struct ice_hw *hw, enum ice_prof_type type,
21 ice_init_prof_result_bm(struct ice_hw *hw);
23 ice_get_sw_fv_list(struct ice_hw *hw, struct ice_prot_lkup_ext *lkups,
26 ice_aq_upload_section(struct ice_hw *hw, struct ice_buf_hdr *pkg_buf,
29 ice_get_open_tunnel_port(struct ice_hw *hw, u16 *port,
35 int ice_set_dvm_boost_entries(struct ice_hw *hw);
38 bool ice_hw_ptype_ena(struct ice_hw *hw, u16 ptype);
[all …]
H A Dice_nvm.h15 int ice_acquire_nvm(struct ice_hw *hw, enum ice_aq_res_access_type access);
16 void ice_release_nvm(struct ice_hw *hw);
17 int ice_aq_read_nvm(struct ice_hw *hw, u16 module_typeid, u32 offset,
21 ice_read_flat_nvm(struct ice_hw *hw, u32 offset, u32 *length, u8 *data,
24 ice_get_pfa_module_tlv(struct ice_hw *hw, u16 *module_tlv, u16 *module_tlv_len,
26 int ice_get_inactive_orom_ver(struct ice_hw *hw, struct ice_orom_info *orom);
27 int ice_get_inactive_nvm_ver(struct ice_hw *hw, struct ice_nvm_info *nvm);
29 ice_get_inactive_netlist_ver(struct ice_hw *hw, struct ice_netlist_info *netlist);
30 int ice_read_pba_string(struct ice_hw *hw, u8 *pba_num, u32 pba_num_size);
31 int ice_init_nvm(struct ice_hw *hw);
[all …]
H A Dice_switch.h325 ice_add_vsi(struct ice_hw *hw, u16 vsi_handle, struct ice_vsi_ctx *vsi_ctx,
328 ice_free_vsi(struct ice_hw *hw, u16 vsi_handle, struct ice_vsi_ctx *vsi_ctx,
331 ice_update_vsi(struct ice_hw *hw, u16 vsi_handle, struct ice_vsi_ctx *vsi_ctx,
333 bool ice_is_vsi_valid(struct ice_hw *hw, u16 vsi_handle);
334 struct ice_vsi_ctx *ice_get_vsi_ctx(struct ice_hw *hw, u16 vsi_handle);
335 void ice_clear_all_vsi_ctx(struct ice_hw *hw);
337 int ice_get_initial_sw_cfg(struct ice_hw *hw);
340 ice_alloc_res_cntr(struct ice_hw *hw, u8 type, u8 alloc_shared, u16 num_items,
343 ice_free_res_cntr(struct ice_hw *hw, u8 type, u8 alloc_shared, u16 num_items,
345 int ice_share_res(struct ice_hw *hw, u16 type, u8 shared, u16 res_id);
[all …]
H A Dice_sched.h82 ice_aq_query_sched_elems(struct ice_hw *hw, u16 elems_req,
109 int ice_sched_query_res_alloc(struct ice_hw *hw);
110 void ice_sched_get_psm_clk_freq(struct ice_hw *hw);
113 void ice_sched_cleanup_all(struct ice_hw *hw);
114 void ice_sched_clear_agg(struct ice_hw *hw);
155 int ice_cfg_rl_burst_size(struct ice_hw *hw, u32 bytes);
157 ice_sched_suspend_resume_elems(struct ice_hw *hw, u8 num_nodes, u32 *node_teids,
162 u8 ice_sched_get_agg_layer(struct ice_hw *hw);
163 u8 ice_sched_get_vsi_layer(struct ice_hw *hw);
165 ice_sched_get_free_vsi_parent(struct ice_hw *hw, struct ice_sched_node *node,
[all …]
H A Dice_dcb.h141 int ice_aq_set_pfc_mode(struct ice_hw *hw, u8 pfc_mode, struct ice_sq_cd *cd);
143 ice_aq_get_dcb_cfg(struct ice_hw *hw, u8 mib_type, u8 bridgetype,
149 int ice_init_dcb(struct ice_hw *hw, bool enable_mib_change);
156 ice_aq_stop_lldp(struct ice_hw *hw, bool shutdown_lldp_agent, bool persist,
158 int ice_aq_start_lldp(struct ice_hw *hw, bool persist, struct ice_sq_cd *cd);
160 ice_aq_start_stop_dcbx(struct ice_hw *hw, bool start_dcbx_agent,
162 int ice_cfg_lldp_mib_change(struct ice_hw *hw, bool ena_mib);
165 ice_aq_stop_lldp(struct ice_hw __always_unused *hw, in ice_aq_stop_lldp()
174 ice_aq_start_lldp(struct ice_hw __always_unused *hw, in ice_aq_start_lldp()
182 ice_aq_start_stop_dcbx(struct ice_hw __always_unused *hw, in ice_aq_start_stop_dcbx()
[all …]
H A Dice_vlan_mode.c12 ice_pkg_get_supported_vlan_mode(struct ice_hw *hw, bool *dvm) in ice_pkg_get_supported_vlan_mode()
63 ice_aq_get_vlan_mode(struct ice_hw *hw, in ice_aq_get_vlan_mode()
89 static bool ice_aq_is_dvm_ena(struct ice_hw *hw) in ice_aq_is_dvm_ena()
113 bool ice_is_dvm_ena(struct ice_hw *hw) in ice_is_dvm_ena()
126 static void ice_cache_vlan_mode(struct ice_hw *hw) in ice_cache_vlan_mode()
135 static bool ice_pkg_supports_dvm(struct ice_hw *hw) in ice_pkg_supports_dvm()
154 static bool ice_fw_supports_dvm(struct ice_hw *hw) in ice_fw_supports_dvm()
182 static bool ice_is_dvm_supported(struct ice_hw *hw) in ice_is_dvm_supported()
243 static int ice_dvm_update_dflt_recipes(struct ice_hw *hw) in ice_dvm_update_dflt_recipes()
274 ice_aq_set_vlan_mode(struct ice_hw *hw, in ice_aq_set_vlan_mode()
[all …]
H A Dice_fdir.h214 int ice_alloc_fd_res_cntr(struct ice_hw *hw, u16 *cntr_id);
215 int ice_free_fd_res_cntr(struct ice_hw *hw, u16 cntr_id);
216 int ice_alloc_fd_guar_item(struct ice_hw *hw, u16 *cntr_id, u16 num_fltr);
217 int ice_alloc_fd_shrd_item(struct ice_hw *hw, u16 *cntr_id, u16 num_fltr);
219 ice_fdir_get_prgm_desc(struct ice_hw *hw, struct ice_fdir_fltr *input,
222 ice_fdir_get_gen_prgm_pkt(struct ice_hw *hw, struct ice_fdir_fltr *input,
224 int ice_get_fdir_cnt_all(struct ice_hw *hw);
225 int ice_fdir_num_avail_fltr(struct ice_hw *hw, struct ice_vsi *vsi);
226 bool ice_fdir_is_dup_fltr(struct ice_hw *hw, struct ice_fdir_fltr *input);
229 ice_fdir_find_fltr_by_idx(struct ice_hw *hw, u32 fltr_idx);
[all …]
H A Dice_ptp_hw.c203 u8 ice_get_ptp_src_clock_index(struct ice_hw *hw) in ice_get_ptp_src_clock_index()
214 static u64 ice_ptp_read_src_incval(struct ice_hw *hw) in ice_ptp_read_src_incval()
235 static u32 ice_ptp_tmr_cmd_to_src_reg(struct ice_hw *hw, in ice_ptp_tmr_cmd_to_src_reg()
280 static u32 ice_ptp_tmr_cmd_to_port_reg(struct ice_hw *hw, in ice_ptp_tmr_cmd_to_port_reg()
333 void ice_ptp_src_cmd(struct ice_hw *hw, enum ice_ptp_tmr_cmd cmd) in ice_ptp_src_cmd()
352 static void ice_ptp_exec_tmr_cmd(struct ice_hw *hw) in ice_ptp_exec_tmr_cmd()
369 static void ice_ptp_cfg_sync_delay(const struct ice_hw *hw, u32 delay) in ice_ptp_cfg_sync_delay()
388 static int ice_ptp_init_phc_e825c(struct ice_hw *hw) in ice_ptp_init_phc_e825c()
412 static enum ice_sbq_dev_id ice_ptp_get_dest_dev_e825(struct ice_hw *hw, in ice_ptp_get_dest_dev_e825()
441 static int ice_write_phy_eth56g(struct ice_hw *hw, u8 port, u32 addr, u32 val) in ice_write_phy_eth56g()
[all …]
H A Dice_nvm.c21 int ice_aq_read_nvm(struct ice_hw *hw, u16 module_typeid, u32 offset, in ice_aq_read_nvm()
75 ice_read_flat_nvm(struct ice_hw *hw, u32 offset, u32 *length, u8 *data, in ice_read_flat_nvm()
152 ice_aq_update_nvm(struct ice_hw *hw, u16 module_typeid, u32 offset, in ice_aq_update_nvm()
190 int ice_aq_erase_nvm(struct ice_hw *hw, u16 module_typeid, struct ice_sq_cd *cd) in ice_aq_erase_nvm()
220 int ice_read_sr_word(struct ice_hw *hw, u16 offset, u16 *data) in ice_read_sr_word()
245 int ice_acquire_nvm(struct ice_hw *hw, enum ice_aq_res_access_type access) in ice_acquire_nvm()
259 void ice_release_nvm(struct ice_hw *hw) in ice_release_nvm()
279 static u32 ice_get_flash_bank_offset(struct ice_hw *hw, enum ice_bank_select bank, u16 module) in ice_get_flash_bank_offset()
353 ice_read_flash_module(struct ice_hw *hw, enum ice_bank_select bank, u16 module, in ice_read_flash_module()
383 ice_read_nvm_module(struct ice_hw *hw, enum ice_bank_select bank, u32 offset, u16 *data) in ice_read_nvm_module()
[all …]
H A Dice_common.c97 ice_dump_phy_type(struct ice_hw *hw, u64 low, u64 high, const char *prefix) in ice_dump_phy_type()
123 static int ice_set_mac_type(struct ice_hw *hw) in ice_set_mac_type()
200 bool ice_is_generic_mac(struct ice_hw *hw) in ice_is_generic_mac()
213 int ice_clear_pf_cfg(struct ice_hw *hw) in ice_clear_pf_cfg()
238 ice_aq_manage_mac_read(struct ice_hw *hw, void *buf, u16 buf_size, in ice_aq_manage_mac_read()
299 struct ice_hw *hw; in ice_aq_get_phy_caps()
418 ice_aq_get_netlist_node(struct ice_hw *hw, struct ice_aqc_get_link_topo *cmd, in ice_aq_get_netlist_node()
458 static int ice_find_netlist_node(struct ice_hw *hw, u8 node_type, u8 ctx, in ice_find_netlist_node()
628 static u16 ice_get_link_status_datalen(struct ice_hw *hw) in ice_get_link_status_datalen()
659 struct ice_hw *hw; in ice_aq_get_link_info()
[all …]
H A Dice_vlan_mode.h7 struct ice_hw;
9 bool ice_is_dvm_ena(struct ice_hw *hw);
10 int ice_set_vlan_mode(struct ice_hw *hw);
11 void ice_post_pkg_dwnld_vlan_mode_cfg(struct ice_hw *hw);
H A Dice_controlq.c34 static void ice_adminq_init_regs(struct ice_hw *hw) in ice_adminq_init_regs()
47 static void ice_mailbox_init_regs(struct ice_hw *hw) in ice_mailbox_init_regs()
60 static void ice_sb_init_regs(struct ice_hw *hw) in ice_sb_init_regs()
74 bool ice_check_sq_alive(struct ice_hw *hw, struct ice_ctl_q_info *cq) in ice_check_sq_alive()
91 ice_alloc_ctrlq_sq_ring(struct ice_hw *hw, struct ice_ctl_q_info *cq) in ice_alloc_ctrlq_sq_ring()
111 ice_alloc_ctrlq_rq_ring(struct ice_hw *hw, struct ice_ctl_q_info *cq) in ice_alloc_ctrlq_rq_ring()
132 static void ice_free_cq_ring(struct ice_hw *hw, struct ice_ctl_q_ring *ring) in ice_free_cq_ring()
147 ice_alloc_rq_bufs(struct ice_hw *hw, struct ice_ctl_q_info *cq) in ice_alloc_rq_bufs()
219 ice_alloc_sq_bufs(struct ice_hw *hw, struct ice_ctl_q_info *cq) in ice_alloc_sq_bufs()
262 ice_cfg_cq_regs(struct ice_hw *hw, struct ice_ctl_q_ring *ring, u16 num_entries) in ice_cfg_cq_regs()
[all …]
H A Dice_vf_mbx.c22 ice_aq_send_msg_to_vf(struct ice_hw *hw, u16 vfid, u32 v_opcode, u32 v_retval, in ice_aq_send_msg_to_vf()
156 ice_mbx_traverse(struct ice_hw *hw, in ice_mbx_traverse()
197 ice_mbx_detect_malvf(struct ice_hw *hw, struct ice_mbx_vf_info *vf_info, in ice_mbx_detect_malvf()
222 void ice_mbx_vf_dec_trig_e830(const struct ice_hw *hw, in ice_mbx_vf_dec_trig_e830()
238 void ice_mbx_vf_clear_cnt_e830(const struct ice_hw *hw, u16 vf_id) in ice_mbx_vf_clear_cnt_e830()
269 ice_mbx_vf_state_handler(struct ice_hw *hw, struct ice_mbx_data *mbx_data, in ice_mbx_vf_state_handler()
392 void ice_mbx_init_vf_info(struct ice_hw *hw, struct ice_mbx_vf_info *vf_info) in ice_mbx_init_vf_info()
406 void ice_mbx_init_snapshot(struct ice_hw *hw) in ice_mbx_init_snapshot()
H A Dice_parser.c91 ice_parser_create_table(struct ice_hw *hw, u32 sect_type, in ice_parser_create_table()
93 void (*parse_item)(struct ice_hw *hw, u16 idx, in ice_parser_create_table()
132 static void ice_imem_bst_bm_dump(struct ice_hw *hw, struct ice_bst_main *bm) in ice_imem_bst_bm_dump()
143 static void ice_imem_bst_kb_dump(struct ice_hw *hw, in ice_imem_bst_kb_dump()
153 static void ice_imem_np_kb_dump(struct ice_hw *hw, in ice_imem_np_kb_dump()
164 static void ice_imem_pg_kb_dump(struct ice_hw *hw, in ice_imem_pg_kb_dump()
181 static void ice_imem_alu_dump(struct ice_hw *hw, in ice_imem_alu_dump()
211 static void ice_imem_dump(struct ice_hw *hw, struct ice_imem_item *item) in ice_imem_dump()
394 static void ice_imem_parse_item(struct ice_hw *hw, u16 idx, void *item, in ice_imem_parse_item()
436 static struct ice_imem_item *ice_imem_table_get(struct ice_hw *hw) in ice_imem_table_get()
[all …]
H A Dice_flex_pipe.c94 bool ice_hw_ptype_ena(struct ice_hw *hw, u16 ptype) in ice_hw_ptype_ena()
278 ice_acquire_change_lock(struct ice_hw *hw, enum ice_aq_res_access_type access) in ice_acquire_change_lock()
290 void ice_release_change_lock(struct ice_hw *hw) in ice_release_change_lock()
302 ice_get_open_tunnel_port(struct ice_hw *hw, u16 *port, in ice_get_open_tunnel_port()
329 ice_upd_dvm_boost_entry(struct ice_hw *hw, struct ice_dvm_entry *entry) in ice_upd_dvm_boost_entry()
392 int ice_set_dvm_boost_entries(struct ice_hw *hw) in ice_set_dvm_boost_entries()
417 static u16 ice_tunnel_idx_to_entry(struct ice_hw *hw, enum ice_tunnel_type type, in ice_tunnel_idx_to_entry()
444 ice_create_tunnel(struct ice_hw *hw, u16 index, in ice_create_tunnel()
515 ice_destroy_tunnel(struct ice_hw *hw, u16 index, enum ice_tunnel_type type, in ice_destroy_tunnel()
626 ice_find_prot_off(struct ice_hw *hw, enum ice_block blk, u8 prof, u16 fv_idx, in ice_find_prot_off()
[all …]
H A Dice_ddp.c83 void ice_free_seg(struct ice_hw *hw) in ice_free_seg()
370 static int ice_get_prof_index_max(struct ice_hw *hw) in ice_get_prof_index_max()
417 static enum ice_ddp_state ice_get_ddp_pkg_state(struct ice_hw *hw, in ice_get_ddp_pkg_state()
444 static void ice_init_pkg_regs(struct ice_hw *hw) in ice_init_pkg_regs()
492 static void ice_add_dvm_hint(struct ice_hw *hw, u16 val, bool enable) in ice_add_dvm_hint()
507 static void ice_add_tunnel_hint(struct ice_hw *hw, char *label_name, u16 val) in ice_add_tunnel_hint()
690 struct ice_buf_build *ice_pkg_buf_alloc(struct ice_hw *hw) in ice_pkg_buf_alloc()
737 static enum ice_prof_type ice_get_sw_prof_type(struct ice_hw *hw, in ice_get_sw_prof_type()
771 void ice_get_sw_fv_bitmap(struct ice_hw *hw, enum ice_prof_type req_profs, in ice_get_sw_fv_bitmap()
818 int ice_get_sw_fv_list(struct ice_hw *hw, struct ice_prot_lkup_ext *lkups, in ice_get_sw_fv_list()
[all …]
H A Dice_fltr.h11 ice_fltr_set_vlan_vsi_promisc(struct ice_hw *hw, struct ice_vsi *vsi,
14 ice_fltr_clear_vlan_vsi_promisc(struct ice_hw *hw, struct ice_vsi *vsi,
17 ice_fltr_clear_vsi_promisc(struct ice_hw *hw, u16 vsi_handle, u8 promisc_mask,
20 ice_fltr_set_vsi_promisc(struct ice_hw *hw, u16 vsi_handle, u8 promisc_mask,
H A Dice_sched.c20 struct ice_hw *hw; in ice_sched_add_root_node()
121 ice_aqc_send_sched_elem_cmd(struct ice_hw *hw, enum ice_adminq_opc cmd_opc, in ice_aqc_send_sched_elem_cmd()
152 ice_aq_query_sched_elems(struct ice_hw *hw, u16 elems_req, in ice_aq_query_sched_elems()
178 struct ice_hw *hw; in ice_sched_add_node()
238 ice_aq_delete_sched_elems(struct ice_hw *hw, u16 grps_req, in ice_aq_delete_sched_elems()
256 ice_sched_remove_elems(struct ice_hw *hw, struct ice_sched_node *parent, in ice_sched_remove_elems()
323 struct ice_hw *hw = pi->hw; in ice_free_sched_node()
390 ice_aq_get_dflt_topo(struct ice_hw *hw, u8 lport, in ice_aq_get_dflt_topo()
420 ice_aq_add_sched_elems(struct ice_hw *hw, u16 grps_req, in ice_aq_add_sched_elems()
441 ice_aq_cfg_sched_elems(struct ice_hw *hw, u16 elems_req, in ice_aq_cfg_sched_elems()
[all …]
H A Dice_flow.c1005 ice_flow_xtract_fld(struct ice_hw *hw, struct ice_flow_prof_params *params, in ice_flow_xtract_fld()
1206 ice_flow_xtract_raws(struct ice_hw *hw, struct ice_flow_prof_params *params, in ice_flow_xtract_raws()
1283 ice_flow_create_xtrct_seq(struct ice_hw *hw, in ice_flow_create_xtrct_seq()
1317 ice_flow_proc_segs(struct ice_hw *hw, struct ice_flow_prof_params *params) in ice_flow_proc_segs()
1358 ice_flow_find_prof_conds(struct ice_hw *hw, enum ice_block blk, in ice_flow_find_prof_conds()
1408 ice_flow_find_prof_id(struct ice_hw *hw, enum ice_block blk, u64 prof_id) in ice_flow_find_prof_id()
1426 ice_flow_rem_entry_sync(struct ice_hw *hw, enum ice_block __always_unused blk, in ice_flow_rem_entry_sync()
1452 ice_flow_add_prof_sync(struct ice_hw *hw, enum ice_block blk, in ice_flow_add_prof_sync()
1538 ice_flow_rem_prof_sync(struct ice_hw *hw, enum ice_block blk, in ice_flow_rem_prof_sync()
1581 ice_flow_assoc_prof(struct ice_hw *hw, enum ice_block blk, in ice_flow_assoc_prof()
[all …]
H A Dice_vsi_vlan_lib.c93 struct ice_hw *hw = &vsi->back->hw; in ice_vsi_manage_vlan_insertion()
133 struct ice_hw *hw = &vsi->back->hw; in ice_vsi_manage_vlan_stripping()
237 struct ice_hw *hw = &vsi->back->hw; in __ice_vsi_set_inner_port_vlan()
290 struct ice_hw *hw = &vsi->back->hw; in ice_vsi_clear_inner_port_vlan()
467 struct ice_hw *hw = &vsi->back->hw; in ice_vsi_ena_outer_stripping()
525 struct ice_hw *hw = &vsi->back->hw; in ice_vsi_dis_outer_stripping()
576 struct ice_hw *hw = &vsi->back->hw; in ice_vsi_ena_outer_insertion()
632 struct ice_hw *hw = &vsi->back->hw; in ice_vsi_dis_outer_insertion()
689 struct ice_hw *hw = &vsi->back->hw; in __ice_vsi_set_outer_port_vlan()
766 struct ice_hw *hw = &vsi->back->hw; in ice_vsi_clear_outer_port_vlan()
[all …]
H A Dice_ptp.c97 struct ice_hw *hw = &pf->hw; in ice_ptp_cfg_tx_interrupt()
159 struct ice_hw *hw = &pf->hw; in ice_ptp_disable_timestamp_mode()
178 struct ice_hw *hw = &pf->hw; in ice_ptp_restore_timestamp_mode()
202 struct ice_hw *hw = &pf->hw; in ice_ptp_read_src_clk_reg()
562 struct ice_hw *hw; in ice_ptp_process_tx_tstamp()
738 struct ice_hw *hw = &pf->hw; in ice_ptp_flush_tx_tracker()
1016 struct ice_hw *hw = &pf->hw; in ice_ptp_write_init()
1031 struct ice_hw *hw = &pf->hw; in ice_ptp_write_adj()
1047 struct ice_hw *hw = &pf->hw; in ice_base_incval()
1067 struct ice_hw *hw; in ice_ptp_check_tx_fifo()
[all …]
H A Dice_osdep.h39 struct ice_hw;
40 struct device *ice_hw_to_dev(struct ice_hw *hw);
67 struct ice_hw *hw_l = hw; \
H A Dice_ddp.h453 int ice_aq_upload_section(struct ice_hw *hw, struct ice_buf_hdr *pkg_buf,
458 struct ice_buf_build *ice_pkg_buf_alloc(struct ice_hw *hw);
460 int ice_update_pkg_no_lock(struct ice_hw *hw, struct ice_buf *bufs, u32 count);
461 int ice_update_pkg(struct ice_hw *hw, struct ice_buf *bufs, u32 count);
473 int ice_cfg_tx_topo(struct ice_hw *hw, const void *buf, u32 len);
H A Dice_gnss.h40 bool ice_gnss_is_module_present(struct ice_hw *hw);
44 static inline bool ice_gnss_is_module_present(struct ice_hw *hw) in ice_gnss_is_module_present()

123