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()
1492 u8 chan, tmr_idx; in ice_ptp_extts_work() local
1495 tmr_idx = hw->func_caps.ts_func_info.tmr_index_owned; in ice_ptp_extts_work()
1504 lo = rd32(hw, GLTSYN_EVNT_L(chan, tmr_idx)); in ice_ptp_extts_work()
1505 hi = rd32(hw, GLTSYN_EVNT_H(chan, tmr_idx)); in ice_ptp_extts_work()
1531 u8 tmr_idx; in ice_ptp_cfg_extts() local
1536 tmr_idx = hw->func_caps.ts_func_info.tmr_index_owned; in ice_ptp_cfg_extts()
1558 func = 1 + chan + (tmr_idx * 3); in ice_ptp_cfg_extts()
1572 wr32(hw, GLTSYN_AUX_IN(chan, tmr_idx), aux_reg); in ice_ptp_cfg_extts()
1594 u8 tmr_idx; in ice_ptp_cfg_clkout() local
1596 tmr_idx = hw->func_caps.ts_func_info.tmr_index_owned; in ice_ptp_cfg_clkout()
1599 wr32(hw, GLTSYN_AUX_OUT(chan, tmr_idx), 0); in ice_ptp_cfg_clkout()
1605 wr32(hw, GLTSYN_CLKO(chan, tmr_idx), 0); in ice_ptp_cfg_clkout()
1606 wr32(hw, GLTSYN_TGT_L(chan, tmr_idx), 0); in ice_ptp_cfg_clkout()
1607 wr32(hw, GLTSYN_TGT_H(chan, tmr_idx), 0); in ice_ptp_cfg_clkout()
1642 wr32(hw, GLTSYN_CLKO(chan, tmr_idx), lower_32_bits(period)); in ice_ptp_cfg_clkout()
1660 wr32(hw, GLTSYN_TGT_L(chan, tmr_idx), lower_32_bits(start_time)); in ice_ptp_cfg_clkout()
1661 wr32(hw, GLTSYN_TGT_H(chan, tmr_idx), upper_32_bits(start_time)); in ice_ptp_cfg_clkout()
1665 wr32(hw, GLTSYN_AUX_OUT(chan, tmr_idx), val); in ice_ptp_cfg_clkout()
1668 func = 8 + chan + (tmr_idx * 4); in ice_ptp_cfg_clkout()
1983 u32 hh_ts_lo, hh_ts_hi, tmr_idx; in ice_ptp_get_syncdevicetime() local
1986 tmr_idx = hw->func_caps.ts_func_info.tmr_index_assoc; in ice_ptp_get_syncdevicetime()
1993 hh_ts_lo = rd32(hw, GLTSYN_HHTIME_L(tmr_idx)); in ice_ptp_get_syncdevicetime()
1994 hh_ts_hi = rd32(hw, GLTSYN_HHTIME_H(tmr_idx)); in ice_ptp_get_syncdevicetime()