Home
last modified time | relevance | path

Searched defs:sd (Results 1 – 25 of 529) sorted by relevance

12345678910>>...22

/linux-6.1.9/drivers/media/i2c/
Dtc358743.c73 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 …]
Dad9389b.c69 struct v4l2_subdev sd; member
98 static inline struct ad9389b_state *get_ad9389b_state(struct v4l2_subdev *sd) in get_ad9389b_state()
110 static int ad9389b_rd(struct v4l2_subdev *sd, u8 reg) in ad9389b_rd()
117 static int ad9389b_wr(struct v4l2_subdev *sd, u8 reg, u8 val) in ad9389b_wr()
134 static inline void ad9389b_wr_and_or(struct v4l2_subdev *sd, u8 reg, in ad9389b_wr_and_or()
140 static void ad9389b_edid_rd(struct v4l2_subdev *sd, u16 len, u8 *buf) in ad9389b_edid_rd()
151 static inline bool ad9389b_have_hotplug(struct v4l2_subdev *sd) in ad9389b_have_hotplug()
156 static inline bool ad9389b_have_rx_sense(struct v4l2_subdev *sd) in ad9389b_have_rx_sense()
161 static void ad9389b_csc_conversion_mode(struct v4l2_subdev *sd, u8 mode) in ad9389b_csc_conversion_mode()
167 static void ad9389b_csc_coeff(struct v4l2_subdev *sd, in ad9389b_csc_coeff()
[all …]
Dadv7842.c90 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 …]
Dths8200.c41 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 …]
Dadv7183.c25 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 …]
Dadv7511-v4l2.c83 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 …]
Dadv7604.c174 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 …]
Dvpx3220.c33 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 …]
Dvs6624.c28 struct v4l2_subdev sd; member
473 static inline struct vs6624 *to_vs6624(struct v4l2_subdev *sd) in to_vs6624()
483 static int vs6624_read(struct v4l2_subdev *sd, u16 index) in vs6624_read()
497 static int vs6624_write(struct v4l2_subdev *sd, u16 index, in vs6624_write()
510 static int vs6624_writeregs(struct v4l2_subdev *sd, const u16 *regs) in vs6624_writeregs()
526 struct v4l2_subdev *sd = to_sd(ctrl); in vs6624_s_ctrl() local
548 static int vs6624_enum_mbus_code(struct v4l2_subdev *sd, in vs6624_enum_mbus_code()
559 static int vs6624_set_fmt(struct v4l2_subdev *sd, in vs6624_set_fmt()
639 static int vs6624_get_fmt(struct v4l2_subdev *sd, in vs6624_get_fmt()
652 static int vs6624_g_frame_interval(struct v4l2_subdev *sd, in vs6624_g_frame_interval()
[all …]
/linux-6.1.9/drivers/media/usb/gspca/
Dsn9c20x.c56 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 …]
Dsonixj.c22 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 …]
Dov519.c50 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 …]
Dw996Xcf.c55 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 …]
Dov534.c48 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 …]
Dpac7302.c99 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 …]
Dse401.c42 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.1.9/drivers/media/v4l2-core/
Dv4l2-subdev.c27 static int subdev_fh_init(struct v4l2_subdev_fh *fh, struct v4l2_subdev *sd) in subdev_fh_init()
50 struct v4l2_subdev *sd = vdev_to_v4l2_subdev(vdev); in subdev_open() local
100 struct v4l2_subdev *sd = vdev_to_v4l2_subdev(vdev); in subdev_close() local
136 static inline int check_pad(struct v4l2_subdev *sd, u32 pad) in check_pad()
159 static inline int check_format(struct v4l2_subdev *sd, in check_format()
170 static int call_get_fmt(struct v4l2_subdev *sd, in call_get_fmt()
178 static int call_set_fmt(struct v4l2_subdev *sd, in call_set_fmt()
186 static int call_enum_mbus_code(struct v4l2_subdev *sd, in call_enum_mbus_code()
198 static int call_enum_frame_size(struct v4l2_subdev *sd, in call_enum_frame_size()
210 static inline int check_frame_interval(struct v4l2_subdev *sd, in check_frame_interval()
[all …]
/linux-6.1.9/drivers/media/platform/ti/davinci/
Dvpbe_osd.c48 static inline u32 __always_unused osd_read(struct osd_state *sd, u32 offset) in osd_read()
55 static inline u32 osd_write(struct osd_state *sd, u32 val, u32 offset) in osd_write()
64 static inline u32 osd_set(struct osd_state *sd, u32 mask, u32 offset) in osd_set()
76 static inline u32 osd_clear(struct osd_state *sd, u32 mask, u32 offset) in osd_clear()
88 static inline u32 osd_modify(struct osd_state *sd, u32 mask, u32 val, in osd_modify()
127 static int _osd_dm6446_vid0_pingpong(struct osd_state *sd, in _osd_dm6446_vid0_pingpong()
163 static void _osd_set_field_inversion(struct osd_state *sd, int enable) in _osd_set_field_inversion()
173 static void _osd_set_blink_attribute(struct osd_state *sd, int enable, in _osd_set_blink_attribute()
187 static void _osd_set_rom_clut(struct osd_state *sd, in _osd_set_rom_clut()
196 static void _osd_set_palette_map(struct osd_state *sd, in _osd_set_palette_map()
[all …]
/linux-6.1.9/drivers/media/usb/gspca/gl860/
Dgl860.h48 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.1.9/drivers/staging/media/atomisp/i2c/
Datomisp-mt9m114.c38 #define to_mt9m114_sensor(sd) container_of(sd, struct mt9m114_device, sd) argument
433 static int mt9m114_set_suspend(struct v4l2_subdev *sd) in mt9m114_set_suspend()
441 static int mt9m114_init_common(struct v4l2_subdev *sd) in mt9m114_init_common()
448 static int power_ctrl(struct v4l2_subdev *sd, bool flag) in power_ctrl()
470 static int gpio_ctrl(struct v4l2_subdev *sd, bool flag) in gpio_ctrl()
498 static int power_up(struct v4l2_subdev *sd) in power_up()
540 static int power_down(struct v4l2_subdev *sd) in power_down()
571 static int mt9m114_s_power(struct v4l2_subdev *sd, int power) in mt9m114_s_power()
582 static int mt9m114_res2size(struct v4l2_subdev *sd, int *h_size, int *v_size) in mt9m114_res2size()
705 static int mt9m114_get_fmt(struct v4l2_subdev *sd, in mt9m114_get_fmt()
[all …]
/linux-6.1.9/drivers/media/i2c/m5mols/
Dm5mols_core.c139 static int m5mols_read(struct v4l2_subdev *sd, u32 size, u32 reg, u32 *val) in m5mols_read()
185 int m5mols_read_u8(struct v4l2_subdev *sd, u32 reg, u8 *val) in m5mols_read_u8()
203 int m5mols_read_u16(struct v4l2_subdev *sd, u32 reg, u16 *val) in m5mols_read_u16()
221 int m5mols_read_u32(struct v4l2_subdev *sd, u32 reg, u32 *val) in m5mols_read_u32()
239 int m5mols_write(struct v4l2_subdev *sd, u32 reg, u32 val) in m5mols_write()
297 int m5mols_busy_wait(struct v4l2_subdev *sd, u32 reg, u32 value, u32 mask, in m5mols_busy_wait()
325 int m5mols_enable_interrupt(struct v4l2_subdev *sd, u8 reg) in m5mols_enable_interrupt()
338 int m5mols_wait_interrupt(struct v4l2_subdev *sd, u8 irq_mask, u32 timeout) in m5mols_wait_interrupt()
360 static int m5mols_reg_mode(struct v4l2_subdev *sd, u8 mode) in m5mols_reg_mode()
380 struct v4l2_subdev *sd = &info->sd; in m5mols_set_mode() local
[all …]
/linux-6.1.9/drivers/media/usb/gspca/m5602/
Dm5602_ov9650.c294 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 …]
Dm5602_ov7660.c193 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 …]
Dm5602_po1030.c155 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 …]
/linux-6.1.9/drivers/media/usb/gspca/stv06xx/
Dstv06xx_st6422.c58 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()

12345678910>>...22