Home
last modified time | relevance | path

Searched refs:diff (Results 1 – 25 of 430) sorted by relevance

12345678910>>...18

/linux/net/ipv6/ila/
H A Dila_common.c44 __wsum diff, fval; in ila_csum_do_neutral_fmt() local
46 diff = get_csum_diff_iaddr(iaddr, p); in ila_csum_do_neutral_fmt()
51 diff = csum_add(diff, fval); in ila_csum_do_neutral_fmt()
53 *adjust = ~csum_fold(csum_add(diff, csum_unfold(*adjust))); in ila_csum_do_neutral_fmt()
67 __wsum diff; in ila_csum_do_neutral_nofmt() local
69 diff = get_csum_diff_iaddr(iaddr, p); in ila_csum_do_neutral_nofmt()
71 *adjust = ~csum_fold(csum_add(diff, csum_unfold(*adjust))); in ila_csum_do_neutral_nofmt()
79 __wsum diff; in ila_csum_adjust_transport() local
87 diff = get_csum_diff(ip6h, p); in ila_csum_adjust_transport()
89 diff, true, true); in ila_csum_adjust_transport()
[all …]
/linux/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_blit.c248 void vmw_memcpy(struct vmw_diff_cpy *diff, u8 *dest, const u8 *src, size_t n) in vmw_memcpy() argument
261 static void vmw_adjust_rect(struct vmw_diff_cpy *diff, size_t diff_offs) in vmw_adjust_rect() argument
263 size_t offs = (diff_offs + diff->line_offset) / diff->cpp; in vmw_adjust_rect()
264 struct drm_rect *rect = &diff->rect; in vmw_adjust_rect()
268 rect->y1 = min_t(int, rect->y1, diff->line); in vmw_adjust_rect()
269 rect->y2 = max_t(int, rect->y2, diff->line + 1); in vmw_adjust_rect()
290 void vmw_diff_memcpy(struct vmw_diff_cpy *diff, u8 *dest, const u8 *src, in vmw_diff_memcpy() argument
295 if (WARN_ON_ONCE(round_down(n, diff->cpp) != n)) in vmw_diff_memcpy()
299 csize = vmw_find_first_diff(dest, src, n, diff->cpp); in vmw_diff_memcpy()
301 vmw_adjust_rect(diff, csize); in vmw_diff_memcpy()
[all …]
/linux/arch/x86/math-emu/
H A Dreg_add_sub.c45 int diff, tag, expa, expb; in FPU_add() local
59 diff = expa - expb; in FPU_add()
60 if (!diff) { in FPU_add()
61 diff = a->sigh - b->sigh; /* This works only if the ms bits in FPU_add()
63 if (!diff) { in FPU_add()
64 diff = a->sigl > b->sigl; in FPU_add()
65 if (!diff) in FPU_add()
66 diff = -(a->sigl < b->sigl); in FPU_add()
70 if (diff > 0) { in FPU_add()
74 } else if (diff < 0) { in FPU_add()
[all …]
/linux/net/xfrm/
H A Dxfrm_replay.c124 u32 diff; in xfrm_replay_check_legacy() local
136 diff = x->replay.seq - seq; in xfrm_replay_check_legacy()
137 if (diff >= x->props.replay_window) { in xfrm_replay_check_legacy()
142 if (x->replay.bitmap & (1U << diff)) { in xfrm_replay_check_legacy()
158 u32 diff, seq; in xfrm_replay_advance() local
174 diff = seq - x->replay.seq; in xfrm_replay_advance()
175 if (diff < x->props.replay_window) in xfrm_replay_advance()
176 x->replay.bitmap = ((x->replay.bitmap) << diff) | 1; in xfrm_replay_advance()
181 diff = x->replay.seq - seq; in xfrm_replay_advance()
182 x->replay.bitmap |= (1U << diff); in xfrm_replay_advance()
[all …]
/linux/drivers/gpu/drm/
H A Ddrm_rect.c94 int diff; in drm_rect_clip_scaled() local
96 diff = clip->x1 - dst->x1; in drm_rect_clip_scaled()
97 if (diff > 0) { in drm_rect_clip_scaled()
99 drm_rect_width(dst), &diff); in drm_rect_clip_scaled()
102 dst->x1 += diff; in drm_rect_clip_scaled()
104 diff = clip->y1 - dst->y1; in drm_rect_clip_scaled()
105 if (diff > 0) { in drm_rect_clip_scaled()
107 drm_rect_height(dst), &diff); in drm_rect_clip_scaled()
110 dst->y1 += diff; in drm_rect_clip_scaled()
112 diff = dst->x2 - clip->x2; in drm_rect_clip_scaled()
[all …]
/linux/tools/perf/scripts/python/
H A Dpowerpc-hcalls.py176 diff = nsecs(sec, nsec) - d_enter[cpu][opcode]
179 output[opcode]['time'] += diff
181 if (output[opcode]['min'] > diff):
182 output[opcode]['min'] = diff
183 if (output[opcode]['max'] < diff):
184 output[opcode]['max'] = diff
187 'time': diff,
189 'min': diff,
190 'max': diff,
/linux/tools/testing/selftests/vDSO/
H A Dvdso_test_getrandom.c178 struct timespec start, end, diff; in bench_single() local
183 timespecsub(&end, &start, &diff); in bench_single()
184 printf(" vdso: %u times in %lu.%09lu seconds\n", TRIALS, diff.tv_sec, diff.tv_nsec); in bench_single()
189 timespecsub(&end, &start, &diff); in bench_single()
190 printf(" libc: %u times in %lu.%09lu seconds\n", TRIALS, diff.tv_sec, diff.tv_nsec); in bench_single()
195 timespecsub(&end, &start, &diff); in bench_single()
196 printf("syscall: %u times in %lu.%09lu seconds\n", TRIALS, diff.tv_sec, diff.tv_nsec); in bench_single()
201 struct timespec start, end, diff; in bench_multi() local
210 timespecsub(&end, &start, &diff); in bench_multi()
211 …printf(" vdso: %u x %u times in %lu.%09lu seconds\n", TRIALS, THREADS, diff.tv_sec, diff.tv_nsec… in bench_multi()
[all …]
/linux/tools/perf/bench/
H A Dbreakpoint.c118 struct timeval start, stop, diff; in bench_breakpoint_thread() local
148 timersub(&stop, &start, &diff); in bench_breakpoint_thread()
158 (long)diff.tv_sec, (long)(diff.tv_usec / USEC_PER_MSEC)); in bench_breakpoint_thread()
159 result_usec = diff.tv_sec * USEC_PER_SEC + diff.tv_usec; in bench_breakpoint_thread()
167 printf("%lu.%03lu\n", (long)diff.tv_sec, (long)(diff.tv_usec / USEC_PER_MSEC)); in bench_breakpoint_thread()
204 struct timeval start, stop, diff; in bench_breakpoint_enable() local
238 timersub(&stop, &start, &diff); in bench_breakpoint_enable()
250 (long)diff.tv_sec, (long)(diff.tv_usec / USEC_PER_MSEC)); in bench_breakpoint_enable()
251 result_usec = diff.tv_sec * USEC_PER_SEC + diff.tv_usec; in bench_breakpoint_enable()
255 printf("%lu.%03lu\n", (long)diff.tv_sec, (long)(diff.tv_usec / USEC_PER_MSEC)); in bench_breakpoint_enable()
H A Duprobe.c112 static int bench_uprobe_format__default_fprintf(const char *name, const char *unit, u64 diff, FILE … in bench_uprobe_format__default_fprintf() argument
115 s64 diff_to_baseline = diff - baseline, in bench_uprobe_format__default_fprintf()
116 diff_to_previous = diff - previous; in bench_uprobe_format__default_fprintf()
119 printed += fprintf(fp, " %14s: %'" PRIu64 " %ss", "Total time", diff, unit); in bench_uprobe_format__default_fprintf()
128 printed += fprintf(fp, "\n\n %'.3f %ss/op", (double)diff / (double)loops, unit); in bench_uprobe_format__default_fprintf()
136 baseline = diff; in bench_uprobe_format__default_fprintf()
141 previous = diff; in bench_uprobe_format__default_fprintf()
150 u64 diff; in bench_uprobe() local
166 diff = end.tv_sec * NSEC_PER_SEC + end.tv_nsec - (start.tv_sec * NSEC_PER_SEC + start.tv_nsec); in bench_uprobe()
167 diff /= NSEC_PER_USEC; in bench_uprobe()
[all …]
H A Dsyscall.c77 struct timeval start, stop, diff; in bench_syscall_common()
117 timersub(&stop, &start, &diff); in bench_syscall_common()
140 result_usec = diff.tv_sec * 1000000; in bench_syscall_common()
141 result_usec += diff.tv_usec; in bench_syscall_common()
144 (unsigned long) diff.tv_sec, in bench_syscall_common()
145 (unsigned long) (diff.tv_usec/1000)); in bench_syscall_common()
156 (unsigned long) diff.tv_sec, in bench_syscall_common()
157 (unsigned long) (diff.tv_usec / 1000)); in bench_syscall_common()
78 struct timeval start, stop, diff; bench_syscall_common() local
H A Dsched-seccomp-notify.c97 struct timeval start, stop, diff; in bench_sched_seccomp_notify() local
143 timersub(&stop, &start, &diff); in bench_sched_seccomp_notify()
150 result_usec = diff.tv_sec * USEC_PER_SEC; in bench_sched_seccomp_notify()
151 result_usec += diff.tv_usec; in bench_sched_seccomp_notify()
154 (unsigned long) diff.tv_sec, in bench_sched_seccomp_notify()
155 (unsigned long) (diff.tv_usec / USEC_PER_MSEC)); in bench_sched_seccomp_notify()
166 (unsigned long) diff.tv_sec, in bench_sched_seccomp_notify()
167 (unsigned long) (diff.tv_usec / USEC_PER_MSEC)); in bench_sched_seccomp_notify()
H A Dfind-bit-bench.c58 struct timeval start, end, diff; in do_for_each_set_bit() local
86 timersub(&end, &start, &diff); in do_for_each_set_bit()
87 runtime_us = diff.tv_sec * USEC_PER_SEC + diff.tv_usec; in do_for_each_set_bit()
102 timersub(&end, &start, &diff); in do_for_each_set_bit()
103 runtime_us = diff.tv_sec * USEC_PER_SEC + diff.tv_usec; in do_for_each_set_bit()
/linux/fs/hfs/
H A Dsysdep.c20 int diff; in hfs_revalidate_dentry() local
30 diff = sys_tz.tz_minuteswest * 60 - HFS_I(inode)->tz_secondswest; in hfs_revalidate_dentry()
31 if (diff) { in hfs_revalidate_dentry()
34 inode_set_ctime(inode, ts.tv_sec + diff, ts.tv_nsec); in hfs_revalidate_dentry()
36 inode_set_atime(inode, ts.tv_sec + diff, ts.tv_nsec); in hfs_revalidate_dentry()
38 inode_set_mtime(inode, ts.tv_sec + diff, ts.tv_nsec); in hfs_revalidate_dentry()
39 HFS_I(inode)->tz_secondswest += diff; in hfs_revalidate_dentry()
/linux/drivers/iio/adc/
H A Dad7380.c320 #define _AD7380_CHANNEL(index, bits, diff, sign, gain) { \ argument
324 ((diff) ? 0 : BIT(IIO_CHAN_INFO_OFFSET)), \
330 .differential = (diff), \
331 .channel = (diff) ? (2 * (index)) : (index), \
332 .channel2 = (diff) ? (2 * (index) + 1) : 0, \
341 #define _AD7380_OFFLOAD_CHANNEL(index, bits, diff, sign, gain) { \ argument
345 ((diff) ? 0 : BIT(IIO_CHAN_INFO_OFFSET)), \
353 .differential = (diff), \
354 .channel = (diff) ? (2 * (index)) : (index), \
355 .channel2 = (diff) ? (2 * (index) + 1) : 0, \
[all …]
/linux/include/sound/
H A Dpcm-indirect.h40 snd_pcm_sframes_t diff = appl_ptr - rec->appl_ptr; in snd_pcm_indirect_playback_transfer() local
43 if (diff) { in snd_pcm_indirect_playback_transfer()
44 if (diff < -(snd_pcm_sframes_t) (runtime->boundary / 2)) in snd_pcm_indirect_playback_transfer()
45 diff += runtime->boundary; in snd_pcm_indirect_playback_transfer()
46 if (diff < 0) in snd_pcm_indirect_playback_transfer()
48 rec->sw_ready += (int)frames_to_bytes(runtime, diff); in snd_pcm_indirect_playback_transfer()
114 snd_pcm_sframes_t diff = appl_ptr - rec->appl_ptr; in snd_pcm_indirect_capture_transfer() local
116 if (diff) { in snd_pcm_indirect_capture_transfer()
117 if (diff < -(snd_pcm_sframes_t) (runtime->boundary / 2)) in snd_pcm_indirect_capture_transfer()
118 diff += runtime->boundary; in snd_pcm_indirect_capture_transfer()
[all …]
/linux/drivers/net/fddi/skfp/
H A Dhwt.c221 long diff ; in hwt_wait_time() local
236 diff = (long)(start - hwt_quick_read(smc)) ; in hwt_wait_time()
237 if (diff < 0) { in hwt_wait_time()
238 diff += interval ; in hwt_wait_time()
240 } while (diff <= duration) ; in hwt_wait_time()
243 diff = interval ; in hwt_wait_time()
248 diff += interval ; in hwt_wait_time()
257 } while (diff <= duration) ; in hwt_wait_time()
/linux/tools/perf/util/bpf_skel/
H A Dbpf_prog_profiler.bpf.c55 struct bpf_perf_event_value *before, diff; in fexit_update_maps() local
63 diff.counter = after->counter - before->counter; in fexit_update_maps()
64 diff.enabled = after->enabled - before->enabled; in fexit_update_maps()
65 diff.running = after->running - before->running; in fexit_update_maps()
69 accum->counter += diff.counter; in fexit_update_maps()
70 accum->enabled += diff.enabled; in fexit_update_maps()
71 accum->running += diff.running; in fexit_update_maps()
/linux/tools/perf/
H A Dbuiltin-diff.c283 pair->diff.period_ratio_delta = new_percent - old_percent; in compute_delta()
284 pair->diff.computed = true; in compute_delta()
285 return pair->diff.period_ratio_delta; in compute_delta()
293 pair->diff.computed = true; in compute_ratio()
294 pair->diff.period_ratio = new_period / old_period; in compute_ratio()
295 return pair->diff.period_ratio; in compute_ratio()
303 pair->diff.computed = true; in compute_wdiff()
304 pair->diff.wdiff = new_period * compute_wdiff_w2 - in compute_wdiff()
307 return pair->diff.wdiff; in compute_wdiff()
558 l = llabs(left->diff.cycles); in block_cycles_diff_cmp()
[all …]
/linux/net/batman-adv/
H A Dbitarray.h30 s32 diff; in batadv_test_bit() local
32 diff = last_seqno - curr_seqno; in batadv_test_bit()
33 if (diff < 0 || diff >= BATADV_TQ_LOCAL_WINDOW_SIZE) in batadv_test_bit()
35 return test_bit(diff, seq_bits) != 0; in batadv_test_bit()
/linux/drivers/net/ethernet/broadcom/bnx2x/
H A Dbnx2x_stats.h396 DIFF_64(diff.hi, new->s##_hi, pstats->mac_stx[0].t##_hi, \
397 diff.lo, new->s##_lo, pstats->mac_stx[0].t##_lo); \
400 ADD_64(pstats->mac_stx[1].t##_hi, diff.hi, \
401 pstats->mac_stx[1].t##_lo, diff.lo); \
406 DIFF_64(diff.hi, new->s##_hi, old->s##_hi, \
407 diff.lo, new->s##_lo, old->s##_lo); \
408 ADD_64(estats->t##_hi, diff.hi, \
409 estats->t##_lo, diff.lo); \
419 #define ADD_STAT64(diff, t) \ argument
421 ADD_64(pstats->mac_stx[1].t##_hi, new->diff##_hi, \
[all …]
/linux/include/net/
H A Dseg6.h20 __be32 diff[] = { ~from, to }; in update_csum_diff4() local
22 skb->csum = ~csum_partial((char *)diff, sizeof(diff), ~skb->csum); in update_csum_diff4()
28 __be32 diff[] = { in update_csum_diff16() local
33 skb->csum = ~csum_partial((char *)diff, sizeof(diff), ~skb->csum); in update_csum_diff16()
/linux/drivers/video/fbdev/geode/
H A Dvideo_cs5530.c73 long min, diff; in cs5530_set_dclk_frequency() local
80 diff = cs5530_pll_table[i].pixclock - info->var.pixclock; in cs5530_set_dclk_frequency()
81 if (diff < 0L) diff = -diff; in cs5530_set_dclk_frequency()
82 if (diff < min) { in cs5530_set_dclk_frequency()
83 min = diff; in cs5530_set_dclk_frequency()
/linux/tools/bpf/bpftool/skeleton/
H A Dprofiler.bpf.c79 struct bpf_perf_event_value___local *before, diff; in fexit_update_maps() local
86 diff.counter = after->counter - before->counter; in fexit_update_maps()
87 diff.enabled = after->enabled - before->enabled; in fexit_update_maps()
88 diff.running = after->running - before->running; in fexit_update_maps()
92 accum->counter += diff.counter; in fexit_update_maps()
93 accum->enabled += diff.enabled; in fexit_update_maps()
94 accum->running += diff.running; in fexit_update_maps()
/linux/tools/perf/Documentation/
H A Dperf-diff.txt1 perf-diff(1)
6 perf-diff - Read perf.data files and display the differential profile
11 'perf diff' [baseline file] [data file1] [[data file2] ... ]
25 could vary. So perf diff is based on the comparison of the files and
74 diff.
95 diff.compute config option. See COMPARISON METHODS section for
117 The default value can be set using the diff.order config option.
134 Select the second 10% time slice to diff:
136 perf diff --time 10%/2
138 Select from 0% to 10% time slice to diff:
[all …]
/linux/tools/testing/selftests/timers/
H A Drtcpie.c35 struct timeval start, end, diff; in main() local
111 timersub(&end, &start, &diff); in main()
112 if (diff.tv_sec > 0 || in main()
113 diff.tv_usec > ((1000000L / tmp) * 1.10)) { in main()
115 diff.tv_sec, diff.tv_usec, in main()

12345678910>>...18