Home
last modified time | relevance | path

Searched refs:hdl (Results 1 – 25 of 242) sorted by relevance

12345678910

/openbmc/linux/drivers/staging/rtl8712/
H A Drtl8712_io.c27 struct intf_hdl *hdl = &adapter->pio_queue->intf; in r8712_read8() local
29 return hdl->io_ops._read8(hdl, addr); in r8712_read8()
36 return hdl->io_ops._read16(hdl, addr); in r8712_read16()
43 return hdl->io_ops._read32(hdl, addr); in r8712_read32()
50 hdl->io_ops._write8(hdl, addr, val); in r8712_write8()
57 hdl->io_ops._write16(hdl, addr, val); in r8712_write16()
64 hdl->io_ops._write32(hdl, addr, val); in r8712_write32()
74 hdl->io_ops._read_mem(hdl, addr, cnt, pmem); in r8712_read_mem()
81 hdl->io_ops._write_mem(hdl, addr, cnt, pmem); in r8712_write_mem()
91 hdl->io_ops._read_port(hdl, addr, cnt, pmem); in r8712_read_port()
[all …]
/openbmc/linux/drivers/media/v4l2-core/
H A Dv4l2-ctrls-request.c21 INIT_LIST_HEAD(&hdl->requests); in v4l2_ctrl_handler_init_request()
23 hdl->request_is_queued = false; in v4l2_ctrl_handler_init_request()
39 if (hdl->req_obj.ops || list_empty(&hdl->requests)) in v4l2_ctrl_handler_free_request()
59 if (WARN_ON(!hdl || hdl == from)) in v4l2_ctrl_request_clone()
62 if (hdl->error) in v4l2_ctrl_request_clone()
63 return hdl->error; in v4l2_ctrl_request_clone()
65 WARN_ON(hdl->lock != &hdl->_lock); in v4l2_ctrl_request_clone()
116 kfree(hdl); in v4l2_ctrl_request_release()
344 hdl = kzalloc(sizeof(*hdl), GFP_KERNEL); in v4l2_ctrl_request_complete()
345 if (!hdl) in v4l2_ctrl_request_complete()
[all …]
H A Dv4l2-ctrls-core.c1537 hdl->lock = &hdl->_lock; in v4l2_ctrl_handler_init_class()
1542 hdl->buckets = kvcalloc(hdl->nr_of_buckets, sizeof(hdl->buckets[0]), in v4l2_ctrl_handler_init_class()
1544 hdl->error = hdl->buckets ? 0 : -ENOMEM; in v4l2_ctrl_handler_init_class()
1557 if (hdl == NULL || hdl->buckets == NULL) in v4l2_ctrl_handler_free()
1581 hdl->error = 0; in v4l2_ctrl_handler_free()
1628 if (hdl->cached && hdl->cached->ctrl->id == id) in find_ref()
1632 ref = hdl->buckets ? hdl->buckets[bucket] : NULL; in find_ref()
1646 if (hdl) { in find_ref_lock()
1688 if (hdl->error) in handler_new_ref()
2191 if (!hdl || !add || hdl == add) in v4l2_ctrl_add_handler()
[all …]
H A Dv4l2-ctrls-priv.h63 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 Dv4l2-ctrls-api.c250 ref = find_ref_lock(hdl, id); in prepare_ext_ctrls()
332 mutex_lock(hdl->lock); in prepare_ext_ctrls()
360 mutex_unlock(hdl->lock); in prepare_ext_ctrls()
400 if (!hdl) in v4l2_g_ext_ctrls_common()
404 return class_check(hdl, cs->which); in v4l2_g_ext_ctrls_common()
576 if (!hdl) { in try_set_ext_ctrls_common()
663 !hdl->req_obj.req && set, 0); in try_set_ext_ctrls_common()
1027 if (!hdl) in v4l2_query_ext_ctrl()
1030 mutex_lock(hdl->lock); in v4l2_query_ext_ctrl()
1033 ref = find_ref(hdl, id); in v4l2_query_ext_ctrl()
[all …]
/openbmc/linux/drivers/media/common/
H A Dcx2341x.c1312 return hdl->func(hdl->priv, cmd, args, 0, data); in cx2341x_hdl_api()
1355 hdl->video_bitrate_peak->val = hdl->video_bitrate->val; in cx2341x_try_ctrl()
1378 if (hdl->ops && hdl->ops->s_stream_vbi_fmt) in cx2341x_s_ctrl()
1379 return hdl->ops->s_stream_vbi_fmt(hdl, val); in cx2341x_s_ctrl()
1440 hdl->ops && hdl->ops->s_audio_sampling_freq) in cx2341x_s_ctrl()
1441 return hdl->ops->s_audio_sampling_freq(hdl, hdl->audio_sampling_freq->val); in cx2341x_s_ctrl()
1443 hdl->ops && hdl->ops->s_audio_mode) in cx2341x_s_ctrl()
1444 return hdl->ops->s_audio_mode(hdl, hdl->audio_mode->val); in cx2341x_s_ctrl()
1472 hdl->ops && hdl->ops->s_video_encoding) in cx2341x_s_ctrl()
1473 return hdl->ops->s_video_encoding(hdl, hdl->video_encoding->val); in cx2341x_s_ctrl()
[all …]
/openbmc/linux/drivers/media/i2c/
H A Dtw9906.c20 struct v4l2_ctrl_handler hdl; member
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()
187 if (hdl->error) { in tw9906_probe()
188 int err = hdl->error; in tw9906_probe()
[all …]
H A Dtw9903.c29 struct v4l2_ctrl_handler hdl; member
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()
219 if (hdl->error) { in tw9903_probe()
220 int err = hdl->error; in tw9903_probe()
[all …]
H A Dtlv320aic23b.c32 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 Dwm8739.c42 struct v4l2_ctrl_handler hdl; member
59 return &container_of(ctrl->handler, struct wm8739_state, hdl)->sd; in to_sd()
154 v4l2_ctrl_handler_log_status(&state->hdl, sd->name); in wm8739_log_status()
198 v4l2_ctrl_handler_init(&state->hdl, 2); in wm8739_probe()
201 state->mute = v4l2_ctrl_new_std(&state->hdl, &wm8739_ctrl_ops, in wm8739_probe()
205 sd->ctrl_handler = &state->hdl; in wm8739_probe()
206 if (state->hdl.error) { in wm8739_probe()
207 int err = state->hdl.error; in wm8739_probe()
209 v4l2_ctrl_handler_free(&state->hdl); in wm8739_probe()
232 v4l2_ctrl_handler_setup(&state->hdl); in wm8739_probe()
[all …]
H A Dtda7432.c64 struct v4l2_ctrl_handler hdl; member
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()
370 sd->ctrl_handler = &t->hdl; in tda7432_probe()
371 if (t->hdl.error) { in tda7432_probe()
372 int err = t->hdl.error; in tda7432_probe()
374 v4l2_ctrl_handler_free(&t->hdl); in tda7432_probe()
379 v4l2_ctrl_handler_setup(&t->hdl); in tda7432_probe()
[all …]
H A Dsaa6752hs.c83 struct v4l2_ctrl_handler hdl; member
666 struct v4l2_ctrl_handler *hdl; in saa6752hs_probe() local
689 hdl = &h->hdl; in saa6752hs_probe()
690 v4l2_ctrl_handler_init(hdl, 14); in saa6752hs_probe()
745 v4l2_ctrl_new_std(hdl, &saa6752hs_ctrl_ops, in saa6752hs_probe()
747 v4l2_ctrl_new_std(hdl, &saa6752hs_ctrl_ops, in saa6752hs_probe()
753 sd->ctrl_handler = hdl; in saa6752hs_probe()
754 if (hdl->error) { in saa6752hs_probe()
755 int err = hdl->error; in saa6752hs_probe()
757 v4l2_ctrl_handler_free(hdl); in saa6752hs_probe()
[all …]
H A Dtw2804.c29 struct v4l2_ctrl_handler hdl; member
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()
394 sd->ctrl_handler = &state->hdl; in tw2804_probe()
395 err = state->hdl.error; in tw2804_probe()
397 v4l2_ctrl_handler_free(&state->hdl); in tw2804_probe()
[all …]
H A Dcs53l32a.c33 struct v4l2_ctrl_handler hdl; member
43 return &container_of(ctrl->handler, struct cs53l32a_state, hdl)->sd; in to_sd()
99 v4l2_ctrl_handler_log_status(&state->hdl, sd->name); in cs53l32a_log_status()
160 v4l2_ctrl_handler_init(&state->hdl, 2); in cs53l32a_probe()
161 v4l2_ctrl_new_std(&state->hdl, &cs53l32a_ctrl_ops, in cs53l32a_probe()
163 v4l2_ctrl_new_std(&state->hdl, &cs53l32a_ctrl_ops, in cs53l32a_probe()
165 sd->ctrl_handler = &state->hdl; in cs53l32a_probe()
166 if (state->hdl.error) { in cs53l32a_probe()
167 int err = state->hdl.error; in cs53l32a_probe()
169 v4l2_ctrl_handler_free(&state->hdl); in cs53l32a_probe()
[all …]
H A Dcs5345.c28 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 Dml86v7667.c87 struct v4l2_ctrl_handler hdl; member
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()
393 priv->sd.ctrl_handler = &priv->hdl; in ml86v7667_probe()
395 ret = priv->hdl.error; in ml86v7667_probe()
399 v4l2_ctrl_handler_setup(&priv->hdl); in ml86v7667_probe()
410 v4l2_ctrl_handler_free(&priv->hdl); in ml86v7667_probe()
[all …]
H A Dwm8775.c45 struct v4l2_ctrl_handler hdl; member
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.error; in wm8775_probe()
231 v4l2_ctrl_handler_free(&state->hdl); in wm8775_probe()
[all …]
H A Dlm3646.c206 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()
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, ops, V4L2_CID_FLASH_FAULT, 0, in lm3646_init_controls()
253 if (hdl->error) in lm3646_init_controls()
254 return hdl->error; in lm3646_init_controls()
[all …]
/openbmc/linux/include/media/
H A Dv4l2-ctrls.h540 #define v4l2_ctrl_handler_init(hdl, nr_of_controls_hint) \ argument
544 v4l2_ctrl_handler_init_class(hdl, nr_of_controls_hint, \
548 "(" #hdl ")->_lock"); \
552 #define v4l2_ctrl_handler_init(hdl, nr_of_controls_hint) \ argument
563 void v4l2_ctrl_handler_free(struct v4l2_ctrl_handler *hdl);
607 int v4l2_ctrl_handler_setup(struct v4l2_ctrl_handler *hdl);
783 int v4l2_ctrl_add_handler(struct v4l2_ctrl_handler *hdl,
1378 if (hdl) in v4l2_ctrl_request_hdl_put()
1379 media_request_object_put(&hdl->req_obj); in v4l2_ctrl_request_hdl_put()
1416 int v4l2_query_ext_ctrl(struct v4l2_ctrl_handler *hdl,
[all …]
/openbmc/linux/drivers/media/i2c/s5c73m3/
H A Ds5c73m3-ctrls.c447 int ret = v4l2_ctrl_handler_init(hdl, 22); 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()
498 ctrls->iso = v4l2_ctrl_new_int_menu(hdl, ops, in s5c73m3_init_controls()
502 ctrls->contrast = v4l2_ctrl_new_std(hdl, ops, in s5c73m3_init_controls()
511 ctrls->zoom = v4l2_ctrl_new_std(hdl, ops, in s5c73m3_init_controls()
517 ctrls->wdr = v4l2_ctrl_new_std(hdl, ops, in s5c73m3_init_controls()
537 if (hdl->error) { in s5c73m3_init_controls()
538 ret = hdl->error; in s5c73m3_init_controls()
539 v4l2_ctrl_handler_free(hdl); in s5c73m3_init_controls()
[all …]
/openbmc/linux/drivers/media/test-drivers/vimc/
H A Dvimc-lens.c20 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 Dvimc-sensor.c32 struct v4l2_ctrl_handler hdl; member
342 v4l2_ctrl_handler_free(&vsensor->hdl); in vimc_sensor_release()
393 v4l2_ctrl_handler_init(&vsensor->hdl, 4); in vimc_sensor_add()
398 v4l2_ctrl_new_std(&vsensor->hdl, &vimc_sensor_ctrl_ops, in vimc_sensor_add()
400 v4l2_ctrl_new_std(&vsensor->hdl, &vimc_sensor_ctrl_ops, in vimc_sensor_add()
402 v4l2_ctrl_new_std(&vsensor->hdl, &vimc_sensor_ctrl_ops, in vimc_sensor_add()
404 v4l2_ctrl_new_std(&vsensor->hdl, &vimc_sensor_ctrl_ops, in vimc_sensor_add()
410 vsensor->sd.ctrl_handler = &vsensor->hdl; in vimc_sensor_add()
411 if (vsensor->hdl.error) { in vimc_sensor_add()
412 ret = vsensor->hdl.error; in vimc_sensor_add()
[all …]
/openbmc/linux/drivers/media/radio/
H A Dradio-keene.c52 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()
338 if (hdl->error) { in usb_keene_probe()
339 retval = hdl->error; in usb_keene_probe()
341 v4l2_ctrl_handler_free(hdl); in usb_keene_probe()
352 radio->v4l2_dev.ctrl_handler = hdl; in usb_keene_probe()
[all …]
/openbmc/linux/drivers/media/usb/pwc/
H A Dpwc-v4l.c152 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()
203 return hdl->error; in pwc_init_controls()
229 return hdl->error; in pwc_init_controls()
252 return hdl->error; in pwc_init_controls()
298 return hdl->error; in pwc_init_controls()
344 pdev->restore_factory = v4l2_ctrl_new_custom(hdl, in pwc_init_controls()
368 return hdl->error; in pwc_init_controls()
374 return hdl->error; in pwc_init_controls()
[all …]
/openbmc/linux/drivers/media/platform/st/sti/delta/
H A Ddelta-ipc.h40 struct delta_buf **ipc_buf, void **hdl);
50 int delta_ipc_set_stream(void *hdl, struct delta_ipc_param *param);
67 int delta_ipc_decode(void *hdl, struct delta_ipc_param *param,
74 void delta_ipc_close(void *hdl);

12345678910