/linux-6.6.21/drivers/media/i2c/ |
D | tc358743.c | 73 struct v4l2_subdev sd; member 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() 221 static void i2c_wr8_and_or(struct v4l2_subdev *sd, u16 reg, in i2c_wr8_and_or() 227 static u16 i2c_rd16(struct v4l2_subdev *sd, u16 reg) in i2c_rd16() [all …]
|
D | adv7842.c | 90 struct v4l2_subdev sd; member 249 static inline struct adv7842_state *to_state(struct v4l2_subdev *sd) in to_state() 340 static inline int io_read(struct v4l2_subdev *sd, u8 reg) in io_read() 347 static inline int io_write(struct v4l2_subdev *sd, u8 reg, u8 val) in io_write() 354 static inline int io_write_and_or(struct v4l2_subdev *sd, u8 reg, u8 mask, u8 val) in io_write_and_or() 359 static inline int io_write_clr_set(struct v4l2_subdev *sd, in io_write_clr_set() 365 static inline int avlink_read(struct v4l2_subdev *sd, u8 reg) in avlink_read() 372 static inline int avlink_write(struct v4l2_subdev *sd, u8 reg, u8 val) in avlink_write() 379 static inline int cec_read(struct v4l2_subdev *sd, u8 reg) in cec_read() 386 static inline int cec_write(struct v4l2_subdev *sd, u8 reg, u8 val) in cec_write() [all …]
|
D | ths8200.c | 41 struct v4l2_subdev sd; member 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 | adv7183.c | 25 struct v4l2_subdev sd; member 63 static inline struct adv7183 *to_adv7183(struct v4l2_subdev *sd) in to_adv7183() 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() 239 static int adv7183_s_routing(struct v4l2_subdev *sd, in adv7183_s_routing() [all …]
|
D | adv7511-v4l2.c | 83 struct v4l2_subdev sd; member 145 static inline struct adv7511_state *get_adv7511_state(struct v4l2_subdev *sd) in get_adv7511_state() 187 static int adv7511_rd(struct v4l2_subdev *sd, u8 reg) in adv7511_rd() 194 static int adv7511_wr(struct v4l2_subdev *sd, u8 reg, u8 val) in adv7511_wr() 211 static inline void adv7511_wr_and_or(struct v4l2_subdev *sd, u8 reg, u8 clr_mask, u8 val_mask) in adv7511_wr_and_or() 216 static int adv7511_edid_rd(struct v4l2_subdev *sd, uint16_t len, uint8_t *buf) in adv7511_edid_rd() 237 static inline int adv7511_cec_read(struct v4l2_subdev *sd, u8 reg) in adv7511_cec_read() 244 static int adv7511_cec_write(struct v4l2_subdev *sd, u8 reg, u8 val) in adv7511_cec_write() 259 static inline int adv7511_cec_write_and_or(struct v4l2_subdev *sd, u8 reg, u8 mask, in adv7511_cec_write_and_or() 265 static int adv7511_pktmem_rd(struct v4l2_subdev *sd, u8 reg) in adv7511_pktmem_rd() [all …]
|
D | adv7604.c | 174 struct v4l2_subdev sd; member 327 static inline struct adv76xx_state *to_state(struct v4l2_subdev *sd) in to_state() 381 static inline int io_read(struct v4l2_subdev *sd, u8 reg) in io_read() 388 static inline int io_write(struct v4l2_subdev *sd, u8 reg, u8 val) in io_write() 395 static inline int io_write_clr_set(struct v4l2_subdev *sd, u8 reg, u8 mask, in io_write_clr_set() 401 static inline int __always_unused avlink_read(struct v4l2_subdev *sd, u8 reg) in avlink_read() 408 static inline int __always_unused avlink_write(struct v4l2_subdev *sd, u8 reg, u8 val) in avlink_write() 415 static inline int cec_read(struct v4l2_subdev *sd, u8 reg) in cec_read() 422 static inline int cec_write(struct v4l2_subdev *sd, u8 reg, u8 val) in cec_write() 429 static inline int cec_write_clr_set(struct v4l2_subdev *sd, u8 reg, u8 mask, in cec_write_clr_set() [all …]
|
D | vpx3220.c | 33 struct v4l2_subdev sd; member 42 static inline struct vpx3220 *to_vpx3220(struct v4l2_subdev *sd) in to_vpx3220() 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() 265 static int vpx3220_init(struct v4l2_subdev *sd, u32 val) in vpx3220_init() [all …]
|
D | adv7175.c | 38 struct v4l2_subdev sd; member 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 | ths7303.c | 36 struct v4l2_subdev sd; member 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 | tvp5150.c | 72 struct v4l2_subdev sd; member 98 static inline struct tvp5150 *to_tvp5150(struct v4l2_subdev *sd) in to_tvp5150() 108 static int tvp5150_read(struct v4l2_subdev *sd, unsigned char addr) in tvp5150_read() 120 static void dump_reg_range(struct v4l2_subdev *sd, char *s, u8 init, in dump_reg_range() 141 static int tvp5150_log_status(struct v4l2_subdev *sd) in tvp5150_log_status() 279 static void tvp5150_selmux(struct v4l2_subdev *sd) in tvp5150_selmux() 597 static int tvp5150_write_inittab(struct v4l2_subdev *sd, in tvp5150_write_inittab() 609 static int tvp5150_vdp_init(struct v4l2_subdev *sd) in tvp5150_vdp_init() 641 static int tvp5150_g_sliced_vbi_cap(struct v4l2_subdev *sd, in tvp5150_g_sliced_vbi_cap() 678 static int tvp5150_set_vbi(struct v4l2_subdev *sd, in tvp5150_set_vbi() [all …]
|
D | saa7115.c | 69 struct v4l2_subdev sd; member 97 static inline struct saa711x_state *to_state(struct v4l2_subdev *sd) in to_state() 109 static inline int saa711x_write(struct v4l2_subdev *sd, u8 reg, u8 value) in saa711x_write() 154 static int saa711x_writeregs(struct v4l2_subdev *sd, const unsigned char *regs) in saa711x_writeregs() 175 static inline int saa711x_read(struct v4l2_subdev *sd, u8 reg) in saa711x_read() 750 static int saa711x_s_clock_freq(struct v4l2_subdev *sd, u32 freq) in saa711x_s_clock_freq() 813 struct v4l2_subdev *sd = to_sd(ctrl); in saa711x_g_volatile_ctrl() local 829 struct v4l2_subdev *sd = to_sd(ctrl); in saa711x_s_ctrl() local 864 static int saa711x_set_size(struct v4l2_subdev *sd, int width, int height) in saa711x_set_size() 970 static void saa711x_set_v4lstd(struct v4l2_subdev *sd, v4l2_std_id std) in saa711x_set_v4lstd() [all …]
|
/linux-6.6.21/drivers/media/usb/gspca/ |
D | sn9c20x.c | 56 struct sd { struct 57 struct gspca_dev gspca_dev; 59 struct { /* color control cluster */ 65 struct { /* blue/red balance control cluster */ 69 struct { /* h/vflip control cluster */ 73 struct v4l2_ctrl *gamma; 74 struct { /* autogain and exposure or gain control cluster */ 79 struct v4l2_ctrl *jpegqual; 81 struct v4l2_ctrl *led_mode; 83 struct work_struct work; [all …]
|
D | sonixj.c | 22 struct sd { struct 23 struct gspca_dev gspca_dev; /* !! must be the first item */ 25 atomic_t avg_lum; 26 struct v4l2_ctrl *brightness; 27 struct v4l2_ctrl *contrast; 28 struct v4l2_ctrl *saturation; 29 struct { /* red/blue balance control cluster */ 33 struct { /* hflip/vflip control cluster */ 37 struct v4l2_ctrl *gamma; 38 struct v4l2_ctrl *illum; [all …]
|
D | ov519.c | 50 struct sd { struct 51 struct gspca_dev gspca_dev; /* !! must be the first item */ 53 struct v4l2_ctrl *jpegqual; 54 struct v4l2_ctrl *freq; 55 struct { /* h/vflip control cluster */ 59 struct { /* autobrightness/brightness control cluster */ 64 u8 revision; 66 u8 packet_nr; 68 char bridge; 78 char invert_led; [all …]
|
D | w996Xcf.c | 55 static void w9968cf_write_fsb(struct sd *sd, u16* data) in w9968cf_write_fsb() 82 static void w9968cf_write_sb(struct sd *sd, u16 value) in w9968cf_write_sb() 112 static int w9968cf_read_sb(struct sd *sd) in w9968cf_read_sb() 152 static void w9968cf_upload_quantizationtables(struct sd *sd) in w9968cf_upload_quantizationtables() 176 static void w9968cf_smbus_start(struct sd *sd) in w9968cf_smbus_start() 182 static void w9968cf_smbus_stop(struct sd *sd) in w9968cf_smbus_stop() 189 static void w9968cf_smbus_write_byte(struct sd *sd, u8 v) in w9968cf_smbus_write_byte() 206 static void w9968cf_smbus_read_byte(struct sd *sd, u8 *v) in w9968cf_smbus_read_byte() 223 static void w9968cf_smbus_write_nack(struct sd *sd) in w9968cf_smbus_write_nack() 231 static void w9968cf_smbus_read_ack(struct sd *sd) in w9968cf_smbus_read_ack() [all …]
|
D | ov534.c | 48 struct sd { struct 49 struct gspca_dev gspca_dev; /* !! must be the first item */ 51 struct v4l2_ctrl_handler ctrl_handler; 52 struct v4l2_ctrl *hue; 53 struct v4l2_ctrl *saturation; 54 struct v4l2_ctrl *brightness; 55 struct v4l2_ctrl *contrast; 56 struct { /* gain control cluster */ 82 static int sd_start(struct gspca_dev *gspca_dev); argument 811 struct sd *sd = (struct sd *) gspca_dev; in set_frame_rate() local [all …]
|
D | pac7302.c | 99 struct sd { struct 100 struct gspca_dev gspca_dev; /* !! must be the first item */ 102 struct { /* brightness / contrast cluster */ 106 struct v4l2_ctrl *saturation; 107 struct v4l2_ctrl *white_balance; 108 struct v4l2_ctrl *red_balance; 109 struct v4l2_ctrl *blue_balance; 110 struct { /* flip cluster */ 114 struct v4l2_ctrl *sharpness; 115 u8 flags; [all …]
|
D | se401.c | 42 struct sd { struct 43 struct gspca_dev gspca_dev; /* !! must be the first item */ 44 struct { /* exposure/freq control cluster */ 48 bool has_brightness; 49 struct v4l2_pix_format fmts[MAX_MODES]; 50 int pixels_read; 51 int packet_read; 52 u8 packet[PACKET_SIZE]; 53 u8 restart_stream; 54 u8 button_state; [all …]
|
/linux-6.6.21/drivers/media/usb/gspca/gl860/ |
D | gl860.h | 48 struct sd { struct 51 struct sd_gl860 vcur; argument 52 struct sd_gl860 vold; argument 53 struct sd_gl860 vmax; argument 55 int (*dev_configure_alt) (struct gspca_dev *); 56 int (*dev_init_at_startup)(struct gspca_dev *); 57 int (*dev_init_pre_alt) (struct gspca_dev *); 58 void (*dev_post_unset_alt) (struct gspca_dev *); 59 int (*dev_camera_settings)(struct gspca_dev *); 61 u8 swapRB; [all …]
|
/linux-6.6.21/drivers/media/v4l2-core/ |
D | v4l2-subdev.c | 50 static int subdev_fh_init(struct v4l2_subdev_fh *fh, struct v4l2_subdev *sd) in subdev_fh_init() 73 struct v4l2_subdev *sd = vdev_to_v4l2_subdev(vdev); in subdev_open() local 123 struct v4l2_subdev *sd = vdev_to_v4l2_subdev(vdev); in subdev_close() local 159 static inline int check_pad(struct v4l2_subdev *sd, u32 pad) in check_pad() 174 static int check_state(struct v4l2_subdev *sd, struct v4l2_subdev_state *state, in check_state() 196 static inline int check_format(struct v4l2_subdev *sd, in check_format() 207 static int call_get_fmt(struct v4l2_subdev *sd, in call_get_fmt() 215 static int call_set_fmt(struct v4l2_subdev *sd, in call_set_fmt() 223 static int call_enum_mbus_code(struct v4l2_subdev *sd, in call_enum_mbus_code() 235 static int call_enum_frame_size(struct v4l2_subdev *sd, in call_enum_frame_size() [all …]
|
/linux-6.6.21/drivers/media/usb/gspca/m5602/ |
D | m5602_ov9650.c | 294 int ov9650_probe(struct sd *sd) in ov9650_probe() 345 int ov9650_init(struct sd *sd) in ov9650_init() 365 int ov9650_init_controls(struct sd *sd) in ov9650_init_controls() 410 int ov9650_start(struct sd *sd) in ov9650_start() 538 int ov9650_stop(struct sd *sd) in ov9650_stop() 544 void ov9650_disconnect(struct sd *sd) in ov9650_disconnect() 553 struct sd *sd = (struct sd *) gspca_dev; in ov9650_set_exposure() local 583 struct sd *sd = (struct sd *) gspca_dev; in ov9650_set_gain() local 611 struct sd *sd = (struct sd *) gspca_dev; in ov9650_set_red_balance() local 624 struct sd *sd = (struct sd *) gspca_dev; in ov9650_set_blue_balance() local [all …]
|
D | m5602_ov7660.c | 193 int ov7660_probe(struct sd *sd) in ov7660_probe() 246 int ov7660_init(struct sd *sd) in ov7660_init() 273 int ov7660_init_controls(struct sd *sd) in ov7660_init_controls() 306 int ov7660_start(struct sd *sd) in ov7660_start() 311 int ov7660_stop(struct sd *sd) in ov7660_stop() 316 void ov7660_disconnect(struct sd *sd) in ov7660_disconnect() 327 struct sd *sd = (struct sd *) gspca_dev; in ov7660_set_gain() local 340 struct sd *sd = (struct sd *) gspca_dev; in ov7660_set_auto_white_balance() local 358 struct sd *sd = (struct sd *) gspca_dev; in ov7660_set_auto_gain() local 376 struct sd *sd = (struct sd *) gspca_dev; in ov7660_set_auto_exposure() local [all …]
|
D | m5602_po1030.c | 155 int po1030_probe(struct sd *sd) in po1030_probe() 202 int po1030_init(struct sd *sd) in po1030_init() 237 int po1030_init_controls(struct sd *sd) in po1030_init_controls() 280 int po1030_start(struct sd *sd) in po1030_start() 409 struct sd *sd = (struct sd *) gspca_dev; in po1030_set_exposure() local 435 struct sd *sd = (struct sd *) gspca_dev; in po1030_set_gain() local 448 struct sd *sd = (struct sd *) gspca_dev; in po1030_set_hvflip() local 469 struct sd *sd = (struct sd *) gspca_dev; in po1030_set_red_balance() local 482 struct sd *sd = (struct sd *) gspca_dev; in po1030_set_blue_balance() local 496 struct sd *sd = (struct sd *) gspca_dev; in po1030_set_green_balance() local [all …]
|
D | m5602_s5k83a.c | 170 int s5k83a_probe(struct sd *sd) in s5k83a_probe() 223 int s5k83a_init(struct sd *sd) in s5k83a_init() 261 int s5k83a_init_controls(struct sd *sd) in s5k83a_init_controls() 295 struct sd *sd = (struct sd *) data; in rotation_thread_function() local 335 int s5k83a_start(struct sd *sd) in s5k83a_start() 366 int s5k83a_stop(struct sd *sd) in s5k83a_stop() 374 void s5k83a_disconnect(struct sd *sd) in s5k83a_disconnect() 385 struct sd *sd = (struct sd *) gspca_dev; in s5k83a_set_gain() local 411 struct sd *sd = (struct sd *) gspca_dev; in s5k83a_set_brightness() local 420 struct sd *sd = (struct sd *) gspca_dev; in s5k83a_set_exposure() local [all …]
|
/linux-6.6.21/drivers/media/usb/gspca/stv06xx/ |
D | stv06xx_st6422.c | 58 struct sd *sd = (struct sd *)gspca_dev; in st6422_s_ctrl() local 87 static int st6422_init_controls(struct sd *sd) in st6422_init_controls() 104 static int st6422_probe(struct sd *sd) in st6422_probe() 116 static int st6422_init(struct sd *sd) in st6422_init() 201 static int setbrightness(struct sd *sd, s32 val) in setbrightness() 207 static int setcontrast(struct sd *sd, s32 val) in setcontrast() 213 static int setgain(struct sd *sd, u8 gain) in setgain() 238 static int setexposure(struct sd *sd, s16 expo) in setexposure() 249 static int st6422_start(struct sd *sd) in st6422_start() 266 static int st6422_stop(struct sd *sd) in st6422_stop()
|