Lines Matching refs:cc
159 struct cyclecounter *cc = &adapter->hw_cc; in ixgbe_ptp_setup_sdp_X540() local
190 clock_period = div_u64((NS_PER_HALF_SEC << cc->shift), cc->mult); in ixgbe_ptp_setup_sdp_X540()
209 clock_edge += div_u64(((u64)rem << cc->shift), cc->mult); in ixgbe_ptp_setup_sdp_X540()
239 struct cyclecounter *cc = &adapter->hw_cc; in ixgbe_ptp_setup_sdp_X550() local
275 freqout = div_u64(NS_PER_HALF_SEC << cc->shift, cc->mult); in ixgbe_ptp_setup_sdp_X550()
292 clock_edge += div_u64(((u64)rem << cc->shift), cc->mult); in ixgbe_ptp_setup_sdp_X550()
326 static u64 ixgbe_ptp_read_X550(const struct cyclecounter *cc) in ixgbe_ptp_read_X550() argument
329 container_of(cc, struct ixgbe_adapter, hw_cc); in ixgbe_ptp_read_X550()
363 static u64 ixgbe_ptp_read_82599(const struct cyclecounter *cc) in ixgbe_ptp_read_82599() argument
366 container_of(cc, struct ixgbe_adapter, hw_cc); in ixgbe_ptp_read_82599()
1211 struct cyclecounter cc; in ixgbe_ptp_start_cyclecounter() local
1228 cc.mask = CLOCKSOURCE_MASK(64); in ixgbe_ptp_start_cyclecounter()
1229 cc.mult = 1; in ixgbe_ptp_start_cyclecounter()
1230 cc.shift = 0; in ixgbe_ptp_start_cyclecounter()
1242 cc.mult = 3; in ixgbe_ptp_start_cyclecounter()
1243 cc.shift = 2; in ixgbe_ptp_start_cyclecounter()
1248 cc.read = ixgbe_ptp_read_X550; in ixgbe_ptp_start_cyclecounter()
1263 cc.read = ixgbe_ptp_read_82599; in ixgbe_ptp_start_cyclecounter()
1265 ixgbe_ptp_link_speed_adjust(adapter, &cc.shift, &incval); in ixgbe_ptp_start_cyclecounter()
1269 cc.read = ixgbe_ptp_read_82599; in ixgbe_ptp_start_cyclecounter()
1271 ixgbe_ptp_link_speed_adjust(adapter, &cc.shift, &incval); in ixgbe_ptp_start_cyclecounter()
1273 cc.shift -= IXGBE_INCVAL_SHIFT_82599; in ixgbe_ptp_start_cyclecounter()
1288 memcpy(&adapter->hw_cc, &cc, sizeof(adapter->hw_cc)); in ixgbe_ptp_start_cyclecounter()