/linux-6.12.1/drivers/media/i2c/ |
D | tc358743.c | 73 struct v4l2_subdev sd; member 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() argument 108 return container_of(sd, struct tc358743_state, sd); in to_state() 113 static void i2c_rd(struct v4l2_subdev *sd, u16 reg, u8 *values, u32 n) in i2c_rd() argument 115 struct tc358743_state *state = to_state(sd); in i2c_rd() 136 v4l2_err(sd, "%s: reading register 0x%x from 0x%x failed: %d\n", in i2c_rd() 141 static void i2c_wr(struct v4l2_subdev *sd, u16 reg, u8 *values, u32 n) in i2c_wr() argument 143 struct tc358743_state *state = to_state(sd); in i2c_wr() [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() argument 251 return container_of(sd, struct adv7842_state, sd); in to_state() 256 return &container_of(ctrl->handler, struct adv7842_state, hdl)->sd; in to_sd() 340 static inline int io_read(struct v4l2_subdev *sd, u8 reg) in io_read() argument 342 struct i2c_client *client = v4l2_get_subdevdata(sd); in io_read() 347 static inline int io_write(struct v4l2_subdev *sd, u8 reg, u8 val) in io_write() argument 349 struct i2c_client *client = v4l2_get_subdevdata(sd); 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() argument 356 return io_write(sd, reg, (io_read(sd, reg) & mask) | val); in io_write_and_or() [all …]
|
D | adv7511-v4l2.c | 78 struct v4l2_subdev sd; member 121 static void adv7511_check_monitor_present_status(struct v4l2_subdev *sd); 122 static bool adv7511_check_edid_status(struct v4l2_subdev *sd); 123 static void adv7511_setup(struct v4l2_subdev *sd); 124 static int adv7511_s_i2s_clock_freq(struct v4l2_subdev *sd, u32 freq); 125 static int adv7511_s_clock_freq(struct v4l2_subdev *sd, u32 freq); 140 static inline struct adv7511_state *get_adv7511_state(struct v4l2_subdev *sd) in get_adv7511_state() argument 142 return container_of(sd, struct adv7511_state, sd); in get_adv7511_state() 147 return &container_of(ctrl->handler, struct adv7511_state, hdl)->sd; in to_sd() 182 static int adv7511_rd(struct v4l2_subdev *sd, u8 reg) in adv7511_rd() argument [all …]
|
D | adv7183.c | 25 struct v4l2_subdev sd; member 63 static inline struct adv7183 *to_adv7183(struct v4l2_subdev *sd) in to_adv7183() argument 65 return container_of(sd, struct adv7183, sd); in to_adv7183() 69 return &container_of(ctrl->handler, struct adv7183, hdl)->sd; in to_sd() 72 static inline int adv7183_read(struct v4l2_subdev *sd, unsigned char reg) in adv7183_read() argument 74 struct i2c_client *client = v4l2_get_subdevdata(sd); in adv7183_read() 79 static inline int adv7183_write(struct v4l2_subdev *sd, unsigned char reg, in adv7183_write() argument 82 struct i2c_client *client = v4l2_get_subdevdata(sd); in adv7183_write() 87 static int adv7183_writeregs(struct v4l2_subdev *sd, in adv7183_writeregs() argument 94 v4l2_err(sd, "invalid regs array\n"); in adv7183_writeregs() [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() argument 58 return container_of(sd, struct ths8200_state, sd); in to_state() 71 static int ths8200_read(struct v4l2_subdev *sd, u8 reg) in ths8200_read() argument 73 struct i2c_client *client = v4l2_get_subdevdata(sd); in ths8200_read() 78 static int ths8200_write(struct v4l2_subdev *sd, u8 reg, u8 val) in ths8200_write() argument 80 struct i2c_client *client = v4l2_get_subdevdata(sd); in ths8200_write() 89 v4l2_err(sd, "I2C Write Problem\n"); in ths8200_write() 97 ths8200_write_and_or(struct v4l2_subdev *sd, u8 reg, in ths8200_write_and_or() argument 100 ths8200_write(sd, reg, (ths8200_read(sd, reg) & clr_mask) | val_mask); in ths8200_write_and_or() [all …]
|
D | adv7604.c | 133 void (*set_termination)(struct v4l2_subdev *sd, bool enable); 134 void (*setup_irqs)(struct v4l2_subdev *sd); 135 unsigned int (*read_hdmi_pixelclock)(struct v4l2_subdev *sd); 136 unsigned int (*read_cable_det)(struct v4l2_subdev *sd); 174 struct v4l2_subdev sd; member 327 static inline struct adv76xx_state *to_state(struct v4l2_subdev *sd) in to_state() argument 329 return container_of(sd, struct adv76xx_state, sd); in to_state() 381 static inline int io_read(struct v4l2_subdev *sd, u8 reg) in io_read() argument 383 struct adv76xx_state *state = to_state(sd); in io_read() 388 static inline int io_write(struct v4l2_subdev *sd, u8 reg, u8 val) in io_write() argument [all …]
|
D | saa7110.c | 42 struct v4l2_subdev sd; member 53 static inline struct saa7110 *to_saa7110(struct v4l2_subdev *sd) in to_saa7110() argument 55 return container_of(sd, struct saa7110, sd); in to_saa7110() 60 return &container_of(ctrl->handler, struct saa7110, hdl)->sd; in to_sd() 67 static int saa7110_write(struct v4l2_subdev *sd, u8 reg, u8 value) in saa7110_write() argument 69 struct i2c_client *client = v4l2_get_subdevdata(sd); in saa7110_write() 70 struct saa7110 *decoder = to_saa7110(sd); in saa7110_write() 76 static int saa7110_write_block(struct v4l2_subdev *sd, const u8 *data, unsigned int len) in saa7110_write_block() argument 78 struct i2c_client *client = v4l2_get_subdevdata(sd); in saa7110_write_block() 79 struct saa7110 *decoder = to_saa7110(sd); in saa7110_write_block() [all …]
|
D | tda1997x.c | 226 struct v4l2_subdev sd; member 296 static inline struct tda1997x_state *to_state(struct v4l2_subdev *sd) in to_state() argument 298 return container_of(sd, struct tda1997x_state, sd); in to_state() 303 return &container_of(ctrl->handler, struct tda1997x_state, hdl)->sd; in to_sd() 306 static int tda1997x_cec_read(struct v4l2_subdev *sd, u8 reg) in tda1997x_cec_read() argument 308 struct tda1997x_state *state = to_state(sd); in tda1997x_cec_read() 320 static int tda1997x_cec_write(struct v4l2_subdev *sd, u8 reg, u8 val) in tda1997x_cec_write() argument 322 struct tda1997x_state *state = to_state(sd); in tda1997x_cec_write() 339 static int tda1997x_setpage(struct v4l2_subdev *sd, u8 page) in tda1997x_setpage() argument 341 struct tda1997x_state *state = to_state(sd); in tda1997x_setpage() [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() argument 57 return container_of(sd, struct ths7303_state, sd); in to_state() 60 static int ths7303_read(struct v4l2_subdev *sd, u8 reg) in ths7303_read() argument 62 struct i2c_client *client = v4l2_get_subdevdata(sd); in ths7303_read() 67 static int ths7303_write(struct v4l2_subdev *sd, u8 reg, u8 val) in ths7303_write() argument 69 struct i2c_client *client = v4l2_get_subdevdata(sd); in ths7303_write() 82 static int ths7303_setval(struct v4l2_subdev *sd, in ths7303_setval() argument 85 struct i2c_client *client = v4l2_get_subdevdata(sd); in ths7303_setval() 86 struct ths7303_state *state = to_state(sd); in ths7303_setval() [all …]
|
/linux-6.12.1/drivers/media/usb/gspca/ |
D | cpia1.c | 214 #define FIRMWARE_VERSION(x, y) (sd->params.version.firmwareVersion == (x) && \ 215 sd->params.version.firmwareRevision == (y)) 353 struct sd { struct 442 struct sd *sd = (struct sd *) gspca_dev; in do_command() local 480 sd->params.version.firmwareVersion = gspca_dev->usb_buf[0]; in do_command() 481 sd->params.version.firmwareRevision = gspca_dev->usb_buf[1]; in do_command() 482 sd->params.version.vcVersion = gspca_dev->usb_buf[2]; in do_command() 483 sd->params.version.vcRevision = gspca_dev->usb_buf[3]; in do_command() 486 sd->params.pnpID.vendor = in do_command() 488 sd->params.pnpID.product = in do_command() [all …]
|
D | w996Xcf.c | 23 #define Y_QUANTABLE (&sd->jpeg_hdr[JPEG_QT0_OFFSET]) 24 #define UV_QUANTABLE (&sd->jpeg_hdr[JPEG_QT1_OFFSET]) 49 static void reg_w(struct sd *sd, u16 index, u16 value); 55 static void w9968cf_write_fsb(struct sd *sd, u16* data) in w9968cf_write_fsb() argument 57 struct usb_device *udev = sd->gspca_dev.dev; in w9968cf_write_fsb() 61 if (sd->gspca_dev.usb_err < 0) in w9968cf_write_fsb() 65 memcpy(sd->gspca_dev.usb_buf, data, 6); in w9968cf_write_fsb() 71 value, 0x06, sd->gspca_dev.usb_buf, 6, 500); in w9968cf_write_fsb() 74 sd->gspca_dev.usb_err = ret; in w9968cf_write_fsb() 82 static void w9968cf_write_sb(struct sd *sd, u16 value) in w9968cf_write_sb() argument [all …]
|
D | ov519.c | 50 struct sd { struct 1989 static void reg_w(struct sd *sd, u16 index, u16 value) in reg_w() argument 1991 struct gspca_dev *gspca_dev = (struct gspca_dev *)sd; in reg_w() 1994 if (sd->gspca_dev.usb_err < 0) in reg_w() 2000 switch (sd->bridge) { in reg_w() 2011 ret = usb_control_msg(sd->gspca_dev.dev, in reg_w() 2012 usb_sndctrlpipe(sd->gspca_dev.dev, 0), in reg_w() 2023 sd->gspca_dev.usb_buf[0] = value; in reg_w() 2024 ret = usb_control_msg(sd->gspca_dev.dev, in reg_w() 2025 usb_sndctrlpipe(sd->gspca_dev.dev, 0), in reg_w() [all …]
|
/linux-6.12.1/drivers/scsi/aic7xxx/ |
D | aic7xxx_93cx6.c | 95 #define CLOCK_PULSE(sd, rdy) \ argument 96 while ((SEEPROM_STATUS_INB(sd) & rdy) == 0) { \ 99 (void)SEEPROM_INB(sd); /* Clear clock */ 105 send_seeprom_cmd(struct seeprom_descriptor *sd, const struct seeprom_cmd *cmd) in send_seeprom_cmd() argument 111 temp = sd->sd_MS ^ sd->sd_CS; in send_seeprom_cmd() 112 SEEPROM_OUTB(sd, temp ^ sd->sd_CK); in send_seeprom_cmd() 113 CLOCK_PULSE(sd, sd->sd_RDY); in send_seeprom_cmd() 117 temp ^= sd->sd_DO; in send_seeprom_cmd() 118 SEEPROM_OUTB(sd, temp); in send_seeprom_cmd() 119 CLOCK_PULSE(sd, sd->sd_RDY); in send_seeprom_cmd() [all …]
|
/linux-6.12.1/drivers/media/usb/gspca/m5602/ |
D | m5602_core.c | 52 int m5602_read_bridge(struct sd *sd, const u8 address, u8 *i2c_data) in m5602_read_bridge() argument 55 struct gspca_dev *gspca_dev = (struct gspca_dev *) sd; in m5602_read_bridge() 56 struct usb_device *udev = sd->gspca_dev.dev; in m5602_read_bridge() 57 __u8 *buf = sd->gspca_dev.usb_buf; in m5602_read_bridge() 74 int m5602_write_bridge(struct sd *sd, const u8 address, const u8 i2c_data) in m5602_write_bridge() argument 77 struct gspca_dev *gspca_dev = (struct gspca_dev *) sd; in m5602_write_bridge() 78 struct usb_device *udev = sd->gspca_dev.dev; in m5602_write_bridge() 79 __u8 *buf = sd->gspca_dev.usb_buf; in m5602_write_bridge() 99 static int m5602_wait_for_i2c(struct sd *sd) in m5602_wait_for_i2c() argument 105 err = m5602_read_bridge(sd, M5602_XB_I2C_STATUS, &data); in m5602_wait_for_i2c() [all …]
|
D | m5602_po1030.c | 20 static void po1030_dump_registers(struct sd *sd); 155 int po1030_probe(struct sd *sd) in po1030_probe() argument 159 struct gspca_dev *gspca_dev = (struct gspca_dev *)sd; in po1030_probe() 177 err = m5602_write_sensor(sd, preinit_po1030[i][1], in po1030_probe() 180 err = m5602_write_bridge(sd, preinit_po1030[i][1], in po1030_probe() 186 if (m5602_read_sensor(sd, PO1030_DEVID_H, &dev_id_h, 1)) in po1030_probe() 196 sd->gspca_dev.cam.cam_mode = po1030_modes; in po1030_probe() 197 sd->gspca_dev.cam.nmodes = ARRAY_SIZE(po1030_modes); in po1030_probe() 202 int po1030_init(struct sd *sd) in po1030_init() argument 212 err = m5602_write_bridge(sd, in po1030_init() [all …]
|
D | m5602_ov9650.c | 21 static void ov9650_dump_registers(struct sd *sd); 294 int ov9650_probe(struct sd *sd) in ov9650_probe() argument 298 struct gspca_dev *gspca_dev = (struct gspca_dev *)sd; in ov9650_probe() 316 err = m5602_write_sensor(sd, in ov9650_probe() 319 err = m5602_write_bridge(sd, in ov9650_probe() 326 if (m5602_read_sensor(sd, OV9650_PID, &prod_id, 1)) in ov9650_probe() 329 if (m5602_read_sensor(sd, OV9650_VER, &ver_id, 1)) in ov9650_probe() 339 sd->gspca_dev.cam.cam_mode = ov9650_modes; in ov9650_probe() 340 sd->gspca_dev.cam.nmodes = ARRAY_SIZE(ov9650_modes); in ov9650_probe() 345 int ov9650_init(struct sd *sd) in ov9650_init() argument [all …]
|
D | m5602_s5k83a.c | 164 static void s5k83a_dump_registers(struct sd *sd); 165 static int s5k83a_get_rotation(struct sd *sd, u8 *reg_data); 166 static int s5k83a_set_led_indication(struct sd *sd, u8 val); 170 int s5k83a_probe(struct sd *sd) in s5k83a_probe() argument 174 struct gspca_dev *gspca_dev = (struct gspca_dev *)sd; in s5k83a_probe() 192 err = m5602_write_sensor(sd, preinit_s5k83a[i][1], in s5k83a_probe() 195 err = m5602_write_bridge(sd, preinit_s5k83a[i][1], in s5k83a_probe() 202 if (m5602_read_sensor(sd, 0x00, &prod_id, 1)) in s5k83a_probe() 205 if (m5602_read_sensor(sd, 0x01, &ver_id, 1)) in s5k83a_probe() 214 sd->gspca_dev.cam.cam_mode = s5k83a_modes; in s5k83a_probe() [all …]
|
/linux-6.12.1/drivers/media/usb/gspca/stv06xx/ |
D | stv06xx_pb0100.c | 79 struct sd *sd = (struct sd *)gspca_dev; in pb0100_s_ctrl() local 80 struct pb0100_ctrls *ctrls = sd->sensor_priv; in pb0100_s_ctrl() 106 static int pb0100_init_controls(struct sd *sd) in pb0100_init_controls() argument 108 struct v4l2_ctrl_handler *hdl = &sd->gspca_dev.ctrl_handler; in pb0100_init_controls() 150 sd->sensor_priv = ctrls; in pb0100_init_controls() 155 static int pb0100_probe(struct sd *sd) in pb0100_probe() argument 160 err = stv06xx_read_sensor(sd, PB_IDENT, &sensor); in pb0100_probe() 169 sd->gspca_dev.cam.cam_mode = pb0100_mode; in pb0100_probe() 170 sd->gspca_dev.cam.nmodes = ARRAY_SIZE(pb0100_mode); in pb0100_probe() 175 static int pb0100_start(struct sd *sd) in pb0100_start() argument [all …]
|
D | stv06xx.c | 29 int stv06xx_write_bridge(struct sd *sd, u16 address, u16 i2c_data) in stv06xx_write_bridge() argument 32 struct gspca_dev *gspca_dev = (struct gspca_dev *)sd; in stv06xx_write_bridge() 33 struct usb_device *udev = sd->gspca_dev.dev; in stv06xx_write_bridge() 34 __u8 *buf = sd->gspca_dev.usb_buf; in stv06xx_write_bridge() 51 int stv06xx_read_bridge(struct sd *sd, u16 address, u8 *i2c_data) in stv06xx_read_bridge() argument 54 struct gspca_dev *gspca_dev = (struct gspca_dev *)sd; in stv06xx_read_bridge() 55 struct usb_device *udev = sd->gspca_dev.dev; in stv06xx_read_bridge() 56 __u8 *buf = sd->gspca_dev.usb_buf; in stv06xx_read_bridge() 72 int stv06xx_write_sensor(struct sd *sd, u8 address, u16 value) in stv06xx_write_sensor() argument 74 if (sd->sensor->i2c_len == 2) { in stv06xx_write_sensor() [all …]
|
D | stv06xx_vv6410.c | 65 static int vv6410_probe(struct sd *sd) in vv6410_probe() argument 70 err = stv06xx_read_sensor(sd, VV6410_DEVICEH, &data); in vv6410_probe() 79 sd->gspca_dev.cam.cam_mode = vv6410_mode; in vv6410_probe() 80 sd->gspca_dev.cam.nmodes = ARRAY_SIZE(vv6410_mode); in vv6410_probe() 84 static int vv6410_init_controls(struct sd *sd) in vv6410_init_controls() argument 86 struct v4l2_ctrl_handler *hdl = &sd->gspca_dev.ctrl_handler; in vv6410_init_controls() 103 static int vv6410_init(struct sd *sd) in vv6410_init() argument 108 stv06xx_write_bridge(sd, stv_bridge_init[i].addr, stv_bridge_init[i].data); in vv6410_init() 110 err = stv06xx_write_sensor_bytes(sd, (u8 *) vv6410_sensor_init, in vv6410_init() 115 static int vv6410_start(struct sd *sd) in vv6410_start() argument [all …]
|
/linux-6.12.1/drivers/media/v4l2-core/ |
D | v4l2-device.c | 90 struct v4l2_subdev *sd, *next; in v4l2_device_unregister() local 99 list_for_each_entry_safe(sd, next, &v4l2_dev->subdevs, list) { in v4l2_device_unregister() 100 v4l2_device_unregister_subdev(sd); in v4l2_device_unregister() 101 if (sd->flags & V4L2_SUBDEV_FL_IS_I2C) in v4l2_device_unregister() 102 v4l2_i2c_subdev_unregister(sd); in v4l2_device_unregister() 103 else if (sd->flags & V4L2_SUBDEV_FL_IS_SPI) in v4l2_device_unregister() 104 v4l2_spi_subdev_unregister(sd); in v4l2_device_unregister() 112 struct v4l2_subdev *sd, struct module *module) in __v4l2_device_register_subdev() argument 117 if (!v4l2_dev || !sd || sd->v4l2_dev || !sd->name[0]) in __v4l2_device_register_subdev() 127 sd->owner_v4l2_dev = v4l2_dev->dev && v4l2_dev->dev->driver && in __v4l2_device_register_subdev() [all …]
|
D | v4l2-subdev.c | 51 static int subdev_fh_init(struct v4l2_subdev_fh *fh, struct v4l2_subdev *sd) in subdev_fh_init() argument 56 state = __v4l2_subdev_state_alloc(sd, "fh->state->lock", &key); in subdev_fh_init() 74 struct v4l2_subdev *sd = vdev_to_v4l2_subdev(vdev); in subdev_open() local 82 ret = subdev_fh_init(subdev_fh, sd); in subdev_open() 92 if (sd->v4l2_dev->mdev && sd->entity.graph_obj.mdev->dev) { in subdev_open() 95 owner = sd->entity.graph_obj.mdev->dev->driver->owner; in subdev_open() 103 if (sd->internal_ops && sd->internal_ops->open) { in subdev_open() 104 ret = sd->internal_ops->open(sd, subdev_fh); in subdev_open() 124 struct v4l2_subdev *sd = vdev_to_v4l2_subdev(vdev); in subdev_close() local 128 if (sd->internal_ops && sd->internal_ops->close) in subdev_close() [all …]
|
/linux-6.12.1/tools/testing/selftests/kvm/lib/riscv/ |
D | handlers.S | 14 sd x1, 0(sp) 15 sd x2, 8(sp) 16 sd x3, 16(sp) 17 sd x4, 24(sp) 18 sd x5, 32(sp) 19 sd x6, 40(sp) 20 sd x7, 48(sp) 21 sd x8, 56(sp) 22 sd x9, 64(sp) 23 sd x10, 72(sp) [all …]
|
/linux-6.12.1/drivers/media/radio/ |
D | saa7706h.c | 117 struct v4l2_subdev sd; member 122 static inline struct saa7706h_state *to_state(struct v4l2_subdev *sd) in to_state() argument 124 return container_of(sd, struct saa7706h_state, sd); in to_state() 144 static int saa7706h_set_reg24(struct v4l2_subdev *sd, u16 reg, u32 val) in saa7706h_set_reg24() argument 146 struct i2c_client *client = v4l2_get_subdevdata(sd); in saa7706h_set_reg24() 159 static int saa7706h_set_reg24_err(struct v4l2_subdev *sd, u16 reg, u32 val, in saa7706h_set_reg24_err() argument 162 return *err ? *err : saa7706h_set_reg24(sd, reg, val); in saa7706h_set_reg24_err() 165 static int saa7706h_set_reg16(struct v4l2_subdev *sd, u16 reg, u16 val) in saa7706h_set_reg16() argument 167 struct i2c_client *client = v4l2_get_subdevdata(sd); in saa7706h_set_reg16() 179 static int saa7706h_set_reg16_err(struct v4l2_subdev *sd, u16 reg, u16 val, in saa7706h_set_reg16_err() argument [all …]
|
/linux-6.12.1/drivers/media/usb/gspca/gl860/ |
D | gl860.c | 53 struct sd *sd = (struct sd *) gspca_dev; in sd_s_ctrl() local 57 sd->vcur.brightness = ctrl->val; in sd_s_ctrl() 60 sd->vcur.contrast = ctrl->val; in sd_s_ctrl() 63 sd->vcur.saturation = ctrl->val; in sd_s_ctrl() 66 sd->vcur.hue = ctrl->val; in sd_s_ctrl() 69 sd->vcur.gamma = ctrl->val; in sd_s_ctrl() 72 sd->vcur.mirror = ctrl->val; in sd_s_ctrl() 75 sd->vcur.flip = ctrl->val; in sd_s_ctrl() 78 sd->vcur.AC50Hz = ctrl->val; in sd_s_ctrl() 81 sd->vcur.whitebal = ctrl->val; in sd_s_ctrl() [all …]
|