/linux/drivers/media/platform/marvell/ |
H A D | cafe-driver.c | 1 // SPDX-License-Identifier: GPL-2.0-only 10 * Copyright 2006-11 One Laptop Per Child Association, Inc. 11 * Copyright 2006-11 Jonathan Corbet <corbet@lwn.net> 28 #include <media/v4l2-device.h> 36 #include "mcam-core.h" 38 #define CAFE_VERSION 0x000002 57 * Most of the camera controller registers are defined in mcam-core.h, 66 #define REG_GPR 0xb4 67 #define GPR_C1EN 0x00000020 /* Pad 1 (power down) enable */ 68 #define GPR_C0EN 0x00000010 /* Pad 0 (reset) enable */ [all …]
|
H A D | mcam-core.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 11 #include <linux/clk-provider.h> 13 #include <media/v4l2-common.h> 14 #include <media/v4l2-ctrls.h> 15 #include <media/v4l2-dev.h> 16 #include <media/videobuf2-v4l2.h> 54 B_vmalloc = 0, 81 return 0; in mcam_buffer_mode_supported() 120 * dphy[0]: DPHY3 136 int (*plat_power_up) (struct mcam_camera *cam); [all …]
|
/linux/drivers/net/wireless/realtek/rtw88/ |
H A D | sec.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 2 /* Copyright(c) 2018-2019 Realtek Corporation 11 /* if default key search is enabled, the first 4 cam entries in rtw_sec_get_free_cam() 12 * are used to direct map to group key with its key->key_idx, so in rtw_sec_get_free_cam() 13 * driver should use cam entries after 4 to install pairwise key in rtw_sec_get_free_cam() 15 if (sec->default_key_search) in rtw_sec_get_free_cam() 16 return find_next_zero_bit(sec->cam_map, RTW_MAX_SEC_CAM_NUM, in rtw_sec_get_free_cam() 19 return find_first_zero_bit(sec->cam_map, RTW_MAX_SEC_CAM_NUM); in rtw_sec_get_free_cam() 28 struct rtw_cam_entry *cam = &sec->cam_table[hw_key_idx]; in rtw_sec_write_cam() local 35 set_bit(hw_key_idx, sec->cam_map); in rtw_sec_write_cam() [all …]
|
/linux/drivers/media/dvb-core/ |
H A D | dvb_ca_en50221.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * dvb_ca.c: generic DVB functions for EN50221 CAM interfaces 13 * Copyright (C) 1999-2002 Ralph Metzler 41 } while (0) 45 #define HOST_LINK_BUF_SIZE 0x200 51 #define CTRLIF_DATA 0 61 #define CMDREG_FRIE 0x40 /* Enable FR interrupt */ 62 #define CMDREG_DAIE 0x80 /* Enable DA interrupt */ 67 #define STATUSREG_FR 0x40 /* module free */ 68 #define STATUSREG_DA 0x80 /* data available */ [all …]
|
/linux/drivers/media/usb/gspca/ |
H A D | kinect.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 51 uint8_t obuf[0x400]; /* output buffer for control commands */ 52 uint8_t ibuf[0x200]; /* input buffer for control commands */ 55 #define MODE_640x480 0x0001 56 #define MODE_640x488 0x0002 57 #define MODE_1280x1024 0x0004 59 #define FORMAT_BAYER 0x0010 60 #define FORMAT_UYVY 0x0020 61 #define FORMAT_Y10B 0x0040 63 #define FPS_HIGH 0x0100 [all …]
|
H A D | jl2005bcd.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 24 #define JL2005C_MAX_TRANSFER 0x200 37 int vga; /* 1 if vga cam, 0 if cif cam */ 47 .priv = 0}, 52 .priv = 0}, 60 .priv = 0}, 65 .priv = 0}, 69 * cam uses endpoint 0x03 to send commands, 0x84 for read commands, 70 * and 0x82 for bulk data transfer. 78 memcpy(gspca_dev->usb_buf, command, 2); in jl2005c_write2() [all …]
|
H A D | sq905.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 31 MODULE_AUTHOR("Adam Baker <linux@baker-net.org.uk>, Theodore Kilgore <kilgota@auburn.edu>"); 40 #define SQ905_MAX_TRANSFER 0x8000 47 #define SQ905_BULK_READ 0x03 /* precedes any bulk read */ 48 #define SQ905_COMMAND 0x06 /* precedes the command codes below */ 49 #define SQ905_PING 0x07 /* when reading an "idling" command */ 50 #define SQ905_READ_DONE 0xc0 /* ack bulk read completed */ 52 /* Any non-zero value in the bottom 2 bits of the 2nd byte of 56 #define SQ905_HIRES_MASK 0x00000300 57 #define SQ905_ORIENTATION_MASK 0x00000100 [all …]
|
H A D | stv0680.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 39 u8 req_type = 0; in stv_sndctrl() 40 unsigned int pipe = 0; in stv_sndctrl() 43 case 0: /* 0xc1 */ in stv_sndctrl() 45 pipe = usb_rcvctrlpipe(gspca_dev->dev, 0); in stv_sndctrl() 47 case 1: /* 0x41 */ in stv_sndctrl() 49 pipe = usb_sndctrlpipe(gspca_dev->dev, 0); in stv_sndctrl() 51 case 2: /* 0x80 */ in stv_sndctrl() 53 pipe = usb_rcvctrlpipe(gspca_dev->dev, 0); in stv_sndctrl() 55 case 3: /* 0x40 */ in stv_sndctrl() [all …]
|
H A D | sq905c.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 34 #define SQ905C_MAX_TRANSFER 0x8000 36 #define FRAME_HEADER_LEN 0x50 39 #define SQ905C_CLEAR 0xa0 /* clear everything */ 40 #define SQ905C_GET_ID 0x14f4 /* Read version number */ 41 #define SQ905C_CAPTURE_LOW 0xa040 /* Starts capture at 160x120 */ 42 #define SQ905C_CAPTURE_MED 0x1440 /* Starts capture at 320x240 */ 43 #define SQ905C_CAPTURE_HI 0x2840 /* Starts capture at 320x240 */ 46 #define SQ905C_CAPTURE_INDEX 0x110f 60 * The 0x2770:0x9050 cameras have max resolution of 320x240. [all …]
|
H A D | vicam.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 56 #if 0 /* This mode has extremely non square pixels, testing use only */ 73 ret = usb_control_msg(gspca_dev->dev, in vicam_control_msg() 74 usb_sndctrlpipe(gspca_dev->dev, 0), in vicam_control_msg() 78 if (ret < 0) in vicam_control_msg() 88 ret = vicam_control_msg(gspca_dev, 0x50, state, 0, NULL, 0); in vicam_set_camera_power() 89 if (ret < 0) in vicam_set_camera_power() 93 ret = vicam_control_msg(gspca_dev, 0x55, 1, 0, NULL, 0); in vicam_set_camera_power() 103 int ret, unscaled_height, act_len = 0; in vicam_read_frame() 104 u8 *req_data = gspca_dev->usb_buf; in vicam_read_frame() [all …]
|
H A D | jeilinj.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Supports some Jeilin dual-mode cameras which use bulk transport and 32 #define JEILINJ_MAX_TRANSFER 0x200 33 #define FRAME_HEADER_LEN 0x10 34 #define FRAME_START 0xFFFFFFFF 41 #define CAMQUALITY_MIN 0 /* highest cam quality */ 42 #define CAMQUALITY_MAX 97 /* lowest cam quality */ 72 .priv = 0}, 77 .priv = 0} 81 * cam uses endpoint 0x03 to send commands, 0x84 for read commands, [all …]
|
H A D | se401.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 19 #define MAX_MODES ((READ_REQ_SIZE - 6) / 4) 67 if (gspca_dev->usb_err < 0) in se401_write_req() 70 err = usb_control_msg(gspca_dev->dev, in se401_write_req() 71 usb_sndctrlpipe(gspca_dev->dev, 0), req, in se401_write_req() 73 value, 0, NULL, 0, 1000); in se401_write_req() 74 if (err < 0) { in se401_write_req() 78 gspca_dev->usb_err = err; in se401_write_req() 86 if (gspca_dev->usb_err < 0) in se401_read_req() 91 gspca_dev->usb_err = -ENOBUFS; in se401_read_req() [all …]
|
H A D | finepix.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 22 * 0x2000 bytes, so do the same. Note: reading more seems to work 24 #define FPIX_MAX_TRANSFER 0x2000 45 .priv = 0} 50 int order) /* 0: reset, 1: frame request */ in command() 53 {0xc6, 0, 0, 0, 0, 0, 0, 0, 0x20, 0, 0, 0}, /* reset */ in command() 54 {0xd3, 0, 0, 0, 0, 0, 0, 0x01, 0, 0, 0, 0}, /* fr req */ in command() 57 memcpy(gspca_dev->usb_buf, order_values[order], 12); in command() 58 return usb_control_msg(gspca_dev->dev, in command() 59 usb_sndctrlpipe(gspca_dev->dev, 0), in command() [all …]
|
/linux/include/media/ |
H A D | dvb_ca_en50221.h | 33 #define DVB_CA_EN50221_CAMCHANGE_REMOVED 0 37 * struct dvb_ca_en50221- Structure describing a CA interface 40 * @read_attribute_mem: function for reading attribute memory on the CAM 41 * @write_attribute_mem: function for writing attribute memory on the CAM 42 * @read_cam_control: function for reading the control interface on the CAM 43 * @write_cam_control: function for reading the control interface on the CAM 46 * @slot_reset: function to reset the CAM slot 47 * @slot_shutdown: function to shutdown a CAM slot 48 * @slot_ts_enable: function to enable the Transport Stream on a CAM slot 92 * dvb_ca_en50221_camchange_irq - A CAMCHANGE IRQ has occurred. [all …]
|
/linux/Documentation/devicetree/bindings/clock/ |
H A D | sprd,sc9860-clk.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 4 $id: http://devicetree.org/schemas/clock/sprd,sc9860-clk.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Orson Zhai <orsonzhai@gmail.com> 11 - Baolin Wang <baolin.wang7@gmail.com> 12 - Chunyan Zhang <zhang.lyra@gmail.com> 17 - sprd,sc9860-agcp-gate 18 - sprd,sc9860-aonsecure-clk 19 - sprd,sc9860-aon-gate [all …]
|
/linux/drivers/pinctrl/berlin/ |
H A D | berlin-bg2q.c | 1 // SPDX-License-Identifier: GPL-2.0 7 * Antoine Ténart <antoine.tenart@free-electrons.com> 20 BERLIN_PINCTRL_GROUP("G0", 0x18, 0x3, 0x00, 21 BERLIN_PINCTRL_FUNCTION(0x0, "nand"), 22 BERLIN_PINCTRL_FUNCTION(0x1, "mmc"), 23 BERLIN_PINCTRL_FUNCTION(0x2, "gpio")), 24 BERLIN_PINCTRL_GROUP("G1", 0x18, 0x3, 0x03, 25 BERLIN_PINCTRL_FUNCTION(0x0, "nand"), 26 BERLIN_PINCTRL_FUNCTION(0x2, "gpio")), 27 BERLIN_PINCTRL_GROUP("G2", 0x18, 0x3, 0x06, [all …]
|
/linux/arch/mips/include/asm/octeon/ |
H A D | cvmx-pow-defs.h | 7 * Copyright (c) 2003-2012 Cavium Networks 14 * AS-IS and WITHOUT ANY WARRANTY; without even the implied warranty 21 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 31 #define CVMX_POW_BIST_STAT (CVMX_ADD_IO_SEG(0x00016700000003F8ull)) 32 #define CVMX_POW_DS_PC (CVMX_ADD_IO_SEG(0x0001670000000398ull)) 33 #define CVMX_POW_ECC_ERR (CVMX_ADD_IO_SEG(0x0001670000000218ull)) 34 #define CVMX_POW_INT_CTL (CVMX_ADD_IO_SEG(0x0001670000000220ull)) 35 #define CVMX_POW_IQ_CNTX(offset) (CVMX_ADD_IO_SEG(0x0001670000000340ull) + ((offset) & 7) * 8) 36 #define CVMX_POW_IQ_COM_CNT (CVMX_ADD_IO_SEG(0x0001670000000388ull)) 37 #define CVMX_POW_IQ_INT (CVMX_ADD_IO_SEG(0x0001670000000238ull)) [all …]
|
/linux/drivers/media/usb/gspca/stv06xx/ |
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 30 .priv = 0 [all …]
|
H A D | stv06xx_st6422.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 9 * Strongly based on qc-usb-messenger, which is: 10 * Copyright (c) 2001 Jean-Fredric Clere, Nikolas Zimmermann, Georg Acher 11 * Mark Cave-Ayland, Carlo E Prelz, Dick Streefland 44 .priv = 0 57 container_of(ctrl->handler, struct gspca_dev, ctrl_handler); in st6422_s_ctrl() 59 int err = -EINVAL; in st6422_s_ctrl() 61 switch (ctrl->id) { in st6422_s_ctrl() 63 err = setbrightness(sd, ctrl->val); in st6422_s_ctrl() 66 err = setcontrast(sd, ctrl->val); in st6422_s_ctrl() [all …]
|
/linux/drivers/net/ethernet/intel/ice/ |
H A D | ice_parser.c | 1 // SPDX-License-Identifier: GPL-2.0 12 * ice_parser_sect_item_get - parse an item from a section 73 if (index >= le16_to_cpu(hdr->count)) in ice_parser_sect_item_get() 80 * ice_parser_create_table - create an item table from a section 86 * @no_offset: ignore header offset, calculate index from 0 98 struct ice_seg *seg = hw->seg; in ice_parser_create_table() 100 u16 idx = 0; in ice_parser_create_table() 103 return ERR_PTR(-EINVAL); in ice_parser_create_table() 107 return ERR_PTR(-ENOMEM); in ice_parser_create_table() 117 idx = le16_to_cpu(hdr->offset) + in ice_parser_create_table() [all …]
|
/linux/drivers/clk/sprd/ |
H A D | sc9860-clk.c | 1 // SPDX-License-Identifier: GPL-2.0 8 #include <linux/clk-provider.h> 16 #include <dt-bindings/clock/sprd,sc9860-clk.h> 25 static CLK_FIXED_FACTOR(fac_4m, "fac-4m", "ext-26m", 26 6, 1, 0); 27 static CLK_FIXED_FACTOR(fac_2m, "fac-2m", "ext-26m", 28 13, 1, 0); 29 static CLK_FIXED_FACTOR(fac_1m, "fac-1m", "ext-26m", 30 26, 1, 0); 31 static CLK_FIXED_FACTOR(fac_250k, "fac-250k", "ext-26m", [all …]
|
/linux/drivers/media/platform/ti/omap3isp/ |
H A D | omap3isp.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 5 * TI OMAP3 ISP - Bus Configuration 25 * struct isp_parallel_cfg - Parallel interface configuration 27 * 0 - CAMEXT[13:0] -> CAM[13:0] 28 * 2 - CAMEXT[13:2] -> CAM[11:0] 29 * 4 - CAMEXT[13:4] -> CAM[9:0] 30 * 6 - CAMEXT[13:6] -> CAM[7:0] 32 * 0 - Sample on rising edge, 1 - Sample on falling edge 34 * 0 - Active high, 1 - Active low 36 * 0 - Active high, 1 - Active low [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> 38 static s32 AC50Hz = 0xff; 40 MODULE_PARM_DESC(AC50Hz, " Does AC power frequency is 50Hz? (0/1)"); 52 container_of(ctrl->handler, struct gspca_dev, ctrl_handler); in sd_s_ctrl() 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() [all …]
|
/linux/Documentation/devicetree/bindings/pci/ |
H A D | host-generic-pci.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/pci/host-generic-pci.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Will Deacon <will@kernel.org> 13 Firmware-initialised PCI host controllers and PCI emulations, such as the 14 virtio-pci implementations found in kvmtool and other para-virtualised 21 Configuration Space is assumed to be memory-mapped (as opposed to being 26 For CAM, this 24-bit offset is: 38 description: Depends on the layout of configuration space (CAM vs ECAM [all …]
|
/linux/Documentation/admin-guide/media/ |
H A D | gspca-cardlist.rst | 1 .. SPDX-License-Identifier: GPL-2.0 8 - gspca_main: main driver 9 - gspca\_\ *driver*: subdriver module with *driver* as follows 17 zc3xx 03f0:1b07 HP Premium Starter Cam 19 spca501 040a:0002 Kodak DVC-325 24 spca500 041e:400a Creative PC-CAM 300 25 sunplus 041e:400b Creative PC-CAM 600 26 sunplus 041e:4012 PC-Cam350 41 sq930x 041e:4038 Creative Joy-IT 47 zc3xx 041e:4051 Creative Live!Cam Notebook Pro (VF0250) [all …]
|