/openbmc/linux/drivers/media/platform/marvell/ |
H A D | mcam-core.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * so it needs platform-specific support outside of the core. 20 #include <linux/dma-mapping.h> 25 #include <linux/clk-provider.h> 28 #include <media/v4l2-device.h> 29 #include <media/v4l2-ioctl.h> 30 #include <media/v4l2-ctrls.h> 31 #include <media/v4l2-event.h> 32 #include <media/videobuf2-vmalloc.h> 33 #include <media/videobuf2-dma-contig.h> [all …]
|
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 | mmp-driver.c | 1 // SPDX-License-Identifier: GPL-2.0-only 17 #include <media/v4l2-device.h> 18 #include <linux/platform_data/media/mmp-camera.h> 29 #include "mcam-core.h" 31 MODULE_ALIAS("platform:mmp-camera"); 53 * dphy[0] - CSI2_DPHY3 54 * dphy[1] - CSI2_DPHY5 55 * dphy[2] - CSI2_DPHY6 61 struct mmp_camera *cam = mcam_to_cam(mcam); in mmpcam_calc_dphy() local 62 struct mmp_camera_platform_data *pdata = cam->pdev->dev.platform_data; in mmpcam_calc_dphy() [all …]
|
H A D | mcam-core.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 11 #include <linux/clk-provider.h> 12 #include <media/v4l2-common.h> 13 #include <media/v4l2-ctrls.h> 14 #include <media/v4l2-dev.h> 15 #include <media/videobuf2-v4l2.h> 53 B_vmalloc = 0, 80 return 0; in mcam_buffer_mode_supported() 119 * dphy[0]: DPHY3 135 int (*plat_power_up) (struct mcam_camera *cam); [all …]
|
/openbmc/linux/drivers/media/platform/via/ |
H A D | via-camera.c | 1 // SPDX-License-Identifier: GPL-2.0-only 18 #include <media/v4l2-device.h> 19 #include <media/v4l2-ioctl.h> 20 #include <media/v4l2-ctrls.h> 21 #include <media/v4l2-event.h> 22 #include <media/v4l2-image-sizes.h> 24 #include <media/videobuf2-dma-sg.h> 26 #include <linux/dma-mapping.h> 28 #include <linux/via-core.h> 34 #define machine_is_olpc(x) 0 [all …]
|
/openbmc/linux/sound/soc/sh/ |
H A D | dma-sh7760.c | 1 // SPDX-License-Identifier: GPL-2.0 11 // FIXME: little-endian only for now 17 #include <linux/dma-mapping.h> 26 #define BRGATXSAR 0x00 27 #define BRGARXDAR 0x04 28 #define BRGATXTCR 0x08 29 #define BRGARXTCR 0x0C 30 #define BRGACR 0x10 31 #define BRGATXTCNT 0x14 32 #define BRGARXTCNT 0x18 [all …]
|
/openbmc/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 …]
|
/openbmc/linux/drivers/net/wireless/realtek/rtw89/ |
H A D | cam.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 2 /* Copyright(c) 2019-2020 Realtek Corporation 5 #include "cam.h" 27 for (i = 0; i < 4; i++) { in rtw89_cam_get_sec_key_cmd() 29 j += ext_key ? 16 : 0; in rtw89_cam_get_sec_key_cmd() 30 key32[i] = FIELD_PREP(GENMASK(7, 0), sec_cam->key[j + 0]) | in rtw89_cam_get_sec_key_cmd() 31 FIELD_PREP(GENMASK(15, 8), sec_cam->key[j + 1]) | in rtw89_cam_get_sec_key_cmd() 32 FIELD_PREP(GENMASK(23, 16), sec_cam->key[j + 2]) | in rtw89_cam_get_sec_key_cmd() 33 FIELD_PREP(GENMASK(31, 24), sec_cam->key[j + 3]); in rtw89_cam_get_sec_key_cmd() 36 cmd = skb->data; in rtw89_cam_get_sec_key_cmd() [all …]
|
/openbmc/linux/drivers/media/usb/gspca/ |
H A D | gspca.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright (C) 2008-2011 Jean-François Moine <http://moinejf.free.fr> 8 * Copyright (C) 2009-2010 Márton Németh <nm127@freemail.hu> 13 #define GSPCA_VERSION "2.14.0" 27 #include <media/v4l2-ioctl.h> 28 #include <media/v4l2-ctrls.h> 29 #include <media/v4l2-fh.h> 30 #include <media/v4l2-event.h> 45 MODULE_AUTHOR("Jean-François Moine <http://moinejf.free.fr>"); 56 if ((pixfmt >> 24) >= '0' && (pixfmt >> 24) <= 'z') { in PDEBUG_MODE() [all …]
|
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 …]
|
/openbmc/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 …]
|
/openbmc/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 …]
|
/openbmc/linux/Documentation/devicetree/bindings/soc/mediatek/ |
H A D | scpsys.txt | 11 power/power-domain.yaml. It provides the power domains defined in 12 - include/dt-bindings/power/mt8173-power.h 13 - include/dt-bindings/power/mt6797-power.h 14 - include/dt-bindings/power/mt6765-power.h 15 - include/dt-bindings/power/mt2701-power.h 16 - include/dt-bindings/power/mt2712-power.h 17 - include/dt-bindings/power/mt7622-power.h 20 - compatible: Should be one of: 21 - "mediatek,mt2701-scpsys" 22 - "mediatek,mt2712-scpsys" [all …]
|
/openbmc/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 …]
|
/openbmc/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 …]
|
/openbmc/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 …]
|
/openbmc/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 …]
|