Home
last modified time | relevance | path

Searched refs:delta (Results 1 – 25 of 412) sorted by relevance

12345678910>>...17

/drivers/media/platform/st/sti/delta/
Ddelta-v4l2.c63 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 …]
Ddelta-ipc.c114 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 …]
DMakefile2 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
Ddelta-mem.c13 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()
Ddelta-mjpeg-hdr.c44 struct delta_dev *delta = pctx->dev; in delta_mjpeg_read_sof() local
63 dev_err(delta->dev, in delta_mjpeg_read_sof()
77 dev_err(delta->dev, in delta_mjpeg_read_sof()
88 struct delta_dev *delta = pctx->dev; in delta_mjpeg_read_header() local
110 dev_err(delta->dev, in delta_mjpeg_read_header()
135 dev_dbg(delta->dev, in delta_mjpeg_read_header()
142 dev_err(delta->dev, in delta_mjpeg_read_header()
Ddelta-mjpeg-dec.c174 struct delta_dev *delta = pctx->dev; in delta_mjpeg_check_status() local
181 dev_warn_ratelimited(delta->dev, in delta_mjpeg_check_status()
187 dev_warn_ratelimited(delta->dev, in delta_mjpeg_check_status()
196 dev_dbg(delta->dev, in delta_mjpeg_check_status()
205 struct delta_dev *delta = pctx->dev; in delta_mjpeg_ipc_open() local
219 dev_vdbg(delta->dev, in delta_mjpeg_ipc_open()
230 dev_err(delta->dev, in delta_mjpeg_ipc_open()
244 struct delta_dev *delta = pctx->dev; in delta_mjpeg_ipc_decode() local
283 dev_vdbg(delta->dev, in delta_mjpeg_ipc_decode()
297 dev_err(delta->dev, in delta_mjpeg_ipc_decode()
[all …]
/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/
Ddebug_private.h57 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 …]
/drivers/media/rc/
Dgpio-ir-tx.c57 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 …]
Dpwm-ir-tx.c59 long delta; in pwm_ir_tx() local
73 delta = ktime_us_delta(edge, ktime_get()); in pwm_ir_tx()
74 if (delta > 0) in pwm_ir_tx()
75 usleep_range(delta, delta + 10); in pwm_ir_tx()
Dserial_ir.c221 s32 delta; in send_pulse_homebrew_softcarrier() local
236 delta = ktime_to_ns(ktime_sub(edge, now)); in send_pulse_homebrew_softcarrier()
237 if (delta > 0) in send_pulse_homebrew_softcarrier()
238 ndelay(delta); in send_pulse_homebrew_softcarrier()
244 delta = ktime_to_ns(ktime_sub(edge, now)); in send_pulse_homebrew_softcarrier()
245 if (delta > 0) in send_pulse_homebrew_softcarrier()
246 ndelay(delta); in send_pulse_homebrew_softcarrier()
639 s64 delta; in serial_ir_tx() local
656 delta = ktime_us_delta(edge, ktime_get()); in serial_ir_tx()
657 if (delta > 25) { in serial_ir_tx()
[all …]
/drivers/net/fddi/skfp/
Dsmttimer.c59 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 …]
/drivers/staging/rtl8723bs/hal/
DHalPhyRf.c64 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 …]
/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_ptp.c241 static int cxgb4_ptp_fineadjtime(struct adapter *adapter, s64 delta) in cxgb4_ptp_fineadjtime() argument
253 c.u.ts.sign = (delta < 0) ? 1 : 0; in cxgb4_ptp_fineadjtime()
254 if (delta < 0) in cxgb4_ptp_fineadjtime()
255 delta = -delta; in cxgb4_ptp_fineadjtime()
256 c.u.ts.tm = cpu_to_be64(delta); in cxgb4_ptp_fineadjtime()
272 static int cxgb4_ptp_adjtime(struct ptp_clock_info *ptp, s64 delta) in cxgb4_ptp_adjtime() argument
281 if (delta < 0) in cxgb4_ptp_adjtime()
284 if (delta * sign > PTP_CLOCK_MAX_ADJTIME) { in cxgb4_ptp_adjtime()
292 c.u.ts.sign = (delta < 0) ? 1 : 0; in cxgb4_ptp_adjtime()
293 if (delta < 0) in cxgb4_ptp_adjtime()
[all …]
/drivers/net/wireless/mediatek/mt7601u/
Deeprom.c250 mt7601u_set_power_rate(struct power_per_rate *rate, s8 delta, u8 value) in mt7601u_set_power_rate() argument
259 rate->bw40 = rate->bw20 + delta; in mt7601u_set_power_rate()
263 mt7601u_save_power_rate(struct mt7601u_dev *dev, s8 delta, u32 val, int i) in mt7601u_save_power_rate() argument
269 mt7601u_set_power_rate(&t->cck[0], delta, (val >> 0) & 0xff); in mt7601u_save_power_rate()
270 mt7601u_set_power_rate(&t->cck[1], delta, (val >> 8) & 0xff); in mt7601u_save_power_rate()
275 mt7601u_set_power_rate(&t->ofdm[0], delta, (val >> 16) & 0xff); in mt7601u_save_power_rate()
276 mt7601u_set_power_rate(&t->ofdm[1], delta, (val >> 24) & 0xff); in mt7601u_save_power_rate()
279 mt7601u_set_power_rate(&t->ofdm[2], delta, (val >> 0) & 0xff); in mt7601u_save_power_rate()
280 mt7601u_set_power_rate(&t->ofdm[3], delta, (val >> 8) & 0xff); in mt7601u_save_power_rate()
281 mt7601u_set_power_rate(&t->ht[0], delta, (val >> 16) & 0xff); in mt7601u_save_power_rate()
[all …]
/drivers/gpu/drm/nouveau/nvkm/subdev/clk/
Dpllnv04.c51 int delta, bestdelta = INT_MAX; in getMNP_single() local
108 delta = abs(calcclk - clk); in getMNP_single()
112 if (delta < bestdelta) { in getMNP_single()
113 bestdelta = delta; in getMNP_single()
118 if (delta == 0) /* except this one */ in getMNP_single()
153 int delta, bestdelta = INT_MAX; in getMNP_double() local
204 delta = abs(calcclkout - clk); in getMNP_double()
208 if (delta < bestdelta) { in getMNP_double()
209 bestdelta = delta; in getMNP_double()
216 if (delta == 0) /* except this one */ in getMNP_double()
/drivers/net/ethernet/marvell/mvpp2/
Dmvpp2_tai.c205 static int mvpp22_tai_adjtime(struct ptp_clock_info *ptp, s64 delta) in mvpp22_tai_adjtime() argument
214 if (delta == S64_MIN) in mvpp22_tai_adjtime()
217 if (delta < 0) { in mvpp22_tai_adjtime()
218 delta = -delta; in mvpp22_tai_adjtime()
224 ts = ns_to_timespec64(delta); in mvpp22_tai_adjtime()
349 int delta; in mvpp22_tai_tstamp() local
362 delta = ((tstamp >> 30) - (ts.tv_sec & 3)) & 3; in mvpp22_tai_tstamp()
363 if (delta == 3) in mvpp22_tai_tstamp()
364 delta -= 4; in mvpp22_tai_tstamp()
365 ts.tv_sec += delta; in mvpp22_tai_tstamp()
/drivers/misc/
Duid_sys_stats.c141 int64_t delta; in compute_io_bucket_stats() local
143 delta = io_curr->read_bytes + io_dead->read_bytes - in compute_io_bucket_stats()
145 io_bucket->read_bytes += delta > 0 ? delta : 0; in compute_io_bucket_stats()
146 delta = io_curr->write_bytes + io_dead->write_bytes - in compute_io_bucket_stats()
148 io_bucket->write_bytes += delta > 0 ? delta : 0; in compute_io_bucket_stats()
149 delta = io_curr->rchar + io_dead->rchar - io_last->rchar; in compute_io_bucket_stats()
150 io_bucket->rchar += delta > 0 ? delta : 0; in compute_io_bucket_stats()
151 delta = io_curr->wchar + io_dead->wchar - io_last->wchar; in compute_io_bucket_stats()
152 io_bucket->wchar += delta > 0 ? delta : 0; in compute_io_bucket_stats()
153 delta = io_curr->fsync + io_dead->fsync - io_last->fsync; in compute_io_bucket_stats()
[all …]
/drivers/clk/
Dclk-si544.c300 s64 delta = (s64)rate * (DELTA_M_FRAC_NUM * settings->delta_m); in si544_calc_rate() local
308 delta -= ((s64)DELTA_M_MAX * DELTA_M_FRAC_DEN) / 2; in si544_calc_rate()
310 delta += ((s64)DELTA_M_MAX * DELTA_M_FRAC_DEN) / 2; in si544_calc_rate()
311 delta = div64_s64(delta, ((s64)DELTA_M_MAX * DELTA_M_FRAC_DEN)); in si544_calc_rate()
313 return rate + delta; in si544_calc_rate()
353 static s32 si544_calc_delta(s32 delta, s32 max_delta) in si544_calc_delta() argument
355 s64 n = (s64)delta * DELTA_M_MAX; in si544_calc_delta()
367 long delta; in si544_set_rate() local
381 delta = rate - center; in si544_set_rate()
383 if (abs(delta) <= max_delta) in si544_set_rate()
[all …]
/drivers/net/ethernet/intel/fm10k/
Dfm10k_common.c256 u32 delta = fm10k_read_reg(hw, addr) - stat->base_l; in fm10k_read_hw_stats_32b() local
261 return delta; in fm10k_read_hw_stats_32b()
281 u64 delta; in fm10k_read_hw_stats_48b() local
292 delta = ((u64)(count_h - stat->base_h) << 32) + count_l; in fm10k_read_hw_stats_48b()
293 delta -= stat->base_l; in fm10k_read_hw_stats_48b()
295 return delta & FM10K_48_BIT_MASK; in fm10k_read_hw_stats_48b()
306 static void fm10k_update_hw_base_48b(struct fm10k_hw_stat *stat, u64 delta) in fm10k_update_hw_base_48b() argument
308 if (!delta) in fm10k_update_hw_base_48b()
312 delta += stat->base_l; in fm10k_update_hw_base_48b()
313 stat->base_l = (u32)delta; in fm10k_update_hw_base_48b()
[all …]
/drivers/ptp/
Dptp_dfl_tod.c98 static int coarse_adjust_tod_clock(struct dfl_tod *dt, s64 delta) in coarse_adjust_tod_clock() argument
104 if (delta == 0) in coarse_adjust_tod_clock()
113 now = seconds * NSEC_PER_SEC + nanosec + delta; in coarse_adjust_tod_clock()
171 static int dfl_tod_adjust_time(struct ptp_clock_info *ptp, s64 delta) in dfl_tod_adjust_time() argument
181 neg_adj = delta < 0; in dfl_tod_adjust_time()
183 delta = -delta; in dfl_tod_adjust_time()
198 count = div_u64_rem(delta, diff, &rem); in dfl_tod_adjust_time()
203 count = div_u64_rem(delta, diff, &rem); in dfl_tod_adjust_time()
210 ret = coarse_adjust_tod_clock(dt, delta); in dfl_tod_adjust_time()
/drivers/platform/chrome/
Dcros_ec_sensorhub_trace.h30 __field(s64, delta)
38 __entry->delta = current_timestamp - current_time;
46 __entry->delta
60 __field(s64, delta)
68 __entry->delta = current_timestamp - current_time;
76 __entry->delta
/drivers/iio/common/inv_sensors/
Dinv_sensors_timestamp.c111 int64_t delta, jitter; in inv_align_timestamp_it() local
115 delta = ts->it.lo - ts->timestamp; in inv_align_timestamp_it()
121 if (delta > jitter) in inv_align_timestamp_it()
123 else if (delta < -jitter) in inv_align_timestamp_it()
136 int64_t delta, interval; in inv_sensors_timestamp_interrupt() local
148 delta = it->up - it->lo; in inv_sensors_timestamp_interrupt()
151 period = div_s64(delta, fifo_nb); in inv_sensors_timestamp_interrupt()
/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_acl_erp.c1092 u16 mlxsw_sp_acl_erp_delta_start(const struct mlxsw_sp_acl_erp_delta *delta) in mlxsw_sp_acl_erp_delta_start() argument
1094 return delta->start; in mlxsw_sp_acl_erp_delta_start()
1097 u8 mlxsw_sp_acl_erp_delta_mask(const struct mlxsw_sp_acl_erp_delta *delta) in mlxsw_sp_acl_erp_delta_mask() argument
1099 return delta->mask; in mlxsw_sp_acl_erp_delta_mask()
1102 u8 mlxsw_sp_acl_erp_delta_value(const struct mlxsw_sp_acl_erp_delta *delta, in mlxsw_sp_acl_erp_delta_value() argument
1105 u16 start = delta->start; in mlxsw_sp_acl_erp_delta_value()
1106 u8 mask = delta->mask; in mlxsw_sp_acl_erp_delta_value()
1120 void mlxsw_sp_acl_erp_delta_clear(const struct mlxsw_sp_acl_erp_delta *delta, in mlxsw_sp_acl_erp_delta_clear() argument
1123 u16 start = delta->start; in mlxsw_sp_acl_erp_delta_clear()
1124 u8 mask = delta->mask; in mlxsw_sp_acl_erp_delta_clear()
[all …]
/drivers/isdn/mISDN/
Dclock.c138 u16 delta; in mISDN_clock_update() local
165 delta = ktime_divns(ktime_sub(timestamp_now, iclock_timestamp), in mISDN_clock_update()
168 iclock_count += delta; in mISDN_clock_update()
184 u16 delta; in mISDN_clock_get() local
190 delta = ktime_divns(ktime_sub(timestamp_now, iclock_timestamp), in mISDN_clock_get()
193 count = iclock_count + delta; in mISDN_clock_get()
/drivers/gpu/drm/mgag200/
Dmgag200_g200eh3.c28 unsigned int delta, tmpdelta; in mgag200_g200eh3_pixpllc_atomic_check() local
34 delta = 0xffffffff; in mgag200_g200eh3_pixpllc_atomic_check()
48 if (tmpdelta < delta) { in mgag200_g200eh3_pixpllc_atomic_check()
49 delta = tmpdelta; in mgag200_g200eh3_pixpllc_atomic_check()
54 if (delta == 0) in mgag200_g200eh3_pixpllc_atomic_check()
57 if (delta == 0) in mgag200_g200eh3_pixpllc_atomic_check()

12345678910>>...17