| /kernel/linux/linux-5.10/drivers/media/platform/marvell-ccic/ |
| 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 …]
|
| 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 61 * Most of the camera controller registers are defined in mcam-core.h, 70 #define REG_GPR 0xb4 71 #define GPR_C1EN 0x00000020 /* Pad 1 (power down) enable */ 72 #define GPR_C0EN 0x00000010 /* Pad 0 (reset) enable */ [all …]
|
| 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 …]
|
| 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 …]
|
| /kernel/linux/linux-6.6/drivers/media/platform/marvell/ |
| 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 …]
|
| 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 …]
|
| 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 …]
|
| 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 …]
|
| /kernel/linux/linux-5.10/drivers/media/usb/cpia2/ |
| D | cpia2_usb.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 26 0, // USBIF_CMDONLY 27 0, // USBIF_BULK 37 #define FRAME_SIZE_PER_DESC frame_sizes[cam->cur_alt] 39 static void process_frame(struct camera_data *cam); 47 static void free_sbufs(struct camera_data *cam); 48 static void add_APPn(struct camera_data *cam); 49 static void add_COM(struct camera_data *cam); 50 static int submit_urbs(struct camera_data *cam); 51 static int set_alternate(struct camera_data *cam, unsigned int alt); [all …]
|
| D | cpia2_core.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 43 static unsigned int debugs_on; /* default 0 - DEBUG_REG */ 51 static int apply_vp_patch(struct camera_data *cam); 52 static int set_default_user_mode(struct camera_data *cam); 53 static int set_vw_size(struct camera_data *cam, int size); 54 static int configure_sensor(struct camera_data *cam, 56 static int config_sensor_410(struct camera_data *cam, 58 static int config_sensor_500(struct camera_data *cam, 60 static int set_all_properties(struct camera_data *cam); 61 static void wake_system(struct camera_data *cam); [all …]
|
| D | cpia2_v4l.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 28 #include <media/v4l2-ioctl.h> 29 #include <media/v4l2-event.h> 33 static int video_nr = -1; 34 module_param(video_nr, int, 0); 35 MODULE_PARM_DESC(video_nr, "video device to register (0=/dev/video0, etc)"); 38 module_param(buffer_size, int, 0); 42 module_param(num_buffers, int, 0); 43 MODULE_PARM_DESC(num_buffers, "Number of frame buffers (1-" 47 module_param(alternate, int, 0); [all …]
|
| D | cpia2.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 24 #include <media/v4l2-common.h> 25 #include <media/v4l2-device.h> 26 #include <media/v4l2-ctrls.h> 38 #define ALLOW_CORRUPT 0 /* Causes collater to discard checksum */ 41 #define XFER_ISOC 0 45 #define USBIF_CMDONLY 0 55 #define NEVER_FLICKER 0 60 #define DEBUG_NONE 0 61 #define DEBUG_REG 0x00000001 [all …]
|
| /kernel/linux/linux-5.10/drivers/media/platform/ |
| 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> 29 #include <linux/via-gpio.h> [all …]
|
| /kernel/linux/linux-6.6/drivers/media/platform/via/ |
| 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 …]
|
| /kernel/linux/linux-5.10/drivers/media/usb/zr364xx/ |
| D | zr364xx.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 11 * Heavily inspired by usb-skeleton.c, vicam.c, cpia.c and spca50x.c drivers 24 #include <media/v4l2-common.h> 25 #include <media/v4l2-ioctl.h> 26 #include <media/v4l2-device.h> 27 #include <media/v4l2-ctrls.h> 28 #include <media/v4l2-fh.h> 29 #include <media/v4l2-event.h> 30 #include <media/videobuf-vmalloc.h> 42 #define BUFFER_SIZE 0x1000 [all …]
|
| /kernel/linux/linux-5.10/sound/soc/sh/ |
| 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 …]
|
| /kernel/linux/linux-6.6/sound/soc/sh/ |
| 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 …]
|
| /kernel/linux/linux-6.6/drivers/net/wireless/realtek/rtw88/ |
| 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 …]
|
| /kernel/linux/linux-5.10/drivers/net/wireless/realtek/rtw88/ |
| 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 …]
|
| /kernel/linux/linux-6.6/drivers/net/wireless/realtek/rtw89/ |
| 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" 28 for (i = 0; i < 4; i++) { in rtw89_cam_get_sec_key_cmd() 30 j += ext_key ? 16 : 0; in rtw89_cam_get_sec_key_cmd() 31 key32[i] = FIELD_PREP(GENMASK(7, 0), sec_cam->key[j + 0]) | in rtw89_cam_get_sec_key_cmd() 32 FIELD_PREP(GENMASK(15, 8), sec_cam->key[j + 1]) | in rtw89_cam_get_sec_key_cmd() 33 FIELD_PREP(GENMASK(23, 16), sec_cam->key[j + 2]) | in rtw89_cam_get_sec_key_cmd() 34 FIELD_PREP(GENMASK(31, 24), sec_cam->key[j + 3]); in rtw89_cam_get_sec_key_cmd() 37 cmd = skb->data; in rtw89_cam_get_sec_key_cmd() [all …]
|
| /kernel/linux/linux-6.6/drivers/media/usb/gspca/ |
| 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 …]
|
| /kernel/linux/linux-5.10/drivers/media/usb/gspca/ |
| 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 …]
|
| 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 …]
|
| /kernel/linux/linux-6.6/drivers/media/dvb-core/ |
| 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 …]
|
| /kernel/linux/linux-5.10/drivers/media/dvb-core/ |
| 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 …]
|