Lines Matching refs:ice_hw
204 u8 ice_get_ptp_src_clock_index(struct ice_hw *hw) in ice_get_ptp_src_clock_index()
215 static u64 ice_ptp_read_src_incval(struct ice_hw *hw) in ice_ptp_read_src_incval()
239 static int ice_read_cgu_reg_e82x(struct ice_hw *hw, u32 addr, u32 *val) in ice_read_cgu_reg_e82x()
271 static int ice_write_cgu_reg_e82x(struct ice_hw *hw, u32 addr, u32 val) in ice_write_cgu_reg_e82x()
350 static int ice_cfg_cgu_pll_e82x(struct ice_hw *hw, in ice_cfg_cgu_pll_e82x()
495 static int ice_cfg_cgu_pll_e825c(struct ice_hw *hw, in ice_cfg_cgu_pll_e825c()
671 static int ice_cfg_cgu_pll_dis_sticky_bits_e82x(struct ice_hw *hw) in ice_cfg_cgu_pll_dis_sticky_bits_e82x()
698 static int ice_cfg_cgu_pll_dis_sticky_bits_e825c(struct ice_hw *hw) in ice_cfg_cgu_pll_dis_sticky_bits_e825c()
720 static int ice_init_cgu_e82x(struct ice_hw *hw) in ice_init_cgu_e82x()
754 static u32 ice_ptp_tmr_cmd_to_src_reg(struct ice_hw *hw, in ice_ptp_tmr_cmd_to_src_reg()
799 static u32 ice_ptp_tmr_cmd_to_port_reg(struct ice_hw *hw, in ice_ptp_tmr_cmd_to_port_reg()
851 void ice_ptp_src_cmd(struct ice_hw *hw, enum ice_ptp_tmr_cmd cmd) in ice_ptp_src_cmd()
866 static void ice_ptp_exec_tmr_cmd(struct ice_hw *hw) in ice_ptp_exec_tmr_cmd()
889 static int ice_write_phy_eth56g(struct ice_hw *hw, u8 phy_idx, u32 addr, in ice_write_phy_eth56g()
921 static int ice_read_phy_eth56g(struct ice_hw *hw, u8 phy_idx, u32 addr, in ice_read_phy_eth56g()
985 static int ice_write_port_eth56g(struct ice_hw *hw, u8 port, u32 offset, in ice_write_port_eth56g()
1016 static int ice_read_port_eth56g(struct ice_hw *hw, u8 port, u32 offset, in ice_read_port_eth56g()
1046 static int ice_write_ptp_reg_eth56g(struct ice_hw *hw, u8 port, u16 offset, in ice_write_ptp_reg_eth56g()
1065 static int ice_write_mac_reg_eth56g(struct ice_hw *hw, u8 port, u32 offset, in ice_write_mac_reg_eth56g()
1083 static int ice_write_xpcs_reg_eth56g(struct ice_hw *hw, u8 port, u32 offset, in ice_write_xpcs_reg_eth56g()
1102 static int ice_read_ptp_reg_eth56g(struct ice_hw *hw, u8 port, u16 offset, in ice_read_ptp_reg_eth56g()
1120 static int ice_read_mac_reg_eth56g(struct ice_hw *hw, u8 port, u16 offset, in ice_read_mac_reg_eth56g()
1138 static int ice_read_gpcs_reg_eth56g(struct ice_hw *hw, u8 port, u16 offset, in ice_read_gpcs_reg_eth56g()
1156 static int ice_read_port_mem_eth56g(struct ice_hw *hw, u8 port, u16 offset, in ice_read_port_mem_eth56g()
1174 static int ice_write_port_mem_eth56g(struct ice_hw *hw, u8 port, u16 offset, in ice_write_port_mem_eth56g()
1264 static int ice_read_64b_phy_reg_eth56g(struct ice_hw *hw, u8 port, u16 low_addr, in ice_read_64b_phy_reg_eth56g()
1309 static int ice_read_64b_ptp_reg_eth56g(struct ice_hw *hw, u8 port, u16 low_addr, in ice_read_64b_ptp_reg_eth56g()
1333 static int ice_write_40b_phy_reg_eth56g(struct ice_hw *hw, u8 port, in ice_write_40b_phy_reg_eth56g()
1380 static int ice_write_40b_ptp_reg_eth56g(struct ice_hw *hw, u8 port, in ice_write_40b_ptp_reg_eth56g()
1403 static int ice_write_64b_phy_reg_eth56g(struct ice_hw *hw, u8 port, in ice_write_64b_phy_reg_eth56g()
1449 static int ice_write_64b_ptp_reg_eth56g(struct ice_hw *hw, u8 port, in ice_write_64b_ptp_reg_eth56g()
1470 static int ice_read_ptp_tstamp_eth56g(struct ice_hw *hw, u8 port, u8 idx, in ice_read_ptp_tstamp_eth56g()
1524 static int ice_clear_ptp_tstamp_eth56g(struct ice_hw *hw, u8 port, u8 idx) in ice_clear_ptp_tstamp_eth56g()
1555 static void ice_ptp_reset_ts_memory_eth56g(struct ice_hw *hw) in ice_ptp_reset_ts_memory_eth56g()
1579 static int ice_ptp_prep_port_time_eth56g(struct ice_hw *hw, u8 port, in ice_ptp_prep_port_time_eth56g()
1609 static int ice_ptp_prep_phy_time_eth56g(struct ice_hw *hw, u32 time) in ice_ptp_prep_phy_time_eth56g()
1652 static int ice_ptp_prep_port_adj_eth56g(struct ice_hw *hw, u8 port, s64 time) in ice_ptp_prep_port_adj_eth56g()
1703 static int ice_ptp_prep_phy_adj_eth56g(struct ice_hw *hw, s32 adj) in ice_ptp_prep_phy_adj_eth56g()
1739 static int ice_ptp_prep_phy_incval_eth56g(struct ice_hw *hw, u64 incval) in ice_ptp_prep_phy_incval_eth56g()
1771 static int ice_ptp_read_port_capture_eth56g(struct ice_hw *hw, u8 port, in ice_ptp_read_port_capture_eth56g()
1813 static int ice_ptp_write_port_cmd_eth56g(struct ice_hw *hw, u8 port, in ice_ptp_write_port_cmd_eth56g()
1896 static int ice_phy_cfg_parpcs_eth56g(struct ice_hw *hw, u8 port) in ice_phy_cfg_parpcs_eth56g()
1965 int ice_phy_cfg_ptp_1step_eth56g(struct ice_hw *hw, u8 port) in ice_phy_cfg_ptp_1step_eth56g()
2068 static u32 ice_ptp_calc_bitslip_eth56g(struct ice_hw *hw, u8 port, u32 bs, in ice_ptp_calc_bitslip_eth56g()
2117 static u32 ice_ptp_calc_deskew_eth56g(struct ice_hw *hw, u8 port, u32 ds, in ice_ptp_calc_deskew_eth56g()
2160 static int ice_phy_set_offsets_eth56g(struct ice_hw *hw, u8 port, in ice_phy_set_offsets_eth56g()
2214 static int ice_phy_cfg_mac_eth56g(struct ice_hw *hw, u8 port) in ice_phy_cfg_mac_eth56g()
2293 int ice_phy_cfg_intr_eth56g(struct ice_hw *hw, u8 port, bool ena, u8 threshold) in ice_phy_cfg_intr_eth56g()
2327 static int ice_read_phy_and_phc_time_eth56g(struct ice_hw *hw, u8 port, in ice_read_phy_and_phc_time_eth56g()
2388 static int ice_sync_phy_timer_eth56g(struct ice_hw *hw, u8 port) in ice_sync_phy_timer_eth56g()
2455 int ice_stop_phy_timer_eth56g(struct ice_hw *hw, u8 port, bool soft_reset) in ice_stop_phy_timer_eth56g()
2485 int ice_start_phy_timer_eth56g(struct ice_hw *hw, u8 port) in ice_start_phy_timer_eth56g()
2550 static void ice_sb_access_ena_eth56g(struct ice_hw *hw, bool enable) in ice_sb_access_ena_eth56g()
2572 static int ice_ptp_init_phc_eth56g(struct ice_hw *hw) in ice_ptp_init_phc_eth56g()
2591 int ice_ptp_read_tx_hwtstamp_status_eth56g(struct ice_hw *hw, u32 *ts_status) in ice_ptp_read_tx_hwtstamp_status_eth56g()
2629 static int ice_get_phy_tx_tstamp_ready_eth56g(struct ice_hw *hw, u8 port, in ice_get_phy_tx_tstamp_ready_eth56g()
2651 static bool ice_is_muxed_topo(struct ice_hw *hw) in ice_is_muxed_topo()
2669 static void ice_ptp_init_phy_e825c(struct ice_hw *hw) in ice_ptp_init_phy_e825c()
2713 static void ice_fill_phy_msg_e82x(struct ice_hw *hw, in ice_fill_phy_msg_e82x()
2848 ice_read_phy_reg_e82x(struct ice_hw *hw, u8 port, u16 offset, u32 *val) in ice_read_phy_reg_e82x()
2881 ice_read_64b_phy_reg_e82x(struct ice_hw *hw, u8 port, u16 low_addr, u64 *val) in ice_read_64b_phy_reg_e82x()
2925 ice_write_phy_reg_e82x(struct ice_hw *hw, u8 port, u16 offset, u32 val) in ice_write_phy_reg_e82x()
2955 ice_write_40b_phy_reg_e82x(struct ice_hw *hw, u8 port, u16 low_addr, u64 val) in ice_write_40b_phy_reg_e82x()
3002 ice_write_64b_phy_reg_e82x(struct ice_hw *hw, u8 port, u16 low_addr, u64 val) in ice_write_64b_phy_reg_e82x()
3051 static int ice_fill_quad_msg_e82x(struct ice_hw *hw, in ice_fill_quad_msg_e82x()
3084 ice_read_quad_reg_e82x(struct ice_hw *hw, u8 quad, u16 offset, u32 *val) in ice_read_quad_reg_e82x()
3118 ice_write_quad_reg_e82x(struct ice_hw *hw, u8 quad, u16 offset, u32 val) in ice_write_quad_reg_e82x()
3152 ice_read_phy_tstamp_e82x(struct ice_hw *hw, u8 quad, u8 idx, u64 *tstamp) in ice_read_phy_tstamp_e82x()
3207 ice_clear_phy_tstamp_e82x(struct ice_hw *hw, u8 quad, u8 idx) in ice_clear_phy_tstamp_e82x()
3230 void ice_ptp_reset_ts_memory_quad_e82x(struct ice_hw *hw, u8 quad) in ice_ptp_reset_ts_memory_quad_e82x()
3240 static void ice_ptp_reset_ts_memory_e82x(struct ice_hw *hw) in ice_ptp_reset_ts_memory_e82x()
3254 static int ice_ptp_set_vernier_wl(struct ice_hw *hw) in ice_ptp_set_vernier_wl()
3279 static int ice_ptp_init_phc_e82x(struct ice_hw *hw) in ice_ptp_init_phc_e82x()
3311 ice_ptp_prep_phy_time_e82x(struct ice_hw *hw, u32 time) in ice_ptp_prep_phy_time_e82x()
3363 ice_ptp_prep_port_adj_e82x(struct ice_hw *hw, u8 port, s64 time) in ice_ptp_prep_port_adj_e82x()
3411 ice_ptp_prep_phy_adj_e82x(struct ice_hw *hw, s32 adj) in ice_ptp_prep_phy_adj_e82x()
3446 ice_ptp_prep_phy_incval_e82x(struct ice_hw *hw, u64 incval) in ice_ptp_prep_phy_incval_e82x()
3479 ice_ptp_read_port_capture(struct ice_hw *hw, u8 port, u64 *tx_ts, u64 *rx_ts) in ice_ptp_read_port_capture()
3523 static int ice_ptp_write_port_cmd_e82x(struct ice_hw *hw, u8 port, in ice_ptp_write_port_cmd_e82x()
3567 ice_phy_get_speed_and_fec_e82x(struct ice_hw *hw, u8 port, in ice_phy_get_speed_and_fec_e82x()
3637 static void ice_phy_cfg_lane_e82x(struct ice_hw *hw, u8 port) in ice_phy_cfg_lane_e82x()
3719 static int ice_phy_cfg_uix_e82x(struct ice_hw *hw, u8 port) in ice_phy_cfg_uix_e82x()
3801 static int ice_phy_cfg_parpcs_e82x(struct ice_hw *hw, u8 port) in ice_phy_cfg_parpcs_e82x()
3928 ice_calc_fixed_tx_offset_e82x(struct ice_hw *hw, enum ice_ptp_link_spd link_spd) in ice_calc_fixed_tx_offset_e82x()
3974 int ice_phy_cfg_tx_offset_e82x(struct ice_hw *hw, u8 port) in ice_phy_cfg_tx_offset_e82x()
4074 ice_phy_calc_pmd_adj_e82x(struct ice_hw *hw, u8 port, in ice_phy_calc_pmd_adj_e82x()
4227 ice_calc_fixed_rx_offset_e82x(struct ice_hw *hw, enum ice_ptp_link_spd link_spd) in ice_calc_fixed_rx_offset_e82x()
4277 int ice_phy_cfg_rx_offset_e82x(struct ice_hw *hw, u8 port) in ice_phy_cfg_rx_offset_e82x()
4380 int ice_ptp_clear_phy_offset_ready_e82x(struct ice_hw *hw) in ice_ptp_clear_phy_offset_ready_e82x()
4416 ice_read_phy_and_phc_time_e82x(struct ice_hw *hw, u8 port, u64 *phy_time, in ice_read_phy_and_phc_time_e82x()
4474 static int ice_sync_phy_timer_e82x(struct ice_hw *hw, u8 port) in ice_sync_phy_timer_e82x()
4544 ice_stop_phy_timer_e82x(struct ice_hw *hw, u8 port, bool soft_reset) in ice_stop_phy_timer_e82x()
4594 int ice_start_phy_timer_e82x(struct ice_hw *hw, u8 port) in ice_start_phy_timer_e82x()
4691 ice_get_phy_tx_tstamp_ready_e82x(struct ice_hw *hw, u8 quad, u64 *tstamp_ready) in ice_get_phy_tx_tstamp_ready_e82x()
4727 int ice_phy_cfg_intr_e82x(struct ice_hw *hw, u8 quad, bool ena, u8 threshold) in ice_phy_cfg_intr_e82x()
4771 static int ice_read_phy_reg_e810(struct ice_hw *hw, u32 addr, u32 *val) in ice_read_phy_reg_e810()
4801 static int ice_write_phy_reg_e810(struct ice_hw *hw, u32 addr, u32 val) in ice_write_phy_reg_e810()
4834 ice_read_phy_tstamp_ll_e810(struct ice_hw *hw, u8 idx, u8 *hi, u32 *lo) in ice_read_phy_tstamp_ll_e810()
4877 ice_read_phy_tstamp_sbq_e810(struct ice_hw *hw, u8 lport, u8 idx, u8 *hi, in ice_read_phy_tstamp_sbq_e810()
4916 ice_read_phy_tstamp_e810(struct ice_hw *hw, u8 lport, u8 idx, u64 *tstamp) in ice_read_phy_tstamp_e810()
4950 static int ice_clear_phy_tstamp_e810(struct ice_hw *hw, u8 lport, u8 idx) in ice_clear_phy_tstamp_e810()
4991 static int ice_ptp_init_phc_e810(struct ice_hw *hw) in ice_ptp_init_phc_e810()
5021 static int ice_ptp_prep_phy_time_e810(struct ice_hw *hw, u32 time) in ice_ptp_prep_phy_time_e810()
5057 static int ice_ptp_prep_phy_adj_e810(struct ice_hw *hw, s32 adj) in ice_ptp_prep_phy_adj_e810()
5093 static int ice_ptp_prep_phy_incval_e810(struct ice_hw *hw, u64 incval) in ice_ptp_prep_phy_incval_e810()
5128 static int ice_ptp_port_cmd_e810(struct ice_hw *hw, enum ice_ptp_tmr_cmd cmd) in ice_ptp_port_cmd_e810()
5145 ice_get_phy_tx_tstamp_ready_e810(struct ice_hw *hw, u8 port, u64 *tstamp_ready) in ice_get_phy_tx_tstamp_ready_e810()
5167 ice_get_pca9575_handle(struct ice_hw *hw, u16 *pca9575_handle) in ice_get_pca9575_handle()
5227 int ice_read_sma_ctrl_e810t(struct ice_hw *hw, u8 *data) in ice_read_sma_ctrl_e810t()
5260 int ice_write_sma_ctrl_e810t(struct ice_hw *hw, u8 data) in ice_write_sma_ctrl_e810t()
5291 int ice_read_pca9575_reg_e810t(struct ice_hw *hw, u8 offset, u8 *data) in ice_read_pca9575_reg_e810t()
5347 bool ice_ptp_lock(struct ice_hw *hw) in ice_ptp_lock()
5376 void ice_ptp_unlock(struct ice_hw *hw) in ice_ptp_unlock()
5388 void ice_ptp_init_hw(struct ice_hw *hw) in ice_ptp_init_hw()
5417 static int ice_ptp_write_port_cmd(struct ice_hw *hw, u8 port, in ice_ptp_write_port_cmd()
5444 int ice_ptp_one_port_cmd(struct ice_hw *hw, u8 configured_port, in ice_ptp_one_port_cmd()
5480 static int ice_ptp_port_cmd(struct ice_hw *hw, enum ice_ptp_tmr_cmd cmd) in ice_ptp_port_cmd()
5514 static int ice_ptp_tmr_cmd(struct ice_hw *hw, enum ice_ptp_tmr_cmd cmd) in ice_ptp_tmr_cmd()
5550 int ice_ptp_init_time(struct ice_hw *hw, u64 time) in ice_ptp_init_time()
5599 int ice_ptp_write_incval(struct ice_hw *hw, u64 incval) in ice_ptp_write_incval()
5637 int ice_ptp_write_incval_locked(struct ice_hw *hw, u64 incval) in ice_ptp_write_incval_locked()
5664 int ice_ptp_adj_clock(struct ice_hw *hw, s32 adj) in ice_ptp_adj_clock()
5710 int ice_read_phy_tstamp(struct ice_hw *hw, u8 block, u8 idx, u64 *tstamp) in ice_read_phy_tstamp()
5740 int ice_clear_phy_tstamp(struct ice_hw *hw, u8 block, u8 idx) in ice_clear_phy_tstamp()
5762 static int ice_get_pf_c827_idx(struct ice_hw *hw, u8 *idx) in ice_get_pf_c827_idx()
5803 void ice_ptp_reset_ts_memory(struct ice_hw *hw) in ice_ptp_reset_ts_memory()
5824 int ice_ptp_init_phc(struct ice_hw *hw) in ice_ptp_init_phc()
5857 int ice_get_phy_tx_tstamp_ready(struct ice_hw *hw, u8 block, u64 *tstamp_ready) in ice_get_phy_tx_tstamp_ready()
5884 ice_cgu_get_pin_desc_e823(struct ice_hw *hw, bool input, int *size) in ice_cgu_get_pin_desc_e823()
5923 ice_cgu_get_pin_desc(struct ice_hw *hw, bool input, int *size) in ice_cgu_get_pin_desc()
5972 int ice_cgu_get_num_pins(struct ice_hw *hw, bool input) in ice_cgu_get_num_pins()
5992 enum dpll_pin_type ice_cgu_get_pin_type(struct ice_hw *hw, u8 pin, bool input) in ice_cgu_get_pin_type()
6020 ice_cgu_get_pin_freq_supp(struct ice_hw *hw, u8 pin, bool input, u8 *num) in ice_cgu_get_pin_freq_supp()
6046 const char *ice_cgu_get_pin_name(struct ice_hw *hw, u8 pin, bool input) in ice_cgu_get_pin_name()
6079 int ice_get_cgu_state(struct ice_hw *hw, u8 dpll_idx, in ice_get_cgu_state()
6141 int ice_get_cgu_rclk_pin_info(struct ice_hw *hw, u8 *base_idx, u8 *pin_num) in ice_get_cgu_rclk_pin_info()
6197 int ice_cgu_get_output_pin_state_caps(struct ice_hw *hw, u8 pin_id, in ice_cgu_get_output_pin_state_caps()