Home
last modified time | relevance | path

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

1234567

/drivers/media/rc/
Dstreamzap.c129 (rawir.pulse ? "pulse" : "space"), rawir.duration); in sz_push()
148 rawir.duration = IR_MAX_DURATION; in sz_push_full_pulse()
150 rawir.duration = (int)(deltv * 1000000 + in sz_push_full_pulse()
153 rawir.duration -= sz->sum; in sz_push_full_pulse()
154 rawir.duration = US_TO_NS(rawir.duration); in sz_push_full_pulse()
155 rawir.duration = (rawir.duration > IR_MAX_DURATION) ? in sz_push_full_pulse()
156 IR_MAX_DURATION : rawir.duration; in sz_push_full_pulse()
165 rawir.duration = ((int) value) * SZ_RESOLUTION; in sz_push_full_pulse()
166 rawir.duration += SZ_RESOLUTION / 2; in sz_push_full_pulse()
167 sz->sum += rawir.duration; in sz_push_full_pulse()
[all …]
Dir-sharp-decoder.c61 data->state, TO_US(ev.duration), TO_STR(ev.pulse)); in ir_sharp_decode()
69 if (!eq_margin(ev.duration, SHARP_BIT_PULSE, in ir_sharp_decode()
74 data->pulse_len = ev.duration; in ir_sharp_decode()
82 if (!eq_margin(ev.duration, SHARP_BIT_PULSE, in ir_sharp_decode()
86 data->pulse_len = ev.duration; in ir_sharp_decode()
95 if (eq_margin(data->pulse_len + ev.duration, SHARP_BIT_1_PERIOD, in ir_sharp_decode()
98 else if (!eq_margin(data->pulse_len + ev.duration, in ir_sharp_decode()
115 if (!eq_margin(ev.duration, SHARP_BIT_PULSE, in ir_sharp_decode()
133 if (!eq_margin(ev.duration, SHARP_ECHO_SPACE, in ir_sharp_decode()
145 if (!geq_margin(ev.duration, SHARP_TRAILER_SPACE, in ir_sharp_decode()
[all …]
Dir-jvc-decoder.c59 if (!geq_margin(ev.duration, JVC_UNIT, JVC_UNIT / 2)) in ir_jvc_decode()
63 data->state, TO_US(ev.duration), TO_STR(ev.pulse)); in ir_jvc_decode()
72 if (!eq_margin(ev.duration, JVC_HEADER_PULSE, JVC_UNIT / 2)) in ir_jvc_decode()
85 if (!eq_margin(ev.duration, JVC_HEADER_SPACE, JVC_UNIT / 2)) in ir_jvc_decode()
95 if (!eq_margin(ev.duration, JVC_BIT_PULSE, JVC_UNIT / 2)) in ir_jvc_decode()
106 if (eq_margin(ev.duration, JVC_BIT_1_SPACE, JVC_UNIT / 2)) { in ir_jvc_decode()
109 } else if (eq_margin(ev.duration, JVC_BIT_0_SPACE, JVC_UNIT / 2)) in ir_jvc_decode()
125 if (!eq_margin(ev.duration, JVC_TRAILER_PULSE, JVC_UNIT / 2)) in ir_jvc_decode()
135 if (!geq_margin(ev.duration, JVC_TRAILER_SPACE, JVC_UNIT / 2)) in ir_jvc_decode()
162 if (eq_margin(ev.duration, JVC_HEADER_PULSE, JVC_UNIT / 2)) in ir_jvc_decode()
[all …]
Dir-nec-decoder.c65 data->state, TO_US(ev.duration), TO_STR(ev.pulse)); in ir_nec_decode()
73 if (eq_margin(ev.duration, NEC_HEADER_PULSE, NEC_UNIT * 2)) { in ir_nec_decode()
76 } else if (eq_margin(ev.duration, NECX_HEADER_PULSE, NEC_UNIT / 2)) in ir_nec_decode()
89 if (eq_margin(ev.duration, NEC_HEADER_SPACE, NEC_UNIT)) { in ir_nec_decode()
92 } else if (eq_margin(ev.duration, NEC_REPEAT_SPACE, NEC_UNIT / 2)) { in ir_nec_decode()
109 if (!eq_margin(ev.duration, NEC_BIT_PULSE, NEC_UNIT / 2)) in ir_nec_decode()
120 geq_margin(ev.duration, in ir_nec_decode()
131 if (eq_margin(ev.duration, NEC_BIT_1_SPACE, NEC_UNIT / 2)) in ir_nec_decode()
133 else if (!eq_margin(ev.duration, NEC_BIT_0_SPACE, NEC_UNIT / 2)) in ir_nec_decode()
148 if (!eq_margin(ev.duration, NEC_TRAILER_PULSE, NEC_UNIT / 2)) in ir_nec_decode()
[all …]
Dir-xmp-decoder.c56 data->state, data->count, TO_US(ev.duration), TO_STR(ev.pulse)); in ir_xmp_decode()
64 if (eq_margin(ev.duration, XMP_LEADER, XMP_UNIT / 2)) { in ir_xmp_decode()
75 if (eq_margin(ev.duration, XMP_LEADER, XMP_UNIT / 2)) in ir_xmp_decode()
84 if (geq_margin(ev.duration, XMP_TRAILER_SPACE, XMP_NIBBLE_PREFIX)) { in ir_xmp_decode()
92 data->count, ev.duration); in ir_xmp_decode()
156 } else if (geq_margin(ev.duration, XMP_HALFFRAME_SPACE, XMP_NIBBLE_PREFIX)) { in ir_xmp_decode()
160 data->count, ev.duration); in ir_xmp_decode()
171 data->count, ev.duration); in ir_xmp_decode()
176 } else if (geq_margin(ev.duration, XMP_NIBBLE_PREFIX, XMP_UNIT)) { in ir_xmp_decode()
180 data->count, ev.duration); in ir_xmp_decode()
[all …]
Dir-sanyo-decoder.c73 data->state, TO_US(ev.duration), TO_STR(ev.pulse)); in ir_sanyo_decode()
81 if (eq_margin(ev.duration, SANYO_HEADER_PULSE, SANYO_UNIT / 2)) { in ir_sanyo_decode()
93 if (eq_margin(ev.duration, SANYO_HEADER_SPACE, SANYO_UNIT / 2)) { in ir_sanyo_decode()
104 if (!eq_margin(ev.duration, SANYO_BIT_PULSE, SANYO_UNIT / 2)) in ir_sanyo_decode()
114 if (!data->count && geq_margin(ev.duration, SANYO_REPEAT_SPACE, SANYO_UNIT / 2)) { in ir_sanyo_decode()
126 if (eq_margin(ev.duration, SANYO_BIT_1_SPACE, SANYO_UNIT / 2)) in ir_sanyo_decode()
128 else if (!eq_margin(ev.duration, SANYO_BIT_0_SPACE, SANYO_UNIT / 2)) in ir_sanyo_decode()
143 if (!eq_margin(ev.duration, SANYO_TRAILER_PULSE, SANYO_UNIT / 2)) in ir_sanyo_decode()
153 if (!geq_margin(ev.duration, SANYO_TRAILER_SPACE, SANYO_UNIT / 2)) in ir_sanyo_decode()
176 data->count, data->state, TO_US(ev.duration), TO_STR(ev.pulse)); in ir_sanyo_decode()
Dir-sony-decoder.c59 if (!geq_margin(ev.duration, SONY_UNIT, SONY_UNIT / 2)) in ir_sony_decode()
63 data->state, TO_US(ev.duration), TO_STR(ev.pulse)); in ir_sony_decode()
71 if (!eq_margin(ev.duration, SONY_HEADER_PULSE, SONY_UNIT / 2)) in ir_sony_decode()
82 if (!eq_margin(ev.duration, SONY_HEADER_SPACE, SONY_UNIT / 2)) in ir_sony_decode()
93 if (eq_margin(ev.duration, SONY_BIT_1_PULSE, SONY_UNIT / 2)) in ir_sony_decode()
95 else if (!eq_margin(ev.duration, SONY_BIT_0_PULSE, SONY_UNIT / 2)) in ir_sony_decode()
106 if (!geq_margin(ev.duration, SONY_BIT_SPACE, SONY_UNIT / 2)) in ir_sony_decode()
111 if (!geq_margin(ev.duration, SONY_UNIT, SONY_UNIT / 2)) { in ir_sony_decode()
123 if (!geq_margin(ev.duration, SONY_TRAILER_SPACE, SONY_UNIT / 2)) in ir_sony_decode()
167 data->state, TO_US(ev.duration), TO_STR(ev.pulse)); in ir_sony_decode()
Dir-rc6-decoder.c104 if (!geq_margin(ev.duration, RC6_UNIT, RC6_UNIT / 2)) in ir_rc6_decode()
109 data->state, TO_US(ev.duration), TO_STR(ev.pulse)); in ir_rc6_decode()
111 if (!geq_margin(ev.duration, RC6_UNIT, RC6_UNIT / 2)) in ir_rc6_decode()
123 if (!eq_margin(ev.duration, RC6_PREFIX_PULSE, RC6_UNIT)) in ir_rc6_decode()
134 if (!eq_margin(ev.duration, RC6_PREFIX_SPACE, RC6_UNIT / 2)) in ir_rc6_decode()
142 if (!eq_margin(ev.duration, RC6_BIT_START, RC6_UNIT / 2)) in ir_rc6_decode()
165 if (!eq_margin(ev.duration, RC6_TOGGLE_START, RC6_UNIT / 2)) in ir_rc6_decode()
174 !geq_margin(ev.duration, RC6_TOGGLE_END, RC6_UNIT / 2)) in ir_rc6_decode()
201 if (eq_margin(ev.duration, RC6_BIT_START, RC6_UNIT / 2)) { in ir_rc6_decode()
211 geq_margin(ev.duration, RC6_SUFFIX_SPACE, RC6_UNIT / 2)) { in ir_rc6_decode()
[all …]
Drc-core-priv.h136 static inline void decrease_duration(struct ir_raw_event *ev, unsigned duration) in decrease_duration() argument
138 if (duration > ev->duration) in decrease_duration()
139 ev->duration = 0; in decrease_duration()
141 ev->duration -= duration; in decrease_duration()
150 #define TO_US(duration) DIV_ROUND_CLOSEST((duration), 1000) argument
Dir-lirc-codec.c64 lirc->gap_duration = ev.duration; in ir_lirc_decode()
69 sample = LIRC_TIMEOUT(ev.duration / 1000); in ir_lirc_decode()
92 sample = ev.pulse ? LIRC_PULSE(ev.duration / 1000) : in ir_lirc_decode()
93 LIRC_SPACE(ev.duration / 1000); in ir_lirc_decode()
95 TO_US(ev.duration), TO_STR(ev.pulse)); in ir_lirc_decode()
115 unsigned int duration = 0; /* signal duration in us */ in ir_lirc_transmit_ir() local
147 if (txbuf[i] > IR_MAX_DURATION / 1000 - duration || !txbuf[i]) { in ir_lirc_transmit_ir()
152 duration += txbuf[i]; in ir_lirc_transmit_ir()
159 for (duration = i = 0; i < ret; i++) in ir_lirc_transmit_ir()
160 duration += txbuf[i]; in ir_lirc_transmit_ir()
[all …]
Dir-rc5-decoder.c65 if (!geq_margin(ev.duration, RC5_UNIT, RC5_UNIT / 2)) in ir_rc5_decode()
70 data->state, TO_US(ev.duration), TO_STR(ev.pulse)); in ir_rc5_decode()
72 if (!geq_margin(ev.duration, RC5_UNIT, RC5_UNIT / 2)) in ir_rc5_decode()
87 if (!ev.pulse && geq_margin(ev.duration, RC5_TRAILER, RC5_UNIT / 2)) { in ir_rc5_decode()
92 if (!eq_margin(ev.duration, RC5_BIT_START, RC5_UNIT / 2)) in ir_rc5_decode()
115 if (!ev.pulse && geq_margin(ev.duration, RC5X_SPACE, RC5_UNIT / 2)) { in ir_rc5_decode()
182 data->state, data->count, TO_US(ev.duration), TO_STR(ev.pulse)); in ir_rc5_decode()
Dmeson-ir.c79 u32 duration; in meson_ir_irq() local
84 duration = readl(ir->reg + IR_DEC_REG1); in meson_ir_irq()
85 duration = (duration & REG1_TIME_IV_MASK) >> REG1_TIME_IV_SHIFT; in meson_ir_irq()
86 rawir.duration = US_TO_NS(duration * MESON_TRATE); in meson_ir_irq()
Drc-ir-raw.c86 TO_US(ev->duration), TO_STR(ev->pulse)); in ir_raw_event_store()
128 ev.duration = delta; in ir_raw_event_store_edge()
170 if (!dev->raw->this_ev.duration) in ir_raw_event_store_with_filter()
173 dev->raw->this_ev.duration += ev->duration; in ir_raw_event_store_with_filter()
181 dev->raw->this_ev.duration >= dev->timeout) in ir_raw_event_store_with_filter()
/drivers/net/wireless/iwlwifi/mvm/
Dtime-event.c339 te_data->end_jiffies = TU_TO_EXP_TIME(te_data->duration); in iwl_mvm_te_handle_notif()
510 le32_to_cpu(te_cmd->duration)); in iwl_mvm_time_event_send_add()
518 te_data->duration = le32_to_cpu(te_cmd->duration); in iwl_mvm_time_event_send_add()
561 u32 duration, u32 min_duration, in iwl_mvm_protect_session() argument
605 time_cmd.duration = cpu_to_le32(duration); in iwl_mvm_protect_session()
740 int duration, enum ieee80211_roc_type type) in iwl_mvm_start_p2p_roc() argument
783 time_cmd.max_frags = min(MSEC_TO_TU(duration)/50, TE_V2_FRAG_ENDLESS); in iwl_mvm_start_p2p_roc()
784 time_cmd.max_delay = cpu_to_le32(MSEC_TO_TU(duration/2)); in iwl_mvm_start_p2p_roc()
785 time_cmd.duration = cpu_to_le32(MSEC_TO_TU(duration)); in iwl_mvm_start_p2p_roc()
846 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);
232 u32 duration, u32 apply_time);
/drivers/char/tpm/
Dtpm-interface.c312 int duration = 0; in tpm_calc_ordinal_duration() local
320 duration = chip->vendor.duration[duration_idx]; in tpm_calc_ordinal_duration()
321 if (duration <= 0) in tpm_calc_ordinal_duration()
324 return duration; in tpm_calc_ordinal_duration()
533 goto duration; in tpm_get_timeouts()
582 duration: in tpm_get_timeouts()
598 duration_cap = &tpm_cmd.params.getcap_out.cap.duration; in tpm_get_timeouts()
599 chip->vendor.duration[TPM_SHORT] = in tpm_get_timeouts()
601 chip->vendor.duration[TPM_MEDIUM] = in tpm_get_timeouts()
603 chip->vendor.duration[TPM_LONG] = in tpm_get_timeouts()
[all …]
/drivers/media/usb/au0828/
Dau0828-input.c186 rawir.duration = NEC_START_PULSE; in au0828_get_key_au8522()
189 rawir.duration); in au0828_get_key_au8522()
192 rawir.duration = RC5_START_PULSE; in au0828_get_key_au8522()
195 rawir.duration); in au0828_get_key_au8522()
202 rawir.duration = AU8522_UNIT * width; in au0828_get_key_au8522()
205 rawir.duration); in au0828_get_key_au8522()
215 rawir.duration = AU8522_UNIT * width; in au0828_get_key_au8522()
218 rawir.duration); in au0828_get_key_au8522()
/drivers/leds/trigger/
Dledtrig-transient.c34 unsigned long duration; member
82 transient_data->duration != 0) { in transient_activate_store()
88 jiffies + transient_data->duration); in transient_activate_store()
105 return sprintf(buf, "%lu\n", transient_data->duration); in transient_duration_show()
120 transient_data->duration = state; in transient_duration_store()
156 static DEVICE_ATTR(duration, 0644, transient_duration_show,
/drivers/staging/vt6655/
Drxtx.h106 __le16 duration; member
112 __le16 duration; member
145 __le16 duration; member
152 __le16 duration; member
190 __le16 duration; member
/drivers/cpuidle/governors/
Dmenu.c142 static inline int which_bucket(unsigned int duration, unsigned long nr_iowaiters) in which_bucket() argument
155 if (duration < 10) in which_bucket()
157 if (duration < 100) in which_bucket()
159 if (duration < 1000) in which_bucket()
161 if (duration < 10000) in which_bucket()
163 if (duration < 100000) in which_bucket()
/drivers/net/wireless/iwlegacy/
D3945-rs.c190 u32 packet_count, duration, pps; in il3945_bg_rate_scale_flush() local
204 duration = in il3945_bg_rate_scale_flush()
207 D_RATE("Tx'd %d packets in %dms\n", packet_count, duration); in il3945_bg_rate_scale_flush()
210 if (duration) in il3945_bg_rate_scale_flush()
211 pps = (packet_count * 1000) / duration; in il3945_bg_rate_scale_flush()
216 duration = (IL_AVERAGE_PACKETS * 1000) / pps; in il3945_bg_rate_scale_flush()
217 if (duration < RATE_FLUSH_MIN) in il3945_bg_rate_scale_flush()
218 duration = RATE_FLUSH_MIN; in il3945_bg_rate_scale_flush()
219 else if (duration > RATE_FLUSH_MAX) in il3945_bg_rate_scale_flush()
220 duration = RATE_FLUSH_MAX; in il3945_bg_rate_scale_flush()
[all …]
/drivers/net/wireless/ath/ath10k/
Dthermal.c138 u32 period, duration, enabled; in ath10k_thermal_set_throttling() local
150 duration = (period * ar->thermal.throttle_state) / 100; in ath10k_thermal_set_throttling()
151 enabled = duration ? 1 : 0; in ath10k_thermal_set_throttling()
153 ret = ath10k_wmi_pdev_set_quiet_mode(ar, period, duration, in ath10k_thermal_set_throttling()
158 period, duration, enabled, ret); in ath10k_thermal_set_throttling()
/drivers/staging/vt6656/
Drxtx.h103 __le16 duration; member
110 __le16 duration; member
146 __le16 duration; member
154 __le16 duration; member
243 __le16 duration; member
/drivers/net/fddi/skfp/
Dhwt.c227 void hwt_wait_time(struct s_smc *smc, u_long start, long int duration) in hwt_wait_time() argument
242 if (interval > duration) { in hwt_wait_time()
248 } while (diff <= duration) ; in hwt_wait_time()
265 } while (diff <= duration) ; in hwt_wait_time()
/drivers/md/bcache/
Dutil.c191 uint64_t now, duration, last; in bch_time_stats_update() local
196 duration = time_after64(now, start_time) in bch_time_stats_update()
201 stats->max_duration = max(stats->max_duration, duration); in bch_time_stats_update()
204 ewma_add(stats->average_duration, duration, 8, 8); in bch_time_stats_update()
211 stats->average_duration = duration << 8; in bch_time_stats_update()

1234567