Lines Matching refs:cc
162 struct cyclecounter *cc = &adapter->hw_cc; in ixgbe_ptp_setup_sdp_X540() local
193 clock_period = div_u64((NS_PER_HALF_SEC << cc->shift), cc->mult); in ixgbe_ptp_setup_sdp_X540()
212 clock_edge += div_u64(((u64)rem << cc->shift), cc->mult); in ixgbe_ptp_setup_sdp_X540()
242 struct cyclecounter *cc = &adapter->hw_cc; in ixgbe_ptp_setup_sdp_X550() local
278 freqout = div_u64(NS_PER_HALF_SEC << cc->shift, cc->mult); in ixgbe_ptp_setup_sdp_X550()
295 clock_edge += div_u64(((u64)rem << cc->shift), cc->mult); in ixgbe_ptp_setup_sdp_X550()
329 static u64 ixgbe_ptp_read_X550(const struct cyclecounter *cc) in ixgbe_ptp_read_X550() argument
332 container_of(cc, struct ixgbe_adapter, hw_cc); in ixgbe_ptp_read_X550()
366 static u64 ixgbe_ptp_read_82599(const struct cyclecounter *cc) in ixgbe_ptp_read_82599() argument
369 container_of(cc, struct ixgbe_adapter, hw_cc); in ixgbe_ptp_read_82599()
1216 struct cyclecounter cc; in ixgbe_ptp_start_cyclecounter() local
1232 cc.mask = CLOCKSOURCE_MASK(64); in ixgbe_ptp_start_cyclecounter()
1233 cc.mult = 1; in ixgbe_ptp_start_cyclecounter()
1234 cc.shift = 0; in ixgbe_ptp_start_cyclecounter()
1246 cc.mult = 3; in ixgbe_ptp_start_cyclecounter()
1247 cc.shift = 2; in ixgbe_ptp_start_cyclecounter()
1252 cc.read = ixgbe_ptp_read_X550; in ixgbe_ptp_start_cyclecounter()
1255 cc.read = ixgbe_ptp_read_82599; in ixgbe_ptp_start_cyclecounter()
1257 ixgbe_ptp_link_speed_adjust(adapter, &cc.shift, &incval); in ixgbe_ptp_start_cyclecounter()
1261 cc.read = ixgbe_ptp_read_82599; in ixgbe_ptp_start_cyclecounter()
1263 ixgbe_ptp_link_speed_adjust(adapter, &cc.shift, &incval); in ixgbe_ptp_start_cyclecounter()
1265 cc.shift -= IXGBE_INCVAL_SHIFT_82599; in ixgbe_ptp_start_cyclecounter()
1280 memcpy(&adapter->hw_cc, &cc, sizeof(adapter->hw_cc)); in ixgbe_ptp_start_cyclecounter()