Lines Matching refs:kernel_ir
45 struct cx23885_kernel_ir *kernel_ir = dev->kernel_ir; in cx23885_input_process_measurements() local
60 ir_raw_event_store(kernel_ir->rc, in cx23885_input_process_measurements()
67 ir_raw_event_reset(kernel_ir->rc); in cx23885_input_process_measurements()
69 ir_raw_event_handle(kernel_ir->rc); in cx23885_input_process_measurements()
223 struct cx23885_kernel_ir *kernel_ir = rc->priv; in cx23885_input_ir_open() local
225 if (kernel_ir->cx == NULL) in cx23885_input_ir_open()
228 return cx23885_input_ir_start(kernel_ir->cx); in cx23885_input_ir_open()
261 struct cx23885_kernel_ir *kernel_ir = rc->priv; in cx23885_input_ir_close() local
263 if (kernel_ir->cx != NULL) in cx23885_input_ir_close()
264 cx23885_input_ir_stop(kernel_ir->cx); in cx23885_input_ir_close()
269 struct cx23885_kernel_ir *kernel_ir; in cx23885_input_init() local
339 kernel_ir = kzalloc(sizeof(struct cx23885_kernel_ir), GFP_KERNEL); in cx23885_input_init()
340 if (kernel_ir == NULL) in cx23885_input_init()
343 kernel_ir->cx = dev; in cx23885_input_init()
344 kernel_ir->name = kasprintf(GFP_KERNEL, "cx23885 IR (%s)", in cx23885_input_init()
346 if (!kernel_ir->name) { in cx23885_input_init()
351 kernel_ir->phys = kasprintf(GFP_KERNEL, "pci-%s/ir0", in cx23885_input_init()
353 if (!kernel_ir->phys) { in cx23885_input_init()
365 kernel_ir->rc = rc; in cx23885_input_init()
366 rc->device_name = kernel_ir->name; in cx23885_input_init()
367 rc->input_phys = kernel_ir->phys; in cx23885_input_init()
379 rc->priv = kernel_ir; in cx23885_input_init()
386 dev->kernel_ir = kernel_ir; in cx23885_input_init()
395 dev->kernel_ir = NULL; in cx23885_input_init()
398 kfree(kernel_ir->phys); in cx23885_input_init()
400 kfree(kernel_ir->name); in cx23885_input_init()
402 kfree(kernel_ir); in cx23885_input_init()
411 if (dev->kernel_ir == NULL) in cx23885_input_fini()
413 rc_unregister_device(dev->kernel_ir->rc); in cx23885_input_fini()
414 kfree(dev->kernel_ir->phys); in cx23885_input_fini()
415 kfree(dev->kernel_ir->name); in cx23885_input_fini()
416 kfree(dev->kernel_ir); in cx23885_input_fini()
417 dev->kernel_ir = NULL; in cx23885_input_fini()