Lines Matching defs:device

23 #include <linux/device.h>
432 * @dev: device that generated the event
440 * NOTE: input_event() may be safely used right after input device was
468 * Similar to input_event() but will ignore event if device is
470 * the device.
495 * @dev: the input device emitting absolute events
512 * device with ABS bits but without absinfo.
540 * input_grab_device - grabs device for exclusive use
541 * @handle: input handle that wants to own the device
543 * When a device is grabbed by an input handle all events generated by
544 * the device are delivered only to this handle. Also events injected
545 * by other input handles are ignored while device is grabbed.
588 * input_release_device - release previously grabbed device
589 * @handle: input handle that owns the device
591 * Releases previously grabbed device so that other input handles can
593 * to the device have their start() method called so they have a change
594 * to synchronize device state with the rest of the system.
607 * input_open_device - open input device
608 * @handle: handle through which device is being accessed
611 * want to start receive events from given input device.
678 * input_close_device - close input device
679 * @handle: handle through which device is being accessed
682 * want to stop receive events from given input device.
736 * Prepare device for unregistering
743 * Mark device as going away. Note that we take dev->mutex here
913 * @dev: input device which keymap is being queried
934 * @dev: input device which keymap is being updated
1047 pr_err("failed to attach handler %s to device %s, error: %d\n",
1343 static ssize_t input_dev_show_##name(struct device *dev, \
1406 static ssize_t input_dev_show_modalias(struct device *dev,
1422 static ssize_t input_dev_show_properties(struct device *dev,
1447 static ssize_t input_dev_show_id_##name(struct device *dev, \
1504 static ssize_t input_dev_show_cap_##bm(struct device *dev, \
1552 static void input_dev_release(struct device *device)
1554 struct input_dev *dev = to_input_dev(device);
1568 * device bitfields.
1627 static int input_dev_uevent(struct device *device, struct kobj_uevent_env *env)
1629 struct input_dev *dev = to_input_dev(device);
1698 * input_reset_device() - reset/restore the state of input device
1699 * @dev: input device whose state needs to be reset
1701 * This function tries to reset the state of an opened input device and
1721 static int input_dev_suspend(struct device *dev)
1741 static int input_dev_resume(struct device *dev)
1755 static int input_dev_freeze(struct device *dev)
1772 static int input_dev_poweroff(struct device *dev)
1804 static char *input_devnode(struct device *dev, umode_t *mode)
1816 * input_allocate_device - allocate memory for new input device
1854 static int devm_input_device_match(struct device *dev, void *res, void *data)
1861 static void devm_input_device_release(struct device *dev, void *res)
1872 * devm_input_allocate_device - allocate managed input device
1873 * @dev: device owning the input device being created
1878 * freed as it will be done automatically when owner device unbinds from
1879 * its driver (or binding fails). Once managed input device is allocated,
1881 * input device. There are no special devm_input_device_[un]register()
1883 * should you need them. In most cases however, managed input device need
1886 * NOTE: the owner device is set up as parent of input device and users
1889 struct input_dev *devm_input_allocate_device(struct device *dev)
1917 * @dev: input device to free
1920 * was not called yet or if it failed. Once device was registered
1922 * reference to the device is dropped.
1926 * NOTE: If there are references to the input device then memory
1944 * @dev: input device to set timestamp for
1967 * @dev: input device to get timestamp from
1983 * input_set_capability - mark device as capable of a certain event
1984 * @dev: device that is capable of emitting or accepting event
2126 static void devm_input_device_unregister(struct device *dev, void *res)
2131 dev_dbg(dev, "%s: unregistering device %s\n",
2138 * @dev: input device
2142 * Enable software autorepeat on the input device.
2153 * input_register_device - register device with input core
2154 * @dev: device to be registered
2156 * This function registers device with input core. The device must be
2159 * If function fails the device must be freed with input_free_device().
2160 * Once device has been successfully registered it can be unregistered
2169 * registered managed input device is first unregistered, but stays in
2171 * not be delivered anywhere). The freeing of managed input device will
2172 * happen later, when devres stack is unwound to the point where device
2185 "Absolute device without dev->absinfo, refusing to register\n");
2198 /* Every input device generates EV_SYN/SYN_REPORT events. */
2240 dev->name ? dev->name : "Unspecified device",
2276 * input_unregister_device - unregister previously registered device
2277 * @dev: device to be unregistered
2279 * This function unregisters an input device. Once device is unregistered
2393 * This function puts a new input handle onto device's
2444 * This function removes input handle from device's
2473 * This function allocates a new device minor for from input major namespace.