| /linux/drivers/media/usb/gspca/ |
| H A 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 …]
|
| H A 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 …]
|
| H A 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 …]
|
| H A D | se401.c | 42 struct sd { struct 179 struct sd *sd = (struct sd *) gspca_dev; in setexposure() local 188 sd->expo_change_state = EXPO_CHANGED; in setexposure() 210 struct sd *sd = (struct sd *)gspca_dev; in sd_config() local 256 sd->fmts[i].width = widths[i]; in sd_config() 257 sd->fmts[i].height = heights[i]; in sd_config() 258 sd->fmts[i].field = V4L2_FIELD_NONE; in sd_config() 259 sd->fmts[i].colorspace = V4L2_COLORSPACE_SRGB; in sd_config() 260 sd->fmts[i].priv = 1; in sd_config() 266 sd->fmts[i].priv = 2; in sd_config() [all …]
|
| /linux/drivers/scsi/aic7xxx/ |
| H A 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/drivers/media/usb/gspca/m5602/ |
| H A 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 …]
|
| H A 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 …]
|
| H A 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 …]
|
| H A 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 …]
|
| H A D | m5602_mt9m111.c | 20 static void mt9m111_dump_registers(struct sd *sd); 195 int mt9m111_probe(struct sd *sd) in mt9m111_probe() argument 199 struct gspca_dev *gspca_dev = (struct gspca_dev *)sd; in mt9m111_probe() 216 err = m5602_write_bridge(sd, in mt9m111_probe() 222 err = m5602_write_sensor(sd, in mt9m111_probe() 229 if (m5602_read_sensor(sd, MT9M111_SC_CHIPVER, data, 2)) in mt9m111_probe() 240 sd->gspca_dev.cam.cam_mode = mt9m111_modes; in mt9m111_probe() 241 sd->gspca_dev.cam.nmodes = ARRAY_SIZE(mt9m111_modes); in mt9m111_probe() 246 int mt9m111_init(struct sd *sd) in mt9m111_init() argument 255 err = m5602_write_bridge(sd, in mt9m111_init() [all …]
|
| H A D | m5602_ov7660.c | 20 static void ov7660_dump_registers(struct sd *sd); 193 int ov7660_probe(struct sd *sd) in ov7660_probe() argument 213 err = m5602_write_bridge(sd, in ov7660_probe() 218 err = m5602_write_sensor(sd, in ov7660_probe() 225 if (m5602_read_sensor(sd, OV7660_PID, &prod_id, 1)) in ov7660_probe() 228 if (m5602_read_sensor(sd, OV7660_VER, &ver_id, 1)) in ov7660_probe() 240 sd->gspca_dev.cam.cam_mode = ov7660_modes; in ov7660_probe() 241 sd->gspca_dev.cam.nmodes = ARRAY_SIZE(ov7660_modes); in ov7660_probe() 246 int ov7660_init(struct sd *sd) in ov7660_init() argument 255 err = m5602_write_bridge(sd, in ov7660_init() [all …]
|
| /linux/drivers/media/usb/gspca/stv06xx/ |
| H A 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 …]
|
| H A 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 …]
|
| H A 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 …]
|
| H A D | stv06xx_st6422.c | 49 static int setbrightness(struct sd *sd, s32 val); 50 static int setcontrast(struct sd *sd, s32 val); 51 static int setgain(struct sd *sd, u8 gain); 52 static int setexposure(struct sd *sd, s16 expo); 58 struct sd *sd = (struct sd *)gspca_dev; in st6422_s_ctrl() local 63 err = setbrightness(sd, ctrl->val); in st6422_s_ctrl() 66 err = setcontrast(sd, ctrl->val); in st6422_s_ctrl() 69 err = setgain(sd, ctrl->val); in st6422_s_ctrl() 72 err = setexposure(sd, ctrl->val); in st6422_s_ctrl() 78 err = stv06xx_write_bridge(sd, 0x143f, 0x01); in st6422_s_ctrl() [all …]
|
| H A D | stv06xx_hdcs.c | 82 static int hdcs_reg_write_seq(struct sd *sd, u8 reg, u8 *vals, u8 len) in hdcs_reg_write_seq() argument 99 return stv06xx_write_sensor_bytes(sd, regs, len); in hdcs_reg_write_seq() 102 static int hdcs_set_state(struct sd *sd, enum hdcs_power_state state) in hdcs_set_state() argument 104 struct hdcs *hdcs = sd->sensor_priv; in hdcs_set_state() 113 ret = stv06xx_write_sensor(sd, HDCS_REG_CONTROL(sd), 0); in hdcs_set_state() 136 ret = stv06xx_write_sensor(sd, HDCS_REG_CONTROL(sd), val); in hdcs_set_state() 145 static int hdcs_reset(struct sd *sd) in hdcs_reset() argument 147 struct hdcs *hdcs = sd->sensor_priv; in hdcs_reset() 150 err = stv06xx_write_sensor(sd, HDCS_REG_CONTROL(sd), 1); in hdcs_reset() 154 err = stv06xx_write_sensor(sd, HDCS_REG_CONTROL(sd), 0); in hdcs_reset() [all …]
|
| /linux/drivers/media/v4l2-core/ |
| H A 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 …]
|
| /linux/tools/testing/selftests/kvm/lib/riscv/ |
| H A D | handlers.S | 14 sd x1, 8(sp) 15 sd x2, 16(sp) 16 sd x3, 24(sp) 17 sd x4, 32(sp) 18 sd x5, 40(sp) 19 sd x6, 48(sp) 20 sd x7, 56(sp) 21 sd x8, 64(sp) 22 sd x9, 72(sp) 23 sd x10, 80(sp) [all …]
|
| /linux/drivers/media/usb/gspca/gl860/ |
| H A 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 …]
|
| /linux/drivers/media/i2c/ |
| H A D | tvp514x.c | 76 static int tvp514x_s_stream(struct v4l2_subdev *sd, int enable); 79 * @sd: Subdevice Slave handle 98 struct v4l2_subdev sd; member 261 static inline struct tvp514x_decoder *to_decoder(struct v4l2_subdev *sd) in to_decoder() argument 263 return container_of(sd, struct tvp514x_decoder, sd); in to_decoder() 268 return &container_of(ctrl->handler, struct tvp514x_decoder, hdl)->sd; in to_sd() 274 * @sd: ptr to v4l2_subdev struct 279 static int tvp514x_read_reg(struct v4l2_subdev *sd, u8 reg) in tvp514x_read_reg() argument 282 struct i2c_client *client = v4l2_get_subdevdata(sd); in tvp514x_read_reg() 289 v4l2_warn(sd, "Read: retry ... %d\n", retry); in tvp514x_read_reg() [all …]
|
| /linux/drivers/clk/uniphier/ |
| H A D | clk-uniphier-mio.c | 12 UNIPHIER_CLK_FACTOR("sd-44m", -1, "sd-133m", 1, 3), \ 13 UNIPHIER_CLK_FACTOR("sd-33m", -1, "sd-200m", 1, 6), \ 14 UNIPHIER_CLK_FACTOR("sd-50m", -1, "sd-200m", 1, 4), \ 15 UNIPHIER_CLK_FACTOR("sd-67m", -1, "sd-200m", 1, 3), \ 16 UNIPHIER_CLK_FACTOR("sd-100m", -1, "sd-200m", 1, 2), \ 17 UNIPHIER_CLK_FACTOR("sd-40m", -1, "sd-200m", 1, 5), \ 18 UNIPHIER_CLK_FACTOR("sd-25m", -1, "sd-200m", 1, 8), \ 19 UNIPHIER_CLK_FACTOR("sd-22m", -1, "sd-133m", 1, 6) 23 .name = "sd" #ch "-sel", \ 28 "sd-44m", \ [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
| H A D | sd.c | 4 #include "lib/sd.h" 51 struct mlx5_sd *sd = mlx5_get_sd(dev); in mlx5_sd_get_group_size() local 53 if (!sd) in mlx5_sd_get_group_size() 56 return sd->group_size; in mlx5_sd_get_group_size() 61 struct mlx5_sd *sd = mlx5_get_sd(dev); in mlx5_sd_get_primary() local 63 if (!sd) in mlx5_sd_get_primary() 66 if (!mlx5_devcom_comp_is_ready(sd->devcom)) in mlx5_sd_get_primary() 69 return sd->primary ? dev : sd->primary_dev; in mlx5_sd_get_primary() 74 struct mlx5_sd *sd = mlx5_get_sd(dev); in mlx5_sd_get_devcom() local 76 if (!sd) in mlx5_sd_get_devcom() [all …]
|
| /linux/drivers/staging/media/atomisp/i2c/ |
| H A D | atomisp-ov2722.c | 254 static long __ov2722_set_exposure(struct v4l2_subdev *sd, int coarse_itg, in __ov2722_set_exposure() argument 258 struct i2c_client *client = v4l2_get_subdevdata(sd); in __ov2722_set_exposure() 259 struct ov2722_device *dev = to_ov2722_sensor(sd); in __ov2722_set_exposure() 325 static int ov2722_set_exposure(struct v4l2_subdev *sd, int exposure, in ov2722_set_exposure() argument 328 struct ov2722_device *dev = to_ov2722_sensor(sd); in ov2722_set_exposure() 332 ret = __ov2722_set_exposure(sd, exposure, gain, digitgain); in ov2722_set_exposure() 338 static long ov2722_s_exposure(struct v4l2_subdev *sd, in ov2722_s_exposure() argument 347 struct i2c_client *client = v4l2_get_subdevdata(sd); in ov2722_s_exposure() 353 return ov2722_set_exposure(sd, exp, gain, digitgain); in ov2722_s_exposure() 356 static long ov2722_ioctl(struct v4l2_subdev *sd, unsigned int cmd, void *arg) in ov2722_ioctl() argument [all …]
|
| /linux/arch/mips/kernel/ |
| H A D | octeon_switch.S | 105 sd t0, OCTEON_CP2_CRC_IV(a0) 106 sd t1, OCTEON_CP2_CRC_LENGTH(a0) 109 sd t2, OCTEON_CP2_CRC_POLY(a0) 114 sd t0, OCTEON_CP2_LLM_DAT(a0) 117 sd t1, OCTEON_CP2_LLM_DAT+8(a0) 125 sd t0, OCTEON_CP2_3DES_IV(a0) 127 sd t1, OCTEON_CP2_3DES_KEY(a0) 129 sd t2, OCTEON_CP2_3DES_KEY+8(a0) 131 sd t3, OCTEON_CP2_3DES_KEY+16(a0) 133 sd t0, OCTEON_CP2_3DES_RESULT(a0) [all …]
|
| /linux/kernel/sched/ |
| H A D | topology.c | 46 static int sched_domain_debug_one(struct sched_domain *sd, int cpu, int level, in sched_domain_debug_one() argument 49 struct sched_group *group = sd->groups; in sched_domain_debug_one() 50 unsigned long flags = sd->flags; in sched_domain_debug_one() 57 cpumask_pr_args(sched_domain_span(sd)), sd->name); in sched_domain_debug_one() 59 if (!cpumask_test_cpu(cpu, sched_domain_span(sd))) { in sched_domain_debug_one() 70 if ((meta_flags & SDF_SHARED_CHILD) && sd->child && in sched_domain_debug_one() 71 !(sd->child->flags & flag)) in sched_domain_debug_one() 75 if ((meta_flags & SDF_SHARED_PARENT) && sd->parent && in sched_domain_debug_one() 76 !(sd->parent->flags & flag)) in sched_domain_debug_one() 95 if (!(sd->flags & SD_NUMA) && in sched_domain_debug_one() [all …]
|