Home
last modified time | relevance | path

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

1234567

/drivers/media/rc/
Dstreamzap.c130 (rawir.pulse ? "pulse" : "space"), rawir.duration); in sz_push()
149 rawir.duration = IR_MAX_DURATION; in sz_push_full_pulse()
151 rawir.duration = delta; in sz_push_full_pulse()
152 rawir.duration -= sz->sum; in sz_push_full_pulse()
153 rawir.duration = US_TO_NS(rawir.duration); in sz_push_full_pulse()
154 rawir.duration = (rawir.duration > IR_MAX_DURATION) ? in sz_push_full_pulse()
155 IR_MAX_DURATION : rawir.duration; in sz_push_full_pulse()
164 rawir.duration = ((int) value) * SZ_RESOLUTION; in sz_push_full_pulse()
165 rawir.duration += SZ_RESOLUTION / 2; in sz_push_full_pulse()
166 sz->sum += rawir.duration; in sz_push_full_pulse()
[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-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-nec-decoder.c63 data->state, TO_US(ev.duration), TO_STR(ev.pulse)); in ir_nec_decode()
71 if (eq_margin(ev.duration, NEC_HEADER_PULSE, NEC_UNIT * 2)) { in ir_nec_decode()
74 } else if (eq_margin(ev.duration, NECX_HEADER_PULSE, NEC_UNIT / 2)) in ir_nec_decode()
87 if (eq_margin(ev.duration, NEC_HEADER_SPACE, NEC_UNIT)) { in ir_nec_decode()
90 } else if (eq_margin(ev.duration, NEC_REPEAT_SPACE, NEC_UNIT / 2)) { in ir_nec_decode()
107 if (!eq_margin(ev.duration, NEC_BIT_PULSE, NEC_UNIT / 2)) in ir_nec_decode()
118 geq_margin(ev.duration, in ir_nec_decode()
129 if (eq_margin(ev.duration, NEC_BIT_1_SPACE, NEC_UNIT / 2)) in ir_nec_decode()
131 else if (!eq_margin(ev.duration, NEC_BIT_0_SPACE, NEC_UNIT / 2)) in ir_nec_decode()
146 if (!eq_margin(ev.duration, NEC_TRAILER_PULSE, NEC_UNIT / 2)) in ir_nec_decode()
[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()
153 } else if (geq_margin(ev.duration, XMP_HALFFRAME_SPACE, XMP_NIBBLE_PREFIX)) { in ir_xmp_decode()
157 data->count, ev.duration); in ir_xmp_decode()
168 data->count, ev.duration); in ir_xmp_decode()
173 } else if (geq_margin(ev.duration, XMP_NIBBLE_PREFIX, XMP_UNIT)) { in ir_xmp_decode()
177 data->count, ev.duration); in ir_xmp_decode()
[all …]
Dir-sanyo-decoder.c70 data->state, TO_US(ev.duration), TO_STR(ev.pulse)); in ir_sanyo_decode()
78 if (eq_margin(ev.duration, SANYO_HEADER_PULSE, SANYO_UNIT / 2)) { in ir_sanyo_decode()
90 if (eq_margin(ev.duration, SANYO_HEADER_SPACE, SANYO_UNIT / 2)) { in ir_sanyo_decode()
101 if (!eq_margin(ev.duration, SANYO_BIT_PULSE, SANYO_UNIT / 2)) in ir_sanyo_decode()
111 if (!data->count && geq_margin(ev.duration, SANYO_REPEAT_SPACE, SANYO_UNIT / 2)) { in ir_sanyo_decode()
123 if (eq_margin(ev.duration, SANYO_BIT_1_SPACE, SANYO_UNIT / 2)) in ir_sanyo_decode()
125 else if (!eq_margin(ev.duration, SANYO_BIT_0_SPACE, SANYO_UNIT / 2)) in ir_sanyo_decode()
140 if (!eq_margin(ev.duration, SANYO_TRAILER_PULSE, SANYO_UNIT / 2)) in ir_sanyo_decode()
150 if (!geq_margin(ev.duration, SANYO_TRAILER_SPACE, SANYO_UNIT / 2)) in ir_sanyo_decode()
173 data->count, data->state, TO_US(ev.duration), TO_STR(ev.pulse)); in ir_sanyo_decode()
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()
163 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()
160 if (!eq_margin(ev.duration, RC6_TOGGLE_START, RC6_UNIT / 2)) in ir_rc6_decode()
169 !geq_margin(ev.duration, RC6_TOGGLE_END, RC6_UNIT / 2)) in ir_rc6_decode()
196 if (eq_margin(ev.duration, RC6_BIT_START, RC6_UNIT / 2)) { in ir_rc6_decode()
206 geq_margin(ev.duration, RC6_SUFFIX_SPACE, RC6_UNIT / 2)) { in ir_rc6_decode()
[all …]
Drc-core-priv.h140 static inline void decrease_duration(struct ir_raw_event *ev, unsigned duration) in decrease_duration() argument
142 if (duration > ev->duration) in decrease_duration()
143 ev->duration = 0; in decrease_duration()
145 ev->duration -= duration; in decrease_duration()
154 #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.c62 if (!geq_margin(ev.duration, RC5_UNIT, RC5_UNIT / 2)) in ir_rc5_decode()
67 data->state, TO_US(ev.duration), TO_STR(ev.pulse)); in ir_rc5_decode()
69 if (!geq_margin(ev.duration, RC5_UNIT, RC5_UNIT / 2)) in ir_rc5_decode()
84 if (!ev.pulse && geq_margin(ev.duration, RC5_TRAILER, RC5_UNIT / 2)) { in ir_rc5_decode()
89 if (!eq_margin(ev.duration, RC5_BIT_START, RC5_UNIT / 2)) in ir_rc5_decode()
112 if (!ev.pulse && geq_margin(ev.duration, RC5X_SPACE, RC5_UNIT / 2)) { in ir_rc5_decode()
179 data->state, data->count, TO_US(ev.duration), TO_STR(ev.pulse)); in ir_rc5_decode()
Dmeson-ir.c89 u32 duration; in meson_ir_irq() local
94 duration = readl(ir->reg + IR_DEC_REG1); in meson_ir_irq()
95 duration = (duration & REG1_TIME_IV_MASK) >> REG1_TIME_IV_SHIFT; in meson_ir_irq()
96 rawir.duration = US_TO_NS(duration * MESON_TRATE); in meson_ir_irq()
Drc-ir-raw.c85 TO_US(ev->duration), TO_STR(ev->pulse)); in ir_raw_event_store()
129 ev.duration = delta; in ir_raw_event_store_edge()
171 if (!dev->raw->this_ev.duration) in ir_raw_event_store_with_filter()
174 dev->raw->this_ev.duration += ev->duration; in ir_raw_event_store_with_filter()
182 dev->raw->this_ev.duration >= dev->timeout) in ir_raw_event_store_with_filter()
/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()
502 chip->duration[TPM_SHORT] = in tpm_get_timeouts()
504 chip->duration[TPM_MEDIUM] = in tpm_get_timeouts()
506 chip->duration[TPM_LONG] = in tpm_get_timeouts()
536 goto duration; in tpm_get_timeouts()
597 duration: in tpm_get_timeouts()
613 duration_cap = &tpm_cmd.params.getcap_out.cap.duration; in tpm_get_timeouts()
[all …]
/drivers/net/wireless/intel/iwlwifi/mvm/
Dtime-event.c340 te_data->end_jiffies = TU_TO_EXP_TIME(te_data->duration); in iwl_mvm_te_handle_notif()
504 le32_to_cpu(te_cmd->duration)); in iwl_mvm_time_event_send_add()
512 te_data->duration = le32_to_cpu(te_cmd->duration); in iwl_mvm_time_event_send_add()
555 u32 duration, u32 min_duration, in iwl_mvm_protect_session() argument
599 time_cmd.duration = cpu_to_le32(duration); in iwl_mvm_protect_session()
734 int duration, enum ieee80211_roc_type type) in iwl_mvm_start_p2p_roc() argument
777 time_cmd.max_frags = min(MSEC_TO_TU(duration)/50, TE_V2_FRAG_ENDLESS); in iwl_mvm_start_p2p_roc()
778 time_cmd.max_delay = cpu_to_le32(MSEC_TO_TU(duration/2)); in iwl_mvm_start_p2p_roc()
779 time_cmd.duration = cpu_to_le32(MSEC_TO_TU(duration)); in iwl_mvm_start_p2p_roc()
852 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);
/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 + msecs_to_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/net/wireless/intel/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/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/staging/vt6656/
Drxtx.h100 __le16 duration; member
107 __le16 duration; member
143 __le16 duration; member
151 __le16 duration; member
240 __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