/linux/drivers/media/platform/st/sti/delta/ |
H A D | delta-v4l2.c | 63 struct delta_dev *delta = ctx->dev; in dump_au() local 68 dev_dbg(delta->dev, "%s dump au[%d] dts=%lld size=%d data=%*ph\n", in dump_au() 72 dev_dbg(delta->dev, "%s dump au[%d] dts=%lld size=%d data=%*ph..%*ph\n", in dump_au() 79 struct delta_dev *delta = ctx->dev; in dump_frame() local 83 dev_dbg(delta->dev, "%s dump frame[%d] dts=%lld type=%s field=%s data=%*ph\n", in dump_frame() 179 struct delta_dev *delta = ctx->dev; in delta_pop_dts() local 187 dev_warn(delta->dev, "%s no dts to pop ... output dts = 0\n", in delta_pop_dts() 282 struct delta_dev *delta = ctx->dev; in delta_find_decoder() local 286 for (i = 0; i < delta->nb_of_decoders; i++) { in delta_find_decoder() 287 dec = delta->decoders[i]; in delta_find_decoder() [all …]
|
H A D | delta-ipc.c | 114 struct delta_dev *delta = pctx->dev; in delta_ipc_open() local 115 struct rpmsg_device *rpmsg_device = delta->rpmsg_device; in delta_ipc_open() 122 dev_err(delta->dev, in delta_ipc_open() 130 dev_err(delta->dev, in delta_ipc_open() 137 dev_err(delta->dev, in delta_ipc_open() 144 dev_err(delta->dev, in delta_ipc_open() 151 dev_err(delta->dev, in delta_ipc_open() 187 dev_err(delta->dev, in delta_ipc_open() 197 dev_err(delta->dev, in delta_ipc_open() 207 dev_err(delta->dev, in delta_ipc_open() [all …]
|
H A D | Makefile | 2 obj-$(CONFIG_VIDEO_STI_DELTA_DRIVER) += st-delta.o 3 st-delta-y := delta-v4l2.o delta-mem.o delta-ipc.o delta-debug.o 6 st-delta-$(CONFIG_VIDEO_STI_DELTA_MJPEG) += delta-mjpeg-hdr.o 7 st-delta-$(CONFIG_VIDEO_STI_DELTA_MJPEG) += delta-mjpeg-dec.o
|
H A D | delta-mem.c | 13 struct delta_dev *delta = ctx->dev; in hw_alloc() local 18 addr = dma_alloc_attrs(delta->dev, size, &dma_addr, in hw_alloc() 21 dev_err(delta->dev, in hw_alloc() 34 dev_dbg(delta->dev, in hw_alloc() 43 struct delta_dev *delta = ctx->dev; in hw_free() local 45 dev_dbg(delta->dev, in hw_free() 49 dma_free_attrs(delta->dev, buf->size, in hw_free()
|
/linux/kernel/sched/ |
H A D | stats.c | 23 u64 delta = rq_clock(rq) - schedstat_val(stats->wait_start); in __update_stats_wait_end() local 32 __schedstat_set(stats->wait_start, delta); in __update_stats_wait_end() 37 trace_sched_stat_wait(p, delta); in __update_stats_wait_end() 41 max(schedstat_val(stats->wait_max), delta)); in __update_stats_wait_end() 43 __schedstat_add(stats->wait_sum, delta); in __update_stats_wait_end() 56 u64 delta = rq_clock(rq) - sleep_start; in __update_stats_enqueue_sleeper() local 58 if ((s64)delta < 0) in __update_stats_enqueue_sleeper() 59 delta = 0; in __update_stats_enqueue_sleeper() 61 if (unlikely(delta > schedstat_val(stats->sleep_max))) in __update_stats_enqueue_sleeper() 62 __schedstat_set(stats->sleep_max, delta); in __update_stats_enqueue_sleeper() [all …]
|
H A D | loadavg.c | 80 long nr_active, delta = 0; in calc_load_fold_active() local 86 delta = nr_active - this_rq->calc_load_active; in calc_load_fold_active() 90 return delta; in calc_load_fold_active() 235 long delta; in calc_load_nohz_fold() local 237 delta = calc_load_fold_active(rq, 0); in calc_load_nohz_fold() 238 if (delta) { in calc_load_nohz_fold() 241 atomic_long_add(delta, &calc_load_nohz[idx]); in calc_load_nohz_fold() 286 long delta = 0; in calc_load_nohz_read() local 289 delta = atomic_long_xchg(&calc_load_nohz[idx], 0); in calc_load_nohz_read() 291 return delta; in calc_load_nohz_read() [all …]
|
H A D | stats.h | 13 rq_sched_info_arrive(struct rq *rq, unsigned long long delta) in rq_sched_info_arrive() argument 16 rq->rq_sched_info.run_delay += delta; in rq_sched_info_arrive() 25 rq_sched_info_depart(struct rq *rq, unsigned long long delta) in rq_sched_info_depart() argument 28 rq->rq_cpu_time += delta; in rq_sched_info_depart() 32 rq_sched_info_dequeue(struct rq *rq, unsigned long long delta) in rq_sched_info_dequeue() argument 35 rq->rq_sched_info.run_delay += delta; in rq_sched_info_dequeue() 72 static inline void rq_sched_info_arrive (struct rq *rq, unsigned long long delta) { } in rq_sched_info_arrive() argument 73 static inline void rq_sched_info_dequeue(struct rq *rq, unsigned long long delta) { } in rq_sched_info_dequeue() argument 74 static inline void rq_sched_info_depart (struct rq *rq, unsigned long long delta) { } in rq_sched_info_depart() argument 230 unsigned long long delta = 0; in sched_info_dequeue() local [all …]
|
H A D | pelt.c | 102 accumulate_sum(u64 delta, struct sched_avg *sa, in accumulate_sum() argument 105 u32 contrib = (u32)delta; /* p == 0 -> delta < 1024 */ in accumulate_sum() 108 delta += sa->period_contrib; in accumulate_sum() 109 periods = delta / 1024; /* A period is 1024us (~1ms) */ in accumulate_sum() 123 delta %= 1024; in accumulate_sum() 136 1024 - sa->period_contrib, delta); in accumulate_sum() 139 sa->period_contrib = delta; in accumulate_sum() 183 u64 delta; in ___update_load_sum() local 185 delta = now - sa->last_update_time; in ___update_load_sum() 190 if ((s64)delta < 0) { in ___update_load_sum() [all …]
|
H A D | cputime.c | 37 static void irqtime_account_delta(struct irqtime *irqtime, u64 delta, in irqtime_account_delta() argument 43 cpustat[idx] += delta; in irqtime_account_delta() 44 irqtime->total += delta; in irqtime_account_delta() 45 irqtime->tick_delta += delta; in irqtime_account_delta() 57 s64 delta; in irqtime_account_irq() local 64 delta = sched_clock_cpu(cpu) - irqtime->irq_start_time; in irqtime_account_irq() 65 irqtime->irq_start_time += delta; in irqtime_account_irq() 75 irqtime_account_delta(irqtime, delta, CPUTIME_IRQ); in irqtime_account_irq() 77 irqtime_account_delta(irqtime, delta, CPUTIME_SOFTIRQ); in irqtime_account_irq() 83 u64 delta; in irqtime_tick_accounted() local [all …]
|
/linux/kernel/trace/ |
H A D | trace_benchmark.c | 41 u64 delta; in trace_do_benchmark() local 60 delta = stop - start; in trace_do_benchmark() 67 bm_first = delta; in trace_do_benchmark() 73 bm_last = delta; in trace_do_benchmark() 75 if (delta > bm_max) in trace_do_benchmark() 76 bm_max = delta; in trace_do_benchmark() 77 if (!bm_min || delta < bm_min) in trace_do_benchmark() 78 bm_min = delta; in trace_do_benchmark() 92 bm_total += delta; in trace_do_benchmark() 93 bm_totalsq += delta * delta; in trace_do_benchmark() [all …]
|
H A D | trace_benchmark.h | 17 TP_PROTO(const char *str, u64 delta), 19 TP_ARGS(str, delta), 23 __field( u64, delta) 28 __entry->delta = delta; 31 TP_printk("%s delta=%llu", __entry->str, __entry->delta),
|
/linux/tools/testing/selftests/bpf/progs/ |
H A D | test_check_mtu.c | 38 int delta = 0; in xdp_use_helper() local 44 if (bpf_check_mtu(ctx, ifindex, &mtu_len, delta, 0)) { in xdp_use_helper() 67 int delta; in xdp_exceed_mtu() local 71 delta = GLOBAL_USER_MTU - (data_len - ETH_HLEN) + 1; in xdp_exceed_mtu() 73 err = bpf_check_mtu(ctx, ifindex, &mtu_len, delta, 0); in xdp_exceed_mtu() 93 int delta; in xdp_minus_delta() local 96 delta = -((data_len - ETH_HLEN) + 1); in xdp_minus_delta() 101 if (bpf_check_mtu(ctx, ifindex, &mtu_len, delta, 0)) in xdp_minus_delta() 161 int delta = 0; in tc_use_helper() local 163 if (bpf_check_mtu(ctx, 0, &mtu_len, delta, 0)) { in tc_use_helper() [all …]
|
/linux/tools/testing/selftests/powerpc/mm/ |
H A D | stack_expansion_ldst.c | 42 int consume_stack(unsigned long target_sp, unsigned long stack_high, int delta, enum access_type ty… in consume_stack() argument 48 return consume_stack(target_sp, stack_high, delta, type); in consume_stack() 59 target = stack_high - delta + 1; in consume_stack() 114 int child(unsigned int stack_used, int delta, enum access_type type) in child() argument 120 assert(consume_stack(stack_high - stack_used, stack_high, delta, type) == 0); in child() 123 type == LOAD ? "load" : "store", delta, stack_used, stack_high, in child() 129 static int test_one(unsigned int stack_used, int delta, enum access_type type) in test_one() argument 136 exit(child(stack_used, delta, type)); in test_one() 147 type == LOAD ? "load" : "store", delta, stack_used, in test_one() 159 unsigned long delta; in test_one_type() local [all …]
|
/linux/arch/loongarch/kvm/ |
H A D | timer.c | 15 u64 delta; in ktime_to_tick() local 17 delta = ktime_to_ns(now); in ktime_to_tick() 18 return div_u64(delta * vcpu->arch.timer_mhz, MNSEC_PER_SEC); in ktime_to_tick() 55 unsigned long ticks, delta, period; in kvm_restore_timer() local 112 delta = 0; in kvm_restore_timer() 116 delta = ktime_to_tick(vcpu, ktime_sub(expire, now)); in kvm_restore_timer() 119 delta = ktime_to_tick(vcpu, ktime_sub(now, expire)); in kvm_restore_timer() 120 delta = period - (delta % period); in kvm_restore_timer() 130 write_gcsr_timertick(delta); in kvm_restore_timer() 140 unsigned long ticks, delta, cfg; in _kvm_save_timer() local [all …]
|
/linux/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/ |
H A D | debug_private.h | 57 size_t delta = remote_tail - debug_data_ptr->tail; in debug_synch_queue() local 61 (void *)&debug_data_ptr->buf[debug_data_ptr->tail], delta * sizeof(uint32_t)); in debug_synch_queue() 63 size_t delta = DEBUG_BUF_SIZE - debug_data_ptr->tail; in debug_synch_queue() local 67 (void *)&debug_data_ptr->buf[debug_data_ptr->tail], delta * sizeof(uint32_t)); in debug_synch_queue() 81 size_t delta = remote_tail - debug_data_ptr->tail; in debug_synch_queue_isp() local 85 (void *)&debug_data_ptr->buf[debug_data_ptr->tail], delta * sizeof(uint32_t)); in debug_synch_queue_isp() 87 size_t delta = DEBUG_BUF_SIZE - debug_data_ptr->tail; in debug_synch_queue_isp() local 91 (void *)&debug_data_ptr->buf[debug_data_ptr->tail], delta * sizeof(uint32_t)); in debug_synch_queue_isp() 107 size_t delta = remote_tail - debug_data_ptr->tail; in debug_synch_queue_ddr() local 111 (void *)&debug_data_ptr->buf[debug_data_ptr->tail], delta * sizeof(uint32_t)); in debug_synch_queue_ddr() [all …]
|
/linux/drivers/media/rc/ |
H A D | gpio-ir-tx.c | 57 s32 delta; in delay_until() local 60 delta = ktime_us_delta(until, ktime_get()); in delay_until() 61 if (delta <= 0) in delay_until() 65 if (delta >= 1000) { in delay_until() 66 mdelay(delta / 1000); in delay_until() 70 udelay(delta); in delay_until() 103 s32 delta; in gpio_ir_tx_modulated() local 129 delta = ktime_to_ns(ktime_sub(edge, in gpio_ir_tx_modulated() 131 if (delta > 0) in gpio_ir_tx_modulated() 132 ndelay(delta); in gpio_ir_tx_modulated() [all …]
|
/linux/fs/xfs/scrub/ |
H A D | quotacheck_repair.c | 51 int64_t delta; in xqcheck_commit_dquot() local 75 delta = (int64_t)xcdq.icount - dq->q_ino.count; in xqcheck_commit_dquot() 76 if (delta) { in xqcheck_commit_dquot() 77 dq->q_ino.reserved += delta; in xqcheck_commit_dquot() 78 dq->q_ino.count += delta; in xqcheck_commit_dquot() 82 delta = (int64_t)xcdq.bcount - dq->q_blk.count; in xqcheck_commit_dquot() 83 if (delta) { in xqcheck_commit_dquot() 84 dq->q_blk.reserved += delta; in xqcheck_commit_dquot() 85 dq->q_blk.count += delta; in xqcheck_commit_dquot() 89 delta = (int64_t)xcdq.rtbcount - dq->q_rtb.count; in xqcheck_commit_dquot() [all …]
|
/linux/drivers/net/fddi/skfp/ |
H A D | smttimer.c | 59 u_long delta = 0 ; in smt_timer_start() local 83 delta = 0 ; in smt_timer_start() 85 if (delta + tm->tm_delta > time) { in smt_timer_start() 88 delta += tm->tm_delta ; in smt_timer_start() 93 timer->tm_delta = time - delta ; in smt_timer_start() 114 u_long delta ; in timer_done() local 120 delta = hwt_read(smc) ; in timer_done() 124 if (delta >= tm->tm_delta) { in timer_done() 126 delta -= tm->tm_delta ; in timer_done() 131 tm->tm_delta -= delta ; in timer_done() [all …]
|
/linux/fs/xfs/ |
H A D | xfs_fsops.c | 43 xfs_rfsblock_t delta, in xfs_resizefs_init_new_ags() argument 48 xfs_rfsblock_t nb = mp->m_sb.sb_dblocks + delta; in xfs_resizefs_init_new_ags() 56 id->agno--, delta -= id->agsize) { in xfs_resizefs_init_new_ags() 75 if (delta) { in xfs_resizefs_init_new_ags() 77 error = xfs_ag_extend_space(last_pag, tp, delta); in xfs_resizefs_init_new_ags() 96 int64_t delta; in xfs_growfs_data_private() local 128 delta = nb - mp->m_sb.sb_dblocks; in xfs_growfs_data_private() 134 if (delta < 0 && nagcount < 2) in xfs_growfs_data_private() 138 if (delta == 0) in xfs_growfs_data_private() 150 if (delta > 0) in xfs_growfs_data_private() [all …]
|
/linux/samples/bpf/ |
H A D | hbm_edt_kern.c | 58 long long delta = 0, delta_send; in _hbm_out_cg() local 93 delta = qdp->lasttime - curtime; in _hbm_out_cg() 95 if (delta < -BURST_SIZE_NS) { in _hbm_out_cg() 98 delta = -BURST_SIZE_NS; in _hbm_out_cg() 115 if (delta > DROP_THRESH_NS || (delta > LARGE_PKT_DROP_THRESH_NS && in _hbm_out_cg() 120 } else if (delta > MARK_THRESH_NS) { in _hbm_out_cg() 134 if (delta >= MARK_THRESH_NS + in _hbm_out_cg() 157 cwr_flag, ecn_ce_flag, &pkti, (int) delta); in _hbm_out_cg()
|
/linux/tools/arch/x86/include/asm/ |
H A D | pvclock.h | 39 static inline u64 pvclock_scale_delta(u64 delta, u32 mul_frac, int shift) in pvclock_scale_delta() argument 49 delta >>= -shift; in pvclock_scale_delta() 51 delta <<= shift; in pvclock_scale_delta() 63 : "a" ((u32)delta), "1" ((u32)(delta >> 32)), "2" (mul_frac) ); in pvclock_scale_delta() 69 : "0"(delta), in pvclock_scale_delta() 81 u64 delta = tsc - src->tsc_timestamp; in __pvclock_read_cycles() local 82 u64 offset = pvclock_scale_delta(delta, src->tsc_to_system_mul, in __pvclock_read_cycles()
|
/linux/kernel/ |
H A D | tsacct.c | 26 u64 now_ns, delta; in bacct_add_tsk() local 34 delta = now_ns - tsk->group_leader->start_time; in bacct_add_tsk() 36 do_div(delta, NSEC_PER_USEC); in bacct_add_tsk() 37 stats->ac_tgetime = delta; in bacct_add_tsk() 38 delta = now_ns - tsk->start_time; in bacct_add_tsk() 39 do_div(delta, NSEC_PER_USEC); in bacct_add_tsk() 40 stats->ac_etime = delta; in bacct_add_tsk() 42 btime = ktime_get_real_seconds() - div_u64(delta, USEC_PER_SEC); in bacct_add_tsk() 127 u64 time, delta; in __acct_update_integrals() local 133 delta = time - tsk->acct_timexpd; in __acct_update_integrals() [all …]
|
/linux/tools/perf/util/bpf_skel/ |
H A D | kwork_top.bpf.c | 123 static __always_inline void update_work(struct work_key *key, __u64 delta) in update_work() argument 129 data->runtime += delta; in update_work() 132 .runtime = delta, in update_work() 141 __u64 delta; in on_sched_out() local 146 delta = ts - pelem->timestamp; in on_sched_out() 148 delta = ts - from_timestamp; in on_sched_out() 156 update_work(&key, delta); in on_sched_out() 231 __u64 delta; in on_irq_handler_exit() local 257 delta = ts - pelem->timestamp; in on_irq_handler_exit() 259 delta = ts - from_timestamp; in on_irq_handler_exit() [all …]
|
/linux/arch/x86/include/asm/ |
H A D | pvclock.h | 44 static __always_inline u64 pvclock_scale_delta(u64 delta, u32 mul_frac, int shift) in pvclock_scale_delta() argument 54 delta >>= -shift; in pvclock_scale_delta() 56 delta <<= shift; in pvclock_scale_delta() 68 : "a" ((u32)delta), "1" ((u32)(delta >> 32)), "2" (mul_frac) ); in pvclock_scale_delta() 74 : "0"(delta), in pvclock_scale_delta() 86 u64 delta = tsc - src->tsc_timestamp; in __pvclock_read_cycles() local 87 u64 offset = pvclock_scale_delta(delta, src->tsc_to_system_mul, in __pvclock_read_cycles()
|
/linux/drivers/staging/rtl8723bs/hal/ |
H A D | HalPhyRf.c | 64 u8 ThermalValue = 0, delta, delta_LCK, p = 0, i = 0; in ODM_TXPowerTrackingCallback_ThermalMeter() local 127 delta = in ODM_TXPowerTrackingCallback_ThermalMeter() 145 if (delta > 0 && pDM_Odm->RFCalibrateInfo.TxPowerTrackControl) { in ODM_TXPowerTrackingCallback_ThermalMeter() 147 delta = in ODM_TXPowerTrackingCallback_ThermalMeter() 152 if (delta >= TXPWR_TRACK_TABLE_SIZE) in ODM_TXPowerTrackingCallback_ThermalMeter() 153 delta = TXPWR_TRACK_TABLE_SIZE - 1; in ODM_TXPowerTrackingCallback_ThermalMeter() 160 deltaSwingTableIdx_TUP_A[delta]; in ODM_TXPowerTrackingCallback_ThermalMeter() 164 deltaSwingTableIdx_TUP_A[delta]; in ODM_TXPowerTrackingCallback_ThermalMeter() 170 deltaSwingTableIdx_TUP_B[delta]; in ODM_TXPowerTrackingCallback_ThermalMeter() 174 deltaSwingTableIdx_TUP_B[delta]; in ODM_TXPowerTrackingCallback_ThermalMeter() [all …]
|