Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/evdev/evdev_mt.c
Show First 20 Lines • Show All 95 Lines • ▼ Show 20 Lines | |||||
static void evdev_mt_support_st_compat(struct evdev_dev *); | static void evdev_mt_support_st_compat(struct evdev_dev *); | ||||
static void evdev_mt_send_st_compat(struct evdev_dev *); | static void evdev_mt_send_st_compat(struct evdev_dev *); | ||||
static void evdev_mt_send_autorel(struct evdev_dev *); | static void evdev_mt_send_autorel(struct evdev_dev *); | ||||
static void evdev_mt_replay_events(struct evdev_dev *); | static void evdev_mt_replay_events(struct evdev_dev *); | ||||
static inline int | static inline int | ||||
ffc_slot(struct evdev_dev *evdev, slotset_t slots) | ffc_slot(struct evdev_dev *evdev, slotset_t slots) | ||||
{ | { | ||||
return (ffs(~slots & (2U << MAXIMAL_MT_SLOT(evdev)) - 1) - 1); | return (ffs(~slots & ((2U << MAXIMAL_MT_SLOT(evdev)) - 1)) - 1); | ||||
} | } | ||||
void | void | ||||
evdev_mt_init(struct evdev_dev *evdev) | evdev_mt_init(struct evdev_dev *evdev) | ||||
{ | { | ||||
struct evdev_mt *mt; | struct evdev_mt *mt; | ||||
size_t size = offsetof(struct evdev_mt, slots); | size_t size = offsetof(struct evdev_mt, slots); | ||||
int slot, slots; | int slot, slots; | ||||
▲ Show 20 Lines • Show All 561 Lines • Show Last 20 Lines |