Home
last modified time | relevance | path

Searched refs:correction (Results 1 - 25 of 44) sorted by relevance

12

/kernel/linux/linux-6.6/include/linux/
H A Dptp_classify.h75 __be64 correction; member
155 * ptp_header_update_correction - Update PTP header's correction field
159 * @correction: new correction value
161 * This updates the correction field of a PTP header and updates the UDP
163 * one-step P2P that does not already modify the correction field of Pdelay_Req
168 struct ptp_header *hdr, s64 correction) in ptp_header_update_correction()
173 /* previous correction value is required for checksum update. */ in ptp_header_update_correction()
174 memcpy(&correction_old, &hdr->correction, sizeof(correction_old)); in ptp_header_update_correction()
176 /* write new correction valu in ptp_header_update_correction()
167 ptp_header_update_correction(struct sk_buff *skb, unsigned int type, struct ptp_header *hdr, s64 correction) ptp_header_update_correction() argument
238 ptp_header_update_correction(struct sk_buff *skb, unsigned int type, struct ptp_header *hdr, s64 correction) ptp_header_update_correction() argument
[all...]
/kernel/linux/linux-5.10/lib/lz4/
H A Dlz4hc_compress.c433 int correction; in LZ4HC_compress_generic() local
441 correction = new_ml - (int)(start2 - ip); in LZ4HC_compress_generic()
443 if (correction > 0) { in LZ4HC_compress_generic()
444 start2 += correction; in LZ4HC_compress_generic()
445 ref2 += correction; in LZ4HC_compress_generic()
446 ml2 -= correction; in LZ4HC_compress_generic()
486 int correction = (int)(ip + ml - start2); in LZ4HC_compress_generic() local
488 start2 += correction; in LZ4HC_compress_generic()
489 ref2 += correction; in LZ4HC_compress_generic()
490 ml2 -= correction; in LZ4HC_compress_generic()
524 int correction; LZ4HC_compress_generic() local
[all...]
/kernel/linux/linux-6.6/lib/lz4/
H A Dlz4hc_compress.c433 int correction; in LZ4HC_compress_generic() local
441 correction = new_ml - (int)(start2 - ip); in LZ4HC_compress_generic()
443 if (correction > 0) { in LZ4HC_compress_generic()
444 start2 += correction; in LZ4HC_compress_generic()
445 ref2 += correction; in LZ4HC_compress_generic()
446 ml2 -= correction; in LZ4HC_compress_generic()
486 int correction = (int)(ip + ml - start2); in LZ4HC_compress_generic() local
488 start2 += correction; in LZ4HC_compress_generic()
489 ref2 += correction; in LZ4HC_compress_generic()
490 ml2 -= correction; in LZ4HC_compress_generic()
524 int correction; LZ4HC_compress_generic() local
[all...]
/kernel/linux/linux-5.10/drivers/macintosh/
H A Dwindfarm_pm121.c26 * controls have a target correction calculated as :
31 * OD Fan control correction.
41 * HD Fan control correction.
51 * CPU Fan control correction.
63 * Some controls have a target correction which depends on another
64 * control value. The correction is computed in the following way :
85 * In order to have the moste efficient correction with those
311 /* CPUFREQ has no correction (and is not implemented at all) */
317 struct pm121_correction correction; member
346 * writing virtual control, we store the control correction wit
468 struct pm121_correction *correction; pm121_correct() local
[all...]
/kernel/linux/linux-6.6/drivers/macintosh/
H A Dwindfarm_pm121.c26 * controls have a target correction calculated as :
31 * OD Fan control correction.
41 * HD Fan control correction.
51 * CPU Fan control correction.
63 * Some controls have a target correction which depends on another
64 * control value. The correction is computed in the following way :
85 * In order to have the moste efficient correction with those
312 /* CPUFREQ has no correction (and is not implemented at all) */
318 struct pm121_correction correction; member
347 * writing virtual control, we store the control correction wit
469 struct pm121_correction *correction; pm121_correct() local
[all...]
/kernel/linux/linux-5.10/arch/arm/kernel/
H A Dentry-armv.S257 mov r1, #4 @ PC correction to apply
259 THUMB( movne r1, #2 ) @ if so, fix up PC correction
1000 .macro vector_stub, name, mode, correction=0
1004 .if \correction
1005 sub lr, lr, #\correction
1037 .if \correction
1038 sub lr, lr, #\correction
1055 .if \correction
1056 sub lr, lr, #\correction
/kernel/linux/linux-6.6/net/dsa/
H A Dtag_ksz.c203 s64 correction; in ksz_xmit_timestamp() local
219 correction = (s64)get_unaligned_be64(&ptp_hdr->correction); in ksz_xmit_timestamp()
221 if (correction < 0) { in ksz_xmit_timestamp()
224 ts = ns_to_timespec64(-correction >> 16); in ksz_xmit_timestamp()
227 /* Set correction field to 0 and update UDP checksum */ in ksz_xmit_timestamp()
/kernel/linux/linux-6.6/lib/zstd/compress/
H A Dzstd_compress_internal.h190 U32 nbOverflowCorrections; /* Number of times overflow correction has run since
889 /* Maximum chunk size before overflow correction needs to be called again */
937 /* Defining this macro to non-zero tells zstd to run the overflow correction
951 * Returns non-zero if the indices are large enough for overflow correction
966 /* Adjust the min index to backoff the overflow correction frequency, in ZSTD_window_canOverflowCorrect()
967 * so we don't waste too much CPU in overflow correction. If this in ZSTD_window_canOverflowCorrect()
1008 * Returns the correction made to the indices, which must be applied to every
1017 /* preemptive overflow correction: in ZSTD_window_correctOverflow()
1018 * 1. correction is large enough: in ZSTD_window_correctOverflow()
1029 * After correction, curren in ZSTD_window_correctOverflow()
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/sfc/
H A Dptp.c248 * @ts_corrections.ptp_tx: Required driver correction of PTP packet transmit
250 * @ts_corrections.ptp_rx: Required driver correction of PTP packet receive
253 * @ts_corrections.pps_in: Required driver correction of PPS input timestamps
254 * @ts_corrections.general_tx: Required driver correction of general packet
256 * @ts_corrections.general_rx: Required driver correction of general packet
306 s32 correction);
450 s32 correction) in efx_ptp_s_ns_to_ktime_correction()
453 if (correction >= 0) in efx_ptp_s_ns_to_ktime_correction()
454 kt = ktime_add_ns(kt, (u64)correction); in efx_ptp_s_ns_to_ktime_correction()
456 kt = ktime_sub_ns(kt, (u64)-correction); in efx_ptp_s_ns_to_ktime_correction()
449 efx_ptp_s_ns_to_ktime_correction(u32 nic_major, u32 nic_minor, s32 correction) efx_ptp_s_ns_to_ktime_correction() argument
498 efx_ptp_s27_to_ktime_correction(u32 nic_major, u32 nic_minor, s32 correction) efx_ptp_s27_to_ktime_correction() argument
523 efx_ptp_s_qns_to_ktime_correction(u32 nic_major, u32 nic_minor, s32 correction) efx_ptp_s_qns_to_ktime_correction() argument
565 efx_ptp_mac_nic_to_ktime_correction(struct efx_nic *efx, struct efx_ptp_data *ptp, u32 nic_major, u32 nic_minor, s32 correction) efx_ptp_mac_nic_to_ktime_correction() argument
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/sfc/siena/
H A Dptp.c247 * @ts_corrections.ptp_tx: Required driver correction of PTP packet transmit
249 * @ts_corrections.ptp_rx: Required driver correction of PTP packet receive
252 * @ts_corrections.pps_in: Required driver correction of PPS input timestamps
253 * @ts_corrections.general_tx: Required driver correction of general packet
255 * @ts_corrections.general_rx: Required driver correction of general packet
305 s32 correction);
449 s32 correction) in efx_ptp_s_ns_to_ktime_correction()
452 if (correction >= 0) in efx_ptp_s_ns_to_ktime_correction()
453 kt = ktime_add_ns(kt, (u64)correction); in efx_ptp_s_ns_to_ktime_correction()
455 kt = ktime_sub_ns(kt, (u64)-correction); in efx_ptp_s_ns_to_ktime_correction()
448 efx_ptp_s_ns_to_ktime_correction(u32 nic_major, u32 nic_minor, s32 correction) efx_ptp_s_ns_to_ktime_correction() argument
497 efx_ptp_s27_to_ktime_correction(u32 nic_major, u32 nic_minor, s32 correction) efx_ptp_s27_to_ktime_correction() argument
522 efx_ptp_s_qns_to_ktime_correction(u32 nic_major, u32 nic_minor, s32 correction) efx_ptp_s_qns_to_ktime_correction() argument
558 efx_ptp_mac_nic_to_ktime_correction(struct efx_nic *efx, struct efx_ptp_data *ptp, u32 nic_major, u32 nic_minor, s32 correction) efx_ptp_mac_nic_to_ktime_correction() argument
[all...]
/kernel/linux/linux-6.6/arch/arm/kernel/
H A Dentry-armv.S272 mov r1, #4 @ PC correction to apply
274 THUMB( movne r1, #2 ) @ if so, fix up PC correction
847 .macro vector_stub, name, mode, correction=0
857 .if \correction
858 sub lr, lr, #\correction
891 .if \correction
892 sub lr, lr, #\correction
/kernel/linux/linux-5.10/arch/arm/mm/
H A Dalignment.c494 unsigned int rd, rn, correction, nr_regs, regbits; in do_alignment_ldmstm() local
500 correction = 4; /* processor implementation defined */ in do_alignment_ldmstm()
501 regs->ARM_pc += correction; in do_alignment_ldmstm()
571 regs->ARM_pc -= correction; in do_alignment_ldmstm()
575 regs->ARM_pc -= correction; in do_alignment_ldmstm()
/kernel/linux/linux-6.6/arch/arm/mm/
H A Dalignment.c502 unsigned int rd, rn, correction, nr_regs, regbits; in do_alignment_ldmstm() local
508 correction = 4; /* processor implementation defined */ in do_alignment_ldmstm()
509 regs->ARM_pc += correction; in do_alignment_ldmstm()
579 regs->ARM_pc -= correction; in do_alignment_ldmstm()
583 regs->ARM_pc -= correction; in do_alignment_ldmstm()
/kernel/linux/linux-6.6/drivers/net/ethernet/sfc/
H A Dptp.c250 * @ts_corrections.ptp_tx: Required driver correction of PTP packet transmit
252 * @ts_corrections.ptp_rx: Required driver correction of PTP packet receive
255 * @ts_corrections.pps_in: Required driver correction of PPS input timestamps
256 * @ts_corrections.general_tx: Required driver correction of general packet
258 * @ts_corrections.general_rx: Required driver correction of general packet
303 s32 correction);
479 s32 correction) in efx_ptp_s27_to_ktime_correction()
481 /* Apply the correction and deal with carry */ in efx_ptp_s27_to_ktime_correction()
482 nic_minor += correction; in efx_ptp_s27_to_ktime_correction()
504 s32 correction) in efx_ptp_s_qns_to_ktime_correction()
478 efx_ptp_s27_to_ktime_correction(u32 nic_major, u32 nic_minor, s32 correction) efx_ptp_s27_to_ktime_correction() argument
503 efx_ptp_s_qns_to_ktime_correction(u32 nic_major, u32 nic_minor, s32 correction) efx_ptp_s_qns_to_ktime_correction() argument
545 efx_ptp_mac_nic_to_ktime_correction(struct efx_nic *efx, struct efx_ptp_data *ptp, u32 nic_major, u32 nic_minor, s32 correction) efx_ptp_mac_nic_to_ktime_correction() argument
[all...]
/kernel/linux/linux-5.10/kernel/time/
H A Dntp.c827 /* get current phase correction and jitter */
941 long correction = -error; in hardpps_update_phase() local
945 pps_phase_filter_add(correction); in hardpps_update_phase()
946 correction = pps_phase_filter_get(&jitter); in hardpps_update_phase()
960 time_offset = div_s64(((s64)correction) << NTP_SCALE_SHIFT, in hardpps_update_phase()
/kernel/linux/linux-6.6/kernel/time/
H A Dntp.c876 /* get current phase correction and jitter */
990 long correction = -error; in hardpps_update_phase() local
994 pps_phase_filter_add(correction); in hardpps_update_phase()
995 correction = pps_phase_filter_get(&jitter); in hardpps_update_phase()
1009 time_offset = div_s64(((s64)correction) << NTP_SCALE_SHIFT, in hardpps_update_phase()
/kernel/linux/linux-5.10/include/linux/
H A Dptp_classify.h62 __be64 correction; member
/kernel/linux/linux-5.10/fs/unicode/
H A Dmkutf8data.c1334 * The correction field is used to indicate that this entry is in the
1336 * corrected in later revisions. The value of the correction field is
1343 int correction; member
1464 return leaf->correction; in correction_mark()
1614 if (nextage < data->correction && in trees_init()
1615 data->correction < maxage) in trees_init()
1616 nextage = data->correction; in trees_init()
1635 if (nextage < data->correction && in trees_init()
1636 data->correction < maxage) in trees_init()
1637 nextage = data->correction; in trees_init()
[all...]
/kernel/linux/linux-6.6/fs/unicode/
H A Dmkutf8data.c1334 * The correction field is used to indicate that this entry is in the
1336 * corrected in later revisions. The value of the correction field is
1343 int correction; member
1464 return leaf->correction; in correction_mark()
1614 if (nextage < data->correction && in trees_init()
1615 data->correction < maxage) in trees_init()
1616 nextage = data->correction; in trees_init()
1635 if (nextage < data->correction && in trees_init()
1636 data->correction < maxage) in trees_init()
1637 nextage = data->correction; in trees_init()
[all...]
/kernel/linux/linux-6.6/drivers/net/dsa/microchip/
H A Dksz_ptp.c470 s64 correction; in ksz_port_rxtstamp() local
489 /* Only subtract the partial time stamp from the correction field. When in ksz_port_rxtstamp()
490 * the hardware adds the egress time stamp to the correction field of in ksz_port_rxtstamp()
494 correction = (s64)get_unaligned_be64(&ptp_hdr->correction); in ksz_port_rxtstamp()
495 correction -= ktime_to_ns(tstamp) << 16; in ksz_port_rxtstamp()
497 ptp_header_update_correction(skb, type, ptp_hdr, correction); in ksz_port_rxtstamp()
/kernel/linux/linux-5.10/sound/core/
H A Dtimer.c1143 unsigned long correction; member
1153 priv->correction += (long)jiff - (long)priv->last_expires; in snd_timer_s_function()
1164 if (priv->correction > timer->sticks - 1) { in snd_timer_s_start()
1165 priv->correction -= timer->sticks - 1; in snd_timer_s_start()
1168 njiff += timer->sticks - priv->correction; in snd_timer_s_start()
1169 priv->correction = 0; in snd_timer_s_start()
1188 priv->correction = 0; in snd_timer_s_stop()
/kernel/linux/linux-6.6/sound/core/
H A Dtimer.c1143 unsigned long correction; member
1153 priv->correction += (long)jiff - (long)priv->last_expires; in snd_timer_s_function()
1164 if (priv->correction > timer->sticks - 1) { in snd_timer_s_start()
1165 priv->correction -= timer->sticks - 1; in snd_timer_s_start()
1168 njiff += timer->sticks - priv->correction; in snd_timer_s_start()
1169 priv->correction = 0; in snd_timer_s_start()
1188 priv->correction = 0; in snd_timer_s_stop()
/kernel/linux/linux-5.10/drivers/media/dvb-frontends/
H A Dstb0899_algo.c816 * compute the correction to be applied to symbol rate
821 u32 dec_ratio, correction, master_clk, srate; in stb0899_dvbs2_calc_dev() local
828 correction = (512 * master_clk) / (2 * dec_ratio * srate); in stb0899_dvbs2_calc_dev()
830 return correction; in stb0899_dvbs2_calc_dev()
842 u32 correction, freq_adj, band_lim, decim_cntrl, reg; in stb0899_dvbs2_set_srate() local
877 correction = stb0899_dvbs2_calc_dev(state); in stb0899_dvbs2_set_srate()
879 STB0899_SETFIELD_VAL(BTR_FREQ_CORR, reg, correction); in stb0899_dvbs2_set_srate()
/kernel/linux/linux-6.6/drivers/media/dvb-frontends/
H A Dstb0899_algo.c816 * compute the correction to be applied to symbol rate
821 u32 dec_ratio, correction, master_clk, srate; in stb0899_dvbs2_calc_dev() local
828 correction = (512 * master_clk) / (2 * dec_ratio * srate); in stb0899_dvbs2_calc_dev()
830 return correction; in stb0899_dvbs2_calc_dev()
842 u32 correction, freq_adj, band_lim, decim_cntrl, reg; in stb0899_dvbs2_set_srate() local
877 correction = stb0899_dvbs2_calc_dev(state); in stb0899_dvbs2_set_srate()
879 STB0899_SETFIELD_VAL(BTR_FREQ_CORR, reg, correction); in stb0899_dvbs2_set_srate()
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath9k/
H A Dar9003_eeprom.c4808 int *correction, in ar9003_hw_power_control_override()
4816 (correction[0] << AR_PHY_TPC_OLPC_GAIN_DELTA_S), in ar9003_hw_power_control_override()
4820 (correction[1] << AR_PHY_TPC_OLPC_GAIN_DELTA_S), in ar9003_hw_power_control_override()
4824 (correction[2] << AR_PHY_TPC_OLPC_GAIN_DELTA_S), in ar9003_hw_power_control_override()
4959 /* Apply the recorded correction values. */
4973 int correction[AR9300_MAX_CHAINS], in ar9003_hw_calibration_apply() local
5055 correction[ichain] = lcorrection[ichain]; in ar9003_hw_calibration_apply()
5066 correction[ichain] = interpolate(frequency, in ar9003_hw_calibration_apply()
5098 correction[ichain] = lcorrection[ichain]; in ar9003_hw_calibration_apply()
5107 correction[ichai in ar9003_hw_calibration_apply()
4806 ar9003_hw_power_control_override(struct ath_hw *ah, int frequency, int *correction, int *voltage, int *temperature) ar9003_hw_power_control_override() argument
[all...]

Completed in 46 milliseconds

12