Searched refs:delta (Results 276 - 300 of 847) sorted by last modified time

<<11121314151617181920>>

/linux-master/drivers/net/dsa/hirschmann/
H A Dhellcreek_ptp.c179 static int hellcreek_ptp_adjtime(struct ptp_clock_info *ptp, s64 delta) argument
189 if (abs(delta) > MAX_SLOW_OFFSET_ADJ) {
190 struct timespec64 now, then = ns_to_timespec64(delta);
199 if (delta < 0) {
201 delta = -delta;
205 count_val = div_s64(delta, MAX_NS_PER_STEP);
/linux-master/drivers/irqchip/
H A Dirq-gic-v3-its.c1089 s64 delta; local
1097 delta = rd_idx - prev_idx;
1099 delta += ITS_CMD_QUEUE_SZ;
1101 linear_idx += delta;
/linux-master/drivers/hwmon/
H A Dpwm-fan.c78 unsigned int delta = ktime_ms_delta(ktime_get(), ctx->sample_start); local
81 if (delta) {
89 (ctx->pulses_per_revolution[i] * delta);
H A Daquacomputer_d5next.c658 s64 delta = ktime_ms_delta(ktime_get(), priv->last_ctrl_report_op); local
660 if (delta < priv->ctrl_report_delay)
661 msleep(priv->ctrl_report_delay - delta);
/linux-master/drivers/hwmon/pmbus/
H A Dmax31785.c49 s64 delta = ktime_us_delta(ktime_get(), data->access); local
51 if (delta < MAX31785_WAIT_DELAY_US)
52 usleep_range(MAX31785_WAIT_DELAY_US - delta,
H A Dmax15301.c62 s64 delta = ktime_us_delta(ktime_get(), data->access); local
64 if (delta < data->delay)
65 udelay(data->delay - delta);
H A DMakefile14 obj-$(CONFIG_SENSORS_DELTA_AHE50DC_FAN) += delta-ahe50dc-fan.o
/linux-master/drivers/hid/
H A Dhid-playstation.c1422 uint32_t delta; local
1425 delta = (U32_MAX - ds->prev_sensor_timestamp + sensor_timestamp + 1);
1427 delta = sensor_timestamp - ds->prev_sensor_timestamp;
1428 ds->sensor_timestamp_us += DIV_ROUND_CLOSEST(delta, 3);
2311 uint16_t delta; local
2314 delta = (U16_MAX - ds4->prev_sensor_timestamp + sensor_timestamp + 1);
2316 delta = sensor_timestamp - ds4->prev_sensor_timestamp;
2317 ds4->sensor_timestamp_us += DIV_ROUND_CLOSEST(delta*16, 3);
H A Dhid-nintendo.c147 /* How many samples to sum before calculating average IMU report delta */
633 unsigned int imu_last_pkt_ms; /* used to calc imu report delta */
634 /* the following are used to track the average imu report time delta */
1430 * time delta between IMU input reports. In testing, this value has
1436 * Keeping track of the average report delta allows us to submit our
1450 unsigned int delta = msecs - last_msecs; local
1454 /* avg imu report delta housekeeping */
1455 ctlr->imu_delta_samples_sum += delta;
1468 hid_warn(ctlr->hdev, "calculated avg imu delta of 0\n");
1473 "imu_report: ms=%u last_ms=%u delta
[all...]
H A Dhid-multitouch.c979 long delta = value - app->prev_scantime; local
984 if (delta < 0)
985 delta += app->scantime_logical_max;
988 delta *= 100;
994 return app->timestamp + delta;
/linux-master/drivers/clocksource/
H A Drenesas-ostm.c85 static int ostm_clock_event_next(unsigned long delta, argument
92 writel(delta, timer_of_base(to) + OSTM_CMP);
/linux-master/drivers/bluetooth/
H A Dhci_intel.c534 ktime_t calltime, delta, rettime; local
779 delta = ktime_sub(rettime, calltime);
780 duration = (unsigned long long)ktime_to_ns(delta) >> 10;
824 delta = ktime_sub(rettime, calltime);
825 duration = (unsigned long long)ktime_to_ns(delta) >> 10;
H A Dbtusb.c3112 ktime_t calltime, delta, rettime; local
3289 delta = ktime_sub(rettime, calltime);
3290 duration = (unsigned long long)ktime_to_ns(delta) >> 10;
H A Dbtintel.c1840 ktime_t delta, rettime; local
1867 delta = ktime_sub(rettime, calltime);
1868 duration = (unsigned long long)ktime_to_ns(delta) >> 10;
1877 ktime_t delta, rettime; local
1897 delta = ktime_sub(rettime, calltime);
1898 duration = (unsigned long long) ktime_to_ns(delta) >> 10;
/linux-master/drivers/base/power/
H A Dwakeup.c650 ktime_t delta = ktime_sub(now, ws->start_prevent_time); local
651 ws->prevent_sleep_time = ktime_add(ws->prevent_sleep_time, delta);
/linux-master/crypto/
H A Djitterentropy.c216 * @delta_masked [in] Masked time delta to process
308 * 1st derivative of the jitter measurement (time delta)
309 * 2nd derivative of the jitter measurement (delta of time deltas)
310 * 3rd derivative of the jitter measurement (delta of delta of time deltas)
315 * @current_delta [in] Jitter time delta
529 * Get time stamp and calculate time delta to previous
765 __u64 start_time = 0, end_time = 0, delta = 0; local
768 jent_measure_jitter(ec, &delta);
770 start_time = ec->prev_time - delta;
[all...]
/linux-master/arch/x86/net/
H A Dbpf_jit_comp.c1825 s64 delta; local
1836 delta = _insn - (u8 *)&ex->insn;
1840 ex->insn = delta;
1925 s64 delta; local
1939 delta = _insn - (u8 *)&ex->insn;
1940 if (!is_simm32(delta)) {
1947 ex->insn = delta;
/linux-master/arch/x86/kernel/
H A Dtsc.c427 u64 tsc, t1, t2, delta; local
464 delta = t2 - tsc;
466 if ((unsigned long) delta < tscmin)
467 tscmin = (unsigned int) delta;
468 if ((unsigned long) delta > tscmax)
469 tscmax = (unsigned int) delta;
486 delta = t2 - t1;
487 do_div(delta, ms);
488 return delta;
566 u64 tsc, delta; local
755 u64 tsc1, tsc2, delta, ref1, ref2; local
1380 u64 tsc_stop, ref_stop, delta; local
[all...]
/linux-master/arch/x86/kernel/apic/
H A Dapic.c412 static int lapic_next_event(unsigned long delta, argument
415 apic_write(APIC_TMICT, delta);
419 static int lapic_next_deadline(unsigned long delta, argument
428 wrmsrl(MSR_IA32_TSC_DEADLINE, tsc + (((u64) delta) * TSC_DIVISOR));
669 calibrate_by_pmtimer(u32 deltapm, long *delta, long *deltatsc) argument
680 apic_printk(APIC_VERBOSE, "... PM-Timer delta = %u\n", deltapm);
700 res = (((u64)(*delta)) * pm_100ms);
702 pr_info("APIC delta adjusted to PM-Timer: "
703 "%lu (%ld)\n", (unsigned long)res, *delta);
704 *delta
783 long delta, deltatsc; local
[all...]
/linux-master/arch/x86/include/asm/vdso/
H A Dgettimeofday.h307 * the regular delta calculation (@cycles - @last) to return a huge time
322 u64 delta = cycles - vd->cycle_last; local
335 if (unlikely(delta > vd->max_cycles)) {
341 if (delta & (1ULL << 62))
345 return mul_u64_u32_add_u64_shr(delta & S64_MAX, vd->mult, base, vd->shift);
348 return ((delta * vd->mult) + base) >> vd->shift;
/linux-master/arch/x86/events/
H A Dmsr.c244 s64 delta; local
252 delta = now - prev;
254 delta = sign_extend64(delta, 31);
255 local64_add(delta, &event->count);
261 local64_add(delta, &event->count);
/linux-master/arch/x86/events/intel/
H A Duncore.c272 u64 prev_count, new_count, delta; local
289 delta = (new_count << shift) - (prev_count << shift);
290 delta >>= shift;
292 local64_add(delta, &event->count);
572 * Drain the remaining delta count out of a event
/linux-master/arch/sh/kernel/
H A Ddwarf.c405 unsigned int count, delta, reg, expr_len, offset; local
419 delta = DW_CFA_operand(insn);
420 delta *= cie->code_alignment_factor;
421 frame->pc += delta;
448 delta = *current_insn++;
449 frame->pc += delta * cie->code_alignment_factor;
452 delta = get_unaligned((u16 *)current_insn);
454 frame->pc += delta * cie->code_alignment_factor;
457 delta = get_unaligned((u32 *)current_insn);
459 frame->pc += delta * ci
[all...]
/linux-master/arch/s390/net/
H A Dbpf_jit_comp.c701 s64 delta; local
723 delta = jit->prg_buf + prg - (u8 *)&ex->insn;
724 if (WARN_ON_ONCE(delta < INT_MIN || delta > INT_MAX))
727 ex->insn = delta;
732 delta = jit->prg_buf + nop_prg - (u8 *)&ex->fixup;
733 if (WARN_ON_ONCE(delta < INT_MIN || delta > INT_MAX))
736 ex->fixup = delta;
1941 int delta; local
[all...]
/linux-master/arch/alpha/kernel/
H A Dperf_event.c294 * Calculates the count (the 'delta') since the last time the PMC was read.
299 * calculates the delta on the basis that there is no overflow when ovf is
305 * The check for delta negative hopefully always rectifies this situation.
311 long delta; local
321 delta = (new_raw_count - (prev_raw_count & alpha_pmu->pmc_count_mask[idx])) + ovf;
326 if (unlikely(delta < 0)) {
327 delta += alpha_pmu->pmc_max_period[idx] + 1;
330 local64_add(delta, &event->count);
331 local64_sub(delta, &hwc->period_left);
445 * routine should detect this situation by noting a negative delta,
[all...]

Completed in 403 milliseconds

<<11121314151617181920>>