Home
last modified time | relevance | path

Searched refs:duration (Results 1 – 25 of 227) sorted by relevance

12345678910

/drivers/media/rc/
Dir-xmp-decoder.c46 data->state, data->count, ev.duration, TO_STR(ev.pulse)); in ir_xmp_decode()
54 if (eq_margin(ev.duration, XMP_LEADER, XMP_UNIT / 2)) { in ir_xmp_decode()
65 if (eq_margin(ev.duration, XMP_LEADER, XMP_UNIT / 2)) in ir_xmp_decode()
74 if (geq_margin(ev.duration, XMP_TRAILER_SPACE, XMP_NIBBLE_PREFIX)) { in ir_xmp_decode()
82 data->count, ev.duration); in ir_xmp_decode()
147 } else if (geq_margin(ev.duration, XMP_HALFFRAME_SPACE, XMP_NIBBLE_PREFIX)) { in ir_xmp_decode()
151 data->count, ev.duration); in ir_xmp_decode()
162 data->count, ev.duration); in ir_xmp_decode()
167 } else if (geq_margin(ev.duration, XMP_NIBBLE_PREFIX, XMP_UNIT)) { in ir_xmp_decode()
171 data->count, ev.duration); in ir_xmp_decode()
[all …]
Dir-sharp-decoder.c52 data->state, ev.duration, TO_STR(ev.pulse)); in ir_sharp_decode()
60 if (!eq_margin(ev.duration, SHARP_BIT_PULSE, in ir_sharp_decode()
65 data->pulse_len = ev.duration; in ir_sharp_decode()
73 if (!eq_margin(ev.duration, SHARP_BIT_PULSE, in ir_sharp_decode()
77 data->pulse_len = ev.duration; in ir_sharp_decode()
86 if (eq_margin(data->pulse_len + ev.duration, SHARP_BIT_1_PERIOD, in ir_sharp_decode()
89 else if (!eq_margin(data->pulse_len + ev.duration, in ir_sharp_decode()
106 if (!eq_margin(ev.duration, SHARP_BIT_PULSE, in ir_sharp_decode()
126 if (!eq_margin(ev.duration, SHARP_ECHO_SPACE, in ir_sharp_decode()
138 if (!geq_margin(ev.duration, SHARP_TRAILER_SPACE, in ir_sharp_decode()
[all …]
Dir-jvc-decoder.c48 if (!geq_margin(ev.duration, JVC_UNIT, JVC_UNIT / 2)) in ir_jvc_decode()
52 data->state, ev.duration, TO_STR(ev.pulse)); in ir_jvc_decode()
61 if (!eq_margin(ev.duration, JVC_HEADER_PULSE, JVC_UNIT / 2)) in ir_jvc_decode()
74 if (!eq_margin(ev.duration, JVC_HEADER_SPACE, JVC_UNIT / 2)) in ir_jvc_decode()
84 if (!eq_margin(ev.duration, JVC_BIT_PULSE, JVC_UNIT / 2)) in ir_jvc_decode()
95 if (eq_margin(ev.duration, JVC_BIT_1_SPACE, JVC_UNIT / 2)) { in ir_jvc_decode()
98 } else if (eq_margin(ev.duration, JVC_BIT_0_SPACE, JVC_UNIT / 2)) in ir_jvc_decode()
114 if (!eq_margin(ev.duration, JVC_TRAILER_PULSE, JVC_UNIT / 2)) in ir_jvc_decode()
124 if (!geq_margin(ev.duration, JVC_TRAILER_SPACE, JVC_UNIT / 2)) in ir_jvc_decode()
151 if (eq_margin(ev.duration, JVC_HEADER_PULSE, JVC_UNIT / 2)) in ir_jvc_decode()
[all …]
Dir-nec-decoder.c53 data->state, ev.duration, TO_STR(ev.pulse)); in ir_nec_decode()
61 if (eq_margin(ev.duration, NEC_HEADER_PULSE, NEC_UNIT * 2)) { in ir_nec_decode()
64 } else if (eq_margin(ev.duration, NECX_HEADER_PULSE, NEC_UNIT / 2)) in ir_nec_decode()
77 if (eq_margin(ev.duration, NEC_HEADER_SPACE, NEC_UNIT)) { in ir_nec_decode()
80 } else if (eq_margin(ev.duration, NEC_REPEAT_SPACE, NEC_UNIT / 2)) { in ir_nec_decode()
91 if (!eq_margin(ev.duration, NEC_BIT_PULSE, NEC_UNIT / 2)) in ir_nec_decode()
102 geq_margin(ev.duration, NEC_TRAILER_SPACE, NEC_UNIT / 2)) { in ir_nec_decode()
111 if (eq_margin(ev.duration, NEC_BIT_1_SPACE, NEC_UNIT / 2)) in ir_nec_decode()
113 else if (!eq_margin(ev.duration, NEC_BIT_0_SPACE, NEC_UNIT / 2)) in ir_nec_decode()
128 if (!eq_margin(ev.duration, NEC_TRAILER_PULSE, NEC_UNIT / 2)) in ir_nec_decode()
[all …]
Dir-sanyo-decoder.c62 data->state, ev.duration, TO_STR(ev.pulse)); in ir_sanyo_decode()
70 if (eq_margin(ev.duration, SANYO_HEADER_PULSE, SANYO_UNIT / 2)) { in ir_sanyo_decode()
82 if (eq_margin(ev.duration, SANYO_HEADER_SPACE, SANYO_UNIT / 2)) { in ir_sanyo_decode()
93 if (!eq_margin(ev.duration, SANYO_BIT_PULSE, SANYO_UNIT / 2)) in ir_sanyo_decode()
103 if (!data->count && geq_margin(ev.duration, SANYO_REPEAT_SPACE, SANYO_UNIT / 2)) { in ir_sanyo_decode()
111 if (eq_margin(ev.duration, SANYO_BIT_1_SPACE, SANYO_UNIT / 2)) in ir_sanyo_decode()
113 else if (!eq_margin(ev.duration, SANYO_BIT_0_SPACE, SANYO_UNIT / 2)) in ir_sanyo_decode()
128 if (!eq_margin(ev.duration, SANYO_TRAILER_PULSE, SANYO_UNIT / 2)) in ir_sanyo_decode()
138 if (!geq_margin(ev.duration, SANYO_TRAILER_SPACE, SANYO_UNIT / 2)) in ir_sanyo_decode()
161 data->count, data->state, ev.duration, TO_STR(ev.pulse)); in ir_sanyo_decode()
Dir-sony-decoder.c47 if (!geq_margin(ev.duration, SONY_UNIT, SONY_UNIT / 2)) in ir_sony_decode()
51 data->state, ev.duration, TO_STR(ev.pulse)); in ir_sony_decode()
59 if (!eq_margin(ev.duration, SONY_HEADER_PULSE, SONY_UNIT / 2)) in ir_sony_decode()
70 if (!eq_margin(ev.duration, SONY_HEADER_SPACE, SONY_UNIT / 2)) in ir_sony_decode()
81 if (eq_margin(ev.duration, SONY_BIT_1_PULSE, SONY_UNIT / 2)) in ir_sony_decode()
83 else if (!eq_margin(ev.duration, SONY_BIT_0_PULSE, SONY_UNIT / 2)) in ir_sony_decode()
94 if (!geq_margin(ev.duration, SONY_BIT_SPACE, SONY_UNIT / 2)) in ir_sony_decode()
99 if (!geq_margin(ev.duration, SONY_UNIT, SONY_UNIT / 2)) { in ir_sony_decode()
111 if (!geq_margin(ev.duration, SONY_TRAILER_SPACE, SONY_UNIT / 2)) in ir_sony_decode()
157 data->state, ev.duration, TO_STR(ev.pulse)); in ir_sony_decode()
Dir-rcmm-decoder.c82 if (!eq_margin(ev.duration, RCMM_PREFIX_PULSE, RCMM_UNIT)) in ir_rcmm_decode()
94 if (!eq_margin(ev.duration, RCMM_PULSE_0, RCMM_UNIT)) in ir_rcmm_decode()
104 if (!eq_margin(ev.duration, RCMM_UNIT, RCMM_UNIT / 2)) in ir_rcmm_decode()
114 if (eq_margin(ev.duration, RCMM_PULSE_0, RCMM_UNIT / 2)) in ir_rcmm_decode()
116 else if (eq_margin(ev.duration, RCMM_PULSE_1, RCMM_UNIT / 2)) in ir_rcmm_decode()
118 else if (eq_margin(ev.duration, RCMM_PULSE_2, RCMM_UNIT / 2)) in ir_rcmm_decode()
120 else if (eq_margin(ev.duration, RCMM_PULSE_3, RCMM_UNIT / 2)) in ir_rcmm_decode()
147 if (!eq_margin(ev.duration, RCMM_UNIT, RCMM_UNIT / 2)) in ir_rcmm_decode()
168 data->count, data->state, ev.duration, TO_STR(ev.pulse)); in ir_rcmm_decode()
Drc-core-priv.h182 static inline void decrease_duration(struct ir_raw_event *ev, unsigned duration) in decrease_duration() argument
184 if (duration > ev->duration) in decrease_duration()
185 ev->duration = 0; in decrease_duration()
187 ev->duration -= duration; in decrease_duration()
203 u32 duration) in init_ir_raw_event_duration() argument
206 .duration = duration, in init_ir_raw_event_duration()
Dir-rc6-decoder.c93 if (!geq_margin(ev.duration, RC6_UNIT, RC6_UNIT / 2)) in ir_rc6_decode()
98 data->state, ev.duration, TO_STR(ev.pulse)); in ir_rc6_decode()
100 if (!geq_margin(ev.duration, RC6_UNIT, RC6_UNIT / 2)) in ir_rc6_decode()
112 if (!eq_margin(ev.duration, RC6_PREFIX_PULSE, RC6_UNIT)) in ir_rc6_decode()
123 if (!eq_margin(ev.duration, RC6_PREFIX_SPACE, RC6_UNIT / 2)) in ir_rc6_decode()
131 if (!eq_margin(ev.duration, RC6_BIT_START, RC6_UNIT / 2)) in ir_rc6_decode()
151 if (!eq_margin(ev.duration, RC6_TOGGLE_START, RC6_UNIT / 2)) in ir_rc6_decode()
183 if (eq_margin(ev.duration, RC6_BIT_START, RC6_UNIT / 2)) { in ir_rc6_decode()
193 geq_margin(ev.duration, RC6_SUFFIX_SPACE, RC6_UNIT / 2)) { in ir_rc6_decode()
273 data->state, ev.duration, TO_STR(ev.pulse)); in ir_rc6_decode()
Dir-rc5-decoder.c53 if (!geq_margin(ev.duration, RC5_UNIT, RC5_UNIT / 2)) in ir_rc5_decode()
58 data->state, ev.duration, TO_STR(ev.pulse)); in ir_rc5_decode()
60 if (!geq_margin(ev.duration, RC5_UNIT, RC5_UNIT / 2)) in ir_rc5_decode()
75 if (!ev.pulse && geq_margin(ev.duration, RC5_TRAILER, RC5_UNIT / 2)) { in ir_rc5_decode()
80 if (!eq_margin(ev.duration, RC5_BIT_START, RC5_UNIT / 2)) in ir_rc5_decode()
100 if (!ev.pulse && geq_margin(ev.duration, RC5X_SPACE, RC5_UNIT / 2)) { in ir_rc5_decode()
167 data->state, data->count, ev.duration, TO_STR(ev.pulse)); in ir_rc5_decode()
Dir-imon-decoder.c105 data->state, data->count, ev.duration, TO_STR(ev.pulse)); in ir_imon_decode()
118 if (!ev.pulse && ev.duration > MS_TO_US(10)) in ir_imon_decode()
124 if (!geq_margin(ev.duration, IMON_UNIT, IMON_UNIT / 2)) in ir_imon_decode()
171 data->state, data->count, ev.duration, TO_STR(ev.pulse)); in ir_imon_decode()
207 e->duration += IMON_UNIT; in ir_imon_encode()
217 e->duration += IMON_UNIT; in ir_imon_encode()
Dmeson-ir.c82 u32 duration, status; in meson_ir_irq() local
87 duration = readl_relaxed(ir->reg + IR_DEC_REG1); in meson_ir_irq()
88 duration = FIELD_GET(REG1_TIME_IV_MASK, duration); in meson_ir_irq()
89 rawir.duration = duration * MESON_TRATE; in meson_ir_irq()
Dlirc_dev.c64 sample = LIRC_TIMEOUT(ev.duration); in lirc_raw_event()
70 u64 duration = ktime_us_delta(ktime_get(), in lirc_raw_event() local
74 duration = min_t(u64, duration, LIRC_VALUE_MASK); in lirc_raw_event()
78 kfifo_put(&fh->rawir, LIRC_SPACE(duration)); in lirc_raw_event()
83 sample = ev.pulse ? LIRC_PULSE(ev.duration) : in lirc_raw_event()
84 LIRC_SPACE(ev.duration); in lirc_raw_event()
86 ev.duration, TO_STR(ev.pulse)); in lirc_raw_event()
225 unsigned int duration = 0; /* signal duration in us */ in lirc_transmit() local
292 txbuf[i] = raw[i].duration; in lirc_transmit()
320 if (txbuf[i] > IR_MAX_DURATION - duration || !txbuf[i]) { in lirc_transmit()
[all …]
/drivers/base/test/
Dtest_async_driver_probe.c106 unsigned long long duration; in test_async_probe_init() local
136 duration = (unsigned long long)ktime_ms_delta(ktime_get(), calltime); in test_async_probe_init()
137 pr_info("registration took %lld msecs\n", duration); in test_async_probe_init()
138 if (duration > TEST_PROBE_THRESHOLD) { in test_async_probe_init()
163 duration = (unsigned long long)ktime_ms_delta(ktime_get(), calltime); in test_async_probe_init()
165 "registration took %lld msecs\n", duration); in test_async_probe_init()
166 if (duration > TEST_PROBE_THRESHOLD) { in test_async_probe_init()
198 duration = (unsigned long long)ktime_ms_delta(ktime_get(), calltime); in test_async_probe_init()
199 pr_info("registration took %lld msecs\n", duration); in test_async_probe_init()
200 if (duration < TEST_PROBE_THRESHOLD) { in test_async_probe_init()
[all …]
/drivers/char/tpm/
Dtpm1-cmd.c294 int duration = 0; in tpm1_calc_ordinal_duration() local
304 duration = chip->duration[duration_idx]; in tpm1_calc_ordinal_duration()
305 if (duration <= 0) in tpm1_calc_ordinal_duration()
308 return duration; in tpm1_calc_ordinal_duration()
419 sizeof(cap.duration)); in tpm1_get_timeouts()
423 chip->duration[TPM_SHORT] = in tpm1_get_timeouts()
424 usecs_to_jiffies(be32_to_cpu(cap.duration.tpm_short)); in tpm1_get_timeouts()
425 chip->duration[TPM_MEDIUM] = in tpm1_get_timeouts()
426 usecs_to_jiffies(be32_to_cpu(cap.duration.tpm_medium)); in tpm1_get_timeouts()
427 chip->duration[TPM_LONG] = in tpm1_get_timeouts()
[all …]
/drivers/gpu/drm/i915/gt/
Dsysfs_engines.c147 unsigned long long duration, clamped; in max_spin_store() local
167 err = kstrtoull(buf, 0, &duration); in max_spin_store()
171 clamped = intel_clamp_max_busywait_duration_ns(engine, duration); in max_spin_store()
172 if (duration != clamped) in max_spin_store()
175 WRITE_ONCE(engine->props.max_busywait_duration_ns, duration); in max_spin_store()
207 unsigned long long duration, clamped; in timeslice_store() local
218 err = kstrtoull(buf, 0, &duration); in timeslice_store()
222 clamped = intel_clamp_timeslice_duration_ms(engine, duration); in timeslice_store()
223 if (duration != clamped) in timeslice_store()
226 WRITE_ONCE(engine->props.timeslice_duration_ms, duration); in timeslice_store()
[all …]
Dintel_engine_pm.c83 static void duration(struct dma_fence *fence, struct dma_fence_cb *cb) in duration() function
89 rq->duration.emitted)); in duration()
205 BUILD_BUG_ON(sizeof(rq->duration) > sizeof(rq->submitq)); in switch_to_kernel_context()
206 dma_fence_add_callback(&rq->fence, &rq->duration.cb, duration); in switch_to_kernel_context()
207 rq->duration.emitted = ktime_get(); in switch_to_kernel_context()
/drivers/watchdog/
Daspeed_wdt.c254 u32 duration; in aspeed_wdt_probe() local
351 if (!of_property_read_u32(np, "aspeed,ext-pulse-duration", &duration)) { in aspeed_wdt_probe()
354 if (duration == 0 || duration > max_duration) { in aspeed_wdt_probe()
356 duration); in aspeed_wdt_probe()
357 duration = max(1U, min(max_duration, duration)); in aspeed_wdt_probe()
359 duration); in aspeed_wdt_probe()
374 writel(duration - 1, wdt->base + WDT_RESET_WIDTH); in aspeed_wdt_probe()
/drivers/net/wireless/intel/iwlwifi/mvm/
Dtime-event.c360 te_data->end_jiffies = TU_TO_EXP_TIME(te_data->duration); in iwl_mvm_te_handle_notif()
522 le32_to_cpu(te_cmd->duration)); in iwl_mvm_time_event_send_add()
530 te_data->duration = le32_to_cpu(te_cmd->duration); in iwl_mvm_time_event_send_add()
573 u32 duration, u32 min_duration, in iwl_mvm_protect_session() argument
617 time_cmd.duration = cpu_to_le32(duration); in iwl_mvm_protect_session()
854 TU_TO_EXP_TIME(te_data->duration); in iwl_mvm_rx_session_protect_notif()
893 int duration, in iwl_mvm_start_p2p_roc_session_protection() argument
902 .duration_tu = cpu_to_le32(MSEC_TO_TU(duration)), in iwl_mvm_start_p2p_roc_session_protection()
931 int duration, enum ieee80211_roc_type type) in iwl_mvm_start_p2p_roc() argument
946 duration, in iwl_mvm_start_p2p_roc()
[all …]
Dtime-event.h81 u32 duration, u32 min_duration,
121 int duration, enum ieee80211_roc_type type);
177 u32 duration, u32 apply_time);
203 u32 duration, u32 min_duration,
/drivers/leds/trigger/
Dledtrig-transient.c27 unsigned long duration; member
78 transient_data->duration != 0) { in transient_activate_store()
84 jiffies + msecs_to_jiffies(transient_data->duration)); in transient_activate_store()
100 return sprintf(buf, "%lu\n", transient_data->duration); in transient_duration_show()
115 transient_data->duration = state; in transient_duration_store()
151 static DEVICE_ATTR(duration, 0644, transient_duration_show,
/drivers/media/usb/au0828/
Dau0828-input.c174 rawir.duration = NEC_START_PULSE; in au0828_get_key_au8522()
177 rawir.duration); in au0828_get_key_au8522()
180 rawir.duration = RC5_START_PULSE; in au0828_get_key_au8522()
183 rawir.duration); in au0828_get_key_au8522()
189 rawir.duration = AU8522_UNIT * width; in au0828_get_key_au8522()
192 rawir.duration); in au0828_get_key_au8522()
201 rawir.duration = AU8522_UNIT * width; in au0828_get_key_au8522()
204 rawir.duration); in au0828_get_key_au8522()
/drivers/staging/vt6655/
Drxtx.h91 __le16 duration; member
97 __le16 duration; member
130 __le16 duration; member
137 __le16 duration; member
175 __le16 duration; member
/drivers/net/wireless/intel/iwlegacy/
D3945-rs.c175 u32 packet_count, duration, pps; in il3945_bg_rate_scale_flush() local
189 duration = in il3945_bg_rate_scale_flush()
192 D_RATE("Tx'd %d packets in %dms\n", packet_count, duration); in il3945_bg_rate_scale_flush()
195 if (duration) in il3945_bg_rate_scale_flush()
196 pps = (packet_count * 1000) / duration; in il3945_bg_rate_scale_flush()
201 duration = (IL_AVERAGE_PACKETS * 1000) / pps; in il3945_bg_rate_scale_flush()
202 if (duration < RATE_FLUSH_MIN) in il3945_bg_rate_scale_flush()
203 duration = RATE_FLUSH_MIN; in il3945_bg_rate_scale_flush()
204 else if (duration > RATE_FLUSH_MAX) in il3945_bg_rate_scale_flush()
205 duration = RATE_FLUSH_MAX; in il3945_bg_rate_scale_flush()
[all …]
/drivers/net/wireless/ath/ath10k/
Dthermal.c127 u32 period, duration, enabled; in ath10k_thermal_set_throttling() local
142 duration = (period * ar->thermal.throttle_state) / 100; in ath10k_thermal_set_throttling()
143 enabled = duration ? 1 : 0; in ath10k_thermal_set_throttling()
145 ret = ath10k_wmi_pdev_set_quiet_mode(ar, period, duration, in ath10k_thermal_set_throttling()
150 period, duration, enabled, ret); in ath10k_thermal_set_throttling()

12345678910