Lines Matching refs:tmr_idx

349 	u8 tmr_idx;  in ice_get_ptp_clock_index()  local
357 tmr_idx = hw->func_caps.ts_func_info.tmr_index_assoc; in ice_get_ptp_clock_index()
358 if (!tmr_idx) in ice_get_ptp_clock_index()
395 u8 tmr_idx; in ice_set_ptp_clock_index() local
402 tmr_idx = hw->func_caps.ts_func_info.tmr_index_assoc; in ice_set_ptp_clock_index()
403 if (!tmr_idx) in ice_set_ptp_clock_index()
435 u8 tmr_idx; in ice_clear_ptp_clock_index() local
442 tmr_idx = hw->func_caps.ts_func_info.tmr_index_assoc; in ice_clear_ptp_clock_index()
443 if (!tmr_idx) in ice_clear_ptp_clock_index()
466 u8 tmr_idx; in ice_ptp_read_src_clk_reg() local
468 tmr_idx = ice_get_ptp_src_clock_index(hw); in ice_ptp_read_src_clk_reg()
472 lo = rd32(hw, GLTSYN_TIME_L(tmr_idx)); in ice_ptp_read_src_clk_reg()
477 hi = rd32(hw, GLTSYN_TIME_H(tmr_idx)); in ice_ptp_read_src_clk_reg()
478 lo2 = rd32(hw, GLTSYN_TIME_L(tmr_idx)); in ice_ptp_read_src_clk_reg()
485 lo = rd32(hw, GLTSYN_TIME_L(tmr_idx)); in ice_ptp_read_src_clk_reg()
487 hi = rd32(hw, GLTSYN_TIME_H(tmr_idx)); in ice_ptp_read_src_clk_reg()
746 u8 chan, tmr_idx; in ice_ptp_extts_work() local
749 tmr_idx = hw->func_caps.ts_func_info.tmr_index_owned; in ice_ptp_extts_work()
758 lo = rd32(hw, GLTSYN_EVNT_L(chan, tmr_idx)); in ice_ptp_extts_work()
759 hi = rd32(hw, GLTSYN_EVNT_H(chan, tmr_idx)); in ice_ptp_extts_work()
785 u8 tmr_idx; in ice_ptp_cfg_extts() local
790 tmr_idx = hw->func_caps.ts_func_info.tmr_index_owned; in ice_ptp_cfg_extts()
812 func = 1 + chan + (tmr_idx * 3); in ice_ptp_cfg_extts()
826 wr32(hw, GLTSYN_AUX_IN(chan, tmr_idx), aux_reg); in ice_ptp_cfg_extts()
848 u8 tmr_idx; in ice_ptp_cfg_clkout() local
850 tmr_idx = hw->func_caps.ts_func_info.tmr_index_owned; in ice_ptp_cfg_clkout()
853 wr32(hw, GLTSYN_AUX_OUT(chan, tmr_idx), 0); in ice_ptp_cfg_clkout()
859 wr32(hw, GLTSYN_CLKO(chan, tmr_idx), 0); in ice_ptp_cfg_clkout()
860 wr32(hw, GLTSYN_TGT_L(chan, tmr_idx), 0); in ice_ptp_cfg_clkout()
861 wr32(hw, GLTSYN_TGT_H(chan, tmr_idx), 0); in ice_ptp_cfg_clkout()
896 wr32(hw, GLTSYN_CLKO(chan, tmr_idx), lower_32_bits(period)); in ice_ptp_cfg_clkout()
911 wr32(hw, GLTSYN_TGT_L(chan, tmr_idx), lower_32_bits(start_time)); in ice_ptp_cfg_clkout()
912 wr32(hw, GLTSYN_TGT_H(chan, tmr_idx), upper_32_bits(start_time)); in ice_ptp_cfg_clkout()
916 wr32(hw, GLTSYN_AUX_OUT(chan, tmr_idx), val); in ice_ptp_cfg_clkout()
919 func = 8 + chan + (tmr_idx * 4); in ice_ptp_cfg_clkout()