/linux-4.19.296/drivers/media/usb/gspca/m5602/ |
D | m5602_core.c | 56 int m5602_read_bridge(struct sd *sd, const u8 address, u8 *i2c_data) in m5602_read_bridge() argument 59 struct gspca_dev *gspca_dev = (struct gspca_dev *) sd; in m5602_read_bridge() 60 struct usb_device *udev = sd->gspca_dev.dev; in m5602_read_bridge() 61 __u8 *buf = sd->gspca_dev.usb_buf; in m5602_read_bridge() 78 int m5602_write_bridge(struct sd *sd, const u8 address, const u8 i2c_data) in m5602_write_bridge() argument 81 struct gspca_dev *gspca_dev = (struct gspca_dev *) sd; in m5602_write_bridge() 82 struct usb_device *udev = sd->gspca_dev.dev; in m5602_write_bridge() 83 __u8 *buf = sd->gspca_dev.usb_buf; in m5602_write_bridge() 103 static int m5602_wait_for_i2c(struct sd *sd) in m5602_wait_for_i2c() argument 109 err = m5602_read_bridge(sd, M5602_XB_I2C_STATUS, &data); in m5602_wait_for_i2c() [all …]
|
D | m5602_s5k83a.c | 168 static void s5k83a_dump_registers(struct sd *sd); 169 static int s5k83a_get_rotation(struct sd *sd, u8 *reg_data); 170 static int s5k83a_set_led_indication(struct sd *sd, u8 val); 174 int s5k83a_probe(struct sd *sd) in s5k83a_probe() argument 178 struct gspca_dev *gspca_dev = (struct gspca_dev *)sd; in s5k83a_probe() 196 err = m5602_write_sensor(sd, preinit_s5k83a[i][1], in s5k83a_probe() 199 err = m5602_write_bridge(sd, preinit_s5k83a[i][1], in s5k83a_probe() 206 if (m5602_read_sensor(sd, 0x00, &prod_id, 1)) in s5k83a_probe() 209 if (m5602_read_sensor(sd, 0x01, &ver_id, 1)) in s5k83a_probe() 218 sd->gspca_dev.cam.cam_mode = s5k83a_modes; in s5k83a_probe() [all …]
|
D | m5602_po1030.c | 24 static void po1030_dump_registers(struct sd *sd); 159 int po1030_probe(struct sd *sd) in po1030_probe() argument 163 struct gspca_dev *gspca_dev = (struct gspca_dev *)sd; in po1030_probe() 181 err = m5602_write_sensor(sd, preinit_po1030[i][1], in po1030_probe() 184 err = m5602_write_bridge(sd, preinit_po1030[i][1], in po1030_probe() 190 if (m5602_read_sensor(sd, PO1030_DEVID_H, &dev_id_h, 1)) in po1030_probe() 200 sd->gspca_dev.cam.cam_mode = po1030_modes; in po1030_probe() 201 sd->gspca_dev.cam.nmodes = ARRAY_SIZE(po1030_modes); in po1030_probe() 206 int po1030_init(struct sd *sd) in po1030_init() argument 216 err = m5602_write_bridge(sd, in po1030_init() [all …]
|
D | m5602_ov9650.c | 25 static void ov9650_dump_registers(struct sd *sd); 298 int ov9650_probe(struct sd *sd) in ov9650_probe() argument 302 struct gspca_dev *gspca_dev = (struct gspca_dev *)sd; in ov9650_probe() 320 err = m5602_write_sensor(sd, in ov9650_probe() 323 err = m5602_write_bridge(sd, in ov9650_probe() 330 if (m5602_read_sensor(sd, OV9650_PID, &prod_id, 1)) in ov9650_probe() 333 if (m5602_read_sensor(sd, OV9650_VER, &ver_id, 1)) in ov9650_probe() 343 sd->gspca_dev.cam.cam_mode = ov9650_modes; in ov9650_probe() 344 sd->gspca_dev.cam.nmodes = ARRAY_SIZE(ov9650_modes); in ov9650_probe() 349 int ov9650_init(struct sd *sd) in ov9650_init() argument [all …]
|
D | m5602_mt9m111.c | 24 static void mt9m111_dump_registers(struct sd *sd); 199 int mt9m111_probe(struct sd *sd) in mt9m111_probe() argument 203 struct gspca_dev *gspca_dev = (struct gspca_dev *)sd; in mt9m111_probe() 220 m5602_write_bridge(sd, in mt9m111_probe() 226 m5602_write_sensor(sd, in mt9m111_probe() 231 if (m5602_read_sensor(sd, MT9M111_SC_CHIPVER, data, 2)) in mt9m111_probe() 242 sd->gspca_dev.cam.cam_mode = mt9m111_modes; in mt9m111_probe() 243 sd->gspca_dev.cam.nmodes = ARRAY_SIZE(mt9m111_modes); in mt9m111_probe() 248 int mt9m111_init(struct sd *sd) in mt9m111_init() argument 257 err = m5602_write_bridge(sd, in mt9m111_init() [all …]
|
D | m5602_ov7660.c | 24 static void ov7660_dump_registers(struct sd *sd); 197 int ov7660_probe(struct sd *sd) in ov7660_probe() argument 217 err = m5602_write_bridge(sd, in ov7660_probe() 222 err = m5602_write_sensor(sd, in ov7660_probe() 229 if (m5602_read_sensor(sd, OV7660_PID, &prod_id, 1)) in ov7660_probe() 232 if (m5602_read_sensor(sd, OV7660_VER, &ver_id, 1)) in ov7660_probe() 244 sd->gspca_dev.cam.cam_mode = ov7660_modes; in ov7660_probe() 245 sd->gspca_dev.cam.nmodes = ARRAY_SIZE(ov7660_modes); in ov7660_probe() 250 int ov7660_init(struct sd *sd) in ov7660_init() argument 259 err = m5602_write_bridge(sd, in ov7660_init() [all …]
|
/linux-4.19.296/drivers/media/usb/gspca/stv06xx/ |
D | stv06xx_pb0100.c | 88 struct sd *sd = (struct sd *)gspca_dev; in pb0100_s_ctrl() local 89 struct pb0100_ctrls *ctrls = sd->sensor_priv; in pb0100_s_ctrl() 115 static int pb0100_init_controls(struct sd *sd) in pb0100_init_controls() argument 117 struct v4l2_ctrl_handler *hdl = &sd->gspca_dev.ctrl_handler; in pb0100_init_controls() 159 sd->sensor_priv = ctrls; in pb0100_init_controls() 164 static int pb0100_probe(struct sd *sd) in pb0100_probe() argument 169 err = stv06xx_read_sensor(sd, PB_IDENT, &sensor); in pb0100_probe() 178 sd->gspca_dev.cam.cam_mode = pb0100_mode; in pb0100_probe() 179 sd->gspca_dev.cam.nmodes = ARRAY_SIZE(pb0100_mode); in pb0100_probe() 184 static int pb0100_start(struct sd *sd) in pb0100_start() argument [all …]
|
D | stv06xx_st6422.c | 59 static int setbrightness(struct sd *sd, s32 val); 60 static int setcontrast(struct sd *sd, s32 val); 61 static int setgain(struct sd *sd, u8 gain); 62 static int setexposure(struct sd *sd, s16 expo); 68 struct sd *sd = (struct sd *)gspca_dev; in st6422_s_ctrl() local 73 err = setbrightness(sd, ctrl->val); in st6422_s_ctrl() 76 err = setcontrast(sd, ctrl->val); in st6422_s_ctrl() 79 err = setgain(sd, ctrl->val); in st6422_s_ctrl() 82 err = setexposure(sd, ctrl->val); in st6422_s_ctrl() 88 err = stv06xx_write_bridge(sd, 0x143f, 0x01); in st6422_s_ctrl() [all …]
|
D | stv06xx.c | 38 int stv06xx_write_bridge(struct sd *sd, u16 address, u16 i2c_data) in stv06xx_write_bridge() argument 41 struct gspca_dev *gspca_dev = (struct gspca_dev *)sd; in stv06xx_write_bridge() 42 struct usb_device *udev = sd->gspca_dev.dev; in stv06xx_write_bridge() 43 __u8 *buf = sd->gspca_dev.usb_buf; in stv06xx_write_bridge() 60 int stv06xx_read_bridge(struct sd *sd, u16 address, u8 *i2c_data) in stv06xx_read_bridge() argument 63 struct gspca_dev *gspca_dev = (struct gspca_dev *)sd; in stv06xx_read_bridge() 64 struct usb_device *udev = sd->gspca_dev.dev; in stv06xx_read_bridge() 65 __u8 *buf = sd->gspca_dev.usb_buf; in stv06xx_read_bridge() 81 int stv06xx_write_sensor(struct sd *sd, u8 address, u16 value) in stv06xx_write_sensor() argument 83 if (sd->sensor->i2c_len == 2) { in stv06xx_write_sensor() [all …]
|
D | stv06xx_vv6410.c | 74 static int vv6410_probe(struct sd *sd) in vv6410_probe() argument 79 err = stv06xx_read_sensor(sd, VV6410_DEVICEH, &data); in vv6410_probe() 88 sd->gspca_dev.cam.cam_mode = vv6410_mode; in vv6410_probe() 89 sd->gspca_dev.cam.nmodes = ARRAY_SIZE(vv6410_mode); in vv6410_probe() 93 static int vv6410_init_controls(struct sd *sd) in vv6410_init_controls() argument 95 struct v4l2_ctrl_handler *hdl = &sd->gspca_dev.ctrl_handler; in vv6410_init_controls() 112 static int vv6410_init(struct sd *sd) in vv6410_init() argument 117 stv06xx_write_bridge(sd, stv_bridge_init[i].addr, stv_bridge_init[i].data); in vv6410_init() 119 err = stv06xx_write_sensor_bytes(sd, (u8 *) vv6410_sensor_init, in vv6410_init() 124 static int vv6410_start(struct sd *sd) in vv6410_start() argument [all …]
|
D | stv06xx_hdcs.c | 91 static int hdcs_reg_write_seq(struct sd *sd, u8 reg, u8 *vals, u8 len) in hdcs_reg_write_seq() argument 108 return stv06xx_write_sensor_bytes(sd, regs, len); in hdcs_reg_write_seq() 111 static int hdcs_set_state(struct sd *sd, enum hdcs_power_state state) in hdcs_set_state() argument 113 struct hdcs *hdcs = sd->sensor_priv; in hdcs_set_state() 122 ret = stv06xx_write_sensor(sd, HDCS_REG_CONTROL(sd), 0); in hdcs_set_state() 145 ret = stv06xx_write_sensor(sd, HDCS_REG_CONTROL(sd), val); in hdcs_set_state() 154 static int hdcs_reset(struct sd *sd) in hdcs_reset() argument 156 struct hdcs *hdcs = sd->sensor_priv; in hdcs_reset() 159 err = stv06xx_write_sensor(sd, HDCS_REG_CONTROL(sd), 1); in hdcs_reset() 163 err = stv06xx_write_sensor(sd, HDCS_REG_CONTROL(sd), 0); in hdcs_reset() [all …]
|
D | stv06xx_sensor.h | 31 #define IS_1020(sd) ((sd)->sensor == &stv06xx_sensor_hdcs1020) argument 57 int (*probe)(struct sd *sd); 60 int (*init)(struct sd *sd); 63 int (*init_controls)(struct sd *sd); 66 int (*read_sensor)(struct sd *sd, const u8 address, 70 int (*write_sensor)(struct sd *sd, const u8 address, 74 int (*start)(struct sd *sd); 77 int (*stop)(struct sd *sd); 80 int (*dump)(struct sd *sd);
|
/linux-4.19.296/include/media/ |
D | v4l2-subdev.h | 201 int (*log_status)(struct v4l2_subdev *sd); 202 int (*s_io_pin_config)(struct v4l2_subdev *sd, size_t n, 204 int (*init)(struct v4l2_subdev *sd, u32 val); 205 int (*load_fw)(struct v4l2_subdev *sd); 206 int (*reset)(struct v4l2_subdev *sd, u32 val); 207 int (*s_gpio)(struct v4l2_subdev *sd, u32 val); 208 long (*command)(struct v4l2_subdev *sd, unsigned int cmd, void *arg); 209 long (*ioctl)(struct v4l2_subdev *sd, unsigned int cmd, void *arg); 211 long (*compat_ioctl32)(struct v4l2_subdev *sd, unsigned int cmd, 215 int (*g_register)(struct v4l2_subdev *sd, struct v4l2_dbg_register *reg); [all …]
|
/linux-4.19.296/drivers/char/ |
D | snsc.c | 41 struct subch_data_s *sd = subch_data; in scdrv_interrupt() local 45 spin_lock_irqsave(&sd->sd_rlock, flags); in scdrv_interrupt() 46 spin_lock(&sd->sd_wlock); in scdrv_interrupt() 47 status = ia64_sn_irtr_intr(sd->sd_nasid, sd->sd_subch); in scdrv_interrupt() 51 wake_up(&sd->sd_rq); in scdrv_interrupt() 55 (sd->sd_nasid, sd->sd_subch, in scdrv_interrupt() 57 wake_up(&sd->sd_wq); in scdrv_interrupt() 60 spin_unlock(&sd->sd_wlock); in scdrv_interrupt() 61 spin_unlock_irqrestore(&sd->sd_rlock, flags); in scdrv_interrupt() 75 struct subch_data_s *sd; in scdrv_open() local [all …]
|
/linux-4.19.296/drivers/media/v4l2-core/ |
D | v4l2-device.c | 106 struct v4l2_subdev *sd, *next; in v4l2_device_unregister() local 115 list_for_each_entry_safe(sd, next, &v4l2_dev->subdevs, list) { in v4l2_device_unregister() 116 v4l2_device_unregister_subdev(sd); in v4l2_device_unregister() 118 if (sd->flags & V4L2_SUBDEV_FL_IS_I2C) { in v4l2_device_unregister() 119 struct i2c_client *client = v4l2_get_subdevdata(sd); in v4l2_device_unregister() 140 if (sd->flags & V4L2_SUBDEV_FL_IS_SPI) { in v4l2_device_unregister() 141 struct spi_device *spi = v4l2_get_subdevdata(sd); in v4l2_device_unregister() 155 struct v4l2_subdev *sd) in v4l2_device_register_subdev() argument 158 struct media_entity *entity = &sd->entity; in v4l2_device_register_subdev() 163 if (!v4l2_dev || !sd || sd->v4l2_dev || !sd->name[0]) in v4l2_device_register_subdev() [all …]
|
D | v4l2-async.c | 56 static bool match_i2c(struct v4l2_subdev *sd, struct v4l2_async_subdev *asd) in match_i2c() argument 59 struct i2c_client *client = i2c_verify_client(sd->dev); in match_i2c() 68 static bool match_devname(struct v4l2_subdev *sd, in match_devname() argument 71 return !strcmp(asd->match.device_name, dev_name(sd->dev)); in match_devname() 74 static bool match_fwnode(struct v4l2_subdev *sd, struct v4l2_async_subdev *asd) in match_fwnode() argument 76 return sd->fwnode == asd->match.fwnode; in match_fwnode() 79 static bool match_custom(struct v4l2_subdev *sd, struct v4l2_async_subdev *asd) in match_custom() argument 85 return asd->match.custom.match(sd->dev, asd); in match_custom() 93 struct v4l2_async_notifier *notifier, struct v4l2_subdev *sd) in v4l2_async_find_match() argument 120 if (match(sd, asd)) in v4l2_async_find_match() [all …]
|
D | v4l2-subdev.c | 32 static int subdev_fh_init(struct v4l2_subdev_fh *fh, struct v4l2_subdev *sd) in subdev_fh_init() argument 35 if (sd->entity.num_pads) { in subdev_fh_init() 36 fh->pad = v4l2_subdev_alloc_pad_config(sd); in subdev_fh_init() 55 struct v4l2_subdev *sd = vdev_to_v4l2_subdev(vdev); in subdev_open() local 66 ret = subdev_fh_init(subdev_fh, sd); in subdev_open() 76 if (sd->v4l2_dev->mdev) { in subdev_open() 77 entity = media_entity_get(&sd->entity); in subdev_open() 85 if (sd->internal_ops && sd->internal_ops->open) { in subdev_open() 86 ret = sd->internal_ops->open(sd, subdev_fh); in subdev_open() 108 struct v4l2_subdev *sd = vdev_to_v4l2_subdev(vdev); in subdev_close() local [all …]
|
/linux-4.19.296/drivers/media/radio/ |
D | saa7706h.c | 125 struct v4l2_subdev sd; member 130 static inline struct saa7706h_state *to_state(struct v4l2_subdev *sd) in to_state() argument 132 return container_of(sd, struct saa7706h_state, sd); in to_state() 152 static int saa7706h_set_reg24(struct v4l2_subdev *sd, u16 reg, u32 val) in saa7706h_set_reg24() argument 154 struct i2c_client *client = v4l2_get_subdevdata(sd); in saa7706h_set_reg24() 167 static int saa7706h_set_reg24_err(struct v4l2_subdev *sd, u16 reg, u32 val, in saa7706h_set_reg24_err() argument 170 return *err ? *err : saa7706h_set_reg24(sd, reg, val); in saa7706h_set_reg24_err() 173 static int saa7706h_set_reg16(struct v4l2_subdev *sd, u16 reg, u16 val) in saa7706h_set_reg16() argument 175 struct i2c_client *client = v4l2_get_subdevdata(sd); in saa7706h_set_reg16() 187 static int saa7706h_set_reg16_err(struct v4l2_subdev *sd, u16 reg, u16 val, in saa7706h_set_reg16_err() argument [all …]
|
/linux-4.19.296/drivers/gpio/ |
D | gpio-sodaville.c | 52 struct sdv_gpio_chip_data *sd = gc->private; in sdv_gpio_pub_set_type() local 57 type_reg = sd->gpio_pub_base + GPIT1R0; in sdv_gpio_pub_set_type() 59 type_reg = sd->gpio_pub_base + GPIT1R1; in sdv_gpio_pub_set_type() 82 struct sdv_gpio_chip_data *sd = data; in sdv_gpio_pub_irq_handler() local 83 u32 irq_stat = readl(sd->gpio_pub_base + GPSTR); in sdv_gpio_pub_irq_handler() 85 irq_stat &= readl(sd->gpio_pub_base + GPIO_INT); in sdv_gpio_pub_irq_handler() 93 generic_handle_irq(irq_find_mapping(sd->id, irq_bit)); in sdv_gpio_pub_irq_handler() 132 static int sdv_register_irqsupport(struct sdv_gpio_chip_data *sd, in sdv_register_irqsupport() argument 138 sd->irq_base = devm_irq_alloc_descs(&pdev->dev, -1, 0, in sdv_register_irqsupport() 140 if (sd->irq_base < 0) in sdv_register_irqsupport() [all …]
|
/linux-4.19.296/drivers/media/usb/gspca/ |
D | mr97310a.c | 81 struct sd { struct 187 struct sd *sd = (struct sd *) gspca_dev; in sensor_write1() local 192 if (sd->cam_type == CAM_TYPE_CIF) { in sensor_write1() 194 confirm_reg = sd->sensor_type ? 0x13 : 0x11; in sensor_write1() 351 struct sd *sd = (struct sd *) gspca_dev; in sd_config() local 358 sd->do_lcd_stop = 0; in sd_config() 382 sd->cam_type = CAM_TYPE_CIF; in sd_config() 407 sd->sensor_type = 0; in sd_config() 410 sd->sensor_type = 1; in sd_config() 418 sd->sensor_type); in sd_config() [all …]
|
D | topro.c | 122 struct sd { struct 1033 struct sd *sd = (struct sd *) gspca_dev; in i2c_w() local 1039 if (sd->bridge == BRIDGE_TP6800) in i2c_w() 1060 struct sd *sd = (struct sd *) gspca_dev; in i2c_r() local 1068 if (sd->bridge == BRIDGE_TP6800) in i2c_r() 1413 struct sd *sd = (struct sd *) gspca_dev; in setexposure() local 1415 if (sd->sensor == SENSOR_CX0342) { in setexposure() 1419 if (sd->bridge == BRIDGE_TP6800) in setexposure() 1423 if (sd->bridge == BRIDGE_TP6800) in setexposure() 1427 if (sd->sensor == SENSOR_CX0342) { in setexposure() [all …]
|
D | nw80x.c | 32 struct sd { struct 1662 struct sd *sd = (struct sd *) gspca_dev; in setgain() local 1665 switch (sd->webcam) { in setgain() 1681 struct sd *sd = (struct sd *) gspca_dev; in setexposure() local 1684 switch (sd->webcam) { in setexposure() 1702 struct sd *sd = (struct sd *) gspca_dev; in setautogain() local 1706 sd->ag_cnt = -1; in setautogain() 1709 sd->ag_cnt = AG_CNT_START; in setautogain() 1713 sd->ae_res = gspca_dev->pixfmt.width * gspca_dev->pixfmt.height; in setautogain() 1720 sd->ae_res = h * w; in setautogain() [all …]
|
D | stv0680.c | 37 struct sd { struct 106 struct sd *sd = (struct sd *) gspca_dev; in stv0680_set_video_mode() local 108 if (sd->current_mode == mode) in stv0680_set_video_mode() 125 sd->current_mode = mode; in stv0680_set_video_mode() 135 struct sd *sd = (struct sd *) gspca_dev; in sd_config() local 179 sd->video_mode = 0x00; /* CIF */ in sd_config() 181 sd->video_mode = 0x03; /* QVGA */ in sd_config() 195 sd->current_mode = sd->orig_mode = ret; in sd_config() 197 ret = stv0680_set_video_mode(gspca_dev, sd->video_mode); in sd_config() 211 sd->mode.width = (gspca_dev->usb_buf[4] << 8) | in sd_config() [all …]
|
/linux-4.19.296/fs/configfs/ |
D | inode.c | 60 struct configfs_dirent * sd = dentry->d_fsdata; in configfs_setattr() local 65 if (!sd) in configfs_setattr() 68 sd_iattr = sd->s_iattr; in configfs_setattr() 75 sd_iattr->ia_mode = sd->s_mode; in configfs_setattr() 80 sd->s_iattr = sd_iattr; in configfs_setattr() 106 sd_iattr->ia_mode = sd->s_mode = mode; in configfs_setattr() 129 struct inode *configfs_new_inode(umode_t mode, struct configfs_dirent *sd, in configfs_new_inode() argument 138 if (sd->s_iattr) { in configfs_new_inode() 143 set_inode_attr(inode, sd->s_iattr); in configfs_new_inode() 152 static void configfs_set_inode_lock_class(struct configfs_dirent *sd, in configfs_set_inode_lock_class() argument [all …]
|
D | dir.c | 64 struct configfs_dirent *sd = dentry->d_fsdata; in configfs_d_iput() local 66 if (sd) { in configfs_d_iput() 75 if (sd->s_dentry == dentry) in configfs_d_iput() 76 sd->s_dentry = NULL; in configfs_d_iput() 79 configfs_put(sd); in configfs_d_iput() 110 static void configfs_init_dirent_depth(struct configfs_dirent *sd) in configfs_init_dirent_depth() argument 112 sd->s_depth = -1; in configfs_init_dirent_depth() 116 struct configfs_dirent *sd) in configfs_set_dir_dirent_depth() argument 121 sd->s_depth = parent_depth + 1; in configfs_set_dir_dirent_depth() 125 configfs_adjust_dir_dirent_depth_before_populate(struct configfs_dirent *sd) in configfs_adjust_dir_dirent_depth_before_populate() argument [all …]
|