Lines Matching refs:idev
102 struct input_dev *idev; in probe_maple_controller() local
106 idev = input_allocate_device(); in probe_maple_controller()
107 if (!pad || !idev) { in probe_maple_controller()
112 pad->dev = idev; in probe_maple_controller()
115 idev->open = dc_pad_open; in probe_maple_controller()
116 idev->close = dc_pad_close; in probe_maple_controller()
121 __set_bit(btn_bit[i], idev->keybit); in probe_maple_controller()
123 __set_bit(abs_bit[i], idev->absbit); in probe_maple_controller()
127 if (idev->keybit[BIT_WORD(BTN_JOYSTICK)]) in probe_maple_controller()
128 idev->evbit[0] |= BIT_MASK(EV_KEY); in probe_maple_controller()
130 if (idev->absbit[0]) in probe_maple_controller()
131 idev->evbit[0] |= BIT_MASK(EV_ABS); in probe_maple_controller()
134 input_set_abs_params(idev, i, 0, 255, 0, 0); in probe_maple_controller()
137 input_set_abs_params(idev, i, 1, -1, 0, 0); in probe_maple_controller()
139 idev->dev.platform_data = pad; in probe_maple_controller()
140 idev->dev.parent = &mdev->dev; in probe_maple_controller()
141 idev->name = mdev->product_name; in probe_maple_controller()
142 idev->id.bustype = BUS_HOST; in probe_maple_controller()
144 error = input_register_device(idev); in probe_maple_controller()
154 input_free_device(idev); in probe_maple_controller()