Lines Matching refs:controls

377  * For controls of type UVC_CTRL_DATA_TYPE_BITMASK, the UVC control value is
381 * control, which includes all controls whose type isn't UVC_CTRL_DATA_TYPE_ENUM
913 ctrl = &entity->controls[i];
1000 * GET_RES is mandatory for XU controls, but some
1145 * For set operations on slave controls, check if the master's value is set to
1146 * manual, either in the others controls set in the same ioctl call, or from
1185 if (ctrls->controls[i].id == mapping->master_id)
1186 return ctrls->controls[i].value ==
1221 * Some controls, like CT_AE_MODE_CONTROL, use GET_RES to represent
1222 * the number of bits supported. Those controls do not list GET_MAX
1383 * Mapping V4L2 controls to UVC controls can be straightforward if done well.
1384 * Most of the UVC controls exist in V4L2, and can be mapped directly. Some
1386 * Balance V4L2 controls use the White Balance Component UVC control) or
1388 * table for the controls that can be mapped directly, and handle the others
1488 * @handle can be NULL for asynchronous events related to auto-update controls,
1740 * To make extended set operations as atomic as the hardware allows, controls
1752 * After processing all controls in the transaction, uvc_ctrl_commit or
1754 * hardware or revert them. When applying changes, all controls marked as
1756 * cleared. When reverting controls, the control data field
1758 * (UVC_CTRL_DATA_BACKUP) for all dirty controls. Both functions release the
1777 ctrl = &entity->controls[i];
1782 * Reset the loaded flag for auto-update controls that were
1785 * controls to prevent uvc_ctrl_set from setting bits not
1832 __uvc_find_control(entity, ctrls->controls[i].id, &mapping,
1863 uvc_ctrl_send_events(handle, ctrls->controls, ctrls->count);
1961 * UVC controls that support it.
2011 * Dynamic controls
2088 * Query control information (size and flags) for XU controls.
2198 ctrl = &entity->controls[i];
2295 * Restore control values after resume, skipping controls that haven't been
2299 * - Don't restore modified controls that are back to their default value.
2310 /* Walk the entities list and restore controls when possible. */
2314 ctrl = &entity->controls[i];
2465 ctrl = &entity->controls[i];
2481 /* Perform delayed initialization of XU controls */
2525 * Prune an entity of its bogus controls using a blacklist. Bogus controls
2550 u8 *controls;
2556 controls = entity->processing.bmControls;
2563 controls = entity->camera.bmControls;
2576 !uvc_test_bit(controls, blacklist[i].index))
2583 uvc_clear_bit(controls, blacklist[i].index);
2598 * XU controls initialization requires querying the device for control
2600 * repeatedly in a tight loop, delay XU controls initialization until
2616 * GET_INFO on standard controls.
2674 * Initialize device controls.
2681 /* Walk the entities list and instantiate controls */
2701 /* Remove bogus/blacklisted controls */
2704 /* Count supported controls and allocate the controls array */
2709 entity->controls = kcalloc(ncontrols, sizeof(*ctrl),
2711 if (entity->controls == NULL)
2715 /* Initialize all supported controls */
2716 ctrl = entity->controls;
2749 * Cleanup device controls.
2774 /* Free controls and control mappings for all entities. */
2777 struct uvc_control *ctrl = &entity->controls[i];
2786 kfree(entity->controls);