Lines Matching refs:tmr_idx
372 u8 tmr_idx; in ice_ptp_read_src_clk_reg() local
374 tmr_idx = ice_get_ptp_src_clock_index(hw); in ice_ptp_read_src_clk_reg()
379 lo = rd32(hw, GLTSYN_TIME_L(tmr_idx)); in ice_ptp_read_src_clk_reg()
384 hi = rd32(hw, GLTSYN_TIME_H(tmr_idx)); in ice_ptp_read_src_clk_reg()
385 lo2 = rd32(hw, GLTSYN_TIME_L(tmr_idx)); in ice_ptp_read_src_clk_reg()
392 lo = rd32(hw, GLTSYN_TIME_L(tmr_idx)); in ice_ptp_read_src_clk_reg()
394 hi = rd32(hw, GLTSYN_TIME_H(tmr_idx)); in ice_ptp_read_src_clk_reg()
1622 u8 chan, tmr_idx; in ice_ptp_extts_event() local
1629 tmr_idx = hw->func_caps.ts_func_info.tmr_index_owned; in ice_ptp_extts_event()
1638 lo = rd32(hw, GLTSYN_EVNT_L(chan, tmr_idx)); in ice_ptp_extts_event()
1639 hi = rd32(hw, GLTSYN_EVNT_H(chan, tmr_idx)); in ice_ptp_extts_event()
1667 u8 tmr_idx; in ice_ptp_cfg_extts() local
1676 tmr_idx = hw->func_caps.ts_func_info.tmr_index_owned; in ice_ptp_cfg_extts()
1698 func = 1 + chan + (tmr_idx * 3); in ice_ptp_cfg_extts()
1711 wr32(hw, GLTSYN_AUX_IN(chan, tmr_idx), aux_reg); in ice_ptp_cfg_extts()
1773 u8 tmr_idx; in ice_ptp_cfg_clkout() local
1778 tmr_idx = hw->func_caps.ts_func_info.tmr_index_owned; in ice_ptp_cfg_clkout()
1781 wr32(hw, GLTSYN_AUX_OUT(chan, tmr_idx), 0); in ice_ptp_cfg_clkout()
1787 wr32(hw, GLTSYN_CLKO(chan, tmr_idx), 0); in ice_ptp_cfg_clkout()
1788 wr32(hw, GLTSYN_TGT_L(chan, tmr_idx), 0); in ice_ptp_cfg_clkout()
1789 wr32(hw, GLTSYN_TGT_H(chan, tmr_idx), 0); in ice_ptp_cfg_clkout()
1824 wr32(hw, GLTSYN_CLKO(chan, tmr_idx), lower_32_bits(period)); in ice_ptp_cfg_clkout()
1841 wr32(hw, GLTSYN_TGT_L(chan, tmr_idx), lower_32_bits(start_time)); in ice_ptp_cfg_clkout()
1842 wr32(hw, GLTSYN_TGT_H(chan, tmr_idx), upper_32_bits(start_time)); in ice_ptp_cfg_clkout()
1846 wr32(hw, GLTSYN_AUX_OUT(chan, tmr_idx), val); in ice_ptp_cfg_clkout()
1849 func = 8 + chan + (tmr_idx * 4); in ice_ptp_cfg_clkout()
2216 u32 hh_ts_lo, hh_ts_hi, tmr_idx; in ice_ptp_get_syncdevicetime() local
2219 tmr_idx = hw->func_caps.ts_func_info.tmr_index_assoc; in ice_ptp_get_syncdevicetime()
2227 hh_ts_lo = rd32(hw, GLTSYN_HHTIME_L(tmr_idx)); in ice_ptp_get_syncdevicetime()
2228 hh_ts_hi = rd32(hw, GLTSYN_HHTIME_H(tmr_idx)); in ice_ptp_get_syncdevicetime()