Lines Matching defs: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 int ice_cgu_cfg_pps_out(struct ice_hw *hw, bool enable) in ice_cgu_cfg_pps_out()
694 static int ice_cfg_cgu_pll_dis_sticky_bits_e82x(struct ice_hw *hw) in ice_cfg_cgu_pll_dis_sticky_bits_e82x()
721 static int ice_cfg_cgu_pll_dis_sticky_bits_e825c(struct ice_hw *hw) in ice_cfg_cgu_pll_dis_sticky_bits_e825c()
743 static int ice_init_cgu_e82x(struct ice_hw *hw) in ice_init_cgu_e82x()
777 static u32 ice_ptp_tmr_cmd_to_src_reg(struct ice_hw *hw, in ice_ptp_tmr_cmd_to_src_reg()
822 static u32 ice_ptp_tmr_cmd_to_port_reg(struct ice_hw *hw, in ice_ptp_tmr_cmd_to_port_reg()
875 void ice_ptp_src_cmd(struct ice_hw *hw, enum ice_ptp_tmr_cmd cmd) in ice_ptp_src_cmd()
890 static void ice_ptp_exec_tmr_cmd(struct ice_hw *hw) in ice_ptp_exec_tmr_cmd()
904 static void ice_ptp_cfg_sync_delay(const struct ice_hw *hw, u32 delay) in ice_ptp_cfg_sync_delay()
922 static enum ice_sbq_msg_dev ice_ptp_get_dest_dev_e825(struct ice_hw *hw, in ice_ptp_get_dest_dev_e825()
943 static int ice_write_phy_eth56g(struct ice_hw *hw, u8 port, u32 addr, u32 val) in ice_write_phy_eth56g()
971 static int ice_read_phy_eth56g(struct ice_hw *hw, u8 port, u32 addr, u32 *val) in ice_read_phy_eth56g()
1003 static int ice_phy_res_address_eth56g(struct ice_hw *hw, u8 lane, in ice_phy_res_address_eth56g()
1032 static int ice_write_port_eth56g(struct ice_hw *hw, u8 port, u32 offset, in ice_write_port_eth56g()
1061 static int ice_read_port_eth56g(struct ice_hw *hw, u8 port, u32 offset, in ice_read_port_eth56g()
1089 static int ice_write_ptp_reg_eth56g(struct ice_hw *hw, u8 port, u16 offset, in ice_write_ptp_reg_eth56g()
1108 static int ice_write_mac_reg_eth56g(struct ice_hw *hw, u8 port, u32 offset, in ice_write_mac_reg_eth56g()
1126 static int ice_write_xpcs_reg_eth56g(struct ice_hw *hw, u8 port, u32 offset, in ice_write_xpcs_reg_eth56g()
1145 static int ice_read_ptp_reg_eth56g(struct ice_hw *hw, u8 port, u16 offset, in ice_read_ptp_reg_eth56g()
1163 static int ice_read_mac_reg_eth56g(struct ice_hw *hw, u8 port, u16 offset, in ice_read_mac_reg_eth56g()
1181 static int ice_read_gpcs_reg_eth56g(struct ice_hw *hw, u8 port, u16 offset, in ice_read_gpcs_reg_eth56g()
1199 static int ice_read_port_mem_eth56g(struct ice_hw *hw, u8 port, u16 offset, in ice_read_port_mem_eth56g()
1217 static int ice_write_port_mem_eth56g(struct ice_hw *hw, u8 port, u16 offset, in ice_write_port_mem_eth56g()
1235 static int ice_write_quad_ptp_reg_eth56g(struct ice_hw *hw, u8 port, in ice_write_quad_ptp_reg_eth56g()
1260 static int ice_read_quad_ptp_reg_eth56g(struct ice_hw *hw, u8 port, in ice_read_quad_ptp_reg_eth56g()
1357 static int ice_read_64b_phy_reg_eth56g(struct ice_hw *hw, u8 port, u16 low_addr, in ice_read_64b_phy_reg_eth56g()
1402 static int ice_read_64b_ptp_reg_eth56g(struct ice_hw *hw, u8 port, u16 low_addr, in ice_read_64b_ptp_reg_eth56g()
1426 static int ice_write_40b_phy_reg_eth56g(struct ice_hw *hw, u8 port, in ice_write_40b_phy_reg_eth56g()
1473 static int ice_write_40b_ptp_reg_eth56g(struct ice_hw *hw, u8 port, in ice_write_40b_ptp_reg_eth56g()
1496 static int ice_write_64b_phy_reg_eth56g(struct ice_hw *hw, u8 port, in ice_write_64b_phy_reg_eth56g()
1542 static int ice_write_64b_ptp_reg_eth56g(struct ice_hw *hw, u8 port, in ice_write_64b_ptp_reg_eth56g()
1563 static int ice_read_ptp_tstamp_eth56g(struct ice_hw *hw, u8 port, u8 idx, in ice_read_ptp_tstamp_eth56g()
1617 static int ice_clear_ptp_tstamp_eth56g(struct ice_hw *hw, u8 port, u8 idx) in ice_clear_ptp_tstamp_eth56g()
1648 static void ice_ptp_reset_ts_memory_eth56g(struct ice_hw *hw) in ice_ptp_reset_ts_memory_eth56g()
1672 static int ice_ptp_prep_port_time_eth56g(struct ice_hw *hw, u8 port, in ice_ptp_prep_port_time_eth56g()
1702 static int ice_ptp_prep_phy_time_eth56g(struct ice_hw *hw, u32 time) in ice_ptp_prep_phy_time_eth56g()
1745 static int ice_ptp_prep_port_adj_eth56g(struct ice_hw *hw, u8 port, s64 time) in ice_ptp_prep_port_adj_eth56g()
1796 static int ice_ptp_prep_phy_adj_eth56g(struct ice_hw *hw, s32 adj) in ice_ptp_prep_phy_adj_eth56g()
1832 static int ice_ptp_prep_phy_incval_eth56g(struct ice_hw *hw, u64 incval) in ice_ptp_prep_phy_incval_eth56g()
1864 static int ice_ptp_read_port_capture_eth56g(struct ice_hw *hw, u8 port, in ice_ptp_read_port_capture_eth56g()
1906 static int ice_ptp_write_port_cmd_eth56g(struct ice_hw *hw, u8 port, in ice_ptp_write_port_cmd_eth56g()
1989 static int ice_phy_cfg_parpcs_eth56g(struct ice_hw *hw, u8 port) in ice_phy_cfg_parpcs_eth56g()
2057 int ice_phy_cfg_ptp_1step_eth56g(struct ice_hw *hw, u8 port) in ice_phy_cfg_ptp_1step_eth56g()
2157 static u32 ice_ptp_calc_bitslip_eth56g(struct ice_hw *hw, u8 port, u32 bs, in ice_ptp_calc_bitslip_eth56g()
2207 static u32 ice_ptp_calc_deskew_eth56g(struct ice_hw *hw, u8 port, u32 ds, in ice_ptp_calc_deskew_eth56g()
2250 static int ice_phy_set_offsets_eth56g(struct ice_hw *hw, u8 port, in ice_phy_set_offsets_eth56g()
2304 static int ice_phy_cfg_mac_eth56g(struct ice_hw *hw, u8 port) in ice_phy_cfg_mac_eth56g()
2383 int ice_phy_cfg_intr_eth56g(struct ice_hw *hw, u8 port, bool ena, u8 threshold) in ice_phy_cfg_intr_eth56g()
2417 static int ice_read_phy_and_phc_time_eth56g(struct ice_hw *hw, u8 port, in ice_read_phy_and_phc_time_eth56g()
2478 static int ice_sync_phy_timer_eth56g(struct ice_hw *hw, u8 port) in ice_sync_phy_timer_eth56g()
2545 int ice_stop_phy_timer_eth56g(struct ice_hw *hw, u8 port, bool soft_reset) in ice_stop_phy_timer_eth56g()
2575 int ice_start_phy_timer_eth56g(struct ice_hw *hw, u8 port) in ice_start_phy_timer_eth56g()
2640 static void ice_sb_access_ena_eth56g(struct ice_hw *hw, bool enable) in ice_sb_access_ena_eth56g()
2660 static int ice_ptp_init_phc_e825(struct ice_hw *hw) in ice_ptp_init_phc_e825()
2680 int ice_ptp_read_tx_hwtstamp_status_eth56g(struct ice_hw *hw, u32 *ts_status) in ice_ptp_read_tx_hwtstamp_status_eth56g()
2718 static int ice_get_phy_tx_tstamp_ready_eth56g(struct ice_hw *hw, u8 port, in ice_get_phy_tx_tstamp_ready_eth56g()
2738 static void ice_ptp_init_phy_e825(struct ice_hw *hw) in ice_ptp_init_phy_e825()
2766 static void ice_fill_phy_msg_e82x(struct ice_hw *hw, in ice_fill_phy_msg_e82x()
2895 ice_read_phy_reg_e82x(struct ice_hw *hw, u8 port, u16 offset, u32 *val) in ice_read_phy_reg_e82x()
2928 ice_read_64b_phy_reg_e82x(struct ice_hw *hw, u8 port, u16 low_addr, u64 *val) in ice_read_64b_phy_reg_e82x()
2972 ice_write_phy_reg_e82x(struct ice_hw *hw, u8 port, u16 offset, u32 val) in ice_write_phy_reg_e82x()
3002 ice_write_40b_phy_reg_e82x(struct ice_hw *hw, u8 port, u16 low_addr, u64 val) in ice_write_40b_phy_reg_e82x()
3049 ice_write_64b_phy_reg_e82x(struct ice_hw *hw, u8 port, u16 low_addr, u64 val) in ice_write_64b_phy_reg_e82x()
3098 static int ice_fill_quad_msg_e82x(struct ice_hw *hw, in ice_fill_quad_msg_e82x()
3131 ice_read_quad_reg_e82x(struct ice_hw *hw, u8 quad, u16 offset, u32 *val) in ice_read_quad_reg_e82x()
3165 ice_write_quad_reg_e82x(struct ice_hw *hw, u8 quad, u16 offset, u32 val) in ice_write_quad_reg_e82x()
3199 ice_read_phy_tstamp_e82x(struct ice_hw *hw, u8 quad, u8 idx, u64 *tstamp) in ice_read_phy_tstamp_e82x()
3255 ice_clear_phy_tstamp_e82x(struct ice_hw *hw, u8 quad, u8 idx) in ice_clear_phy_tstamp_e82x()
3278 void ice_ptp_reset_ts_memory_quad_e82x(struct ice_hw *hw, u8 quad) in ice_ptp_reset_ts_memory_quad_e82x()
3288 static void ice_ptp_reset_ts_memory_e82x(struct ice_hw *hw) in ice_ptp_reset_ts_memory_e82x()
3302 static int ice_ptp_set_vernier_wl(struct ice_hw *hw) in ice_ptp_set_vernier_wl()
3327 static int ice_ptp_init_phc_e82x(struct ice_hw *hw) in ice_ptp_init_phc_e82x()
3359 ice_ptp_prep_phy_time_e82x(struct ice_hw *hw, u32 time) in ice_ptp_prep_phy_time_e82x()
3411 ice_ptp_prep_port_adj_e82x(struct ice_hw *hw, u8 port, s64 time) in ice_ptp_prep_port_adj_e82x()
3459 ice_ptp_prep_phy_adj_e82x(struct ice_hw *hw, s32 adj) in ice_ptp_prep_phy_adj_e82x()
3494 ice_ptp_prep_phy_incval_e82x(struct ice_hw *hw, u64 incval) in ice_ptp_prep_phy_incval_e82x()
3527 ice_ptp_read_port_capture(struct ice_hw *hw, u8 port, u64 *tx_ts, u64 *rx_ts) in ice_ptp_read_port_capture()
3571 static int ice_ptp_write_port_cmd_e82x(struct ice_hw *hw, u8 port, in ice_ptp_write_port_cmd_e82x()
3615 ice_phy_get_speed_and_fec_e82x(struct ice_hw *hw, u8 port, in ice_phy_get_speed_and_fec_e82x()
3685 static void ice_phy_cfg_lane_e82x(struct ice_hw *hw, u8 port) in ice_phy_cfg_lane_e82x()
3767 static int ice_phy_cfg_uix_e82x(struct ice_hw *hw, u8 port) in ice_phy_cfg_uix_e82x()
3849 static int ice_phy_cfg_parpcs_e82x(struct ice_hw *hw, u8 port) in ice_phy_cfg_parpcs_e82x()
3976 ice_calc_fixed_tx_offset_e82x(struct ice_hw *hw, enum ice_ptp_link_spd link_spd) in ice_calc_fixed_tx_offset_e82x()
4022 int ice_phy_cfg_tx_offset_e82x(struct ice_hw *hw, u8 port) in ice_phy_cfg_tx_offset_e82x()
4122 ice_phy_calc_pmd_adj_e82x(struct ice_hw *hw, u8 port, in ice_phy_calc_pmd_adj_e82x()
4275 ice_calc_fixed_rx_offset_e82x(struct ice_hw *hw, enum ice_ptp_link_spd link_spd) in ice_calc_fixed_rx_offset_e82x()
4325 int ice_phy_cfg_rx_offset_e82x(struct ice_hw *hw, u8 port) in ice_phy_cfg_rx_offset_e82x()
4428 int ice_ptp_clear_phy_offset_ready_e82x(struct ice_hw *hw) in ice_ptp_clear_phy_offset_ready_e82x()
4464 ice_read_phy_and_phc_time_e82x(struct ice_hw *hw, u8 port, u64 *phy_time, in ice_read_phy_and_phc_time_e82x()
4522 static int ice_sync_phy_timer_e82x(struct ice_hw *hw, u8 port) in ice_sync_phy_timer_e82x()
4592 ice_stop_phy_timer_e82x(struct ice_hw *hw, u8 port, bool soft_reset) in ice_stop_phy_timer_e82x()
4642 int ice_start_phy_timer_e82x(struct ice_hw *hw, u8 port) in ice_start_phy_timer_e82x()
4739 ice_get_phy_tx_tstamp_ready_e82x(struct ice_hw *hw, u8 quad, u64 *tstamp_ready) in ice_get_phy_tx_tstamp_ready_e82x()
4775 int ice_phy_cfg_intr_e82x(struct ice_hw *hw, u8 quad, bool ena, u8 threshold) in ice_phy_cfg_intr_e82x()
4818 static int ice_read_phy_reg_e810(struct ice_hw *hw, u32 addr, u32 *val) in ice_read_phy_reg_e810()
4848 static int ice_write_phy_reg_e810(struct ice_hw *hw, u32 addr, u32 val) in ice_write_phy_reg_e810()
4881 ice_read_phy_tstamp_ll_e810(struct ice_hw *hw, u8 idx, u8 *hi, u32 *lo) in ice_read_phy_tstamp_ll_e810()
4937 ice_read_phy_tstamp_sbq_e810(struct ice_hw *hw, u8 lport, u8 idx, u8 *hi, in ice_read_phy_tstamp_sbq_e810()
4976 ice_read_phy_tstamp_e810(struct ice_hw *hw, u8 lport, u8 idx, u64 *tstamp) in ice_read_phy_tstamp_e810()
5011 static int ice_clear_phy_tstamp_e810(struct ice_hw *hw, u8 lport, u8 idx) in ice_clear_phy_tstamp_e810()
5052 static int ice_ptp_init_phc_e810(struct ice_hw *hw) in ice_ptp_init_phc_e810()
5081 static int ice_ptp_prep_phy_time_e810(struct ice_hw *hw, u32 time) in ice_ptp_prep_phy_time_e810()
5114 static int ice_ptp_prep_phy_adj_ll_e810(struct ice_hw *hw, s32 adj) in ice_ptp_prep_phy_adj_ll_e810()
5166 static int ice_ptp_prep_phy_adj_e810(struct ice_hw *hw, s32 adj) in ice_ptp_prep_phy_adj_e810()
5206 static int ice_ptp_prep_phy_incval_ll_e810(struct ice_hw *hw, u64 incval) in ice_ptp_prep_phy_incval_ll_e810()
5255 static int ice_ptp_prep_phy_incval_e810(struct ice_hw *hw, u64 incval) in ice_ptp_prep_phy_incval_e810()
5293 static int ice_ptp_port_cmd_e810(struct ice_hw *hw, enum ice_ptp_tmr_cmd cmd) in ice_ptp_port_cmd_e810()
5310 ice_get_phy_tx_tstamp_ready_e810(struct ice_hw *hw, u8 port, u64 *tstamp_ready) in ice_get_phy_tx_tstamp_ready_e810()
5330 int ice_read_sma_ctrl(struct ice_hw *hw, u8 *data) in ice_read_sma_ctrl()
5363 int ice_write_sma_ctrl(struct ice_hw *hw, u8 data) in ice_write_sma_ctrl()
5395 int ice_ptp_read_sdp_ac(struct ice_hw *hw, __le16 *entries, uint *num_entries) in ice_ptp_read_sdp_ac()
5470 static void ice_ptp_init_phc_e830(const struct ice_hw *hw) in ice_ptp_init_phc_e830()
5484 static void ice_ptp_write_direct_incval_e830(const struct ice_hw *hw, in ice_ptp_write_direct_incval_e830()
5505 static void ice_ptp_write_direct_phc_time_e830(const struct ice_hw *hw, in ice_ptp_write_direct_phc_time_e830()
5525 static int ice_ptp_port_cmd_e830(struct ice_hw *hw, enum ice_ptp_tmr_cmd cmd) in ice_ptp_port_cmd_e830()
5541 static void ice_read_phy_tstamp_e830(const struct ice_hw *hw, u8 idx, in ice_read_phy_tstamp_e830()
5562 static void ice_get_phy_tx_tstamp_ready_e830(const struct ice_hw *hw, u8 port, in ice_get_phy_tx_tstamp_ready_e830()
5601 bool ice_ptp_lock(struct ice_hw *hw) in ice_ptp_lock()
5630 void ice_ptp_unlock(struct ice_hw *hw) in ice_ptp_unlock()
5642 void ice_ptp_init_hw(struct ice_hw *hw) in ice_ptp_init_hw()
5679 static int ice_ptp_write_port_cmd(struct ice_hw *hw, u8 port, in ice_ptp_write_port_cmd()
5706 int ice_ptp_one_port_cmd(struct ice_hw *hw, u8 configured_port, in ice_ptp_one_port_cmd()
5742 static int ice_ptp_port_cmd(struct ice_hw *hw, enum ice_ptp_tmr_cmd cmd) in ice_ptp_port_cmd()
5778 static int ice_ptp_tmr_cmd(struct ice_hw *hw, enum ice_ptp_tmr_cmd cmd) in ice_ptp_tmr_cmd()
5814 int ice_ptp_init_time(struct ice_hw *hw, u64 time) in ice_ptp_init_time()
5869 int ice_ptp_write_incval(struct ice_hw *hw, u64 incval) in ice_ptp_write_incval()
5913 int ice_ptp_write_incval_locked(struct ice_hw *hw, u64 incval) in ice_ptp_write_incval_locked()
5940 int ice_ptp_adj_clock(struct ice_hw *hw, s32 adj) in ice_ptp_adj_clock()
5989 int ice_read_phy_tstamp(struct ice_hw *hw, u8 block, u8 idx, u64 *tstamp) in ice_read_phy_tstamp()
6022 int ice_clear_phy_tstamp(struct ice_hw *hw, u8 block, u8 idx) in ice_clear_phy_tstamp()
6044 static int ice_get_pf_c827_idx(struct ice_hw *hw, u8 *idx) in ice_get_pf_c827_idx()
6085 void ice_ptp_reset_ts_memory(struct ice_hw *hw) in ice_ptp_reset_ts_memory()
6106 int ice_ptp_init_phc(struct ice_hw *hw) in ice_ptp_init_phc()
6142 int ice_get_phy_tx_tstamp_ready(struct ice_hw *hw, u8 block, u64 *tstamp_ready) in ice_get_phy_tx_tstamp_ready()
6171 ice_cgu_get_pin_desc_e823(struct ice_hw *hw, bool input, int *size) in ice_cgu_get_pin_desc_e823()
6210 ice_cgu_get_pin_desc(struct ice_hw *hw, bool input, int *size) in ice_cgu_get_pin_desc()
6259 int ice_cgu_get_num_pins(struct ice_hw *hw, bool input) in ice_cgu_get_num_pins()
6279 enum dpll_pin_type ice_cgu_get_pin_type(struct ice_hw *hw, u8 pin, bool input) in ice_cgu_get_pin_type()
6307 ice_cgu_get_pin_freq_supp(struct ice_hw *hw, u8 pin, bool input, u8 *num) in ice_cgu_get_pin_freq_supp()
6333 const char *ice_cgu_get_pin_name(struct ice_hw *hw, u8 pin, bool input) in ice_cgu_get_pin_name()
6366 int ice_get_cgu_state(struct ice_hw *hw, u8 dpll_idx, in ice_get_cgu_state()
6428 int ice_get_cgu_rclk_pin_info(struct ice_hw *hw, u8 *base_idx, u8 *pin_num) in ice_get_cgu_rclk_pin_info()
6484 int ice_cgu_get_output_pin_state_caps(struct ice_hw *hw, u8 pin_id, in ice_cgu_get_output_pin_state_caps()