Home
last modified time | relevance | path

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

12345678910>>...15

/Linux-v4.19/tools/power/cpupower/utils/
Dcpufreq-info.c125 static void print_duration(unsigned long duration) in print_duration() argument
130 if (duration > 1000000) in print_duration()
131 printf("%u.%06u ms", ((unsigned int) duration/1000000), in print_duration()
132 ((unsigned int) duration%1000000)); in print_duration()
133 else if (duration > 100000) in print_duration()
134 printf("%u us", ((unsigned int) duration/1000)); in print_duration()
135 else if (duration > 1000) in print_duration()
136 printf("%u.%03u us", ((unsigned int) duration/1000), in print_duration()
137 ((unsigned int) duration%1000)); in print_duration()
139 printf("%lu ns", duration); in print_duration()
[all …]
/Linux-v4.19/drivers/base/test/
Dtest_async_driver_probe.c50 unsigned long long duration; in test_async_probe_init() local
72 duration = (unsigned long long) ktime_to_ms(delta); in test_async_probe_init()
73 pr_info("registration took %lld msecs\n", duration); in test_async_probe_init()
74 if (duration > TEST_PROBE_THRESHOLD) { in test_async_probe_init()
91 duration = (unsigned long long) ktime_to_ms(delta); in test_async_probe_init()
92 pr_info("registration took %lld msecs\n", duration); in test_async_probe_init()
93 if (duration > TEST_PROBE_THRESHOLD) { in test_async_probe_init()
118 duration = (unsigned long long) ktime_to_ms(delta); in test_async_probe_init()
119 pr_info("registration took %lld msecs\n", duration); in test_async_probe_init()
120 if (duration < TEST_PROBE_THRESHOLD) { in test_async_probe_init()
/Linux-v4.19/drivers/media/rc/
Dstreamzap.c126 (rawir.pulse ? "pulse" : "space"), rawir.duration); in sz_push()
145 rawir.duration = IR_MAX_DURATION; in sz_push_full_pulse()
147 rawir.duration = delta; in sz_push_full_pulse()
148 rawir.duration -= sz->sum; in sz_push_full_pulse()
149 rawir.duration = US_TO_NS(rawir.duration); in sz_push_full_pulse()
150 rawir.duration = (rawir.duration > IR_MAX_DURATION) ? in sz_push_full_pulse()
151 IR_MAX_DURATION : rawir.duration; in sz_push_full_pulse()
160 rawir.duration = ((int) value) * SZ_RESOLUTION; in sz_push_full_pulse()
161 rawir.duration += SZ_RESOLUTION / 2; in sz_push_full_pulse()
162 sz->sum += rawir.duration; in sz_push_full_pulse()
[all …]
Dir-xmp-decoder.c53 data->state, data->count, TO_US(ev.duration), TO_STR(ev.pulse)); in ir_xmp_decode()
61 if (eq_margin(ev.duration, XMP_LEADER, XMP_UNIT / 2)) { in ir_xmp_decode()
72 if (eq_margin(ev.duration, XMP_LEADER, XMP_UNIT / 2)) in ir_xmp_decode()
81 if (geq_margin(ev.duration, XMP_TRAILER_SPACE, XMP_NIBBLE_PREFIX)) { in ir_xmp_decode()
89 data->count, ev.duration); in ir_xmp_decode()
154 } else if (geq_margin(ev.duration, XMP_HALFFRAME_SPACE, XMP_NIBBLE_PREFIX)) { in ir_xmp_decode()
158 data->count, ev.duration); in ir_xmp_decode()
169 data->count, ev.duration); in ir_xmp_decode()
174 } else if (geq_margin(ev.duration, XMP_NIBBLE_PREFIX, XMP_UNIT)) { in ir_xmp_decode()
178 data->count, ev.duration); in ir_xmp_decode()
[all …]
Dir-jvc-decoder.c56 if (!geq_margin(ev.duration, JVC_UNIT, JVC_UNIT / 2)) in ir_jvc_decode()
60 data->state, TO_US(ev.duration), TO_STR(ev.pulse)); in ir_jvc_decode()
69 if (!eq_margin(ev.duration, JVC_HEADER_PULSE, JVC_UNIT / 2)) in ir_jvc_decode()
82 if (!eq_margin(ev.duration, JVC_HEADER_SPACE, JVC_UNIT / 2)) in ir_jvc_decode()
92 if (!eq_margin(ev.duration, JVC_BIT_PULSE, JVC_UNIT / 2)) in ir_jvc_decode()
103 if (eq_margin(ev.duration, JVC_BIT_1_SPACE, JVC_UNIT / 2)) { in ir_jvc_decode()
106 } else if (eq_margin(ev.duration, JVC_BIT_0_SPACE, JVC_UNIT / 2)) in ir_jvc_decode()
122 if (!eq_margin(ev.duration, JVC_TRAILER_PULSE, JVC_UNIT / 2)) in ir_jvc_decode()
132 if (!geq_margin(ev.duration, JVC_TRAILER_SPACE, JVC_UNIT / 2)) in ir_jvc_decode()
159 if (eq_margin(ev.duration, JVC_HEADER_PULSE, JVC_UNIT / 2)) in ir_jvc_decode()
[all …]
Dir-sharp-decoder.c58 data->state, TO_US(ev.duration), TO_STR(ev.pulse)); in ir_sharp_decode()
66 if (!eq_margin(ev.duration, SHARP_BIT_PULSE, in ir_sharp_decode()
71 data->pulse_len = ev.duration; in ir_sharp_decode()
79 if (!eq_margin(ev.duration, SHARP_BIT_PULSE, in ir_sharp_decode()
83 data->pulse_len = ev.duration; in ir_sharp_decode()
92 if (eq_margin(data->pulse_len + ev.duration, SHARP_BIT_1_PERIOD, in ir_sharp_decode()
95 else if (!eq_margin(data->pulse_len + ev.duration, in ir_sharp_decode()
112 if (!eq_margin(ev.duration, SHARP_BIT_PULSE, in ir_sharp_decode()
132 if (!eq_margin(ev.duration, SHARP_ECHO_SPACE, in ir_sharp_decode()
144 if (!geq_margin(ev.duration, SHARP_TRAILER_SPACE, in ir_sharp_decode()
[all …]
Dir-nec-decoder.c53 data->state, TO_US(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, TO_US(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, TO_US(ev.duration), TO_STR(ev.pulse)); in ir_sanyo_decode()
Drc-core-priv.h160 static inline void decrease_duration(struct ir_raw_event *ev, unsigned duration) in decrease_duration() argument
162 if (duration > ev->duration) in decrease_duration()
163 ev->duration = 0; in decrease_duration()
165 ev->duration -= duration; in decrease_duration()
174 #define TO_US(duration) DIV_ROUND_CLOSEST((duration), 1000) argument
182 u32 duration) in init_ir_raw_event_duration() argument
185 ev->duration = duration; in init_ir_raw_event_duration()
Dir-sony-decoder.c55 if (!geq_margin(ev.duration, SONY_UNIT, SONY_UNIT / 2)) in ir_sony_decode()
59 data->state, TO_US(ev.duration), TO_STR(ev.pulse)); in ir_sony_decode()
67 if (!eq_margin(ev.duration, SONY_HEADER_PULSE, SONY_UNIT / 2)) in ir_sony_decode()
78 if (!eq_margin(ev.duration, SONY_HEADER_SPACE, SONY_UNIT / 2)) in ir_sony_decode()
89 if (eq_margin(ev.duration, SONY_BIT_1_PULSE, SONY_UNIT / 2)) in ir_sony_decode()
91 else if (!eq_margin(ev.duration, SONY_BIT_0_PULSE, SONY_UNIT / 2)) in ir_sony_decode()
102 if (!geq_margin(ev.duration, SONY_BIT_SPACE, SONY_UNIT / 2)) in ir_sony_decode()
107 if (!geq_margin(ev.duration, SONY_UNIT, SONY_UNIT / 2)) { in ir_sony_decode()
119 if (!geq_margin(ev.duration, SONY_TRAILER_SPACE, SONY_UNIT / 2)) in ir_sony_decode()
165 data->state, TO_US(ev.duration), TO_STR(ev.pulse)); in ir_sony_decode()
Dir-rc6-decoder.c99 if (!geq_margin(ev.duration, RC6_UNIT, RC6_UNIT / 2)) in ir_rc6_decode()
104 data->state, TO_US(ev.duration), TO_STR(ev.pulse)); in ir_rc6_decode()
106 if (!geq_margin(ev.duration, RC6_UNIT, RC6_UNIT / 2)) in ir_rc6_decode()
118 if (!eq_margin(ev.duration, RC6_PREFIX_PULSE, RC6_UNIT)) in ir_rc6_decode()
129 if (!eq_margin(ev.duration, RC6_PREFIX_SPACE, RC6_UNIT / 2)) in ir_rc6_decode()
137 if (!eq_margin(ev.duration, RC6_BIT_START, RC6_UNIT / 2)) in ir_rc6_decode()
157 if (!eq_margin(ev.duration, RC6_TOGGLE_START, RC6_UNIT / 2)) in ir_rc6_decode()
189 if (eq_margin(ev.duration, RC6_BIT_START, RC6_UNIT / 2)) { in ir_rc6_decode()
199 geq_margin(ev.duration, RC6_SUFFIX_SPACE, RC6_UNIT / 2)) { in ir_rc6_decode()
274 data->state, TO_US(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, TO_US(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, TO_US(ev.duration), TO_STR(ev.pulse)); in ir_rc5_decode()
/Linux-v4.19/net/bpf/
Dtest_run.c63 u32 size, u32 retval, u32 duration) in bpf_test_finish() argument
74 if (copy_to_user(&uattr->test.duration, &duration, sizeof(duration))) in bpf_test_finish()
107 u32 retval, duration; in bpf_prog_test_run_skb() local
147 retval = bpf_test_run(prog, skb, repeat, &duration); in bpf_prog_test_run_skb()
164 ret = bpf_test_finish(kattr, uattr, skb->data, size, retval, duration); in bpf_prog_test_run_skb()
176 u32 retval, duration; in bpf_prog_test_run_xdp() local
192 retval = bpf_test_run(prog, &xdp, repeat, &duration); in bpf_prog_test_run_xdp()
196 ret = bpf_test_finish(kattr, uattr, xdp.data, size, retval, duration); in bpf_prog_test_run_xdp()
/Linux-v4.19/Documentation/leds/
Dledtrig-transient.txt72 This trigger exports three properties, activate, state, and duration. When
75 - duration allows setting timer value in msecs. The initial value is 0.
77 duration as needed. The initial and default value is 0. This will allow
78 duration to be set after trigger activation.
80 duration.
85 to allow duration to be set.
88 duration running.
92 duration - one shot timer value. When activate is set, duration value
95 echo new_value > duration
99 held for the duration of the one shot timer and then the
[all …]
/Linux-v4.19/drivers/watchdog/
Daspeed_wdt.c196 u32 duration; in aspeed_wdt_probe() local
287 if (!of_property_read_u32(np, "aspeed,ext-pulse-duration", &duration)) { in aspeed_wdt_probe()
290 if (duration == 0 || duration > max_duration) { in aspeed_wdt_probe()
292 duration); in aspeed_wdt_probe()
293 duration = max(1U, min(max_duration, duration)); in aspeed_wdt_probe()
295 duration); in aspeed_wdt_probe()
310 writel(duration - 1, wdt->base + WDT_RESET_WIDTH); in aspeed_wdt_probe()
/Linux-v4.19/arch/powerpc/kvm/
Dtiming.c55 static void add_exit_timing(struct kvm_vcpu *vcpu, u64 duration, int type) in add_exit_timing() argument
65 vcpu->arch.timing_sum_duration[type] += duration; in add_exit_timing()
75 vcpu->arch.timing_sum_quad_duration[type] += (duration*duration); in add_exit_timing()
85 if (unlikely(duration < vcpu->arch.timing_min_duration[type])) in add_exit_timing()
86 vcpu->arch.timing_min_duration[type] = duration; in add_exit_timing()
87 if (unlikely(duration > vcpu->arch.timing_max_duration[type])) in add_exit_timing()
88 vcpu->arch.timing_max_duration[type] = duration; in add_exit_timing()
/Linux-v4.19/tools/testing/selftests/bpf/
Dtest_lirc_mode2_kern.c14 unsigned int duration = LIRC_VALUE(*sample); in bpf_decoder() local
16 if (duration & 0x10000) in bpf_decoder()
17 bpf_rc_keydown(sample, 0x40, duration & 0xffff, 0); in bpf_decoder()
Dtest_progs.c81 printf("%s:PASS:%s %d nsec\n", __func__, tag, duration);\
104 __u32 duration, retval; in test_pkt_access() local
114 NULL, NULL, &retval, &duration); in test_pkt_access()
117 err, errno, retval, duration); in test_pkt_access()
120 NULL, NULL, &retval, &duration); in test_pkt_access()
123 err, errno, retval, duration); in test_pkt_access()
138 __u32 duration, retval, size; in test_xdp() local
154 buf, &size, &retval, &duration); in test_xdp()
162 buf, &size, &retval, &duration); in test_xdp()
176 __u32 duration, retval, size; in test_xdp_adjust_tail() local
[all …]
/Linux-v4.19/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,
/Linux-v4.19/drivers/char/tpm/
Dtpm-interface.c312 int duration = 0; in tpm_calc_ordinal_duration() local
322 duration = chip->duration[duration_idx]; in tpm_calc_ordinal_duration()
323 if (duration <= 0) in tpm_calc_ordinal_duration()
326 return duration; in tpm_calc_ordinal_duration()
781 chip->duration[TPM_SHORT] = in tpm_get_timeouts()
783 chip->duration[TPM_MEDIUM] = in tpm_get_timeouts()
785 chip->duration[TPM_LONG] = in tpm_get_timeouts()
787 chip->duration[TPM_LONG_LONG] = in tpm_get_timeouts()
867 sizeof(cap.duration)); in tpm_get_timeouts()
871 chip->duration[TPM_SHORT] = in tpm_get_timeouts()
[all …]
/Linux-v4.19/net/mac80211/
Doffchannel.c225 msecs_to_jiffies(roc->duration) - in ieee80211_end_finished_rocs()
325 min_dur = roc->duration; in _ieee80211_start_next_roc()
326 max_dur = roc->duration; in _ieee80211_start_next_roc()
334 max_dur = max(tmp->duration, max_dur); in _ieee80211_start_next_roc()
335 min_dur = min(tmp->duration, min_dur); in _ieee80211_start_next_roc()
519 if (!cur_roc->hw_begun && new_roc->duration > cur_roc->duration) in ieee80211_coalesce_hw_started_roc()
523 msecs_to_jiffies(cur_roc->duration) - in ieee80211_coalesce_hw_started_roc()
527 if (new_roc->duration > jiffies_to_msecs(remaining)) in ieee80211_coalesce_hw_started_roc()
548 unsigned int duration, u64 *cookie, in ieee80211_start_roc_work() argument
574 if (!duration) in ieee80211_start_roc_work()
[all …]
/Linux-v4.19/drivers/staging/vt6655/
Drxtx.h93 __le16 duration; member
99 __le16 duration; member
132 __le16 duration; member
139 __le16 duration; member
177 __le16 duration; member
/Linux-v4.19/drivers/net/wireless/intel/iwlwifi/mvm/
Dtime-event.c357 te_data->end_jiffies = TU_TO_EXP_TIME(te_data->duration); in iwl_mvm_te_handle_notif()
521 le32_to_cpu(te_cmd->duration)); in iwl_mvm_time_event_send_add()
529 te_data->duration = le32_to_cpu(te_cmd->duration); in iwl_mvm_time_event_send_add()
572 u32 duration, u32 min_duration, in iwl_mvm_protect_session() argument
616 time_cmd.duration = cpu_to_le32(duration); in iwl_mvm_protect_session()
764 int duration, enum ieee80211_roc_type type) in iwl_mvm_start_p2p_roc() argument
801 time_cmd.max_frags = min(MSEC_TO_TU(duration)/50, TE_V2_FRAG_ENDLESS); in iwl_mvm_start_p2p_roc()
802 time_cmd.max_delay = cpu_to_le32(MSEC_TO_TU(duration/2)); in iwl_mvm_start_p2p_roc()
803 time_cmd.duration = cpu_to_le32(MSEC_TO_TU(duration)); in iwl_mvm_start_p2p_roc()
878 u32 duration, u32 apply_time) in iwl_mvm_schedule_csa_period() argument
[all …]
Dtime-event.h141 u32 duration, u32 min_duration,
181 int duration, enum ieee80211_roc_type type);
233 u32 duration, u32 apply_time);
/Linux-v4.19/drivers/media/usb/au0828/
Dau0828-input.c175 rawir.duration = NEC_START_PULSE; in au0828_get_key_au8522()
178 rawir.duration); in au0828_get_key_au8522()
181 rawir.duration = RC5_START_PULSE; in au0828_get_key_au8522()
184 rawir.duration); in au0828_get_key_au8522()
191 rawir.duration = AU8522_UNIT * width; in au0828_get_key_au8522()
194 rawir.duration); in au0828_get_key_au8522()
204 rawir.duration = AU8522_UNIT * width; in au0828_get_key_au8522()
207 rawir.duration); in au0828_get_key_au8522()

12345678910>>...15