Lines Matching defs:hw

203 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()
387 static enum ice_sbq_dev_id ice_ptp_get_dest_dev_e825(struct ice_hw *hw, in ice_ptp_get_dest_dev_e825()
416 static int ice_write_phy_eth56g(struct ice_hw *hw, u8 port, u32 addr, u32 val) in ice_write_phy_eth56g()
444 static int ice_read_phy_eth56g(struct ice_hw *hw, u8 port, u32 addr, u32 *val) in ice_read_phy_eth56g()
476 static int ice_phy_res_address_eth56g(struct ice_hw *hw, u8 lane, in ice_phy_res_address_eth56g()
505 static int ice_write_port_eth56g(struct ice_hw *hw, u8 port, u32 offset, in ice_write_port_eth56g()
534 static int ice_read_port_eth56g(struct ice_hw *hw, u8 port, u32 offset, in ice_read_port_eth56g()
562 static int ice_write_ptp_reg_eth56g(struct ice_hw *hw, u8 port, u16 offset, in ice_write_ptp_reg_eth56g()
581 static int ice_write_mac_reg_eth56g(struct ice_hw *hw, u8 port, u32 offset, in ice_write_mac_reg_eth56g()
599 static int ice_write_xpcs_reg_eth56g(struct ice_hw *hw, u8 port, u32 offset, in ice_write_xpcs_reg_eth56g()
618 static int ice_read_ptp_reg_eth56g(struct ice_hw *hw, u8 port, u16 offset, in ice_read_ptp_reg_eth56g()
636 static int ice_read_mac_reg_eth56g(struct ice_hw *hw, u8 port, u16 offset, in ice_read_mac_reg_eth56g()
654 static int ice_read_gpcs_reg_eth56g(struct ice_hw *hw, u8 port, u16 offset, in ice_read_gpcs_reg_eth56g()
672 static int ice_read_port_mem_eth56g(struct ice_hw *hw, u8 port, u16 offset, in ice_read_port_mem_eth56g()
690 static int ice_write_port_mem_eth56g(struct ice_hw *hw, u8 port, u16 offset, in ice_write_port_mem_eth56g()
708 static int ice_write_quad_ptp_reg_eth56g(struct ice_hw *hw, u8 port, in ice_write_quad_ptp_reg_eth56g()
733 static int ice_read_quad_ptp_reg_eth56g(struct ice_hw *hw, u8 port, in ice_read_quad_ptp_reg_eth56g()
830 static int ice_read_64b_phy_reg_eth56g(struct ice_hw *hw, u8 port, u16 low_addr, in ice_read_64b_phy_reg_eth56g()
875 static int ice_read_64b_ptp_reg_eth56g(struct ice_hw *hw, u8 port, u16 low_addr, in ice_read_64b_ptp_reg_eth56g()
899 static int ice_write_40b_phy_reg_eth56g(struct ice_hw *hw, u8 port, in ice_write_40b_phy_reg_eth56g()
946 static int ice_write_40b_ptp_reg_eth56g(struct ice_hw *hw, u8 port, in ice_write_40b_ptp_reg_eth56g()
969 static int ice_write_64b_phy_reg_eth56g(struct ice_hw *hw, u8 port, in ice_write_64b_phy_reg_eth56g()
1015 static int ice_write_64b_ptp_reg_eth56g(struct ice_hw *hw, u8 port, in ice_write_64b_ptp_reg_eth56g()
1036 static int ice_read_ptp_tstamp_eth56g(struct ice_hw *hw, u8 port, u8 idx, in ice_read_ptp_tstamp_eth56g()
1090 static int ice_clear_ptp_tstamp_eth56g(struct ice_hw *hw, u8 port, u8 idx) in ice_clear_ptp_tstamp_eth56g()
1121 static void ice_ptp_reset_ts_memory_eth56g(struct ice_hw *hw) in ice_ptp_reset_ts_memory_eth56g()
1145 static int ice_ptp_prep_port_time_eth56g(struct ice_hw *hw, u8 port, in ice_ptp_prep_port_time_eth56g()
1175 static int ice_ptp_prep_phy_time_eth56g(struct ice_hw *hw, u32 time) in ice_ptp_prep_phy_time_eth56g()
1218 static int ice_ptp_prep_port_adj_eth56g(struct ice_hw *hw, u8 port, s64 time) in ice_ptp_prep_port_adj_eth56g()
1269 static int ice_ptp_prep_phy_adj_eth56g(struct ice_hw *hw, s32 adj) in ice_ptp_prep_phy_adj_eth56g()
1305 static int ice_ptp_prep_phy_incval_eth56g(struct ice_hw *hw, u64 incval) in ice_ptp_prep_phy_incval_eth56g()
1337 static int ice_ptp_read_port_capture_eth56g(struct ice_hw *hw, u8 port, in ice_ptp_read_port_capture_eth56g()
1379 static int ice_ptp_write_port_cmd_eth56g(struct ice_hw *hw, u8 port, in ice_ptp_write_port_cmd_eth56g()
1462 static int ice_phy_cfg_parpcs_eth56g(struct ice_hw *hw, u8 port) in ice_phy_cfg_parpcs_eth56g()
1530 int ice_phy_cfg_ptp_1step_eth56g(struct ice_hw *hw, u8 port) in ice_phy_cfg_ptp_1step_eth56g()
1630 static u32 ice_ptp_calc_bitslip_eth56g(struct ice_hw *hw, u8 port, u32 bs, in ice_ptp_calc_bitslip_eth56g()
1680 static u32 ice_ptp_calc_deskew_eth56g(struct ice_hw *hw, u8 port, u32 ds, in ice_ptp_calc_deskew_eth56g()
1723 static int ice_phy_set_offsets_eth56g(struct ice_hw *hw, u8 port, in ice_phy_set_offsets_eth56g()
1777 static int ice_phy_cfg_mac_eth56g(struct ice_hw *hw, u8 port) in ice_phy_cfg_mac_eth56g()
1856 int ice_phy_cfg_intr_eth56g(struct ice_hw *hw, u8 port, bool ena, u8 threshold) in ice_phy_cfg_intr_eth56g()
1890 static int ice_read_phy_and_phc_time_eth56g(struct ice_hw *hw, u8 port, in ice_read_phy_and_phc_time_eth56g()
1957 static int ice_sync_phy_timer_eth56g(struct ice_hw *hw, u8 port) in ice_sync_phy_timer_eth56g()
2024 int ice_stop_phy_timer_eth56g(struct ice_hw *hw, u8 port, bool soft_reset) in ice_stop_phy_timer_eth56g()
2054 int ice_start_phy_timer_eth56g(struct ice_hw *hw, u8 port) in ice_start_phy_timer_eth56g()
2130 int ice_ptp_read_tx_hwtstamp_status_eth56g(struct ice_hw *hw, u32 *ts_status) in ice_ptp_read_tx_hwtstamp_status_eth56g()
2168 static int ice_get_phy_tx_tstamp_ready_eth56g(struct ice_hw *hw, u8 port, in ice_get_phy_tx_tstamp_ready_eth56g()
2188 static void ice_ptp_init_phy_e825(struct ice_hw *hw) in ice_ptp_init_phy_e825()
2214 static void ice_fill_phy_msg_e82x(struct ice_hw *hw, in ice_fill_phy_msg_e82x()
2343 ice_read_phy_reg_e82x(struct ice_hw *hw, u8 port, u16 offset, u32 *val) in ice_read_phy_reg_e82x()
2376 ice_read_64b_phy_reg_e82x(struct ice_hw *hw, u8 port, u16 low_addr, u64 *val) in ice_read_64b_phy_reg_e82x()
2420 ice_write_phy_reg_e82x(struct ice_hw *hw, u8 port, u16 offset, u32 val) in ice_write_phy_reg_e82x()
2450 ice_write_40b_phy_reg_e82x(struct ice_hw *hw, u8 port, u16 low_addr, u64 val) in ice_write_40b_phy_reg_e82x()
2497 ice_write_64b_phy_reg_e82x(struct ice_hw *hw, u8 port, u16 low_addr, u64 val) in ice_write_64b_phy_reg_e82x()
2546 static int ice_fill_quad_msg_e82x(struct ice_hw *hw, in ice_fill_quad_msg_e82x()
2579 ice_read_quad_reg_e82x(struct ice_hw *hw, u8 quad, u16 offset, u32 *val) in ice_read_quad_reg_e82x()
2613 ice_write_quad_reg_e82x(struct ice_hw *hw, u8 quad, u16 offset, u32 val) in ice_write_quad_reg_e82x()
2647 ice_read_phy_tstamp_e82x(struct ice_hw *hw, u8 quad, u8 idx, u64 *tstamp) in ice_read_phy_tstamp_e82x()
2703 ice_clear_phy_tstamp_e82x(struct ice_hw *hw, u8 quad, u8 idx) in ice_clear_phy_tstamp_e82x()
2726 void ice_ptp_reset_ts_memory_quad_e82x(struct ice_hw *hw, u8 quad) in ice_ptp_reset_ts_memory_quad_e82x()
2736 static void ice_ptp_reset_ts_memory_e82x(struct ice_hw *hw) in ice_ptp_reset_ts_memory_e82x()
2750 static int ice_ptp_set_vernier_wl(struct ice_hw *hw) in ice_ptp_set_vernier_wl()
2775 static int ice_ptp_init_phc_e82x(struct ice_hw *hw) in ice_ptp_init_phc_e82x()
2801 ice_ptp_prep_phy_time_e82x(struct ice_hw *hw, u32 time) in ice_ptp_prep_phy_time_e82x()
2853 ice_ptp_prep_port_adj_e82x(struct ice_hw *hw, u8 port, s64 time) in ice_ptp_prep_port_adj_e82x()
2901 ice_ptp_prep_phy_adj_e82x(struct ice_hw *hw, s32 adj) in ice_ptp_prep_phy_adj_e82x()
2936 ice_ptp_prep_phy_incval_e82x(struct ice_hw *hw, u64 incval) in ice_ptp_prep_phy_incval_e82x()
2969 ice_ptp_read_port_capture(struct ice_hw *hw, u8 port, u64 *tx_ts, u64 *rx_ts) in ice_ptp_read_port_capture()
3013 static int ice_ptp_write_port_cmd_e82x(struct ice_hw *hw, u8 port, in ice_ptp_write_port_cmd_e82x()
3057 ice_phy_get_speed_and_fec_e82x(struct ice_hw *hw, u8 port, in ice_phy_get_speed_and_fec_e82x()
3127 static void ice_phy_cfg_lane_e82x(struct ice_hw *hw, u8 port) in ice_phy_cfg_lane_e82x()
3209 static int ice_phy_cfg_uix_e82x(struct ice_hw *hw, u8 port) in ice_phy_cfg_uix_e82x()
3291 static int ice_phy_cfg_parpcs_e82x(struct ice_hw *hw, u8 port) in ice_phy_cfg_parpcs_e82x()
3418 ice_calc_fixed_tx_offset_e82x(struct ice_hw *hw, enum ice_ptp_link_spd link_spd) in ice_calc_fixed_tx_offset_e82x()
3464 int ice_phy_cfg_tx_offset_e82x(struct ice_hw *hw, u8 port) in ice_phy_cfg_tx_offset_e82x()
3564 ice_phy_calc_pmd_adj_e82x(struct ice_hw *hw, u8 port, in ice_phy_calc_pmd_adj_e82x()
3717 ice_calc_fixed_rx_offset_e82x(struct ice_hw *hw, enum ice_ptp_link_spd link_spd) in ice_calc_fixed_rx_offset_e82x()
3767 int ice_phy_cfg_rx_offset_e82x(struct ice_hw *hw, u8 port) in ice_phy_cfg_rx_offset_e82x()
3870 int ice_ptp_clear_phy_offset_ready_e82x(struct ice_hw *hw) in ice_ptp_clear_phy_offset_ready_e82x()
3906 ice_read_phy_and_phc_time_e82x(struct ice_hw *hw, u8 port, u64 *phy_time, in ice_read_phy_and_phc_time_e82x()
3964 static int ice_sync_phy_timer_e82x(struct ice_hw *hw, u8 port) in ice_sync_phy_timer_e82x()
4034 ice_stop_phy_timer_e82x(struct ice_hw *hw, u8 port, bool soft_reset) in ice_stop_phy_timer_e82x()
4084 int ice_start_phy_timer_e82x(struct ice_hw *hw, u8 port) in ice_start_phy_timer_e82x()
4181 ice_get_phy_tx_tstamp_ready_e82x(struct ice_hw *hw, u8 quad, u64 *tstamp_ready) in ice_get_phy_tx_tstamp_ready_e82x()
4217 int ice_phy_cfg_intr_e82x(struct ice_hw *hw, u8 quad, bool ena, u8 threshold) in ice_phy_cfg_intr_e82x()
4260 static int ice_read_phy_reg_e810(struct ice_hw *hw, u32 addr, u32 *val) in ice_read_phy_reg_e810()
4290 static int ice_write_phy_reg_e810(struct ice_hw *hw, u32 addr, u32 val) in ice_write_phy_reg_e810()
4323 ice_read_phy_tstamp_ll_e810(struct ice_hw *hw, u8 idx, u8 *hi, u32 *lo) in ice_read_phy_tstamp_ll_e810()
4379 ice_read_phy_tstamp_sbq_e810(struct ice_hw *hw, u8 lport, u8 idx, u8 *hi, in ice_read_phy_tstamp_sbq_e810()
4418 ice_read_phy_tstamp_e810(struct ice_hw *hw, u8 lport, u8 idx, u64 *tstamp) in ice_read_phy_tstamp_e810()
4453 static int ice_clear_phy_tstamp_e810(struct ice_hw *hw, u8 lport, u8 idx) in ice_clear_phy_tstamp_e810()
4494 static int ice_ptp_init_phc_e810(struct ice_hw *hw) in ice_ptp_init_phc_e810()
4523 static int ice_ptp_prep_phy_time_e810(struct ice_hw *hw, u32 time) in ice_ptp_prep_phy_time_e810()
4556 static int ice_ptp_prep_phy_adj_ll_e810(struct ice_hw *hw, s32 adj) in ice_ptp_prep_phy_adj_ll_e810()
4608 static int ice_ptp_prep_phy_adj_e810(struct ice_hw *hw, s32 adj) in ice_ptp_prep_phy_adj_e810()
4648 static int ice_ptp_prep_phy_incval_ll_e810(struct ice_hw *hw, u64 incval) in ice_ptp_prep_phy_incval_ll_e810()
4697 static int ice_ptp_prep_phy_incval_e810(struct ice_hw *hw, u64 incval) in ice_ptp_prep_phy_incval_e810()
4735 static int ice_ptp_port_cmd_e810(struct ice_hw *hw, enum ice_ptp_tmr_cmd cmd) in ice_ptp_port_cmd_e810()
4752 ice_get_phy_tx_tstamp_ready_e810(struct ice_hw *hw, u8 port, u64 *tstamp_ready) in ice_get_phy_tx_tstamp_ready_e810()
4772 int ice_read_sma_ctrl(struct ice_hw *hw, u8 *data) in ice_read_sma_ctrl()
4805 int ice_write_sma_ctrl(struct ice_hw *hw, u8 data) in ice_write_sma_ctrl()
4837 int ice_ptp_read_sdp_ac(struct ice_hw *hw, __le16 *entries, uint *num_entries) in ice_ptp_read_sdp_ac()
4912 static void ice_ptp_init_phc_e830(const struct ice_hw *hw) in ice_ptp_init_phc_e830()
4926 static void ice_ptp_write_direct_incval_e830(const struct ice_hw *hw, in ice_ptp_write_direct_incval_e830()
4947 static void ice_ptp_write_direct_phc_time_e830(const struct ice_hw *hw, in ice_ptp_write_direct_phc_time_e830()
4967 static int ice_ptp_port_cmd_e830(struct ice_hw *hw, enum ice_ptp_tmr_cmd cmd) in ice_ptp_port_cmd_e830()
4983 static void ice_read_phy_tstamp_e830(const struct ice_hw *hw, u8 idx, in ice_read_phy_tstamp_e830()
5004 static void ice_get_phy_tx_tstamp_ready_e830(const struct ice_hw *hw, u8 port, in ice_get_phy_tx_tstamp_ready_e830()
5043 bool ice_ptp_lock(struct ice_hw *hw) in ice_ptp_lock()
5072 void ice_ptp_unlock(struct ice_hw *hw) in ice_ptp_unlock()
5084 void ice_ptp_init_hw(struct ice_hw *hw) in ice_ptp_init_hw()
5121 static int ice_ptp_write_port_cmd(struct ice_hw *hw, u8 port, in ice_ptp_write_port_cmd()
5148 int ice_ptp_one_port_cmd(struct ice_hw *hw, u8 configured_port, in ice_ptp_one_port_cmd()
5184 static int ice_ptp_port_cmd(struct ice_hw *hw, enum ice_ptp_tmr_cmd cmd) in ice_ptp_port_cmd()
5220 static int ice_ptp_tmr_cmd(struct ice_hw *hw, enum ice_ptp_tmr_cmd cmd) in ice_ptp_tmr_cmd()
5256 int ice_ptp_init_time(struct ice_hw *hw, u64 time) in ice_ptp_init_time()
5311 int ice_ptp_write_incval(struct ice_hw *hw, u64 incval) in ice_ptp_write_incval()
5355 int ice_ptp_write_incval_locked(struct ice_hw *hw, u64 incval) in ice_ptp_write_incval_locked()
5382 int ice_ptp_adj_clock(struct ice_hw *hw, s32 adj) in ice_ptp_adj_clock()
5431 int ice_read_phy_tstamp(struct ice_hw *hw, u8 block, u8 idx, u64 *tstamp) in ice_read_phy_tstamp()
5464 int ice_clear_phy_tstamp(struct ice_hw *hw, u8 block, u8 idx) in ice_clear_phy_tstamp()
5486 static int ice_get_pf_c827_idx(struct ice_hw *hw, u8 *idx) in ice_get_pf_c827_idx()
5527 void ice_ptp_reset_ts_memory(struct ice_hw *hw) in ice_ptp_reset_ts_memory()
5548 int ice_ptp_init_phc(struct ice_hw *hw) in ice_ptp_init_phc()
5584 int ice_get_phy_tx_tstamp_ready(struct ice_hw *hw, u8 block, u64 *tstamp_ready) in ice_get_phy_tx_tstamp_ready()
5613 ice_cgu_get_pin_desc_e823(struct ice_hw *hw, bool input, int *size) in ice_cgu_get_pin_desc_e823()
5652 ice_cgu_get_pin_desc(struct ice_hw *hw, bool input, int *size) in ice_cgu_get_pin_desc()
5701 int ice_cgu_get_num_pins(struct ice_hw *hw, bool input) in ice_cgu_get_num_pins()
5721 enum dpll_pin_type ice_cgu_get_pin_type(struct ice_hw *hw, u8 pin, bool input) in ice_cgu_get_pin_type()
5749 ice_cgu_get_pin_freq_supp(struct ice_hw *hw, u8 pin, bool input, u8 *num) in ice_cgu_get_pin_freq_supp()
5775 const char *ice_cgu_get_pin_name(struct ice_hw *hw, u8 pin, bool input) in ice_cgu_get_pin_name()
5808 int ice_get_cgu_state(struct ice_hw *hw, u8 dpll_idx, in ice_get_cgu_state()
5870 int ice_get_cgu_rclk_pin_info(struct ice_hw *hw, u8 *base_idx, u8 *pin_num) in ice_get_cgu_rclk_pin_info()
5926 int ice_cgu_get_output_pin_state_caps(struct ice_hw *hw, u8 pin_id, in ice_cgu_get_output_pin_state_caps()