Lines Matching refs:tmr_idx

93 	u8 tmr_idx;  in ice_ptp_read_src_incval()  local
95 tmr_idx = ice_get_ptp_src_clock_index(hw); in ice_ptp_read_src_incval()
97 lo = rd32(hw, GLTSYN_INCVAL_L(tmr_idx)); in ice_ptp_read_src_incval()
98 hi = rd32(hw, GLTSYN_INCVAL_H(tmr_idx)); in ice_ptp_read_src_incval()
113 u8 tmr_idx; in ice_ptp_src_cmd() local
115 tmr_idx = ice_get_ptp_src_clock_index(hw); in ice_ptp_src_cmd()
116 cmd_val = tmr_idx << SEL_CPK_SRC; in ice_ptp_src_cmd()
1245 u8 tmr_idx; in ice_ptp_write_port_cmd_e822() local
1248 tmr_idx = ice_get_ptp_src_clock_index(hw); in ice_ptp_write_port_cmd_e822()
1249 cmd_val = tmr_idx << SEL_PHY_SRC; in ice_ptp_write_port_cmd_e822()
2208 u8 tmr_idx; in ice_read_phy_and_phc_time_e822() local
2211 tmr_idx = ice_get_ptp_src_clock_index(hw); in ice_read_phy_and_phc_time_e822()
2225 zo = rd32(hw, GLTSYN_SHTIME_0(tmr_idx)); in ice_read_phy_and_phc_time_e822()
2226 lo = rd32(hw, GLTSYN_SHTIME_L(tmr_idx)); in ice_read_phy_and_phc_time_e822()
2384 u8 tmr_idx; in ice_start_phy_timer_e822() local
2387 tmr_idx = ice_get_ptp_src_clock_index(hw); in ice_start_phy_timer_e822()
2403 lo = rd32(hw, GLTSYN_INCVAL_L(tmr_idx)); in ice_start_phy_timer_e822()
2404 hi = rd32(hw, GLTSYN_INCVAL_H(tmr_idx)); in ice_start_phy_timer_e822()
2725 u8 tmr_idx; in ice_ptp_init_phy_e810() local
2728 tmr_idx = hw->func_caps.ts_func_info.tmr_index_owned; in ice_ptp_init_phy_e810()
2729 err = ice_write_phy_reg_e810(hw, ETH_GLTSYN_ENA(tmr_idx), in ice_ptp_init_phy_e810()
2767 u8 tmr_idx; in ice_ptp_prep_phy_time_e810() local
2770 tmr_idx = hw->func_caps.ts_func_info.tmr_index_owned; in ice_ptp_prep_phy_time_e810()
2771 err = ice_write_phy_reg_e810(hw, ETH_GLTSYN_SHTIME_0(tmr_idx), 0); in ice_ptp_prep_phy_time_e810()
2778 err = ice_write_phy_reg_e810(hw, ETH_GLTSYN_SHTIME_L(tmr_idx), time); in ice_ptp_prep_phy_time_e810()
2803 u8 tmr_idx; in ice_ptp_prep_phy_adj_e810() local
2806 tmr_idx = hw->func_caps.ts_func_info.tmr_index_owned; in ice_ptp_prep_phy_adj_e810()
2811 err = ice_write_phy_reg_e810(hw, ETH_GLTSYN_SHADJ_L(tmr_idx), 0); in ice_ptp_prep_phy_adj_e810()
2818 err = ice_write_phy_reg_e810(hw, ETH_GLTSYN_SHADJ_H(tmr_idx), adj); in ice_ptp_prep_phy_adj_e810()
2840 u8 tmr_idx; in ice_ptp_prep_phy_incval_e810() local
2843 tmr_idx = hw->func_caps.ts_func_info.tmr_index_owned; in ice_ptp_prep_phy_incval_e810()
2847 err = ice_write_phy_reg_e810(hw, ETH_GLTSYN_SHADJ_L(tmr_idx), low); in ice_ptp_prep_phy_incval_e810()
2854 err = ice_write_phy_reg_e810(hw, ETH_GLTSYN_SHADJ_H(tmr_idx), high); in ice_ptp_prep_phy_incval_e810()
3203 u8 tmr_idx; in ice_ptp_init_time() local
3206 tmr_idx = hw->func_caps.ts_func_info.tmr_index_owned; in ice_ptp_init_time()
3209 wr32(hw, GLTSYN_SHTIME_L(tmr_idx), lower_32_bits(time)); in ice_ptp_init_time()
3210 wr32(hw, GLTSYN_SHTIME_H(tmr_idx), upper_32_bits(time)); in ice_ptp_init_time()
3211 wr32(hw, GLTSYN_SHTIME_0(tmr_idx), 0); in ice_ptp_init_time()
3241 u8 tmr_idx; in ice_ptp_write_incval() local
3244 tmr_idx = hw->func_caps.ts_func_info.tmr_index_owned; in ice_ptp_write_incval()
3247 wr32(hw, GLTSYN_SHADJ_L(tmr_idx), lower_32_bits(incval)); in ice_ptp_write_incval()
3248 wr32(hw, GLTSYN_SHADJ_H(tmr_idx), upper_32_bits(incval)); in ice_ptp_write_incval()
3296 u8 tmr_idx; in ice_ptp_adj_clock() local
3299 tmr_idx = hw->func_caps.ts_func_info.tmr_index_owned; in ice_ptp_adj_clock()
3306 wr32(hw, GLTSYN_SHADJ_L(tmr_idx), 0); in ice_ptp_adj_clock()
3307 wr32(hw, GLTSYN_SHADJ_H(tmr_idx), adj); in ice_ptp_adj_clock()