Lines Matching full:input_dev
1172 * struct input_dev - represents an input device
1253 struct input_dev {
1277 int (*setkeycode)(struct input_dev *dev,
1280 int (*getkeycode)(struct input_dev *dev,
1302 int (*open)(struct input_dev *dev);
1303 void (*close)(struct input_dev *dev);
1304 int (*flush)(struct input_dev *dev, struct file *file);
1305 int (*event)(struct input_dev *dev, unsigned int type, unsigned int code, int value);
1322 #define to_input_dev(d) container_of(d, struct input_dev, dev)
1418 bool (*match)(struct input_handler *handler, struct input_dev *dev);
1419 int (*connect)(struct input_handler *handler, struct input_dev *dev, const struct input_device_id *id);
1452 struct input_dev *dev;
1459 struct input_dev *input_allocate_device(void);
1460 void input_free_device(struct input_dev *dev);
1462 static inline struct input_dev *input_get_device(struct input_dev *dev)
1467 static inline void input_put_device(struct input_dev *dev)
1473 static inline void *input_get_drvdata(struct input_dev *dev)
1478 static inline void input_set_drvdata(struct input_dev *dev, void *data)
1483 int __must_check input_register_device(struct input_dev *);
1484 void input_unregister_device(struct input_dev *);
1486 void input_reset_device(struct input_dev *);
1505 void input_event(struct input_dev *dev, unsigned int type, unsigned int code, int value);
1508 static inline void input_report_key(struct input_dev *dev, unsigned int code, int value)
1513 static inline void input_report_rel(struct input_dev *dev, unsigned int code, int value)
1518 static inline void input_report_abs(struct input_dev *dev, unsigned int code, int value)
1523 static inline void input_report_ff_status(struct input_dev *dev, unsigned int code, int value)
1528 static inline void input_report_switch(struct input_dev *dev, unsigned int code, int value)
1533 static inline void input_sync(struct input_dev *dev)
1538 static inline void input_mt_sync(struct input_dev *dev)
1543 void input_set_capability(struct input_dev *dev, unsigned int type, unsigned int code);
1555 static inline void input_set_events_per_packet(struct input_dev *dev, int n_events)
1560 void input_alloc_absinfo(struct input_dev *dev);
1561 void input_set_abs_params(struct input_dev *dev, unsigned int axis,
1565 static inline int input_abs_get_##_suffix(struct input_dev *dev, \
1571 static inline void input_abs_set_##_suffix(struct input_dev *dev, \
1589 int input_get_keycode(struct input_dev *dev, struct input_keymap_entry *ke);
1590 int input_set_keycode(struct input_dev *dev,
1606 * device (not emulated like ones in input_dev->ffbit)
1623 int (*upload)(struct input_dev
1625 int (*erase)(struct input_dev *dev, int effect_id);
1627 int (*playback)(struct input_dev *dev, int effect_id, int value);
1628 void (*set_gain)(struct input_dev *dev, u16 gain);
1629 void (*set_autocenter)(struct input_dev *dev, u16 magnitude);
1644 int input_ff_create(struct input_dev *dev, unsigned int max_effects);
1645 void input_ff_destroy(struct input_dev *dev);
1647 int input_ff_event(struct input_dev *dev, unsigned int type, unsigned int code, int value);
1649 int input_ff_upload(struct input_dev *dev, struct ff_effect *effect, struct file *file);
1650 int input_ff_erase(struct input_dev *dev, int effect_id, struct file *file);
1652 int input_ff_create_memless(struct input_dev *dev, void *data,
1653 int (*play_effect)(struct input_dev *, void *, struct ff_effect *));