ice: introduce ice_pf_src_tmr_owned
authorJacob Keller <jacob.e.keller@intel.com>
Fri, 8 Sep 2023 21:37:14 +0000 (14:37 -0700)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Mon, 18 Sep 2023 17:46:11 +0000 (10:46 -0700)
commit42d40bb21e332151da6fb689bf7d4af8195866ed
treef4071a87e49c3f360a2b8aa76148c1d6566cfedc
parent5a7cee1cb4b9ef99fe7acd571e1bd51b023b099a
ice: introduce ice_pf_src_tmr_owned

Add ice_pf_src_tmr_owned() macro to check the function capability bit
indicating if the current function owns the PTP hardware clock. This is
slightly shorter than the more verbose access via
hw.func_caps.ts_func_info.src_tmr_owned. Use this where possible rather
than open coding its equivalent.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice.h
drivers/net/ethernet/intel/ice/ice_lib.c
drivers/net/ethernet/intel/ice/ice_main.c
drivers/net/ethernet/intel/ice/ice_ptp.c