/linux-6.6.21/include/media/ |
D | v4l2-subdev.h | 37 struct v4l2_subdev; 196 int (*log_status)(struct v4l2_subdev *sd); 197 int (*s_io_pin_config)(struct v4l2_subdev *sd, size_t n, 199 int (*init)(struct v4l2_subdev *sd, u32 val); 200 int (*load_fw)(struct v4l2_subdev *sd); 201 int (*reset)(struct v4l2_subdev *sd, u32 val); 202 int (*s_gpio)(struct v4l2_subdev *sd, u32 val); 203 long (*command)(struct v4l2_subdev *sd, unsigned int cmd, void *arg); 204 long (*ioctl)(struct v4l2_subdev *sd, unsigned int cmd, void *arg); 206 long (*compat_ioctl32)(struct v4l2_subdev *sd, unsigned int cmd, [all …]
|
D | v4l2-async.h | 18 struct v4l2_subdev; 84 struct v4l2_subdev *sd; 97 struct v4l2_subdev *subdev, 101 struct v4l2_subdev *subdev, 121 struct v4l2_subdev *sd; 174 struct v4l2_subdev *sd); 262 int v4l2_async_subdev_endpoint_add(struct v4l2_subdev *sd, 274 v4l2_async_connection_unique(struct v4l2_subdev *sd); 313 int v4l2_async_register_subdev(struct v4l2_subdev *sd); 335 v4l2_async_register_subdev_sensor(struct v4l2_subdev *sd); [all …]
|
D | v4l2-common.h | 101 struct v4l2_subdev; 152 struct v4l2_subdev *v4l2_i2c_new_subdev(struct v4l2_device *v4l2_dev, 169 struct v4l2_subdev *v4l2_i2c_new_subdev_board(struct v4l2_device *v4l2_dev, 183 void v4l2_i2c_subdev_set_name(struct v4l2_subdev *sd, struct i2c_client *client, 194 void v4l2_i2c_subdev_init(struct v4l2_subdev *sd, struct i2c_client *client, 204 unsigned short v4l2_i2c_subdev_addr(struct v4l2_subdev *sd); 221 void v4l2_i2c_subdev_unregister(struct v4l2_subdev *sd); 225 static inline struct v4l2_subdev * 233 static inline struct v4l2_subdev * 242 v4l2_i2c_subdev_set_name(struct v4l2_subdev *sd, struct i2c_client *client, in v4l2_i2c_subdev_set_name() [all …]
|
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); 237 static inline void v4l2_subdev_notify(struct v4l2_subdev *sd, in v4l2_subdev_notify() 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; \ [all …]
|
/linux-6.6.21/drivers/staging/media/atomisp/include/linux/ |
D | atomisp_platform.h | 129 struct v4l2_subdev *subdev; 166 int (*power_up)(struct v4l2_subdev *sd, struct camera_vcm_control *vcm); 167 int (*power_down)(struct v4l2_subdev *sd, 169 int (*queryctrl)(struct v4l2_subdev *sd, struct v4l2_queryctrl *qc, 171 int (*g_ctrl)(struct v4l2_subdev *sd, struct v4l2_control *ctrl, 173 int (*s_ctrl)(struct v4l2_subdev *sd, struct v4l2_control *ctrl, 184 int (*flisclk_ctrl)(struct v4l2_subdev *subdev, int flag); 185 int (*csi_cfg)(struct v4l2_subdev *subdev, int flag); 191 int (*gpio0_ctrl)(struct v4l2_subdev *subdev, int on); 192 int (*gpio1_ctrl)(struct v4l2_subdev *subdev, int on); [all …]
|
/linux-6.6.21/drivers/media/i2c/cx25840/ |
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); 190 int cx25840_ir_irq_handler(struct v4l2_subdev *sd, u32 status, bool *handled); [all …]
|
/linux-6.6.21/Documentation/translations/zh_CN/video4linux/ |
D | v4l2-framework.txt | 85 实例的数据;一个 v4l2_subdev 结构体代表子设备实例;video_device 209 v4l2_subdev结构体 216 统一接口,v4l2_subdev 结构体(v4l2-subdev.h)产生了。 218 每个子设备驱动都必须有一个 v4l2_subdev 结构体。这个结构体可以单独 222 指针保存在 v4l2_subdev 的私有数据域(dev_priv)中。这使得通过 v4l2_subdev 225 你同时需要一个从低层结构体获取 v4l2_subdev 指针的方法。对于常用的 226 i2c_client 结构体,i2c_set_clientdata() 函数可用于保存一个 v4l2_subdev 230 数据的指针。为此 v4l2_subdev 结构体提供主机私有数据域(host_priv), 234 从总线桥驱动的视角,驱动加载子设备模块并以某种方式获得 v4l2_subdev 239 每个 v4l2_subdev 都包含子设备驱动需要实现的函数指针(如果对此设备 [all …]
|
/linux-6.6.21/drivers/media/i2c/ |
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() 56 static inline int vpx3220_write(struct v4l2_subdev *sd, u8 reg, u8 value) in vpx3220_write() 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() 92 static int vpx3220_fp_write(struct v4l2_subdev *sd, u8 fpaddr, u16 data) in vpx3220_fp_write() 114 static int vpx3220_fp_read(struct v4l2_subdev *sd, u16 fpaddr) in vpx3220_fp_read() 138 static int vpx3220_write_block(struct v4l2_subdev *sd, const u8 *data, unsigned int len) in vpx3220_write_block() 154 static int vpx3220_write_fp_block(struct v4l2_subdev *sd, in vpx3220_write_fp_block() [all …]
|
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() 93 static int cs5345_s_register(struct v4l2_subdev *sd, const struct v4l2_dbg_register *reg) in cs5345_s_register() 100 static int cs5345_log_status(struct v4l2_subdev *sd) in cs5345_log_status() [all …]
|
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() 144 struct v4l2_subdev *sd; in vp27smpx_probe() 167 struct v4l2_subdev *sd = i2c_get_clientdata(client); in vp27smpx_remove()
|
D | ths7303.c | 36 struct v4l2_subdev sd; 55 static inline struct ths7303_state *to_state(struct v4l2_subdev *sd) in to_state() 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() 139 static int ths7303_s_std_output(struct v4l2_subdev *sd, v4l2_std_id norm) in ths7303_s_std_output() 152 static int ths7303_config(struct v4l2_subdev *sd) in ths7303_config() 186 static int ths7303_s_stream(struct v4l2_subdev *sd, int enable) in ths7303_s_stream() 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() [all …]
|
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() 163 struct v4l2_subdev *sd; in tw9906_probe() 207 struct v4l2_subdev *sd = i2c_get_clientdata(client); in tw9906_remove()
|
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() 195 struct v4l2_subdev *sd; in tw9903_probe() 239 struct v4l2_subdev *sd = i2c_get_clientdata(client); in tw9903_remove()
|
D | tc358743.c | 73 struct v4l2_subdev sd; 102 static void tc358743_enable_interrupts(struct v4l2_subdev *sd, 104 static int tc358743_s_ctrl_detect_tx_5v(struct v4l2_subdev *sd); 106 static inline struct tc358743_state *to_state(struct v4l2_subdev *sd) in to_state() 113 static void i2c_rd(struct v4l2_subdev *sd, u16 reg, u8 *values, u32 n) in i2c_rd() 141 static void i2c_wr(struct v4l2_subdev *sd, u16 reg, u8 *values, u32 n) in i2c_wr() 195 static noinline u32 i2c_rdreg(struct v4l2_subdev *sd, u16 reg, u32 n) in i2c_rdreg() 204 static noinline void i2c_wrreg(struct v4l2_subdev *sd, u16 reg, u32 val, u32 n) in i2c_wrreg() 211 static u8 i2c_rd8(struct v4l2_subdev *sd, u16 reg) in i2c_rd8() 216 static void i2c_wr8(struct v4l2_subdev *sd, u16 reg, u8 val) in i2c_wr8() [all …]
|
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() 189 struct v4l2_subdev *sd; in upd64031a_probe() [all …]
|
D | m52790.c | 26 struct v4l2_subdev sd; 31 static inline struct m52790_state *to_state(struct v4l2_subdev *sd) in to_state() 38 static int m52790_write(struct v4l2_subdev *sd) in m52790_write() 57 static int m52790_s_routing(struct v4l2_subdev *sd, in m52790_s_routing() 69 static int m52790_g_register(struct v4l2_subdev *sd, struct v4l2_dbg_register *reg) in m52790_g_register() 80 static int m52790_s_register(struct v4l2_subdev *sd, const struct v4l2_dbg_register *reg) in m52790_s_register() 93 static int m52790_log_status(struct v4l2_subdev *sd) in m52790_log_status() 135 struct v4l2_subdev *sd; in m52790_probe() 158 struct v4l2_subdev *sd = i2c_get_clientdata(client); in m52790_remove()
|
D | tlv320aic23b.c | 31 struct v4l2_subdev sd; 35 static inline struct tlv320aic23b_state *to_state(struct v4l2_subdev *sd) in to_state() 40 static inline struct v4l2_subdev *to_sd(struct v4l2_ctrl *ctrl) in to_sd() 45 static int tlv320aic23b_write(struct v4l2_subdev *sd, int reg, u16 val) in tlv320aic23b_write() 63 static int tlv320aic23b_s_clock_freq(struct v4l2_subdev *sd, u32 freq) in tlv320aic23b_s_clock_freq() 83 struct v4l2_subdev *sd = to_sd(ctrl); in tlv320aic23b_s_ctrl() 96 static int tlv320aic23b_log_status(struct v4l2_subdev *sd) in tlv320aic23b_log_status() 135 struct v4l2_subdev *sd; in tlv320aic23b_probe() 181 struct v4l2_subdev *sd = i2c_get_clientdata(client); in tlv320aic23b_remove()
|
D | adv7183.c | 25 struct v4l2_subdev sd; 63 static inline struct adv7183 *to_adv7183(struct v4l2_subdev *sd) in to_adv7183() 67 static inline struct v4l2_subdev *to_sd(struct v4l2_ctrl *ctrl) in to_sd() 72 static inline int adv7183_read(struct v4l2_subdev *sd, unsigned char reg) in adv7183_read() 79 static inline int adv7183_write(struct v4l2_subdev *sd, unsigned char reg, in adv7183_write() 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() 189 static int adv7183_g_std(struct v4l2_subdev *sd, v4l2_std_id *std) in adv7183_g_std() 197 static int adv7183_s_std(struct v4l2_subdev *sd, v4l2_std_id std) in adv7183_s_std() 228 static int adv7183_reset(struct v4l2_subdev *sd, u32 val) in adv7183_reset() [all …]
|
D | ths8200.c | 41 struct v4l2_subdev sd; 56 static inline struct ths8200_state *to_state(struct v4l2_subdev *sd) in to_state() 71 static int ths8200_read(struct v4l2_subdev *sd, u8 reg) in ths8200_read() 78 static int ths8200_write(struct v4l2_subdev *sd, u8 reg, u8 val) in ths8200_write() 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() 145 static int ths8200_s_power(struct v4l2_subdev *sd, int on) in ths8200_s_power() 172 static int ths8200_s_stream(struct v4l2_subdev *sd, int enable) in ths8200_s_stream() [all …]
|
D | cs53l32a.c | 32 struct v4l2_subdev sd; 36 static inline struct cs53l32a_state *to_state(struct v4l2_subdev *sd) in to_state() 41 static inline struct v4l2_subdev *to_sd(struct v4l2_ctrl *ctrl) in to_sd() 48 static int cs53l32a_write(struct v4l2_subdev *sd, u8 reg, u8 value) in cs53l32a_write() 55 static int cs53l32a_read(struct v4l2_subdev *sd, u8 reg) in cs53l32a_read() 62 static int cs53l32a_s_routing(struct v4l2_subdev *sd, in cs53l32a_s_routing() 79 struct v4l2_subdev *sd = to_sd(ctrl); in cs53l32a_s_ctrl() 93 static int cs53l32a_log_status(struct v4l2_subdev *sd) in cs53l32a_log_status() 135 struct v4l2_subdev *sd; in cs53l32a_probe() 195 struct v4l2_subdev *sd = i2c_get_clientdata(client); in cs53l32a_remove()
|
D | upd64083.c | 38 struct v4l2_subdev sd; 44 static inline struct upd64083_state *to_state(struct v4l2_subdev *sd) in to_state() 61 static void upd64083_write(struct v4l2_subdev *sd, u8 reg, u8 val) in upd64083_write() 76 static u8 upd64083_read(struct v4l2_subdev *sd, u8 reg) in upd64083_read() 90 static int upd64083_s_routing(struct v4l2_subdev *sd, in upd64083_s_routing() 108 static int upd64083_g_register(struct v4l2_subdev *sd, struct v4l2_dbg_register *reg) in upd64083_g_register() 115 static int upd64083_s_register(struct v4l2_subdev *sd, const struct v4l2_dbg_register *reg) in upd64083_s_register() 122 static int upd64083_log_status(struct v4l2_subdev *sd) in upd64083_log_status() 160 struct v4l2_subdev *sd; in upd64083_probe() 185 struct v4l2_subdev *sd = i2c_get_clientdata(client); in upd64083_remove()
|
D | adv7175.c | 38 struct v4l2_subdev sd; 43 static inline struct adv7175 *to_adv7175(struct v4l2_subdev *sd) in to_adv7175() 57 static inline int adv7175_write(struct v4l2_subdev *sd, u8 reg, u8 value) in adv7175_write() 64 static inline int adv7175_read(struct v4l2_subdev *sd, u8 reg) in adv7175_read() 71 static int adv7175_write_block(struct v4l2_subdev *sd, in adv7175_write_block() 112 static void set_subcarrier_freq(struct v4l2_subdev *sd, int pass_through) in set_subcarrier_freq() 183 static int adv7175_init(struct v4l2_subdev *sd, u32 val) in adv7175_init() 192 static int adv7175_s_std_output(struct v4l2_subdev *sd, v4l2_std_id std) in adv7175_s_std_output() 230 static int adv7175_s_routing(struct v4l2_subdev *sd, in adv7175_s_routing() 290 static int adv7175_enum_mbus_code(struct v4l2_subdev *sd, in adv7175_enum_mbus_code() [all …]
|
D | saa717x.c | 44 struct v4l2_subdev sd; 63 static inline struct saa717x_state *to_state(struct v4l2_subdev *sd) in to_state() 68 static inline struct v4l2_subdev *to_sd(struct v4l2_ctrl *ctrl) in to_sd() 86 static int saa717x_write(struct v4l2_subdev *sd, u32 reg, u32 value) in saa717x_write() 112 static void saa717x_write_regs(struct v4l2_subdev *sd, u32 *data) in saa717x_write_regs() 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() 757 static void set_audio_mode(struct v4l2_subdev *sd, int audio_mode) in set_audio_mode() 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() [all …]
|
D | saa7110.c | 42 struct v4l2_subdev sd; 53 static inline struct saa7110 *to_saa7110(struct v4l2_subdev *sd) in to_saa7110() 58 static inline struct v4l2_subdev *to_sd(struct v4l2_ctrl *ctrl) in to_sd() 67 static int saa7110_write(struct v4l2_subdev *sd, u8 reg, u8 value) in saa7110_write() 76 static int saa7110_write_block(struct v4l2_subdev *sd, const u8 *data, unsigned int len) in saa7110_write_block() 105 static inline int saa7110_read(struct v4l2_subdev *sd) in saa7110_read() 120 static int saa7110_selmux(struct v4l2_subdev *sd, int chan) in saa7110_selmux() 177 static v4l2_std_id determine_norm(struct v4l2_subdev *sd) in determine_norm() 235 static int saa7110_g_input_status(struct v4l2_subdev *sd, u32 *pstatus) in saa7110_g_input_status() 252 static int saa7110_querystd(struct v4l2_subdev *sd, v4l2_std_id *std) in saa7110_querystd() [all …]
|
/linux-6.6.21/drivers/staging/media/atomisp/pci/ |
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()
|