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()
874 void ice_ptp_src_cmd(struct ice_hw *hw, enum ice_ptp_tmr_cmd cmd) in ice_ptp_src_cmd()
889 static void ice_ptp_exec_tmr_cmd(struct ice_hw *hw) in ice_ptp_exec_tmr_cmd()
910 static enum ice_sbq_msg_dev ice_ptp_get_dest_dev_e825(struct ice_hw *hw, in ice_ptp_get_dest_dev_e825()
931 static int ice_write_phy_eth56g(struct ice_hw *hw, u8 port, u32 addr, u32 val) in ice_write_phy_eth56g()
959 static int ice_read_phy_eth56g(struct ice_hw *hw, u8 port, u32 addr, u32 *val) in ice_read_phy_eth56g()
991 static int ice_phy_res_address_eth56g(struct ice_hw *hw, u8 lane, in ice_phy_res_address_eth56g()
1020 static int ice_write_port_eth56g(struct ice_hw *hw, u8 port, u32 offset, in ice_write_port_eth56g()
1049 static int ice_read_port_eth56g(struct ice_hw *hw, u8 port, u32 offset, in ice_read_port_eth56g()
1077 static int ice_write_ptp_reg_eth56g(struct ice_hw *hw, u8 port, u16 offset, in ice_write_ptp_reg_eth56g()
1096 static int ice_write_mac_reg_eth56g(struct ice_hw *hw, u8 port, u32 offset, in ice_write_mac_reg_eth56g()
1114 static int ice_write_xpcs_reg_eth56g(struct ice_hw *hw, u8 port, u32 offset, in ice_write_xpcs_reg_eth56g()
1133 static int ice_read_ptp_reg_eth56g(struct ice_hw *hw, u8 port, u16 offset, in ice_read_ptp_reg_eth56g()
1151 static int ice_read_mac_reg_eth56g(struct ice_hw *hw, u8 port, u16 offset, in ice_read_mac_reg_eth56g()
1169 static int ice_read_gpcs_reg_eth56g(struct ice_hw *hw, u8 port, u16 offset, in ice_read_gpcs_reg_eth56g()
1187 static int ice_read_port_mem_eth56g(struct ice_hw *hw, u8 port, u16 offset, in ice_read_port_mem_eth56g()
1205 static int ice_write_port_mem_eth56g(struct ice_hw *hw, u8 port, u16 offset, in ice_write_port_mem_eth56g()
1223 static int ice_write_quad_ptp_reg_eth56g(struct ice_hw *hw, u8 port, in ice_write_quad_ptp_reg_eth56g()
1248 static int ice_read_quad_ptp_reg_eth56g(struct ice_hw *hw, u8 port, in ice_read_quad_ptp_reg_eth56g()
1345 static int ice_read_64b_phy_reg_eth56g(struct ice_hw *hw, u8 port, u16 low_addr, in ice_read_64b_phy_reg_eth56g()
1390 static int ice_read_64b_ptp_reg_eth56g(struct ice_hw *hw, u8 port, u16 low_addr, in ice_read_64b_ptp_reg_eth56g()
1414 static int ice_write_40b_phy_reg_eth56g(struct ice_hw *hw, u8 port, in ice_write_40b_phy_reg_eth56g()
1461 static int ice_write_40b_ptp_reg_eth56g(struct ice_hw *hw, u8 port, in ice_write_40b_ptp_reg_eth56g()
1484 static int ice_write_64b_phy_reg_eth56g(struct ice_hw *hw, u8 port, in ice_write_64b_phy_reg_eth56g()
1530 static int ice_write_64b_ptp_reg_eth56g(struct ice_hw *hw, u8 port, in ice_write_64b_ptp_reg_eth56g()
1551 static int ice_read_ptp_tstamp_eth56g(struct ice_hw *hw, u8 port, u8 idx, in ice_read_ptp_tstamp_eth56g()
1606 static int ice_clear_ptp_tstamp_eth56g(struct ice_hw *hw, u8 port, u8 idx) in ice_clear_ptp_tstamp_eth56g()
1637 static void ice_ptp_reset_ts_memory_eth56g(struct ice_hw *hw) in ice_ptp_reset_ts_memory_eth56g()
1661 static int ice_ptp_prep_port_time_eth56g(struct ice_hw *hw, u8 port, in ice_ptp_prep_port_time_eth56g()
1691 static int ice_ptp_prep_phy_time_eth56g(struct ice_hw *hw, u32 time) in ice_ptp_prep_phy_time_eth56g()
1734 static int ice_ptp_prep_port_adj_eth56g(struct ice_hw *hw, u8 port, s64 time) in ice_ptp_prep_port_adj_eth56g()
1785 static int ice_ptp_prep_phy_adj_eth56g(struct ice_hw *hw, s32 adj) in ice_ptp_prep_phy_adj_eth56g()
1821 static int ice_ptp_prep_phy_incval_eth56g(struct ice_hw *hw, u64 incval) in ice_ptp_prep_phy_incval_eth56g()
1853 static int ice_ptp_read_port_capture_eth56g(struct ice_hw *hw, u8 port, in ice_ptp_read_port_capture_eth56g()
1895 static int ice_ptp_write_port_cmd_eth56g(struct ice_hw *hw, u8 port, in ice_ptp_write_port_cmd_eth56g()
1978 static int ice_phy_cfg_parpcs_eth56g(struct ice_hw *hw, u8 port) in ice_phy_cfg_parpcs_eth56g()
2046 int ice_phy_cfg_ptp_1step_eth56g(struct ice_hw *hw, u8 port) in ice_phy_cfg_ptp_1step_eth56g()
2146 static u32 ice_ptp_calc_bitslip_eth56g(struct ice_hw *hw, u8 port, u32 bs, in ice_ptp_calc_bitslip_eth56g()
2196 static u32 ice_ptp_calc_deskew_eth56g(struct ice_hw *hw, u8 port, u32 ds, in ice_ptp_calc_deskew_eth56g()
2239 static int ice_phy_set_offsets_eth56g(struct ice_hw *hw, u8 port, in ice_phy_set_offsets_eth56g()
2293 static int ice_phy_cfg_mac_eth56g(struct ice_hw *hw, u8 port) in ice_phy_cfg_mac_eth56g()
2372 int ice_phy_cfg_intr_eth56g(struct ice_hw *hw, u8 port, bool ena, u8 threshold) in ice_phy_cfg_intr_eth56g()
2406 static int ice_read_phy_and_phc_time_eth56g(struct ice_hw *hw, u8 port, in ice_read_phy_and_phc_time_eth56g()
2467 static int ice_sync_phy_timer_eth56g(struct ice_hw *hw, u8 port) in ice_sync_phy_timer_eth56g()
2534 int ice_stop_phy_timer_eth56g(struct ice_hw *hw, u8 port, bool soft_reset) in ice_stop_phy_timer_eth56g()
2564 int ice_start_phy_timer_eth56g(struct ice_hw *hw, u8 port) in ice_start_phy_timer_eth56g()
2629 static void ice_sb_access_ena_eth56g(struct ice_hw *hw, bool enable) in ice_sb_access_ena_eth56g()
2651 static int ice_ptp_init_phc_eth56g(struct ice_hw *hw) in ice_ptp_init_phc_eth56g()
2670 int ice_ptp_read_tx_hwtstamp_status_eth56g(struct ice_hw *hw, u32 *ts_status) in ice_ptp_read_tx_hwtstamp_status_eth56g()
2708 static int ice_get_phy_tx_tstamp_ready_eth56g(struct ice_hw *hw, u8 port, in ice_get_phy_tx_tstamp_ready_eth56g()
2728 static void ice_ptp_init_phy_e825(struct ice_hw *hw) in ice_ptp_init_phy_e825()
2762 static void ice_fill_phy_msg_e82x(struct ice_hw *hw, in ice_fill_phy_msg_e82x()
2891 ice_read_phy_reg_e82x(struct ice_hw *hw, u8 port, u16 offset, u32 *val) in ice_read_phy_reg_e82x()
2924 ice_read_64b_phy_reg_e82x(struct ice_hw *hw, u8 port, u16 low_addr, u64 *val) in ice_read_64b_phy_reg_e82x()
2968 ice_write_phy_reg_e82x(struct ice_hw *hw, u8 port, u16 offset, u32 val) in ice_write_phy_reg_e82x()
2998 ice_write_40b_phy_reg_e82x(struct ice_hw *hw, u8 port, u16 low_addr, u64 val) in ice_write_40b_phy_reg_e82x()
3045 ice_write_64b_phy_reg_e82x(struct ice_hw *hw, u8 port, u16 low_addr, u64 val) in ice_write_64b_phy_reg_e82x()
3094 static int ice_fill_quad_msg_e82x(struct ice_hw *hw, in ice_fill_quad_msg_e82x()
3127 ice_read_quad_reg_e82x(struct ice_hw *hw, u8 quad, u16 offset, u32 *val) in ice_read_quad_reg_e82x()
3161 ice_write_quad_reg_e82x(struct ice_hw *hw, u8 quad, u16 offset, u32 val) in ice_write_quad_reg_e82x()
3195 ice_read_phy_tstamp_e82x(struct ice_hw *hw, u8 quad, u8 idx, u64 *tstamp) in ice_read_phy_tstamp_e82x()
3250 ice_clear_phy_tstamp_e82x(struct ice_hw *hw, u8 quad, u8 idx) in ice_clear_phy_tstamp_e82x()
3273 void ice_ptp_reset_ts_memory_quad_e82x(struct ice_hw *hw, u8 quad) in ice_ptp_reset_ts_memory_quad_e82x()
3283 static void ice_ptp_reset_ts_memory_e82x(struct ice_hw *hw) in ice_ptp_reset_ts_memory_e82x()
3297 static int ice_ptp_set_vernier_wl(struct ice_hw *hw) in ice_ptp_set_vernier_wl()
3322 static int ice_ptp_init_phc_e82x(struct ice_hw *hw) in ice_ptp_init_phc_e82x()
3354 ice_ptp_prep_phy_time_e82x(struct ice_hw *hw, u32 time) in ice_ptp_prep_phy_time_e82x()
3406 ice_ptp_prep_port_adj_e82x(struct ice_hw *hw, u8 port, s64 time) in ice_ptp_prep_port_adj_e82x()
3454 ice_ptp_prep_phy_adj_e82x(struct ice_hw *hw, s32 adj) in ice_ptp_prep_phy_adj_e82x()
3489 ice_ptp_prep_phy_incval_e82x(struct ice_hw *hw, u64 incval) in ice_ptp_prep_phy_incval_e82x()
3522 ice_ptp_read_port_capture(struct ice_hw *hw, u8 port, u64 *tx_ts, u64 *rx_ts) in ice_ptp_read_port_capture()
3566 static int ice_ptp_write_port_cmd_e82x(struct ice_hw *hw, u8 port, in ice_ptp_write_port_cmd_e82x()
3610 ice_phy_get_speed_and_fec_e82x(struct ice_hw *hw, u8 port, in ice_phy_get_speed_and_fec_e82x()
3680 static void ice_phy_cfg_lane_e82x(struct ice_hw *hw, u8 port) in ice_phy_cfg_lane_e82x()
3762 static int ice_phy_cfg_uix_e82x(struct ice_hw *hw, u8 port) in ice_phy_cfg_uix_e82x()
3844 static int ice_phy_cfg_parpcs_e82x(struct ice_hw *hw, u8 port) in ice_phy_cfg_parpcs_e82x()
3971 ice_calc_fixed_tx_offset_e82x(struct ice_hw *hw, enum ice_ptp_link_spd link_spd) in ice_calc_fixed_tx_offset_e82x()
4017 int ice_phy_cfg_tx_offset_e82x(struct ice_hw *hw, u8 port) in ice_phy_cfg_tx_offset_e82x()
4117 ice_phy_calc_pmd_adj_e82x(struct ice_hw *hw, u8 port, in ice_phy_calc_pmd_adj_e82x()
4270 ice_calc_fixed_rx_offset_e82x(struct ice_hw *hw, enum ice_ptp_link_spd link_spd) in ice_calc_fixed_rx_offset_e82x()
4320 int ice_phy_cfg_rx_offset_e82x(struct ice_hw *hw, u8 port) in ice_phy_cfg_rx_offset_e82x()
4423 int ice_ptp_clear_phy_offset_ready_e82x(struct ice_hw *hw) in ice_ptp_clear_phy_offset_ready_e82x()
4459 ice_read_phy_and_phc_time_e82x(struct ice_hw *hw, u8 port, u64 *phy_time, in ice_read_phy_and_phc_time_e82x()
4517 static int ice_sync_phy_timer_e82x(struct ice_hw *hw, u8 port) in ice_sync_phy_timer_e82x()
4587 ice_stop_phy_timer_e82x(struct ice_hw *hw, u8 port, bool soft_reset) in ice_stop_phy_timer_e82x()
4637 int ice_start_phy_timer_e82x(struct ice_hw *hw, u8 port) in ice_start_phy_timer_e82x()
4734 ice_get_phy_tx_tstamp_ready_e82x(struct ice_hw *hw, u8 quad, u64 *tstamp_ready) in ice_get_phy_tx_tstamp_ready_e82x()
4770 int ice_phy_cfg_intr_e82x(struct ice_hw *hw, u8 quad, bool ena, u8 threshold) in ice_phy_cfg_intr_e82x()
4814 static int ice_read_phy_reg_e810(struct ice_hw *hw, u32 addr, u32 *val) in ice_read_phy_reg_e810()
4844 static int ice_write_phy_reg_e810(struct ice_hw *hw, u32 addr, u32 val) in ice_write_phy_reg_e810()
4877 ice_read_phy_tstamp_ll_e810(struct ice_hw *hw, u8 idx, u8 *hi, u32 *lo) in ice_read_phy_tstamp_ll_e810()
4933 ice_read_phy_tstamp_sbq_e810(struct ice_hw *hw, u8 lport, u8 idx, u8 *hi, in ice_read_phy_tstamp_sbq_e810()
4972 ice_read_phy_tstamp_e810(struct ice_hw *hw, u8 lport, u8 idx, u64 *tstamp) in ice_read_phy_tstamp_e810()
5006 static int ice_clear_phy_tstamp_e810(struct ice_hw *hw, u8 lport, u8 idx) in ice_clear_phy_tstamp_e810()
5047 static int ice_ptp_init_phc_e810(struct ice_hw *hw) in ice_ptp_init_phc_e810()
5077 static int ice_ptp_prep_phy_time_e810(struct ice_hw *hw, u32 time) in ice_ptp_prep_phy_time_e810()
5110 static int ice_ptp_prep_phy_adj_ll_e810(struct ice_hw *hw, s32 adj) in ice_ptp_prep_phy_adj_ll_e810()
5162 static int ice_ptp_prep_phy_adj_e810(struct ice_hw *hw, s32 adj) in ice_ptp_prep_phy_adj_e810()
5202 static int ice_ptp_prep_phy_incval_ll_e810(struct ice_hw *hw, u64 incval) in ice_ptp_prep_phy_incval_ll_e810()
5251 static int ice_ptp_prep_phy_incval_e810(struct ice_hw *hw, u64 incval) in ice_ptp_prep_phy_incval_e810()
5289 static int ice_ptp_port_cmd_e810(struct ice_hw *hw, enum ice_ptp_tmr_cmd cmd) in ice_ptp_port_cmd_e810()
5306 ice_get_phy_tx_tstamp_ready_e810(struct ice_hw *hw, u8 port, u64 *tstamp_ready) in ice_get_phy_tx_tstamp_ready_e810()
5328 ice_get_pca9575_handle(struct ice_hw *hw, u16 *pca9575_handle) in ice_get_pca9575_handle()
5388 int ice_read_sma_ctrl(struct ice_hw *hw, u8 *data) in ice_read_sma_ctrl()
5421 int ice_write_sma_ctrl(struct ice_hw *hw, u8 data) in ice_write_sma_ctrl()
5452 int ice_read_pca9575_reg(struct ice_hw *hw, u8 offset, u8 *data) in ice_read_pca9575_reg()
5484 int ice_ptp_read_sdp_ac(struct ice_hw *hw, __le16 *entries, uint *num_entries) in ice_ptp_read_sdp_ac()
5570 bool ice_ptp_lock(struct ice_hw *hw) in ice_ptp_lock()
5599 void ice_ptp_unlock(struct ice_hw *hw) in ice_ptp_unlock()
5611 void ice_ptp_init_hw(struct ice_hw *hw) in ice_ptp_init_hw()
5640 static int ice_ptp_write_port_cmd(struct ice_hw *hw, u8 port, in ice_ptp_write_port_cmd()
5667 int ice_ptp_one_port_cmd(struct ice_hw *hw, u8 configured_port, in ice_ptp_one_port_cmd()
5703 static int ice_ptp_port_cmd(struct ice_hw *hw, enum ice_ptp_tmr_cmd cmd) in ice_ptp_port_cmd()
5737 static int ice_ptp_tmr_cmd(struct ice_hw *hw, enum ice_ptp_tmr_cmd cmd) in ice_ptp_tmr_cmd()
5773 int ice_ptp_init_time(struct ice_hw *hw, u64 time) in ice_ptp_init_time()
5822 int ice_ptp_write_incval(struct ice_hw *hw, u64 incval) in ice_ptp_write_incval()
5860 int ice_ptp_write_incval_locked(struct ice_hw *hw, u64 incval) in ice_ptp_write_incval_locked()
5887 int ice_ptp_adj_clock(struct ice_hw *hw, s32 adj) in ice_ptp_adj_clock()
5933 int ice_read_phy_tstamp(struct ice_hw *hw, u8 block, u8 idx, u64 *tstamp) in ice_read_phy_tstamp()
5963 int ice_clear_phy_tstamp(struct ice_hw *hw, u8 block, u8 idx) in ice_clear_phy_tstamp()
5985 static int ice_get_pf_c827_idx(struct ice_hw *hw, u8 *idx) in ice_get_pf_c827_idx()
6026 void ice_ptp_reset_ts_memory(struct ice_hw *hw) in ice_ptp_reset_ts_memory()
6047 int ice_ptp_init_phc(struct ice_hw *hw) in ice_ptp_init_phc()
6080 int ice_get_phy_tx_tstamp_ready(struct ice_hw *hw, u8 block, u64 *tstamp_ready) in ice_get_phy_tx_tstamp_ready()
6107 ice_cgu_get_pin_desc_e823(struct ice_hw *hw, bool input, int *size) in ice_cgu_get_pin_desc_e823()
6146 ice_cgu_get_pin_desc(struct ice_hw *hw, bool input, int *size) in ice_cgu_get_pin_desc()
6195 int ice_cgu_get_num_pins(struct ice_hw *hw, bool input) in ice_cgu_get_num_pins()
6215 enum dpll_pin_type ice_cgu_get_pin_type(struct ice_hw *hw, u8 pin, bool input) in ice_cgu_get_pin_type()
6243 ice_cgu_get_pin_freq_supp(struct ice_hw *hw, u8 pin, bool input, u8 *num) in ice_cgu_get_pin_freq_supp()
6269 const char *ice_cgu_get_pin_name(struct ice_hw *hw, u8 pin, bool input) in ice_cgu_get_pin_name()
6302 int ice_get_cgu_state(struct ice_hw *hw, u8 dpll_idx, in ice_get_cgu_state()
6364 int ice_get_cgu_rclk_pin_info(struct ice_hw *hw, u8 *base_idx, u8 *pin_num) in ice_get_cgu_rclk_pin_info()
6420 int ice_cgu_get_output_pin_state_caps(struct ice_hw *hw, u8 pin_id, in ice_cgu_get_output_pin_state_caps()