Lines Matching full:ir

13 static void smi_ir_enableInterrupt(struct smi_rc *ir)  in smi_ir_enableInterrupt()  argument
15 struct smi_dev *dev = ir->dev; in smi_ir_enableInterrupt()
20 static void smi_ir_disableInterrupt(struct smi_rc *ir) in smi_ir_disableInterrupt() argument
22 struct smi_dev *dev = ir->dev; in smi_ir_disableInterrupt()
27 static void smi_ir_clearInterrupt(struct smi_rc *ir) in smi_ir_clearInterrupt() argument
29 struct smi_dev *dev = ir->dev; in smi_ir_clearInterrupt()
34 static void smi_ir_stop(struct smi_rc *ir) in smi_ir_stop() argument
36 struct smi_dev *dev = ir->dev; in smi_ir_stop()
38 smi_ir_disableInterrupt(ir); in smi_ir_stop()
59 static void smi_ir_decode(struct smi_rc *ir) in smi_ir_decode() argument
61 struct smi_dev *dev = ir->dev; in smi_ir_decode()
62 struct rc_dev *rc_dev = ir->rc_dev; in smi_ir_decode()
82 ir->irData[index * 4 + 0] = (u8)(data); in smi_ir_decode()
83 ir->irData[index * 4 + 1] = (u8)(data >> 8); in smi_ir_decode()
84 ir->irData[index * 4 + 2] = (u8)(data >> 16); in smi_ir_decode()
85 ir->irData[index * 4 + 3] = (u8)(data >> 24); in smi_ir_decode()
87 smi_raw_process(rc_dev, ir->irData, ir_count); in smi_ir_decode()
104 /* ir functions call by main driver.*/
105 int smi_ir_irq(struct smi_rc *ir, u32 int_status) in smi_ir_irq() argument
110 smi_ir_disableInterrupt(ir); in smi_ir_irq()
111 smi_ir_clearInterrupt(ir); in smi_ir_irq()
112 smi_ir_decode(ir); in smi_ir_irq()
113 smi_ir_enableInterrupt(ir); in smi_ir_irq()
119 void smi_ir_start(struct smi_rc *ir) in smi_ir_start() argument
121 struct smi_dev *dev = ir->dev; in smi_ir_start()
129 smi_ir_enableInterrupt(ir); in smi_ir_start()
136 struct smi_rc *ir = &dev->ir; in smi_ir_init() local
143 snprintf(ir->device_name, sizeof(ir->device_name), "IR (%s)", in smi_ir_init()
145 snprintf(ir->input_phys, sizeof(ir->input_phys), "pci-%s/ir0", in smi_ir_init()
150 rc_dev->input_phys = ir->input_phys; in smi_ir_init()
151 rc_dev->device_name = ir->device_name; in smi_ir_init()
162 ir->rc_dev = rc_dev; in smi_ir_init()
163 ir->dev = dev; in smi_ir_init()
165 smi_ir_disableInterrupt(ir); in smi_ir_init()
179 struct smi_rc *ir = &dev->ir; in smi_ir_exit() local
180 struct rc_dev *rc_dev = ir->rc_dev; in smi_ir_exit()
183 smi_ir_stop(ir); in smi_ir_exit()
184 ir->rc_dev = NULL; in smi_ir_exit()