Lines Matching refs:ref

1735 	struct v4l2_ctrl_ref *ref, *next_ref;  in v4l2_ctrl_handler_free()  local
1744 list_for_each_entry_safe(ref, next_ref, &hdl->ctrl_refs, node) { in v4l2_ctrl_handler_free()
1745 list_del(&ref->node); in v4l2_ctrl_handler_free()
1746 kfree(ref); in v4l2_ctrl_handler_free()
1772 struct v4l2_ctrl_ref *ref; in find_private_ref() local
1775 list_for_each_entry(ref, &hdl->ctrl_refs, node) { in find_private_ref()
1778 if (V4L2_CTRL_ID2CLASS(ref->ctrl->id) == V4L2_CTRL_CLASS_USER && in find_private_ref()
1779 V4L2_CTRL_DRIVER_PRIV(ref->ctrl->id)) { in find_private_ref()
1780 if (!ref->ctrl->is_int) in find_private_ref()
1783 return ref; in find_private_ref()
1793 struct v4l2_ctrl_ref *ref; in find_ref() local
1808 ref = hdl->buckets ? hdl->buckets[bucket] : NULL; in find_ref()
1809 while (ref && ref->ctrl->id != id) in find_ref()
1810 ref = ref->next; in find_ref()
1812 if (ref) in find_ref()
1813 hdl->cached = ref; /* cache it! */ in find_ref()
1814 return ref; in find_ref()
1821 struct v4l2_ctrl_ref *ref = NULL; in find_ref_lock() local
1825 ref = find_ref(hdl, id); in find_ref_lock()
1828 return ref; in find_ref_lock()
1834 struct v4l2_ctrl_ref *ref = find_ref_lock(hdl, id); in v4l2_ctrl_find() local
1836 return ref ? ref->ctrl : NULL; in v4l2_ctrl_find()
1844 struct v4l2_ctrl_ref *ref; in handler_new_ref() local
1889 list_for_each_entry(ref, &hdl->ctrl_refs, node) { in handler_new_ref()
1890 if (ref->ctrl->id < id) in handler_new_ref()
1893 if (ref->ctrl->id == id) { in handler_new_ref()
1897 list_add(&new_ref->node, ref->node.prev); in handler_new_ref()
2237 struct v4l2_ctrl_ref *ref; in v4l2_ctrl_add_handler() local
2246 list_for_each_entry(ref, &add->ctrl_refs, node) { in v4l2_ctrl_add_handler()
2247 struct v4l2_ctrl *ctrl = ref->ctrl; in v4l2_ctrl_add_handler()
2482 struct v4l2_ctrl_ref *ref; in v4l2_query_ext_ctrl() local
2491 ref = find_ref(hdl, id); in v4l2_query_ext_ctrl()
2511 ref = NULL; /* Yes, so there is no next control */ in v4l2_query_ext_ctrl()
2512 } else if (ref) { in v4l2_query_ext_ctrl()
2515 list_for_each_entry_continue(ref, &hdl->ctrl_refs, node) { in v4l2_query_ext_ctrl()
2517 ref->ctrl->type >= V4L2_CTRL_COMPOUND_TYPES; in v4l2_query_ext_ctrl()
2518 if (id < ref->ctrl->id && in v4l2_query_ext_ctrl()
2522 if (&ref->node == &hdl->ctrl_refs) in v4l2_query_ext_ctrl()
2523 ref = NULL; in v4l2_query_ext_ctrl()
2529 list_for_each_entry(ref, &hdl->ctrl_refs, node) { in v4l2_query_ext_ctrl()
2531 ref->ctrl->type >= V4L2_CTRL_COMPOUND_TYPES; in v4l2_query_ext_ctrl()
2532 if (id < ref->ctrl->id && in v4l2_query_ext_ctrl()
2536 if (&ref->node == &hdl->ctrl_refs) in v4l2_query_ext_ctrl()
2537 ref = NULL; in v4l2_query_ext_ctrl()
2542 if (!ref) in v4l2_query_ext_ctrl()
2545 ctrl = ref->ctrl; in v4l2_query_ext_ctrl()
2720 struct v4l2_ctrl_ref *ref; in prepare_ext_ctrls() local
2733 ref = find_ref_lock(hdl, id); in prepare_ext_ctrls()
2734 if (ref == NULL) in prepare_ext_ctrls()
2736 ctrl = ref->ctrl; in prepare_ext_ctrls()
2743 ref = find_ref_lock(hdl, ctrl->cluster[0]->id); in prepare_ext_ctrls()
2757 h->mref = ref; in prepare_ext_ctrls()