Lines Matching refs:mantis
23 void mantis_input_process(struct mantis_pci *mantis, int scancode) in mantis_input_process() argument
25 if (mantis->rc) in mantis_input_process()
26 rc_keydown(mantis->rc, RC_PROTO_UNKNOWN, scancode, 0); in mantis_input_process()
29 int mantis_input_init(struct mantis_pci *mantis) in mantis_input_init() argument
41 snprintf(mantis->device_name, sizeof(mantis->device_name), in mantis_input_init()
42 "Mantis %s IR receiver", mantis->hwconfig->model_name); in mantis_input_init()
43 snprintf(mantis->input_phys, sizeof(mantis->input_phys), in mantis_input_init()
44 "pci-%s/ir0", pci_name(mantis->pdev)); in mantis_input_init()
46 dev->device_name = mantis->device_name; in mantis_input_init()
47 dev->input_phys = mantis->input_phys; in mantis_input_init()
49 dev->input_id.vendor = mantis->vendor_id; in mantis_input_init()
50 dev->input_id.product = mantis->device_id; in mantis_input_init()
53 dev->map_name = mantis->rc_map_name ? : RC_MAP_EMPTY; in mantis_input_init()
54 dev->dev.parent = &mantis->pdev->dev; in mantis_input_init()
62 mantis->rc = dev; in mantis_input_init()
72 void mantis_input_exit(struct mantis_pci *mantis) in mantis_input_exit() argument
74 rc_unregister_device(mantis->rc); in mantis_input_exit()