/linux/drivers/media/i2c/ |
H A D | tc358743.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * tc358743 - Toshiba HDMI to CSI-2 bridge 11 * REF_01 - Toshiba, TC358743XBG (H2C), Functional Specification, Rev 0.60 12 * REF_02 - Toshiba, TC358743XBG_HDMI-CSI_Tv11p_nm.xls 27 #include <linux/v4l2-dv-timings.h> 30 #include <media/v4l2-dv-timings.h> 31 #include <media/v4l2-device.h> 32 #include <media/v4l2-ctrls.h> 33 #include <media/v4l2-event.h> 34 #include <media/v4l2-fwnode.h> [all …]
|
H A D | adv7842.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * adv7842 - Analog Devices ADV7842 video decoder driver 10 * REF_01 - Analog devices, ADV7842, 12 * REF_02 - Analog devices, Software User Guide, UG-206, 14 * REF_03 - Analog devices, Hardware User Guide, UG-214, 15 * ADV7842 Fast Switching 2:1 HDMI 1.4 Receiver with 3D-Comb 27 #include <linux/v4l2-dv-timings.h> 30 #include <media/v4l2-device.h> 31 #include <media/v4l2-event.h> 32 #include <media/v4l2-ctrls.h> [all …]
|
H A D | adv7511-v4l2.c | 1 // SPDX-License-Identifier: GPL-2.0-only 9 * This file is named adv7511-v4l2.c so it doesn't conflict with the Analog 22 #include <linux/v4l2-dv-timings.h> 23 #include <media/v4l2-device.h> 24 #include <media/v4l2-common.h> 25 #include <media/v4l2-ctrls.h> 26 #include <media/v4l2-dv-timings.h> 32 MODULE_PARM_DESC(debug, "debug level (0-2)"); 78 struct v4l2_subdev sd; member 94 /* Did we receive hotplug and rx-sense signals? */ [all …]
|
H A D | adv7183.c | 1 // SPDX-License-Identifier: GPL-2.0-only 19 #include <media/v4l2-ctrls.h> 20 #include <media/v4l2-device.h> 25 struct v4l2_subdev sd; member 38 * All standards are supported through autodetect, 8-bit, 4:2:2, ITU-R BT.656 output on P15 to P8. 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() [all …]
|
H A D | ths8200.c | 2 * ths8200 - Texas Instruments THS8200 video encoder driver 23 #include <linux/v4l2-dv-timings.h> 25 #include <media/v4l2-dv-timings.h> 26 #include <media/v4l2-async.h> 27 #include <media/v4l2-device.h> 33 MODULE_PARM_DESC(debug, "debug level (0-2)"); 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 [all …]
|
H A D | adv7604.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * adv7604 - Analog Devices ADV7604 video decoder driver 11 * REF_01 - Analog devices, ADV7604, Register Settings Recommendations, 13 * REF_02 - Analog devices, Register map documentation, Documentation of 15 * REF_03 - Analog devices, ADV7604, Hardware Manual, Rev. F, August 2010 26 #include <linux/v4l2-dv-timings.h> 34 #include <media/v4l2-ctrls.h> 35 #include <media/v4l2-device.h> 36 #include <media/v4l2-event.h> 37 #include <media/v4l2-dv-timings.h> [all …]
|
H A D | saa7110.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * saa7110 - Philips SAA7110(A) video decoder driver 9 * - some corrections for Pinnacle Systems Inc. DC10plus card. 12 * - moved over to linux>=2.4.x i2c protocol (1/1/2003) 24 #include <media/v4l2-device.h> 25 #include <media/v4l2-ctrls.h> 34 MODULE_PARM_DESC(debug, "Debug level (0-1)"); 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() [all …]
|
H A D | tda1997x.c | 1 // SPDX-License-Identifier: GPL-2.0 16 #include <linux/v4l2-dv-timings.h> 19 #include <media/v4l2-ctrls.h> 20 #include <media/v4l2-device.h> 21 #include <media/v4l2-dv-timings.h> 22 #include <media/v4l2-event.h> 23 #include <media/v4l2-fwnode.h> 31 #include <dt-bindings/media/tda1997x.h> 40 MODULE_PARM_DESC(debug, "debug level (0-2)"); 46 "OBA", /* One-Bit Audio */ [all …]
|
H A D | ths7303.c | 2 * ths7303/53- THS7303/53 Video Amplifier driver 4 * Copyright (C) 2009 Texas Instruments Incorporated - http://www.ti.com/ 29 #include <media/v4l2-device.h> 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() [all …]
|
/linux/drivers/media/usb/gspca/ |
H A D | cpia1.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright (C) 2010-2011 Hans de Goede <hdegoede@redhat.com> 9 * (C) Copyright 1999-2000 Peter Pregler 10 * (C) Copyright 1999-2000 Scott J. Bertin 11 * (C) Copyright 1999-2000 Johannes Erdfelt <johannes@erdfelt.com> 214 #define FIRMWARE_VERSION(x, y) (sd->params.version.firmwareVersion == (x) && \ 215 sd->params.version.firmwareRevision == (y)) 226 /* Developer's Guide Table 5 p 3-34 353 struct sd { struct 408 pipe = usb_rcvctrlpipe(gspca_dev->dev, 0); in cpia_usb_transferCmd() [all …]
|
H A D | w996Xcf.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 9 * Copyright (C) 2002-2004 by Luca Risolia <luca.risolia@studio.unibo.it> 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); 51 /*-------------------------------------------------------------------------- 52 Write 64-bit data to the fast serial bus registers. 53 Return 0 on success, -1 otherwise. 54 --------------------------------------------------------------------------*/ 55 static void w9968cf_write_fsb(struct sd *sd, u16* data) in w9968cf_write_fsb() argument [all …]
|
H A D | ov519.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright (C) 2008-2011 Jean-François Moine <moinejf@free.fr> 8 * This module is adapted from the ov51x-jpeg package, which itself 13 * Copyright (c) 1999-2006 Mark W. McClelland 20 * ov51x-jpeg original copyright is: 22 * Copyright (c) 2004-2007 Romain Beauxis <toots@rastageeks.org> 38 MODULE_AUTHOR("Jean-Francois Moine <http://moinejf.free.fr>"); 50 struct sd { struct 482 /*jfm: this value does not work for 800x600 - see isoc_init */ 539 #define OV7670_R14_COM9 0x14 /* Control 9 - gain ceiling */ [all …]
|
/linux/drivers/scsi/aic7xxx/ |
H A D | aic7xxx_93cx6.c | 39 * ------------------------------------------------------------------- 40 * READ 1 10 A5 - A0 Reads data stored in memory, 44 * ERASE 1 11 A5 - A0 Erase register A5A4A3A2A1A0 45 * WRITE 1 01 A5 - A0 D15 - D0 Writes register 47 * WRAL 1 00 01XXXX D15 - D0 Writes to all registers 61 * requested 16-bit register contents is read from the data out line but 62 * is preceded by an initial zero (leading 0, followed by 16-bits, MSB 95 #define CLOCK_PULSE(sd, rdy) \ argument 96 while ((SEEPROM_STATUS_INB(sd) & rdy) == 0) { \ 99 (void)SEEPROM_INB(sd); /* Clear clock */ [all …]
|
/linux/drivers/media/usb/gspca/m5602/ |
H A D | m5602_core.c | 1 // SPDX-License-Identifier: GPL-2.0-only 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 [all …]
|
H A D | m5602_po1030.c | 1 // SPDX-License-Identifier: GPL-2.0-only 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() 168 return -ENODEV; in po1030_probe() 173 /* Run the pre-init to actually probe the unit */ 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() 187 return -ENODEV; in po1030_probe() [all …]
|
H A D | m5602_ov9650.c | 1 // SPDX-License-Identifier: GPL-2.0-only 21 static void ov9650_dump_registers(struct sd *sd); 151 /* Enable denoise, and white-pixel erase */ 294 int ov9650_probe(struct sd *sd) in ov9650_probe() argument 298 struct gspca_dev *gspca_dev = (struct gspca_dev *)sd; in ov9650_probe() 307 return -ENODEV; in ov9650_probe() 312 /* Run the pre-init before probing the sensor */ 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() [all …]
|
H A D | m5602_s5k83a.c | 1 // SPDX-License-Identifier: GPL-2.0-only 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() 183 return -ENODEV; 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() [all …]
|
/linux/drivers/media/usb/gspca/stv06xx/ |
H A D | stv06xx_pb0100.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright (c) 2001 Jean-Fredric Clere, Nikolas Zimmermann, Georg Acher 4 * Mark Cave-Ayland, Carlo E Prelz, Dick Streefland 9 * P/N 861050-0010: Sensor HDCS1000 ASIC STV0600 10 * P/N 861050-0020: Sensor Photobit PB100 ASIC STV0600-1 - QuickCam Express 11 * P/N 861055: Sensor ST VV6410 ASIC STV0610 - LEGO cam 12 * P/N 861075-0040: Sensor HDCS1000 ASIC 13 * P/N 961179-0700: Sensor ST VV6410 ASIC STV0602 - Dexxa WebCam USB 14 * P/N 861040-0000: Sensor ST VV6410 ASIC STV0610 - QuickCam Web 18 * The spec file for the PB-0100 suggests the following for best quality [all …]
|
H A D | stv06xx.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright (c) 2001 Jean-Fredric Clere, Nikolas Zimmermann, Georg Acher 4 * Mark Cave-Ayland, Carlo E Prelz, Dick Streefland 9 * P/N 861050-0010: Sensor HDCS1000 ASIC STV0600 10 * P/N 861050-0020: Sensor Photobit PB100 ASIC STV0600-1 - QuickCam Express 11 * P/N 861055: Sensor ST VV6410 ASIC STV0610 - LEGO cam 12 * P/N 861075-0040: Sensor HDCS1000 ASIC 13 * P/N 961179-0700: Sensor ST VV6410 ASIC STV0602 - Dexxa WebCam USB 14 * P/N 861040-0000: Sensor ST VV6410 ASIC STV0610 - QuickCam Web 29 int stv06xx_write_bridge(struct sd *sd, u16 address, u16 i2c_data) in stv06xx_write_bridge() argument [all …]
|
H A D | stv06xx_vv6410.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright (c) 2001 Jean-Fredric Clere, Nikolas Zimmermann, Georg Acher 4 * Mark Cave-Ayland, Carlo E Prelz, Dick Streefland 9 * P/N 861050-0010: Sensor HDCS1000 ASIC STV0600 10 * P/N 861050-0020: Sensor Photobit PB100 ASIC STV0600-1 - QuickCam Express 11 * P/N 861055: Sensor ST VV6410 ASIC STV0610 - LEGO cam 12 * P/N 861075-0040: Sensor HDCS1000 ASIC 13 * P/N 961179-0700: Sensor ST VV6410 ASIC STV0602 - Dexxa WebCam USB 14 * P/N 861040-0000: Sensor ST VV6410 ASIC STV0610 - QuickCam Web 37 container_of(ctrl->handler, struct gspca_dev, ctrl_handler); in vv6410_s_ctrl() [all …]
|
/linux/drivers/media/v4l2-core/ |
H A D | v4l2-device.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 14 #include <media/v4l2-device.h> 15 #include <media/v4l2-ctrls.h> 20 return -EINVAL; in v4l2_device_register() 22 INIT_LIST_HEAD(&v4l2_dev->subdevs); in v4l2_device_register() 23 spin_lock_init(&v4l2_dev->lock); in v4l2_device_register() 24 v4l2_prio_init(&v4l2_dev->prio); in v4l2_device_register() 25 kref_init(&v4l2_dev->ref); in v4l2_device_register() 27 v4l2_dev->dev = dev; in v4l2_device_register() 30 if (WARN_ON(!v4l2_dev->name[0])) in v4l2_device_register() [all …]
|
H A D | v4l2-subdev.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * V4L2 sub-device 23 #include <media/v4l2-ctrls.h> 24 #include <media/v4l2-device.h> 25 #include <media/v4l2-event.h> 26 #include <media/v4l2-fh.h> 27 #include <media/v4l2-ioctl.h> 48 #include "v4l2-subdev-priv.h" 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() [all …]
|
/linux/tools/testing/selftests/kvm/lib/riscv/ |
H A D | handlers.S | 1 /* SPDX-License-Identifier: GPL-2.0 */ 13 addi sp, sp, (-8*34) 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) [all …]
|
/linux/drivers/media/radio/ |
H A D | saa7706h.c | 1 // SPDX-License-Identifier: GPL-2.0-only 15 #include <media/v4l2-device.h> 16 #include <media/v4l2-ctrls.h> 22 $1C00 - $FFFF Not Used 23 $2200 - $3FFF Reserved YRAM (DSP2) space 24 $2000 - $21FF YRAM (DSP2) 25 $1FF0 - $1FFF Hardware Registers 26 $1280 - $1FEF Reserved XRAM (DSP2) space 27 $1000 - $127F XRAM (DSP2) 29 $0A00 - $0FFE Reserved [all …]
|
/linux/drivers/media/usb/gspca/gl860/ |
H A D | gl860.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 6 * GSPCA by Jean-Francois Moine <http://moinejf.free.fr> 52 container_of(ctrl->handler, struct gspca_dev, ctrl_handler); in sd_s_ctrl() 53 struct sd *sd = (struct sd *) gspca_dev; in sd_s_ctrl() local 55 switch (ctrl->id) { in sd_s_ctrl() 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() [all …]
|