Lines Matching refs:idev
127 struct input_dev *idev; in fdtv_register_rc() local
130 idev = input_allocate_device(); in fdtv_register_rc()
131 if (!idev) in fdtv_register_rc()
134 fdtv->remote_ctrl_dev = idev; in fdtv_register_rc()
135 idev->name = "FireDTV remote control"; in fdtv_register_rc()
136 idev->dev.parent = dev; in fdtv_register_rc()
137 idev->evbit[0] = BIT_MASK(EV_KEY); in fdtv_register_rc()
138 idev->keycode = kmemdup(keytable, sizeof(keytable), GFP_KERNEL); in fdtv_register_rc()
139 if (!idev->keycode) { in fdtv_register_rc()
143 idev->keycodesize = sizeof(keytable[0]); in fdtv_register_rc()
144 idev->keycodemax = ARRAY_SIZE(keytable); in fdtv_register_rc()
147 set_bit(keytable[i], idev->keybit); in fdtv_register_rc()
149 err = input_register_device(idev); in fdtv_register_rc()
156 kfree(idev->keycode); in fdtv_register_rc()
158 input_free_device(idev); in fdtv_register_rc()
171 struct input_dev *idev = fdtv->remote_ctrl_dev; in fdtv_handle_rc() local
172 u16 *keycode = idev->keycode; in fdtv_handle_rc()
189 input_report_key(idev, code, 1); in fdtv_handle_rc()
190 input_sync(idev); in fdtv_handle_rc()
191 input_report_key(idev, code, 0); in fdtv_handle_rc()
192 input_sync(idev); in fdtv_handle_rc()