Lines Matching defs:dev
52 static void extract_info(struct udev_device *dev, const char *devpath, bool test) {
71 udev_builtin_add_property(dev, test, "ID_INPUT_WIDTH_MM", width);
72 udev_builtin_add_property(dev, test, "ID_INPUT_HEIGHT_MM", height);
77 * @param dev udev_device
81 static void get_cap_mask(struct udev_device *dev,
133 static bool test_pointers(struct udev_device *dev,
168 udev_builtin_add_property(dev, test, "ID_INPUT_ACCELEROMETER", "1");
220 udev_builtin_add_property(dev, test, "ID_INPUT_POINTINGSTICK", "1");
222 udev_builtin_add_property(dev, test, "ID_INPUT_MOUSE", "1");
224 udev_builtin_add_property(dev, test, "ID_INPUT_TOUCHPAD", "1");
226 udev_builtin_add_property(dev, test, "ID_INPUT_TOUCHSCREEN", "1");
228 udev_builtin_add_property(dev, test, "ID_INPUT_JOYSTICK", "1");
230 udev_builtin_add_property(dev, test, "ID_INPUT_TABLET", "1");
236 static bool test_key(struct udev_device *dev,
269 udev_builtin_add_property(dev, test, "ID_INPUT_KEY", "1");
277 udev_builtin_add_property(dev, test, "ID_INPUT_KEYBOARD", "1");
284 static int builtin_input_id(struct udev_device *dev, int argc, char *argv[], bool test) {
295 assert(dev);
299 pdev = dev;
306 udev_builtin_add_property(dev, test, "ID_INPUT", "1");
307 get_cap_mask(dev, pdev, "capabilities/ev", bitmask_ev, sizeof(bitmask_ev), test);
308 get_cap_mask(dev, pdev, "capabilities/abs", bitmask_abs, sizeof(bitmask_abs), test);
309 get_cap_mask(dev, pdev, "capabilities/rel", bitmask_rel, sizeof(bitmask_rel), test);
310 get_cap_mask(dev, pdev, "capabilities/key", bitmask_key, sizeof(bitmask_key), test);
311 get_cap_mask(dev, pdev, "properties", bitmask_props, sizeof(bitmask_props), test);
312 is_pointer = test_pointers(dev, bitmask_ev, bitmask_abs,
315 is_key = test_key(dev, bitmask_ev, bitmask_key, test);
319 udev_builtin_add_property(dev, test, "ID_INPUT_KEY", "1");
322 devnode = udev_device_get_devnode(dev);
323 sysname = udev_device_get_sysname(dev);
325 extract_info(dev, devnode, test);