/linux/include/media/ |
A D | v4l2-subdev.h | 37 struct v4l2_subdev; 192 int (*log_status)(struct v4l2_subdev *sd); 196 int (*load_fw)(struct v4l2_subdev *sd); 269 int (*standby)(struct v4l2_subdev *sd); 270 int (*s_radio)(struct v4l2_subdev *sd); 731 int (*init_cfg)(struct v4l2_subdev *sd, 742 int (*get_fmt)(struct v4l2_subdev *sd, 745 int (*set_fmt)(struct v4l2_subdev *sd, 830 void (*release)(struct v4l2_subdev *sd); 908 struct v4l2_subdev { struct [all …]
|
A D | v4l2-common.h | 101 struct v4l2_subdev; 152 struct v4l2_subdev *v4l2_i2c_new_subdev(struct v4l2_device *v4l2_dev, 203 unsigned short v4l2_i2c_subdev_addr(struct v4l2_subdev *sd); 220 void v4l2_i2c_subdev_unregister(struct v4l2_subdev *sd); 224 static inline struct v4l2_subdev * 232 static inline struct v4l2_subdev * 304 void v4l2_spi_subdev_unregister(struct v4l2_subdev *sd); 308 static inline struct v4l2_subdev * 316 v4l2_spi_subdev_init(struct v4l2_subdev *sd, struct spi_device *spi, in v4l2_spi_subdev_init() 436 struct v4l2_subdev *sd, struct v4l2_streamparm *a); [all …]
|
A D | v4l2-device.h | 53 void (*notify)(struct v4l2_subdev *sd, 162 struct v4l2_subdev *sd); 174 void v4l2_device_unregister_subdev(struct v4l2_subdev *sd); 319 struct v4l2_subdev *__sd; \ 386 struct v4l2_subdev *__sd; \ 413 struct v4l2_subdev *__sd; \ 446 struct v4l2_subdev *__sd; \ 473 struct v4l2_subdev *__sd; \ 505 struct v4l2_subdev *__sd; \ 527 struct v4l2_subdev *__sd; \ [all …]
|
A D | v4l2-async.h | 18 struct v4l2_subdev; 87 struct v4l2_subdev *subdev, 91 struct v4l2_subdev *subdev, 110 struct v4l2_subdev *sd; 246 int v4l2_async_subdev_nf_register(struct v4l2_subdev *sd, 283 int v4l2_async_register_subdev(struct v4l2_subdev *sd); 305 v4l2_async_register_subdev_sensor(struct v4l2_subdev *sd); 313 void v4l2_async_unregister_subdev(struct v4l2_subdev *sd);
|
/linux/drivers/staging/media/atomisp/include/linux/ |
A D | atomisp_platform.h | 134 struct intel_v4l2_subdev_i2c_board_info v4l2_subdev; member 137 struct v4l2_subdev *subdev; 192 int (*power_down)(struct v4l2_subdev *sd, 196 int (*g_ctrl)(struct v4l2_subdev *sd, struct v4l2_control *ctrl, 209 int (*flisclk_ctrl)(struct v4l2_subdev *subdev, int flag); 210 int (*csi_cfg)(struct v4l2_subdev *subdev, int flag); 216 int (*gpio0_ctrl)(struct v4l2_subdev *subdev, int on); 217 int (*gpio1_ctrl)(struct v4l2_subdev *subdev, int on); 218 int (*v1p8_ctrl)(struct v4l2_subdev *subdev, int on); 219 int (*v2p8_ctrl)(struct v4l2_subdev *subdev, int on); [all …]
|
/linux/drivers/media/i2c/ |
A D | ad9389b.c | 69 struct v4l2_subdev sd; 94 static void ad9389b_setup(struct v4l2_subdev *sd); 110 static int ad9389b_rd(struct v4l2_subdev *sd, u8 reg) in ad9389b_rd() 167 static void ad9389b_csc_coeff(struct v4l2_subdev *sd, in ad9389b_csc_coeff() 302 struct v4l2_subdev *sd = to_sd(ctrl); in ad9389b_s_ctrl() 340 static int ad9389b_log_status(struct v4l2_subdev *sd) in ad9389b_log_status() 814 struct v4l2_subdev *sd = &state->sd; in ad9389b_edid_handler() 857 static void ad9389b_setup(struct v4l2_subdev *sd) in ad9389b_setup() 1068 static void ad9389b_init_setup(struct v4l2_subdev *sd) in ad9389b_init_setup() 1089 struct v4l2_subdev *sd; in ad9389b_probe() [all …]
|
A D | vpx3220.c | 33 struct v4l2_subdev sd; 42 static inline struct vpx3220 *to_vpx3220(struct v4l2_subdev *sd) in to_vpx3220() 47 static inline struct v4l2_subdev *to_sd(struct v4l2_ctrl *ctrl) in to_sd() 65 static inline int vpx3220_read(struct v4l2_subdev *sd, u8 reg) in vpx3220_read() 72 static int vpx3220_fp_status(struct v4l2_subdev *sd) in vpx3220_fp_status() 154 static int vpx3220_write_fp_block(struct v4l2_subdev *sd, in vpx3220_write_fp_block() 265 static int vpx3220_init(struct v4l2_subdev *sd, u32 val) in vpx3220_init() 369 static int vpx3220_s_routing(struct v4l2_subdev *sd, in vpx3220_s_routing() 412 struct v4l2_subdev *sd = to_sd(ctrl); in vpx3220_s_ctrl() 463 struct v4l2_subdev *sd; in vpx3220_probe() [all …]
|
A D | cs5345.c | 27 struct v4l2_subdev sd; 31 static inline struct cs5345_state *to_state(struct v4l2_subdev *sd) in to_state() 36 static inline struct v4l2_subdev *to_sd(struct v4l2_ctrl *ctrl) in to_sd() 43 static inline int cs5345_write(struct v4l2_subdev *sd, u8 reg, u8 value) in cs5345_write() 50 static inline int cs5345_read(struct v4l2_subdev *sd, u8 reg) in cs5345_read() 57 static int cs5345_s_routing(struct v4l2_subdev *sd, in cs5345_s_routing() 71 struct v4l2_subdev *sd = to_sd(ctrl); in cs5345_s_ctrl() 86 static int cs5345_g_register(struct v4l2_subdev *sd, struct v4l2_dbg_register *reg) in cs5345_g_register() 100 static int cs5345_log_status(struct v4l2_subdev *sd) in cs5345_log_status() 143 struct v4l2_subdev *sd; in cs5345_probe() [all …]
|
A D | tc358743.c | 73 struct v4l2_subdev sd; 211 static u8 i2c_rd8(struct v4l2_subdev *sd, u16 reg) in i2c_rd8() 227 static u16 i2c_rd16(struct v4l2_subdev *sd, u16 reg) in i2c_rd16() 254 static inline bool is_hdmi(struct v4l2_subdev *sd) in is_hdmi() 269 static inline bool no_sync(struct v4l2_subdev *sd) in no_sync() 361 struct v4l2_subdev *sd = &state->sd; in tc358743_delayed_work_enable_hotplug() 858 struct v4l2_subdev *sd = &state->sd; in tc358743_cec_adap_enable() 872 struct v4l2_subdev *sd = &state->sd; in tc358743_cec_adap_monitor_all_enable() 887 struct v4l2_subdev *sd = &state->sd; in tc358743_cec_adap_log_addr() 902 struct v4l2_subdev *sd = &state->sd; in tc358743_cec_adap_transmit() [all …]
|
A D | vp27smpx.c | 28 struct v4l2_subdev sd; 33 static inline struct vp27smpx_state *to_state(struct v4l2_subdev *sd) in to_state() 38 static void vp27smpx_set_audmode(struct v4l2_subdev *sd, u32 audmode) in vp27smpx_set_audmode() 63 static int vp27smpx_s_radio(struct v4l2_subdev *sd) in vp27smpx_s_radio() 71 static int vp27smpx_s_std(struct v4l2_subdev *sd, v4l2_std_id norm) in vp27smpx_s_std() 79 static int vp27smpx_s_tuner(struct v4l2_subdev *sd, const struct v4l2_tuner *vt) in vp27smpx_s_tuner() 88 static int vp27smpx_g_tuner(struct v4l2_subdev *sd, struct v4l2_tuner *vt) in vp27smpx_g_tuner() 101 static int vp27smpx_log_status(struct v4l2_subdev *sd) in vp27smpx_log_status() 145 struct v4l2_subdev *sd; in vp27smpx_probe() 168 struct v4l2_subdev *sd = i2c_get_clientdata(client); in vp27smpx_remove()
|
A D | ths7303.c | 36 struct v4l2_subdev sd; 60 static int ths7303_read(struct v4l2_subdev *sd, u8 reg) in ths7303_read() 67 static int ths7303_write(struct v4l2_subdev *sd, u8 reg, u8 val) in ths7303_write() 82 static int ths7303_setval(struct v4l2_subdev *sd, in ths7303_setval() 152 static int ths7303_config(struct v4l2_subdev *sd) in ths7303_config() 196 static int ths7303_s_dv_timings(struct v4l2_subdev *sd, in ths7303_s_dv_timings() 218 static int ths7303_g_register(struct v4l2_subdev *sd, in ths7303_g_register() 226 static int ths7303_s_register(struct v4l2_subdev *sd, in ths7303_s_register() 281 static int ths7303_log_status(struct v4l2_subdev *sd) in ths7303_log_status() 330 struct v4l2_subdev *sd; in ths7303_probe() [all …]
|
A D | adv7511-v4l2.c | 84 struct v4l2_subdev sd; 129 static void adv7511_setup(struct v4l2_subdev *sd); 188 static int adv7511_rd(struct v4l2_subdev *sd, u8 reg) in adv7511_rd() 404 struct v4l2_subdev *sd = to_sd(ctrl); in adv7511_s_ctrl() 720 struct v4l2_subdev *sd = &state->sd; in adv7511_cec_adap_enable() 755 struct v4l2_subdev *sd = &state->sd; in adv7511_cec_adap_log_addr() 810 struct v4l2_subdev *sd = &state->sd; in adv7511_cec_adap_transmit() 1249 static int adv7511_get_fmt(struct v4l2_subdev *sd, in adv7511_get_fmt() 1481 struct v4l2_subdev *sd = &state->sd; in adv7511_edid_handler() 1520 static void adv7511_setup(struct v4l2_subdev *sd) in adv7511_setup() [all …]
|
A D | adv7183.c | 25 struct v4l2_subdev sd; 87 static int adv7183_writeregs(struct v4l2_subdev *sd, in adv7183_writeregs() 108 static int adv7183_log_status(struct v4l2_subdev *sd) in adv7183_log_status() 228 static int adv7183_reset(struct v4l2_subdev *sd, u32 val) in adv7183_reset() 239 static int adv7183_s_routing(struct v4l2_subdev *sd, in adv7183_s_routing() 322 struct v4l2_subdev *sd = to_sd(ctrl); in adv7183_s_ctrl() 411 static int adv7183_enum_mbus_code(struct v4l2_subdev *sd, in adv7183_enum_mbus_code() 422 static int adv7183_set_fmt(struct v4l2_subdev *sd, in adv7183_set_fmt() 450 static int adv7183_get_fmt(struct v4l2_subdev *sd, in adv7183_get_fmt() 528 struct v4l2_subdev *sd; in adv7183_probe() [all …]
|
A D | ths8200.c | 41 struct v4l2_subdev sd; 71 static int ths8200_read(struct v4l2_subdev *sd, u8 reg) in ths8200_read() 97 ths8200_write_and_or(struct v4l2_subdev *sd, u8 reg, in ths8200_write_and_or() 105 static int ths8200_g_register(struct v4l2_subdev *sd, in ths8200_g_register() 114 static int ths8200_s_register(struct v4l2_subdev *sd, in ths8200_s_register() 123 static int ths8200_log_status(struct v4l2_subdev *sd) in ths8200_log_status() 188 static void ths8200_core_init(struct v4l2_subdev *sd) in ths8200_core_init() 361 static int ths8200_s_dv_timings(struct v4l2_subdev *sd, in ths8200_s_dv_timings() 388 static int ths8200_g_dv_timings(struct v4l2_subdev *sd, in ths8200_g_dv_timings() 442 struct v4l2_subdev *sd; in ths8200_probe() [all …]
|
A D | ov7670.c | 220 struct v4l2_subdev sd; 627 static int ov7670_detect(struct v4l2_subdev *sd) in ov7670_detect() 1037 static int ov7670_apply_fmt(struct v4l2_subdev *sd) in ov7670_apply_fmt() 1107 static int ov7670_set_fmt(struct v4l2_subdev *sd, in ov7670_set_fmt() 1147 static int ov7670_get_fmt(struct v4l2_subdev *sd, in ov7670_get_fmt() 1543 static int ov7670_s_autoexp(struct v4l2_subdev *sd, in ov7670_s_autoexp() 1582 struct v4l2_subdev *sd = to_sd(ctrl); in ov7670_g_volatile_ctrl() 1594 struct v4l2_subdev *sd = to_sd(ctrl); in ov7670_s_ctrl() 1655 static void ov7670_power_on(struct v4l2_subdev *sd) in ov7670_power_on() 1677 static void ov7670_power_off(struct v4l2_subdev *sd) in ov7670_power_off() [all …]
|
A D | saa717x.c | 44 struct v4l2_subdev sd; 120 static u32 saa717x_read(struct v4l2_subdev *sd, u32 reg) in saa717x_read() 680 static void get_inf_dev_status(struct v4l2_subdev *sd, in get_inf_dev_status() 767 static int set_audio_regs(struct v4l2_subdev *sd, in set_audio_regs() 806 static void set_h_prescale(struct v4l2_subdev *sd, in set_h_prescale() 864 struct v4l2_subdev *sd = to_sd(ctrl); in saa717x_s_ctrl() 982 static int saa717x_set_fmt(struct v4l2_subdev *sd, in saa717x_set_fmt() 1050 static int saa717x_s_radio(struct v4l2_subdev *sd) in saa717x_s_radio() 1175 static int saa717x_log_status(struct v4l2_subdev *sd) in saa717x_log_status() 1236 struct v4l2_subdev *sd; in saa717x_probe() [all …]
|
A D | tw9903.c | 28 struct v4l2_subdev sd; 33 static inline struct tw9903 *to_state(struct v4l2_subdev *sd) in to_state() 90 static int write_reg(struct v4l2_subdev *sd, u8 reg, u8 value) in write_reg() 97 static int write_regs(struct v4l2_subdev *sd, const u8 *regs) in write_regs() 107 static int tw9903_s_video_routing(struct v4l2_subdev *sd, u32 input, in tw9903_s_video_routing() 114 static int tw9903_s_std(struct v4l2_subdev *sd, v4l2_std_id norm) in tw9903_s_std() 142 struct v4l2_subdev *sd = &dec->sd; in tw9903_s_ctrl() 160 static int tw9903_log_status(struct v4l2_subdev *sd) in tw9903_log_status() 196 struct v4l2_subdev *sd; in tw9903_probe() 240 struct v4l2_subdev *sd = i2c_get_clientdata(client); in tw9903_remove()
|
A D | tw9906.c | 19 struct v4l2_subdev sd; 24 static inline struct tw9906 *to_state(struct v4l2_subdev *sd) in to_state() 61 static int write_reg(struct v4l2_subdev *sd, u8 reg, u8 value) in write_reg() 68 static int write_regs(struct v4l2_subdev *sd, const u8 *regs) in write_regs() 78 static int tw9906_s_video_routing(struct v4l2_subdev *sd, u32 input, in tw9906_s_video_routing() 85 static int tw9906_s_std(struct v4l2_subdev *sd, v4l2_std_id norm) in tw9906_s_std() 112 struct v4l2_subdev *sd = &dec->sd; in tw9906_s_ctrl() 130 static int tw9906_log_status(struct v4l2_subdev *sd) in tw9906_log_status() 164 struct v4l2_subdev *sd; in tw9906_probe() 208 struct v4l2_subdev *sd = i2c_get_clientdata(client); in tw9906_remove()
|
A D | adv7604.c | 134 void (*setup_irqs)(struct v4l2_subdev *sd); 174 struct v4l2_subdev sd; 542 struct v4l2_subdev *sd = &state->sd; in adv76xx_delayed_work_enable_hotplug() 1211 struct v4l2_subdev *sd = in adv76xx_s_ctrl() 1258 struct v4l2_subdev *sd = in adv76xx_g_volatile_ctrl() 1752 static void enable_input(struct v4l2_subdev *sd) in enable_input() 1903 struct v4l2_subdev *sd = &state->sd; in adv76xx_setup_format() 2082 struct v4l2_subdev *sd = &state->sd; in adv76xx_cec_adap_enable() 2112 struct v4l2_subdev *sd = &state->sd; in adv76xx_cec_adap_log_addr() 2167 struct v4l2_subdev *sd = &state->sd; in adv76xx_cec_adap_transmit() [all …]
|
A D | upd64031a.c | 50 struct v4l2_subdev sd; 58 static inline struct upd64031a_state *to_state(struct v4l2_subdev *sd) in to_state() 72 static u8 upd64031a_read(struct v4l2_subdev *sd, u8 reg) in upd64031a_read() 85 static void upd64031a_write(struct v4l2_subdev *sd, u8 reg, u8 val) in upd64031a_write() 100 static int upd64031a_s_frequency(struct v4l2_subdev *sd, const struct v4l2_frequency *freq) in upd64031a_s_frequency() 113 static int upd64031a_s_routing(struct v4l2_subdev *sd, in upd64031a_s_routing() 136 static int upd64031a_log_status(struct v4l2_subdev *sd) in upd64031a_log_status() 144 static int upd64031a_g_register(struct v4l2_subdev *sd, struct v4l2_dbg_register *reg) in upd64031a_g_register() 151 static int upd64031a_s_register(struct v4l2_subdev *sd, const struct v4l2_dbg_register *reg) in upd64031a_s_register() 190 struct v4l2_subdev *sd; in upd64031a_probe() [all …]
|
/linux/Documentation/translations/zh_CN/video4linux/ |
A D | v4l2-framework.txt | 209 v4l2_subdev结构体 216 统一接口,v4l2_subdev 结构体(v4l2-subdev.h)产生了。 218 每个子设备驱动都必须有一个 v4l2_subdev 结构体。这个结构体可以单独 222 指针保存在 v4l2_subdev 的私有数据域(dev_priv)中。这使得通过 v4l2_subdev 225 你同时需要一个从低层结构体获取 v4l2_subdev 指针的方法。对于常用的 285 子设备驱动可使用如下函数初始化 v4l2_subdev 结构体: 438 添加 v4l2_subdev 支持的推荐方法是让 I2C 驱动将 v4l2_subdev 结构体 440 结构体,此时可以直接创建一个 v4l2_subdev 结构体。 445 struct v4l2_subdev sd; 449 初始化 v4l2_subdev 结构体的方法如下: [all …]
|
/linux/drivers/media/i2c/cx25840/ |
A D | cx25840-core.h | 73 struct v4l2_subdev sd; 102 static inline struct cx25840_state *to_state(struct v4l2_subdev *sd) in to_state() 107 static inline struct v4l2_subdev *to_sd(struct v4l2_ctrl *ctrl) in to_sd() 172 int cx25840_s_clock_freq(struct v4l2_subdev *sd, u32 freq); 178 int cx25840_s_raw_fmt(struct v4l2_subdev *sd, struct v4l2_vbi_format *fmt); 179 int cx25840_s_sliced_fmt(struct v4l2_subdev *sd, 181 int cx25840_g_sliced_fmt(struct v4l2_subdev *sd, 183 int cx25840_decode_vbi_line(struct v4l2_subdev *sd, 189 int cx25840_ir_log_status(struct v4l2_subdev *sd); 191 int cx25840_ir_probe(struct v4l2_subdev *sd); [all …]
|
/linux/drivers/media/i2c/m5mols/ |
A D | m5mols.h | 197 struct v4l2_subdev sd; 274 int m5mols_read_u8(struct v4l2_subdev *sd, u32 reg_comb, u8 *val); 275 int m5mols_read_u16(struct v4l2_subdev *sd, u32 reg_comb, u16 *val); 276 int m5mols_read_u32(struct v4l2_subdev *sd, u32 reg_comb, u32 *val); 277 int m5mols_write(struct v4l2_subdev *sd, u32 reg_comb, u32 val); 279 int m5mols_busy_wait(struct v4l2_subdev *sd, u32 reg, u32 value, u32 mask, 310 int m5mols_enable_interrupt(struct v4l2_subdev *sd, u8 reg); 317 int m5mols_init_controls(struct v4l2_subdev *sd); 320 int m5mols_update_fw(struct v4l2_subdev *sd, 323 static inline struct m5mols_info *to_m5mols(struct v4l2_subdev *subdev) in to_m5mols() [all …]
|
/linux/drivers/staging/media/atomisp/pci/ |
A D | atomisp_tpg.c | 26 static int tpg_s_stream(struct v4l2_subdev *sd, int enable) in tpg_s_stream() 31 static int tpg_get_fmt(struct v4l2_subdev *sd, in tpg_get_fmt() 39 static int tpg_set_fmt(struct v4l2_subdev *sd, in tpg_set_fmt() 56 static int tpg_log_status(struct v4l2_subdev *sd) in tpg_log_status() 62 static int tpg_s_power(struct v4l2_subdev *sd, int on) in tpg_s_power() 67 static int tpg_enum_mbus_code(struct v4l2_subdev *sd, in tpg_enum_mbus_code() 75 static int tpg_enum_frame_size(struct v4l2_subdev *sd, in tpg_enum_frame_size() 83 static int tpg_enum_frame_ival(struct v4l2_subdev *sd, in tpg_enum_frame_ival() 143 struct v4l2_subdev *sd = &tpg->sd; in atomisp_tpg_init()
|
/linux/drivers/staging/media/imx/ |
A D | imx-media.h | 131 to_pad_vdev_list(struct v4l2_subdev *sd, int pad_index) in to_pad_vdev_list() 166 struct v4l2_subdev *sync_sd[2][NUM_IPU_SUBDEVS]; 195 int imx_media_init_cfg(struct v4l2_subdev *sd, 208 struct v4l2_subdev * 211 struct v4l2_subdev * 220 struct v4l2_subdev * 258 struct imx_media_fim *imx_media_fim_init(struct v4l2_subdev *sd); 263 struct v4l2_subdev *csi); 277 int imx_media_vdic_unregister(struct v4l2_subdev *sd); 280 struct v4l2_subdev *imx_media_ic_register(struct v4l2_device *v4l2_dev, [all …]
|