• Home
  • Raw
  • Download

Lines Matching refs:ref

1396 	struct v4l2_ctrl_ref *ref, *next_ref;  in v4l2_ctrl_handler_free()  local
1405 list_for_each_entry_safe(ref, next_ref, &hdl->ctrl_refs, node) { in v4l2_ctrl_handler_free()
1406 list_del(&ref->node); in v4l2_ctrl_handler_free()
1407 kfree(ref); in v4l2_ctrl_handler_free()
1433 struct v4l2_ctrl_ref *ref; in find_private_ref() local
1436 list_for_each_entry(ref, &hdl->ctrl_refs, node) { in find_private_ref()
1439 if (V4L2_CTRL_ID2CLASS(ref->ctrl->id) == V4L2_CTRL_CLASS_USER && in find_private_ref()
1440 V4L2_CTRL_DRIVER_PRIV(ref->ctrl->id)) { in find_private_ref()
1441 if (!type_is_int(ref->ctrl)) in find_private_ref()
1444 return ref; in find_private_ref()
1454 struct v4l2_ctrl_ref *ref; in find_ref() local
1469 ref = hdl->buckets ? hdl->buckets[bucket] : NULL; in find_ref()
1470 while (ref && ref->ctrl->id != id) in find_ref()
1471 ref = ref->next; in find_ref()
1473 if (ref) in find_ref()
1474 hdl->cached = ref; /* cache it! */ in find_ref()
1475 return ref; in find_ref()
1482 struct v4l2_ctrl_ref *ref = NULL; in find_ref_lock() local
1486 ref = find_ref(hdl, id); in find_ref_lock()
1489 return ref; in find_ref_lock()
1495 struct v4l2_ctrl_ref *ref = find_ref_lock(hdl, id); in v4l2_ctrl_find() local
1497 return ref ? ref->ctrl : NULL; in v4l2_ctrl_find()
1505 struct v4l2_ctrl_ref *ref; in handler_new_ref() local
1546 list_for_each_entry(ref, &hdl->ctrl_refs, node) { in handler_new_ref()
1547 if (ref->ctrl->id < id) in handler_new_ref()
1550 if (ref->ctrl->id == id) { in handler_new_ref()
1554 list_add(&new_ref->node, ref->node.prev); in handler_new_ref()
1804 struct v4l2_ctrl_ref *ref; in v4l2_ctrl_add_handler() local
1813 list_for_each_entry(ref, &add->ctrl_refs, node) { in v4l2_ctrl_add_handler()
1814 struct v4l2_ctrl *ctrl = ref->ctrl; in v4l2_ctrl_add_handler()
2071 struct v4l2_ctrl_ref *ref; in v4l2_queryctrl() local
2080 ref = find_ref(hdl, id); in v4l2_queryctrl()
2087 ref = NULL; /* Yes, so there is no next control */ in v4l2_queryctrl()
2088 } else if (ref) { in v4l2_queryctrl()
2091 ref = list_entry(ref->node.next, typeof(*ref), node); in v4l2_queryctrl()
2097 list_for_each_entry(ref, &hdl->ctrl_refs, node) in v4l2_queryctrl()
2098 if (id < ref->ctrl->id) in v4l2_queryctrl()
2103 if (!ref) in v4l2_queryctrl()
2106 ctrl = ref->ctrl; in v4l2_queryctrl()
2237 struct v4l2_ctrl_ref *ref; in prepare_ext_ctrls() local
2250 ref = find_ref_lock(hdl, id); in prepare_ext_ctrls()
2251 if (ref == NULL) in prepare_ext_ctrls()
2253 ctrl = ref->ctrl; in prepare_ext_ctrls()
2260 ref = find_ref_lock(hdl, ctrl->cluster[0]->id); in prepare_ext_ctrls()
2262 h->mref = ref; in prepare_ext_ctrls()