Go to the documentation of this file.
21 #include <linux/time.h>
26 #define IR_dprintk(level, fmt, ...) \
28 if (rc_core_debug >= level) \
29 pr_debug("%s: " fmt, __func__, ##__VA_ARGS__); \
129 #define to_rc_dev(d) container_of(d, struct rc_dev, dev)
178 #define DEFINE_IR_RAW_EVENT(event) \
179 struct ir_raw_event event = { \
180 { .duration = 0 } , \
184 .carrier_report = 0 }
186 static inline void init_ir_raw_event(
struct ir_raw_event *ev)
188 memset(ev, 0,
sizeof(*ev));
191 #define IR_MAX_DURATION 0xFFFFFFFF
192 #define US_TO_NS(usec) ((usec) * 1000)
193 #define MS_TO_US(msec) ((msec) * 1000)
194 #define MS_TO_NS(msec) ((msec) * 1000 * 1000)
203 static inline void ir_raw_event_reset(
struct rc_dev *
dev)
224 }
while (mask >>= 1);