Home
last modified time | relevance | path

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

12345678910>>...15

/drivers/media/platform/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()
188 dev_err(delta->dev, in delta_ipc_open()
198 dev_err(delta->dev, in delta_ipc_open()
208 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/rtl8723bs/hal/
DHalPhyRf.c79 u8 ThermalValue = 0, delta, delta_LCK, delta_IQK, p = 0, i = 0; in ODM_TXPowerTrackingCallback_ThermalMeter() local
171 delta = in ODM_TXPowerTrackingCallback_ThermalMeter()
190 delta, in ODM_TXPowerTrackingCallback_ThermalMeter()
215 if (delta > 0 && pDM_Odm->RFCalibrateInfo.TxPowerTrackControl) { in ODM_TXPowerTrackingCallback_ThermalMeter()
217 delta = in ODM_TXPowerTrackingCallback_ThermalMeter()
222 if (delta >= TXPWR_TRACK_TABLE_SIZE) in ODM_TXPowerTrackingCallback_ThermalMeter()
223 delta = TXPWR_TRACK_TABLE_SIZE - 1; in ODM_TXPowerTrackingCallback_ThermalMeter()
233 delta, in ODM_TXPowerTrackingCallback_ThermalMeter()
234 deltaSwingTableIdx_TUP_A[delta] in ODM_TXPowerTrackingCallback_ThermalMeter()
240 deltaSwingTableIdx_TUP_A[delta]; in ODM_TXPowerTrackingCallback_ThermalMeter()
[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 delta = min(delta, 1000); in delay_until()
66 udelay(delta); in delay_until()
98 s32 delta; in gpio_ir_tx_modulated() local
124 delta = ktime_to_ns(ktime_sub(edge, in gpio_ir_tx_modulated()
126 if (delta > 0) in gpio_ir_tx_modulated()
127 ndelay(delta); in gpio_ir_tx_modulated()
130 delta = ktime_to_ns(ktime_sub(edge, in gpio_ir_tx_modulated()
[all …]
Dpwm-ir-tx.c58 long delta; in pwm_ir_tx() local
74 delta = ktime_us_delta(edge, ktime_get()); in pwm_ir_tx()
75 if (delta > 0) in pwm_ir_tx()
76 usleep_range(delta, delta + 10); in pwm_ir_tx()
/drivers/net/fddi/skfp/
Dsmttimer.c63 u_long delta = 0 ; in smt_timer_start() local
87 delta = 0 ; in smt_timer_start()
89 if (delta + tm->tm_delta > time) { in smt_timer_start()
92 delta += tm->tm_delta ; in smt_timer_start()
97 timer->tm_delta = time - delta ; in smt_timer_start()
118 u_long delta ; in timer_done() local
124 delta = hwt_read(smc) ; in timer_done()
128 if (delta >= tm->tm_delta) { in timer_done()
130 delta -= tm->tm_delta ; in timer_done()
135 tm->tm_delta -= delta ; in timer_done()
[all …]
/drivers/iio/imu/inv_icm42600/
Dinv_icm42600_timestamp.c116 int64_t delta, interval; in inv_icm42600_timestamp_interrupt() local
129 delta = it->up - it->lo; in inv_icm42600_timestamp_interrupt()
132 period = div_s64(delta, fifo_nb); in inv_icm42600_timestamp_interrupt()
152 delta = it->lo - ts->timestamp; in inv_icm42600_timestamp_interrupt()
154 while (delta >= (fifo_period * 3 / 2)) in inv_icm42600_timestamp_interrupt()
155 delta -= fifo_period; in inv_icm42600_timestamp_interrupt()
158 if (delta > m) in inv_icm42600_timestamp_interrupt()
159 delta = m; in inv_icm42600_timestamp_interrupt()
160 else if (delta < -m) in inv_icm42600_timestamp_interrupt()
161 delta = -m; in inv_icm42600_timestamp_interrupt()
[all …]
/drivers/net/wireless/intersil/prism54/
Disl_38xx.c214 const s32 delta = (le32_to_cpu(cb->driver_curr_frag[queue]) - in isl38xx_in_queue() local
220 BUG_ON(delta < 0); /* driver ptr must be ahead of device ptr */ in isl38xx_in_queue()
225 BUG_ON(delta > ISL38XX_CB_MGMT_QSIZE); in isl38xx_in_queue()
230 BUG_ON(delta > ISL38XX_CB_TX_QSIZE); in isl38xx_in_queue()
231 return delta; in isl38xx_in_queue()
235 BUG_ON(delta > ISL38XX_CB_MGMT_QSIZE); in isl38xx_in_queue()
236 return ISL38XX_CB_MGMT_QSIZE - delta; in isl38xx_in_queue()
240 BUG_ON(delta > ISL38XX_CB_RX_QSIZE); in isl38xx_in_queue()
241 return ISL38XX_CB_RX_QSIZE - delta; in isl38xx_in_queue()
/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_ptp.c238 static int cxgb4_ptp_fineadjtime(struct adapter *adapter, s64 delta) in cxgb4_ptp_fineadjtime() argument
250 c.u.ts.sign = (delta < 0) ? 1 : 0; in cxgb4_ptp_fineadjtime()
251 if (delta < 0) in cxgb4_ptp_fineadjtime()
252 delta = -delta; in cxgb4_ptp_fineadjtime()
253 c.u.ts.tm = cpu_to_be64(delta); in cxgb4_ptp_fineadjtime()
269 static int cxgb4_ptp_adjtime(struct ptp_clock_info *ptp, s64 delta) in cxgb4_ptp_adjtime() argument
278 if (delta < 0) in cxgb4_ptp_adjtime()
281 if (delta * sign > PTP_CLOCK_MAX_ADJTIME) { in cxgb4_ptp_adjtime()
289 c.u.ts.sign = (delta < 0) ? 1 : 0; in cxgb4_ptp_adjtime()
290 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/mgag200/
Dmgag200_mode.c127 long delta, tmp_delta; in mgag200_g200_set_plls() local
146 delta = clock; in mgag200_g200_set_plls()
155 if (tmp_delta < delta) { in mgag200_g200_set_plls()
156 delta = tmp_delta; in mgag200_g200_set_plls()
190 unsigned int delta, tmpdelta, permitteddelta; in mga_g200se_set_plls() local
205 delta = 0xffffffff; in mga_g200se_set_plls()
222 if (tmpdelta < delta) { in mga_g200se_set_plls()
223 delta = tmpdelta; in mga_g200se_set_plls()
244 delta = 0xFFFFFFFF; in mga_g200se_set_plls()
265 if (tmpdelta < delta) { in mga_g200se_set_plls()
[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/intel/e1000e/
Dptp.c25 static int e1000e_phc_adjfreq(struct ptp_clock_info *ptp, s32 delta) in e1000e_phc_adjfreq() argument
36 if ((delta > ptp->max_adj) || (delta <= -1000000000)) in e1000e_phc_adjfreq()
39 if (delta < 0) { in e1000e_phc_adjfreq()
41 delta = -delta; in e1000e_phc_adjfreq()
54 adjustment *= delta; in e1000e_phc_adjfreq()
64 adapter->ptp_delta = delta; in e1000e_phc_adjfreq()
78 static int e1000e_phc_adjtime(struct ptp_clock_info *ptp, s64 delta) in e1000e_phc_adjtime() argument
85 timecounter_adjtime(&adapter->tc, delta); in e1000e_phc_adjtime()
/drivers/base/test/
Dtest_async_driver_probe.c107 ktime_t calltime, delta; in test_async_probe_init() local
136 delta = ktime_sub(ktime_get(), calltime); in test_async_probe_init()
137 duration = (unsigned long long) ktime_to_ms(delta); in test_async_probe_init()
164 delta = ktime_sub(ktime_get(), calltime); in test_async_probe_init()
165 duration = (unsigned long long) ktime_to_ms(delta); in test_async_probe_init()
200 delta = ktime_sub(ktime_get(), calltime); in test_async_probe_init()
201 duration = (unsigned long long) ktime_to_ms(delta); in test_async_probe_init()
226 delta = ktime_sub(ktime_get(), calltime); in test_async_probe_init()
227 duration = (unsigned long long) ktime_to_ms(delta); in test_async_probe_init()
/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/net/ethernet/amd/xgbe/
Dxgbe-ptp.c137 static int xgbe_adjfreq(struct ptp_clock_info *info, s32 delta) in xgbe_adjfreq() argument
147 if (delta < 0) { in xgbe_adjfreq()
149 delta = -delta; in xgbe_adjfreq()
153 adjust *= delta; in xgbe_adjfreq()
168 static int xgbe_adjtime(struct ptp_clock_info *info, s64 delta) in xgbe_adjtime() argument
176 timecounter_adjtime(&pdata->tstamp_tc, delta); in xgbe_adjtime()
/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/clocksource/
Dh8300_timer8.c59 static void timer8_set_next(struct timer8_priv *p, unsigned long delta) in timer8_set_next() argument
61 if (delta >= 0x10000) in timer8_set_next()
64 iowrite16be(delta, p->mapbase + TCORA); in timer8_set_next()
103 static void timer8_clock_event_start(struct timer8_priv *p, unsigned long delta) in timer8_clock_event_start() argument
106 timer8_set_next(p, delta); in timer8_clock_event_start()
137 static int timer8_clock_event_next(unsigned long delta, in timer8_clock_event_next() argument
143 timer8_set_next(p, delta - 1); in timer8_clock_event_next()
/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

12345678910>>...15