/linux/net/ipv6/ila/ |
A D | ila_common.c | 44 __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() 67 __wsum diff; in ila_csum_do_neutral_nofmt() local 79 __wsum diff; in ila_csum_adjust_transport() local 87 diff = get_csum_diff(ip6h, p); in ila_csum_adjust_transport() 89 diff, true); in ila_csum_adjust_transport() 98 diff = get_csum_diff(ip6h, p); in ila_csum_adjust_transport() 100 diff, true); in ila_csum_adjust_transport() 112 diff = get_csum_diff(ip6h, p); in ila_csum_adjust_transport() [all …]
|
/linux/drivers/gpu/drm/vmwgfx/ |
A D | vmwgfx_blit.c | 261 size_t offs = (diff_offs + diff->line_offset) / diff->cpp; in vmw_adjust_rect() 299 vmw_adjust_rect(diff, csize); in vmw_diff_memcpy() 300 byte_len = diff->cpp; in vmw_diff_memcpy() 306 diff->line_offset += csize; in vmw_diff_memcpy() 313 vmw_adjust_rect(diff, csize); in vmw_diff_memcpy() 317 diff->line_offset += n; in vmw_diff_memcpy() 346 struct vmw_diff_cpy *diff; member 362 struct vmw_diff_cpy *diff = d->diff; in vmw_bo_cpu_blit_line() local 412 diff->do_cpy(diff, d->dst_addr + dst_page_offset, in vmw_bo_cpu_blit_line() 452 struct vmw_diff_cpy *diff) in vmw_bo_cpu_blit() argument [all …]
|
/linux/arch/x86/math-emu/ |
A D | reg_add_sub.c | 59 diff = expa - expb; in FPU_add() 60 if (!diff) { in FPU_add() 63 if (!diff) { in FPU_add() 65 if (!diff) in FPU_add() 70 if (diff > 0) { in FPU_add() 74 } else if (diff < 0) { in FPU_add() 169 diff = expa - expb; in FPU_sub() 171 if (!diff) { in FPU_sub() 173 if (!diff) { in FPU_sub() 175 if (!diff) in FPU_sub() [all …]
|
/linux/net/xfrm/ |
A D | xfrm_replay.c | 124 u32 diff; in xfrm_replay_check_legacy() local 136 diff = x->replay.seq - seq; in xfrm_replay_check_legacy() 158 u32 diff, seq; in xfrm_replay_advance() local 238 if (pos >= diff) in xfrm_replay_check_bmp() 260 u32 diff; in xfrm_replay_advance_bmp() local 291 if (pos >= diff) in xfrm_replay_advance_bmp() 455 u32 diff; in xfrm_replay_check_esn() local 470 diff = top - seq; in xfrm_replay_check_esn() 481 diff = ~seq + top + 1; in xfrm_replay_check_esn() 491 if (pos >= diff) in xfrm_replay_check_esn() [all …]
|
/linux/drivers/gpu/drm/ |
A D | drm_rect.c | 95 int diff; in drm_rect_clip_scaled() local 97 diff = clip->x1 - dst->x1; in drm_rect_clip_scaled() 98 if (diff > 0) { in drm_rect_clip_scaled() 103 dst->x1 += diff; in drm_rect_clip_scaled() 105 diff = clip->y1 - dst->y1; in drm_rect_clip_scaled() 106 if (diff > 0) { in drm_rect_clip_scaled() 111 dst->y1 += diff; in drm_rect_clip_scaled() 114 if (diff > 0) { in drm_rect_clip_scaled() 119 dst->x2 -= diff; in drm_rect_clip_scaled() 122 if (diff > 0) { in drm_rect_clip_scaled() [all …]
|
/linux/tools/perf/bench/ |
A D | syscall.c | 35 struct timeval start, stop, diff; in bench_syscall_basic() local 47 timersub(&stop, &start, &diff); in bench_syscall_basic() 53 result_usec = diff.tv_sec * 1000000; in bench_syscall_basic() 54 result_usec += diff.tv_usec; in bench_syscall_basic() 57 (unsigned long) diff.tv_sec, in bench_syscall_basic() 58 (unsigned long) (diff.tv_usec/1000)); in bench_syscall_basic() 69 (unsigned long) diff.tv_sec, in bench_syscall_basic() 70 (unsigned long) (diff.tv_usec / 1000)); in bench_syscall_basic()
|
A D | sched-pipe.c | 81 struct timeval start, stop, diff; in bench_sched_pipe() local 148 timersub(&stop, &start, &diff); in bench_sched_pipe() 155 result_usec = diff.tv_sec * USEC_PER_SEC; in bench_sched_pipe() 156 result_usec += diff.tv_usec; in bench_sched_pipe() 159 (unsigned long) diff.tv_sec, in bench_sched_pipe() 160 (unsigned long) (diff.tv_usec / USEC_PER_MSEC)); in bench_sched_pipe() 171 (unsigned long) diff.tv_sec, in bench_sched_pipe() 172 (unsigned long) (diff.tv_usec / USEC_PER_MSEC)); in bench_sched_pipe()
|
A D | find-bit-bench.c | 58 struct timeval start, end, diff; in do_for_each_set_bit() local 84 timersub(&end, &start, &diff); in do_for_each_set_bit() 85 runtime_us = diff.tv_sec * USEC_PER_SEC + diff.tv_usec; in do_for_each_set_bit() 98 timersub(&end, &start, &diff); in do_for_each_set_bit() 99 runtime_us = diff.tv_sec * USEC_PER_SEC + diff.tv_usec; in do_for_each_set_bit()
|
/linux/tools/perf/scripts/python/ |
A D | powerpc-hcalls.py | 176 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/fs/hfs/ |
A D | sysdep.c | 19 int diff; in hfs_revalidate_dentry() local 29 diff = sys_tz.tz_minuteswest * 60 - HFS_I(inode)->tz_secondswest; in hfs_revalidate_dentry() 30 if (diff) { in hfs_revalidate_dentry() 31 inode->i_ctime.tv_sec += diff; in hfs_revalidate_dentry() 32 inode->i_atime.tv_sec += diff; in hfs_revalidate_dentry() 33 inode->i_mtime.tv_sec += diff; in hfs_revalidate_dentry() 34 HFS_I(inode)->tz_secondswest += diff; in hfs_revalidate_dentry()
|
/linux/fs/afs/ |
A D | vl_alias.c | 42 int addr_a, addr_b, diff; in afs_compare_addrs() local 45 if (diff) in afs_compare_addrs() 54 diff = addr_a - addr_b; in afs_compare_addrs() 55 if (diff == 0) { in afs_compare_addrs() 67 if (diff == 0) { in afs_compare_addrs() 77 diff = 1; in afs_compare_addrs() 81 return diff; in afs_compare_addrs() 101 if (diff < 0) { in afs_compare_fs_alists() 103 } else if (diff > 0) { in afs_compare_fs_alists() 137 if (diff < 0) { in afs_compare_volume_slists() [all …]
|
/linux/include/sound/ |
A D | pcm-indirect.h | 40 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() 109 snd_pcm_sframes_t diff = appl_ptr - rec->appl_ptr; in snd_pcm_indirect_capture_transfer() local 111 if (diff) { in snd_pcm_indirect_capture_transfer() 113 diff += runtime->boundary; in snd_pcm_indirect_capture_transfer() 114 if (diff < 0) in snd_pcm_indirect_capture_transfer() [all …]
|
/linux/crypto/ |
A D | ecdsa.c | 39 ssize_t diff = vlen - keylen; in ecdsa_get_signature_rs() local 51 if (diff > 0) { in ecdsa_get_signature_rs() 55 diff--; in ecdsa_get_signature_rs() 58 if (diff) in ecdsa_get_signature_rs() 61 if (-diff >= keylen) in ecdsa_get_signature_rs() 64 if (diff) { in ecdsa_get_signature_rs() 66 memset(rs, 0, -diff); in ecdsa_get_signature_rs() 148 ssize_t diff; in ecdsa_verify() local 169 if (diff >= 0) { in ecdsa_verify() 170 if (diff) in ecdsa_verify() [all …]
|
/linux/tools/perf/ |
A D | builtin-diff.c | 285 pair->diff.computed = true; in compute_delta() 294 pair->diff.computed = true; in compute_ratio() 308 return pair->diff.wdiff; in compute_wdiff() 637 pair->diff.cycles = in compute_cycles_diff() 1401 double diff; in __hpp__color_compare() local 1420 diff = pair->diff.period_ratio_delta; in __hpp__color_compare() 1426 pfmt, diff); in __hpp__color_compare() 1431 diff = pair->diff.period_ratio; in __hpp__color_compare() 1437 pfmt, diff); in __hpp__color_compare() 1588 double diff; in hpp__entry_pair() local [all …]
|
/linux/drivers/video/fbdev/vermilion/ |
A D | cr_pll.c | 91 int diff; in crvml_nearest_index() local 96 diff = clock - crvml_clocks[i]; in crvml_nearest_index() 97 diff = (diff < 0) ? -diff : diff; in crvml_nearest_index() 98 if (diff < cur_diff) { in crvml_nearest_index() 100 cur_diff = diff; in crvml_nearest_index()
|
/linux/drivers/net/fddi/skfp/ |
A D | hwt.c | 221 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/ |
A D | bpf_prog_profiler.bpf.c | 55 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/drivers/net/ethernet/broadcom/bnx2x/ |
A D | bnx2x_stats.h | 391 diff.lo, new->s##_lo, pstats->mac_stx[0].t##_lo); \ 394 ADD_64(pstats->mac_stx[1].t##_hi, diff.hi, \ 395 pstats->mac_stx[1].t##_lo, diff.lo); \ 400 DIFF_64(diff.hi, new->s##_hi, old->s##_hi, \ 401 diff.lo, new->s##_lo, old->s##_lo); \ 402 ADD_64(estats->t##_hi, diff.hi, \ 403 estats->t##_lo, diff.lo); \ 413 #define ADD_STAT64(diff, t) \ argument 415 ADD_64(pstats->mac_stx[1].t##_hi, new->diff##_hi, \ 416 pstats->mac_stx[1].t##_lo, new->diff##_lo); \ [all …]
|
/linux/drivers/net/ethernet/pensando/ionic/ |
A D | ionic_phc.c | 524 u64 delay, diff, mult; in ionic_lif_alloc_phc() local 567 diff = U64_MAX / phc->cc.mult / 2; in ionic_lif_alloc_phc() 571 diff = DIV_ROUND_UP(diff, phc->cc.mult); in ionic_lif_alloc_phc() 575 diff |= diff >> 1; in ionic_lif_alloc_phc() 576 diff |= diff >> 2; in ionic_lif_alloc_phc() 577 diff |= diff >> 4; in ionic_lif_alloc_phc() 578 diff |= diff >> 8; in ionic_lif_alloc_phc() 579 diff |= diff >> 16; in ionic_lif_alloc_phc() 580 diff |= diff >> 32; in ionic_lif_alloc_phc() 583 diff &= phc->cc.mask; in ionic_lif_alloc_phc() [all …]
|
/linux/net/batman-adv/ |
A D | bitarray.h | 30 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/tools/bpf/bpftool/skeleton/ |
A D | profiler.bpf.c | 73 struct bpf_perf_event_value *before, diff; in fexit_update_maps() local 80 diff.counter = after->counter - before->counter; in fexit_update_maps() 81 diff.enabled = after->enabled - before->enabled; in fexit_update_maps() 82 diff.running = after->running - before->running; in fexit_update_maps() 86 accum->counter += diff.counter; in fexit_update_maps() 87 accum->enabled += diff.enabled; in fexit_update_maps() 88 accum->running += diff.running; in fexit_update_maps()
|
/linux/include/net/ |
A D | seg6.h | 20 __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/tools/perf/Documentation/ |
A D | perf-diff.txt | 1 perf-diff(1) 74 diff. 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: 140 perf diff --time 0%-10% 144 perf diff --time 10%/1,10%/2 148 perf diff --time 0%-10%,30%-40% 209 - perf diff A B C 220 - perf diff B A C [all …]
|
/linux/drivers/video/fbdev/geode/ |
A D | video_cs5530.c | 73 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/testing/selftests/timers/ |
A D | rtcpie.c | 35 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()
|