/linux/drivers/media/v4l2-core/ |
H A D | v4l2-ctrls-request.c | 19 void v4l2_ctrl_handler_init_request(struct v4l2_ctrl_handler *hdl) in v4l2_ctrl_handler_init_request() argument 21 INIT_LIST_HEAD(&hdl->requests); in v4l2_ctrl_handler_init_request() 22 INIT_LIST_HEAD(&hdl->requests_queued); in v4l2_ctrl_handler_init_request() 23 hdl->request_is_queued = false; in v4l2_ctrl_handler_init_request() 24 media_request_object_init(&hdl->req_obj); in v4l2_ctrl_handler_init_request() 28 void v4l2_ctrl_handler_free_request(struct v4l2_ctrl_handler *hdl) in v4l2_ctrl_handler_free_request() argument 39 if (hdl->req_obj.ops || list_empty(&hdl->requests)) in v4l2_ctrl_handler_free_request() 47 list_for_each_entry_safe(req, next_req, &hdl->requests, requests) { in v4l2_ctrl_handler_free_request() 53 static int v4l2_ctrl_request_clone(struct v4l2_ctrl_handler *hdl, in v4l2_ctrl_request_clone() argument 85 struct v4l2_ctrl_handler *hdl = v4l2_ctrl_request_queue() local 97 struct v4l2_ctrl_handler *hdl = v4l2_ctrl_request_unbind() local 112 struct v4l2_ctrl_handler *hdl = v4l2_ctrl_request_release() local 142 v4l2_ctrl_request_hdl_ctrl_find(struct v4l2_ctrl_handler * hdl,u32 id) v4l2_ctrl_request_hdl_ctrl_find() argument 151 v4l2_ctrl_request_bind(struct media_request * req,struct v4l2_ctrl_handler * hdl,struct v4l2_ctrl_handler * from) v4l2_ctrl_request_bind() argument 171 v4l2_ctrls_find_req_obj(struct v4l2_ctrl_handler * hdl,struct media_request * req,bool set) v4l2_ctrls_find_req_obj() argument 219 v4l2_g_ext_ctrls_request(struct v4l2_ctrl_handler * hdl,struct video_device * vdev,struct media_device * mdev,struct v4l2_ext_controls * cs) v4l2_g_ext_ctrls_request() argument 262 try_set_ext_ctrls_request(struct v4l2_fh * fh,struct v4l2_ctrl_handler * hdl,struct video_device * vdev,struct media_device * mdev,struct v4l2_ext_controls * cs,bool set) try_set_ext_ctrls_request() argument 328 struct v4l2_ctrl_handler *hdl; v4l2_ctrl_request_complete() local 399 struct v4l2_ctrl_handler *hdl; v4l2_ctrl_request_setup() local [all...] |
H A D | v4l2-ctrls-core.c | 1607 static inline int handler_set_err(struct v4l2_ctrl_handler *hdl, int err) in handler_set_err() argument 1609 if (hdl->error == 0) in handler_set_err() 1610 hdl->error = err; in handler_set_err() 1615 int v4l2_ctrl_handler_init_class(struct v4l2_ctrl_handler *hdl, in v4l2_ctrl_handler_init_class() argument 1619 mutex_init(&hdl->_lock); in v4l2_ctrl_handler_init_class() 1620 hdl->lock = &hdl->_lock; in v4l2_ctrl_handler_init_class() 1621 lockdep_set_class_and_name(hdl->lock, key, name); in v4l2_ctrl_handler_init_class() 1622 INIT_LIST_HEAD(&hdl->ctrls); in v4l2_ctrl_handler_init_class() 1623 INIT_LIST_HEAD(&hdl in v4l2_ctrl_handler_init_class() 1634 v4l2_ctrl_handler_free(struct v4l2_ctrl_handler * hdl) v4l2_ctrl_handler_free() argument 1681 find_private_ref(struct v4l2_ctrl_handler * hdl,u32 id) find_private_ref() argument 1702 find_ref(struct v4l2_ctrl_handler * hdl,u32 id) find_ref() argument 1729 find_ref_lock(struct v4l2_ctrl_handler * hdl,u32 id) find_ref_lock() argument 1742 v4l2_ctrl_find(struct v4l2_ctrl_handler * hdl,u32 id) v4l2_ctrl_find() argument 1751 handler_new_ref(struct v4l2_ctrl_handler * hdl,struct v4l2_ctrl * ctrl,struct v4l2_ctrl_ref ** ctrl_ref,bool from_other_dev,bool allocate_req) handler_new_ref() argument 1836 v4l2_ctrl_new(struct v4l2_ctrl_handler * hdl,const struct v4l2_ctrl_ops * ops,const struct v4l2_ctrl_type_ops * type_ops,u32 id,const char * name,enum v4l2_ctrl_type type,s64 min,s64 max,u64 step,s64 def,const u32 dims[V4L2_CTRL_MAX_DIMS],u32 elem_size,u32 flags,const char * const * qmenu,const s64 * qmenu_int,const union v4l2_ctrl_ptr p_def,const union v4l2_ctrl_ptr p_min,const union v4l2_ctrl_ptr p_max,void * priv) v4l2_ctrl_new() argument 2125 v4l2_ctrl_new_custom(struct v4l2_ctrl_handler * hdl,const struct v4l2_ctrl_config * cfg,void * priv) v4l2_ctrl_new_custom() argument 2170 v4l2_ctrl_new_std(struct v4l2_ctrl_handler * hdl,const struct v4l2_ctrl_ops * ops,u32 id,s64 min,s64 max,u64 step,s64 def) v4l2_ctrl_new_std() argument 2193 v4l2_ctrl_new_std_menu(struct v4l2_ctrl_handler * hdl,const struct v4l2_ctrl_ops * ops,u32 id,u8 _max,u64 mask,u8 _def) v4l2_ctrl_new_std_menu() argument 2227 v4l2_ctrl_new_std_menu_items(struct v4l2_ctrl_handler * hdl,const struct v4l2_ctrl_ops * ops,u32 id,u8 _max,u64 mask,u8 _def,const char * const * qmenu) v4l2_ctrl_new_std_menu_items() argument 2261 v4l2_ctrl_new_std_compound(struct v4l2_ctrl_handler * hdl,const struct v4l2_ctrl_ops * ops,u32 id,const union v4l2_ctrl_ptr p_def,const union v4l2_ctrl_ptr p_min,const union v4l2_ctrl_ptr p_max) v4l2_ctrl_new_std_compound() argument 2284 v4l2_ctrl_new_int_menu(struct v4l2_ctrl_handler * hdl,const struct v4l2_ctrl_ops * ops,u32 id,u8 _max,u8 _def,const s64 * qmenu_int) v4l2_ctrl_new_int_menu() argument 2309 v4l2_ctrl_add_handler(struct v4l2_ctrl_handler * hdl,struct v4l2_ctrl_handler * add,bool (* filter)(const struct v4l2_ctrl * ctrl),bool from_other_dev) v4l2_ctrl_add_handler() argument 2578 __v4l2_ctrl_handler_setup(struct v4l2_ctrl_handler * hdl) __v4l2_ctrl_handler_setup() argument 2617 v4l2_ctrl_handler_setup(struct v4l2_ctrl_handler * hdl) v4l2_ctrl_handler_setup() argument 2659 v4l2_ctrl_handler_log_status(struct v4l2_ctrl_handler * hdl,const char * prefix) v4l2_ctrl_handler_log_status() argument 2681 v4l2_ctrl_new_fwnode_properties(struct v4l2_ctrl_handler * hdl,const struct v4l2_ctrl_ops * ctrl_ops,const struct v4l2_fwnode_device_properties * p) v4l2_ctrl_new_fwnode_properties() argument [all...] |
H A D | v4l2-ctrls-priv.h | 63 int handler_new_ref(struct v4l2_ctrl_handler *hdl, 67 struct v4l2_ctrl_ref *find_ref(struct v4l2_ctrl_handler *hdl, u32 id); 68 struct v4l2_ctrl_ref *find_ref_lock(struct v4l2_ctrl_handler *hdl, u32 id); 76 int v4l2_g_ext_ctrls_common(struct v4l2_ctrl_handler *hdl, 80 struct v4l2_ctrl_handler *hdl, 85 void v4l2_ctrl_handler_init_request(struct v4l2_ctrl_handler *hdl); 86 void v4l2_ctrl_handler_free_request(struct v4l2_ctrl_handler *hdl); 87 int v4l2_g_ext_ctrls_request(struct v4l2_ctrl_handler *hdl, struct video_device *vdev, 90 struct v4l2_ctrl_handler *hdl,
|
H A D | v4l2-ctrls-api.c | 229 static int prepare_ext_ctrls(struct v4l2_ctrl_handler *hdl, in prepare_ext_ctrls() argument 266 ref = find_ref_lock(hdl, id); in prepare_ext_ctrls() 290 ref = find_ref_lock(hdl, ctrl->cluster[0]->id); in prepare_ext_ctrls() 357 mutex_lock(hdl->lock); in prepare_ext_ctrls() 385 mutex_unlock(hdl->lock); in prepare_ext_ctrls() 394 static int class_check(struct v4l2_ctrl_handler *hdl, u32 which) in class_check() argument 399 return find_ref_lock(hdl, which | 1) ? 0 : -EINVAL; in class_check() 409 int v4l2_g_ext_ctrls_common(struct v4l2_ctrl_handler *hdl, in v4l2_g_ext_ctrls_common() argument 427 if (!hdl) in v4l2_g_ext_ctrls_common() 431 return class_check(hdl, c in v4l2_g_ext_ctrls_common() 517 v4l2_g_ext_ctrls(struct v4l2_ctrl_handler * hdl,struct video_device * vdev,struct media_device * mdev,struct v4l2_ext_controls * cs) v4l2_g_ext_ctrls() argument 588 try_set_ext_ctrls_common(struct v4l2_fh * fh,struct v4l2_ctrl_handler * hdl,struct v4l2_ext_controls * cs,struct video_device * vdev,bool set) try_set_ext_ctrls_common() argument 725 try_set_ext_ctrls(struct v4l2_fh * fh,struct v4l2_ctrl_handler * hdl,struct video_device * vdev,struct media_device * mdev,struct v4l2_ext_controls * cs,bool set) try_set_ext_ctrls() argument 744 v4l2_try_ext_ctrls(struct v4l2_ctrl_handler * hdl,struct video_device * vdev,struct media_device * mdev,struct v4l2_ext_controls * cs) v4l2_try_ext_ctrls() argument 754 v4l2_s_ext_ctrls(struct v4l2_fh * fh,struct v4l2_ctrl_handler * hdl,struct video_device * vdev,struct media_device * mdev,struct v4l2_ext_controls * cs) v4l2_s_ext_ctrls() argument 799 v4l2_g_ctrl(struct v4l2_ctrl_handler * hdl,struct v4l2_control * control) v4l2_g_ctrl() argument 861 v4l2_s_ctrl(struct v4l2_fh * fh,struct v4l2_ctrl_handler * hdl,struct v4l2_control * control) v4l2_s_ctrl() argument 1059 v4l2_query_ext_ctrl(struct v4l2_ctrl_handler * hdl,struct v4l2_query_ext_ctrl * qc) v4l2_query_ext_ctrl() argument 1191 v4l2_queryctrl(struct v4l2_ctrl_handler * hdl,struct v4l2_queryctrl * qc) v4l2_queryctrl() argument 1207 v4l2_querymenu(struct v4l2_ctrl_handler * hdl,struct v4l2_querymenu * qm) v4l2_querymenu() argument [all...] |
/linux/drivers/media/common/ |
H A D | cx2341x.c | 1297 return container_of(ctrl->handler, struct cx2341x_handler, hdl); in to_cxhdl() 1300 static int cx2341x_hdl_api(struct cx2341x_handler *hdl, in cx2341x_hdl_api() argument 1312 return hdl->func(hdl->priv, cmd, args, 0, data); in cx2341x_hdl_api() 1323 struct cx2341x_handler *hdl = to_cxhdl(ctrl); in cx2341x_try_ctrl() local 1330 int gop = hdl->video_gop_size->val; in cx2341x_try_ctrl() 1337 hdl->video_gop_size->val = gop; in cx2341x_try_ctrl() 1343 hdl->video_encoding->val = in cx2341x_try_ctrl() 1344 (hdl->stream_type->val == V4L2_MPEG_STREAM_TYPE_MPEG1_SS || in cx2341x_try_ctrl() 1345 hdl in cx2341x_try_ctrl() 1371 struct cx2341x_handler *hdl = to_cxhdl(ctrl); cx2341x_s_ctrl() local 1539 cx2341x_ctrl_new_custom(struct v4l2_ctrl_handler * hdl,u32 id,s32 min,s32 max,s32 step,s32 def) cx2341x_ctrl_new_custom() argument 1562 cx2341x_ctrl_new_std(struct v4l2_ctrl_handler * hdl,u32 id,s32 min,s32 max,s32 step,s32 def) cx2341x_ctrl_new_std() argument 1568 cx2341x_ctrl_new_menu(struct v4l2_ctrl_handler * hdl,u32 id,s32 max,s32 mask,s32 def) cx2341x_ctrl_new_menu() argument 1577 struct v4l2_ctrl_handler *hdl = &cxhdl->hdl; cx2341x_handler_init() local [all...] |
/linux/drivers/virtio/ |
H A D | virtio_rtc_driver.c | 487 * @hdl: message handle name 492 #define VIORTC_DECLARE_MSG_HDL_ONSTACK(hdl, msg_id, msg_req, msg_resp) \ argument 500 } hdl = { \ 506 * @hdl: message handle 510 #define VIORTC_MSG(hdl) ((hdl).msg) argument 514 * @hdl: message handle 520 #define VIORTC_MSG_INIT(hdl, viortc) \ argument 522 typeof(hdl) *_hdl = &(hdl); \ 541 VIORTC_MSG_WRITE(hdl,dest_member,src_ptr) global() argument 562 VIORTC_MSG_READ(hdl,src_member,dest_ptr) global() argument [all...] |
/linux/include/media/ |
H A D | v4l2-ctrls.h | 516 * @hdl: The control handler. 533 * error will also be stored in @hdl->error. 535 int v4l2_ctrl_handler_init_class(struct v4l2_ctrl_handler *hdl, 545 * @hdl: The control handler. 560 #define v4l2_ctrl_handler_init(hdl, nr_of_controls_hint) \ argument 564 v4l2_ctrl_handler_init_class(hdl, nr_of_controls_hint, \ 568 "(" #hdl ")->_lock"); \ 572 #define v4l2_ctrl_handler_init(hdl, nr_of_controls_hint) \ argument 573 v4l2_ctrl_handler_init_class(hdl, nr_of_controls_hint, NULL, NULL) 579 * @hdl 1406 v4l2_ctrl_request_hdl_put(struct v4l2_ctrl_handler * hdl) v4l2_ctrl_request_hdl_put() argument [all...] |
/linux/drivers/media/i2c/ |
H A D | tw9903.c | 29 struct v4l2_ctrl_handler hdl; member 141 struct tw9903 *dec = container_of(ctrl->handler, struct tw9903, hdl); in tw9903_s_ctrl() 196 struct v4l2_ctrl_handler *hdl; in tw9903_probe() local 210 hdl = &dec->hdl; in tw9903_probe() 211 v4l2_ctrl_handler_init(hdl, 4); in tw9903_probe() 212 v4l2_ctrl_new_std(hdl, &tw9903_ctrl_ops, in tw9903_probe() 214 v4l2_ctrl_new_std(hdl, &tw9903_ctrl_ops, in tw9903_probe() 216 v4l2_ctrl_new_std(hdl, &tw9903_ctrl_ops, in tw9903_probe() 218 sd->ctrl_handler = hdl; in tw9903_probe() [all...] |
H A D | tw9906.c | 20 struct v4l2_ctrl_handler hdl; member 111 struct tw9906 *dec = container_of(ctrl->handler, struct tw9906, hdl); in tw9906_s_ctrl() 164 struct v4l2_ctrl_handler *hdl; in tw9906_probe() local 178 hdl = &dec->hdl; in tw9906_probe() 179 v4l2_ctrl_handler_init(hdl, 4); in tw9906_probe() 180 v4l2_ctrl_new_std(hdl, &tw9906_ctrl_ops, in tw9906_probe() 182 v4l2_ctrl_new_std(hdl, &tw9906_ctrl_ops, in tw9906_probe() 184 v4l2_ctrl_new_std(hdl, &tw9906_ctrl_ops, in tw9906_probe() 186 sd->ctrl_handler = hdl; in tw9906_probe() [all...] |
H A D | tlv320aic23b.c | 32 struct v4l2_ctrl_handler hdl; member 42 return &container_of(ctrl->handler, struct tlv320aic23b_state, hdl)->sd; in to_sd() 100 v4l2_ctrl_handler_log_status(&state->hdl, sd->name); in tlv320aic23b_log_status() 165 v4l2_ctrl_handler_init(&state->hdl, 1); in tlv320aic23b_probe() 166 v4l2_ctrl_new_std(&state->hdl, &tlv320aic23b_ctrl_ops, in tlv320aic23b_probe() 168 sd->ctrl_handler = &state->hdl; in tlv320aic23b_probe() 169 if (state->hdl.error) { in tlv320aic23b_probe() 170 int err = state->hdl.error; in tlv320aic23b_probe() 172 v4l2_ctrl_handler_free(&state->hdl); in tlv320aic23b_probe() 175 v4l2_ctrl_handler_setup(&state->hdl); in tlv320aic23b_probe() [all...] |
H A D | tda7432.c | 64 struct v4l2_ctrl_handler hdl; member 84 return &container_of(ctrl->handler, struct tda7432, hdl)->sd; in to_sd() 267 v4l2_ctrl_handler_log_status(&state->hdl, sd->name); in tda7432_log_status() 359 v4l2_ctrl_handler_init(&t->hdl, 5); in tda7432_probe() 360 v4l2_ctrl_new_std(&t->hdl, &tda7432_ctrl_ops, in tda7432_probe() 362 t->mute = v4l2_ctrl_new_std(&t->hdl, &tda7432_ctrl_ops, in tda7432_probe() 364 t->balance = v4l2_ctrl_new_std(&t->hdl, &tda7432_ctrl_ops, in tda7432_probe() 366 t->bass = v4l2_ctrl_new_std(&t->hdl, &tda7432_ctrl_ops, in tda7432_probe() 368 t->treble = v4l2_ctrl_new_std(&t->hdl, &tda7432_ctrl_ops, in tda7432_probe() 370 sd->ctrl_handler = &t->hdl; in tda7432_probe() [all...] |
H A D | saa6752hs.c | 83 struct v4l2_ctrl_handler hdl; member 361 container_of(ctrl->handler, struct saa6752hs_state, hdl); in saa6752hs_try_ctrl() 377 container_of(ctrl->handler, struct saa6752hs_state, hdl); in saa6752hs_s_ctrl() 664 struct v4l2_ctrl_handler *hdl; in saa6752hs_probe() local 687 hdl = &h->hdl; in saa6752hs_probe() 688 v4l2_ctrl_handler_init(hdl, 14); in saa6752hs_probe() 689 v4l2_ctrl_new_std_menu(hdl, &saa6752hs_ctrl_ops, in saa6752hs_probe() 695 v4l2_ctrl_new_std_menu(hdl, &saa6752hs_ctrl_ops, in saa6752hs_probe() 703 v4l2_ctrl_new_std_menu(hdl, in saa6752hs_probe() [all...] |
H A D | tw2804.c | 29 struct v4l2_ctrl_handler hdl; member 137 return container_of(ctrl->handler, struct tw2804, hdl); in to_state_from_ctrl() 365 v4l2_ctrl_handler_init(&state->hdl, 10); in tw2804_probe() 366 v4l2_ctrl_new_std(&state->hdl, &tw2804_ctrl_ops, in tw2804_probe() 368 v4l2_ctrl_new_std(&state->hdl, &tw2804_ctrl_ops, in tw2804_probe() 370 v4l2_ctrl_new_std(&state->hdl, &tw2804_ctrl_ops, in tw2804_probe() 372 v4l2_ctrl_new_std(&state->hdl, &tw2804_ctrl_ops, in tw2804_probe() 374 v4l2_ctrl_new_std(&state->hdl, &tw2804_ctrl_ops, in tw2804_probe() 376 v4l2_ctrl_new_std(&state->hdl, &tw2804_ctrl_ops, in tw2804_probe() 378 ctrl = v4l2_ctrl_new_std(&state->hdl, in tw2804_probe() [all...] |
H A D | cs5345.c | 28 struct v4l2_ctrl_handler hdl; member 38 return &container_of(ctrl->handler, struct cs5345_state, hdl)->sd; in to_sd() 157 v4l2_ctrl_handler_init(&state->hdl, 2); in cs5345_probe() 158 v4l2_ctrl_new_std(&state->hdl, &cs5345_ctrl_ops, in cs5345_probe() 160 v4l2_ctrl_new_std(&state->hdl, &cs5345_ctrl_ops, in cs5345_probe() 162 sd->ctrl_handler = &state->hdl; in cs5345_probe() 163 if (state->hdl.error) { in cs5345_probe() 164 int err = state->hdl.error; in cs5345_probe() 166 v4l2_ctrl_handler_free(&state->hdl); in cs5345_probe() 170 v4l2_ctrl_handler_setup(&state->hdl); in cs5345_probe() [all...] |
H A D | ml86v7667.c | 87 struct v4l2_ctrl_handler hdl; member 98 return &container_of(ctrl->handler, struct ml86v7667_priv, hdl)->sd; in to_sd() 376 v4l2_ctrl_handler_init(&priv->hdl, 8); in ml86v7667_probe() 377 v4l2_ctrl_new_std(&priv->hdl, &ml86v7667_ctrl_ops, in ml86v7667_probe() 379 v4l2_ctrl_new_std(&priv->hdl, &ml86v7667_ctrl_ops, in ml86v7667_probe() 381 v4l2_ctrl_new_std(&priv->hdl, &ml86v7667_ctrl_ops, in ml86v7667_probe() 383 v4l2_ctrl_new_std(&priv->hdl, &ml86v7667_ctrl_ops, in ml86v7667_probe() 385 v4l2_ctrl_new_std(&priv->hdl, &ml86v7667_ctrl_ops, in ml86v7667_probe() 387 v4l2_ctrl_new_std(&priv->hdl, &ml86v7667_ctrl_ops, in ml86v7667_probe() 389 v4l2_ctrl_new_std(&priv->hdl, in ml86v7667_probe() [all...] |
H A D | wm8775.c | 45 struct v4l2_ctrl_handler hdl; member 60 return &container_of(ctrl->handler, struct wm8775_state, hdl)->sd; in to_sd() 150 v4l2_ctrl_handler_log_status(&state->hdl, sd->name); in wm8775_log_status() 219 v4l2_ctrl_handler_init(&state->hdl, 4); in wm8775_probe() 220 state->mute = v4l2_ctrl_new_std(&state->hdl, &wm8775_ctrl_ops, in wm8775_probe() 222 state->vol = v4l2_ctrl_new_std(&state->hdl, &wm8775_ctrl_ops, in wm8775_probe() 224 state->bal = v4l2_ctrl_new_std(&state->hdl, &wm8775_ctrl_ops, in wm8775_probe() 226 state->loud = v4l2_ctrl_new_std(&state->hdl, &wm8775_ctrl_ops, in wm8775_probe() 228 sd->ctrl_handler = &state->hdl; in wm8775_probe() 229 err = state->hdl in wm8775_probe() [all...] |
H A D | lm3646.c | 206 struct v4l2_ctrl_handler *hdl = &flash->ctrls_led; in lm3646_init_controls() local 209 v4l2_ctrl_handler_init(hdl, 8); in lm3646_init_controls() 211 v4l2_ctrl_new_std_menu(hdl, ops, V4L2_CID_FLASH_LED_MODE, in lm3646_init_controls() 216 v4l2_ctrl_new_std_menu(hdl, ops, V4L2_CID_FLASH_STROBE_SOURCE, in lm3646_init_controls() 220 v4l2_ctrl_new_std(hdl, ops, V4L2_CID_FLASH_STROBE, 0, 0, 0, 0); in lm3646_init_controls() 222 v4l2_ctrl_new_std(hdl, ops, V4L2_CID_FLASH_STROBE_STOP, 0, 0, 0, 0); in lm3646_init_controls() 225 v4l2_ctrl_new_std(hdl, ops, V4L2_CID_FLASH_TIMEOUT, in lm3646_init_controls() 231 v4l2_ctrl_new_std(hdl, ops, V4L2_CID_FLASH_INTENSITY, in lm3646_init_controls() 238 v4l2_ctrl_new_std(hdl, ops, V4L2_CID_FLASH_TORCH_INTENSITY, in lm3646_init_controls() 245 fault = v4l2_ctrl_new_std(hdl, op in lm3646_init_controls() [all...] |
H A D | saa717x.c | 45 struct v4l2_ctrl_handler hdl; member 70 return &container_of(ctrl->handler, struct saa717x_state, hdl)->sd; in to_sd() 1179 v4l2_ctrl_handler_log_status(&state->hdl, sd->name); in saa717x_log_status() 1234 struct v4l2_ctrl_handler *hdl; in saa717x_probe() local 1270 hdl = &decoder->hdl; in saa717x_probe() 1271 v4l2_ctrl_handler_init(hdl, 9); in saa717x_probe() 1273 v4l2_ctrl_new_std(hdl, &saa717x_ctrl_ops, in saa717x_probe() 1275 v4l2_ctrl_new_std(hdl, &saa717x_ctrl_ops, in saa717x_probe() 1277 v4l2_ctrl_new_std(hdl, in saa717x_probe() [all...] |
H A D | saa7110.c | 43 struct v4l2_ctrl_handler hdl; member 60 return &container_of(ctrl->handler, struct saa7110, hdl)->sd; in to_sd() 383 v4l2_ctrl_handler_init(&decoder->hdl, 2); in saa7110_probe() 384 v4l2_ctrl_new_std(&decoder->hdl, &saa7110_ctrl_ops, in saa7110_probe() 386 v4l2_ctrl_new_std(&decoder->hdl, &saa7110_ctrl_ops, in saa7110_probe() 388 v4l2_ctrl_new_std(&decoder->hdl, &saa7110_ctrl_ops, in saa7110_probe() 390 v4l2_ctrl_new_std(&decoder->hdl, &saa7110_ctrl_ops, in saa7110_probe() 392 sd->ctrl_handler = &decoder->hdl; in saa7110_probe() 393 if (decoder->hdl.error) { in saa7110_probe() 394 int err = decoder->hdl in saa7110_probe() [all...] |
/linux/drivers/media/i2c/s5c73m3/ |
H A D | s5c73m3-ctrls.c | 445 struct v4l2_ctrl_handler *hdl = &ctrls->handler; in s5c73m3_init_controls() local 447 int ret = v4l2_ctrl_handler_init(hdl, 22); in s5c73m3_init_controls() 452 ctrls->auto_wb = v4l2_ctrl_new_std_menu(hdl, ops, in s5c73m3_init_controls() 457 ctrls->auto_exposure = v4l2_ctrl_new_std_menu(hdl, ops, in s5c73m3_init_controls() 460 ctrls->exposure_bias = v4l2_ctrl_new_int_menu(hdl, ops, in s5c73m3_init_controls() 466 ctrls->exposure_metering = v4l2_ctrl_new_std_menu(hdl, ops, in s5c73m3_init_controls() 471 ctrls->focus_auto = v4l2_ctrl_new_std(hdl, ops, in s5c73m3_init_controls() 474 ctrls->af_start = v4l2_ctrl_new_std(hdl, ops, in s5c73m3_init_controls() 477 ctrls->af_stop = v4l2_ctrl_new_std(hdl, ops, in s5c73m3_init_controls() 480 ctrls->af_status = v4l2_ctrl_new_std(hdl, op in s5c73m3_init_controls() [all...] |
/linux/drivers/media/test-drivers/vimc/ |
H A D | vimc-lens.c | 20 struct v4l2_ctrl_handler hdl; member 37 container_of(ctrl->handler, struct vimc_lens_device, hdl); in vimc_lens_s_ctrl() 61 v4l2_ctrl_handler_init(&vlens->hdl, 1); in vimc_lens_add() 63 v4l2_ctrl_new_std(&vlens->hdl, &vimc_lens_ctrl_ops, in vimc_lens_add() 66 vlens->sd.ctrl_handler = &vlens->hdl; in vimc_lens_add() 67 if (vlens->hdl.error) { in vimc_lens_add() 68 ret = vlens->hdl.error; in vimc_lens_add() 82 v4l2_ctrl_handler_free(&vlens->hdl); in vimc_lens_add() 94 v4l2_ctrl_handler_free(&vlens->hdl); in vimc_lens_release()
|
H A D | vimc-sensor.c | 27 struct v4l2_ctrl_handler hdl; member 295 container_of(ctrl->handler, struct vimc_sensor_device, hdl); in vimc_sensor_s_ctrl() 337 v4l2_ctrl_handler_free(&vsensor->hdl); in vimc_sensor_release() 389 v4l2_ctrl_handler_init(&vsensor->hdl, 4); in vimc_sensor_add() 391 v4l2_ctrl_new_custom(&vsensor->hdl, &vimc_sensor_ctrl_class, NULL); in vimc_sensor_add() 392 v4l2_ctrl_new_custom(&vsensor->hdl, &vimc_sensor_ctrl_test_pattern, NULL); in vimc_sensor_add() 393 v4l2_ctrl_new_custom(&vsensor->hdl, &vimc_sensor_ctrl_osd_mode, NULL); in vimc_sensor_add() 394 v4l2_ctrl_new_std(&vsensor->hdl, &vimc_sensor_ctrl_ops, in vimc_sensor_add() 396 v4l2_ctrl_new_std(&vsensor->hdl, &vimc_sensor_ctrl_ops, in vimc_sensor_add() 398 v4l2_ctrl_new_std(&vsensor->hdl, in vimc_sensor_add() [all...] |
/linux/drivers/media/radio/ |
H A D | radio-keene.c | 52 struct v4l2_ctrl_handler hdl; member 235 container_of(ctrl->handler, struct keene_device, hdl); in keene_s_ctrl() 288 v4l2_ctrl_handler_free(&radio->hdl); in usb_keene_video_device_release() 299 struct v4l2_ctrl_handler *hdl; in usb_keene_probe() local 325 hdl = &radio->hdl; in usb_keene_probe() 326 v4l2_ctrl_handler_init(hdl, 4); in usb_keene_probe() 327 v4l2_ctrl_new_std(hdl, &keene_ctrl_ops, V4L2_CID_AUDIO_MUTE, in usb_keene_probe() 329 v4l2_ctrl_new_std_menu(hdl, &keene_ctrl_ops, V4L2_CID_TUNE_PREEMPHASIS, in usb_keene_probe() 331 v4l2_ctrl_new_std(hdl, in usb_keene_probe() [all...] |
H A D | radio-sf16fmi.c | 50 struct v4l2_ctrl_handler hdl; member 192 struct fmi *fmi = container_of(ctrl->handler, struct fmi, hdl); in fmi_s_ctrl() 276 struct v4l2_ctrl_handler *hdl = &fmi->hdl; in fmi_init() local 329 v4l2_ctrl_handler_init(hdl, 1); in fmi_init() 330 v4l2_ctrl_new_std(hdl, &fmi_ctrl_ops, in fmi_init() 332 v4l2_dev->ctrl_handler = hdl; in fmi_init() 333 if (hdl->error) { in fmi_init() 334 res = hdl->error; in fmi_init() 336 v4l2_ctrl_handler_free(hdl); in fmi_init() [all...] |
/linux/drivers/media/usb/pwc/ |
H A D | pwc-v4l.c | 152 struct v4l2_ctrl_handler *hdl; in pwc_init_controls() local 156 hdl = &pdev->ctrl_handler; in pwc_init_controls() 157 r = v4l2_ctrl_handler_init(hdl, 20); in pwc_init_controls() 165 pdev->brightness = v4l2_ctrl_new_std(hdl, &pwc_ctrl_ops, in pwc_init_controls() 171 pdev->contrast = v4l2_ctrl_new_std(hdl, &pwc_ctrl_ops, in pwc_init_controls() 183 pdev->saturation = v4l2_ctrl_new_std(hdl, &pwc_ctrl_ops, in pwc_init_controls() 190 pdev->gamma = v4l2_ctrl_new_std(hdl, &pwc_ctrl_ops, in pwc_init_controls() 200 pdev->auto_white_balance = v4l2_ctrl_new_custom(hdl, &cfg, NULL); in pwc_init_controls() 203 return hdl->error; in pwc_init_controls() 209 pdev->red_balance = v4l2_ctrl_new_std(hdl, in pwc_init_controls() [all...] |