| /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" 61 * Most of the camera controller registers are defined in mcam-core.h, 86 #define TWSIC0_MODE 0x00000002 /* 1 = 16-bit, 0 = 8-bit */ 133 #define cam_err(cam, fmt, arg...) \ argument 134 dev_err(&(cam)->pdev->dev, fmt, ##arg); 135 #define cam_warn(cam, fmt, arg...) \ argument [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> 21 #if IS_ENABLED(CONFIG_VIDEOBUF2_VMALLOC) 25 #if IS_ENABLED(CONFIG_VIDEOBUF2_DMA_CONTIG) 29 #if IS_ENABLED(CONFIG_VIDEOBUF2_DMA_SG) 33 #if !defined(MCAM_MODE_VMALLOC) && !defined(MCAM_MODE_DMA_CONTIG) && \ [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" 57 * Most of the camera controller registers are defined in mcam-core.h, 82 #define TWSIC0_MODE 0x00000002 /* 1 = 16-bit, 0 = 8-bit */ 129 #define cam_err(cam, fmt, arg...) \ argument 130 dev_err(&(cam)->pdev->dev, fmt, ##arg); 131 #define cam_warn(cam, fmt, arg...) \ argument [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> 21 #if IS_ENABLED(CONFIG_VIDEOBUF2_VMALLOC) 25 #if IS_ENABLED(CONFIG_VIDEOBUF2_DMA_CONTIG) 29 #if IS_ENABLED(CONFIG_VIDEOBUF2_DMA_SG) 33 #if !defined(MCAM_MODE_VMALLOC) && !defined(MCAM_MODE_DMA_CONTIG) && \ [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> 37 #include "via-camera.h" [all …]
|
| /kernel/linux/linux-5.10/drivers/media/usb/cpia2/ |
| D | cpia2_usb.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 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); 52 static int configure_transfer_mode(struct camera_data *cam, unsigned int alt); 78 static void process_frame(struct camera_data *cam) in process_frame() argument [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; 43 MODULE_PARM_DESC(num_buffers, "Number of frame buffers (1-" 48 MODULE_PARM_DESC(alternate, "USB Alternate (" __stringify(USBIF_ISO_1) "-" 58 MODULE_DESCRIPTION("V4L-driver for STMicroelectronics CPiA2 based cameras"); 63 #define ABOUT "V4L-Driver for Vision CPiA2 based cameras" 73 struct camera_data *cam = video_drvdata(file); in cpia2_open() local 76 if (mutex_lock_interruptible(&cam->v4l2_lock)) in cpia2_open() [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> 275 u8 flicker_mode_req; /* 1 if flicker on, else never flicker */ 411 int cpia2_register_camera(struct camera_data *cam); 412 void cpia2_unregister_camera(struct camera_data *cam); 416 int cpia2_reset_camera(struct camera_data *cam); 417 int cpia2_set_low_power(struct camera_data *cam); 418 void cpia2_dbg_dump_registers(struct camera_data *cam); [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> 52 if (debug) { \ [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> 73 #define BRGREG(x) (*(unsigned long *)(cam->mmio + (x))) 76 * set a minimum of 16kb per period, to avoid interrupt-"storm" and 81 * is 8 bytes; 16kbytes are enough to get skip-free playback of a 106 struct camelot_pcm *cam = data; in camelot_txdma() local 107 cam->tx_period ^= 1; in camelot_txdma() 108 snd_pcm_period_elapsed(cam->tx_ss); in camelot_txdma() 113 struct camelot_pcm *cam = data; in camelot_rxdma() local [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> 73 #define BRGREG(x) (*(unsigned long *)(cam->mmio + (x))) 76 * set a minimum of 16kb per period, to avoid interrupt-"storm" and 81 * is 8 bytes; 16kbytes are enough to get skip-free playback of a 106 struct camelot_pcm *cam = data; in camelot_txdma() local 107 cam->tx_period ^= 1; in camelot_txdma() 108 snd_pcm_period_elapsed(cam->tx_ss); in camelot_txdma() 113 struct camelot_pcm *cam = data; in camelot_rxdma() local [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" 23 if (!skb) 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() 38 RTW89_SET_FWCMD_SEC_IDX(cmd, sec_cam->sec_cam_idx + (ext_key ? 1 : 0)); 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> 27 #include <media/v4l2-ioctl.h> 28 #include <media/v4l2-ctrls.h> 29 #include <media/v4l2-fh.h> 30 #include <media/v4l2-event.h> 34 #if IS_ENABLED(CONFIG_INPUT) 41 #if DEF_NURBS > MAX_NURBS 45 MODULE_AUTHOR("Jean-François Moine <http://moinejf.free.fr>"); [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> 27 #include <media/v4l2-ioctl.h> 28 #include <media/v4l2-ctrls.h> 29 #include <media/v4l2-fh.h> 30 #include <media/v4l2-event.h> 34 #if IS_ENABLED(CONFIG_INPUT) 41 #if DEF_NURBS > MAX_NURBS 45 MODULE_AUTHOR("Jean-François Moine <http://moinejf.free.fr>"); [all …]
|
| D | kinect.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 124 struct usb_device *udev = gspca_dev->dev; in send_cmd() 126 uint8_t *obuf = sd->obuf; in send_cmd() 127 uint8_t *ibuf = sd->ibuf; in send_cmd() 131 if (cmd_len & 1 || cmd_len > (0x400 - sizeof(*chdr))) { in send_cmd() 133 return -1; in send_cmd() 136 chdr->magic[0] = 0x47; in send_cmd() 137 chdr->magic[1] = 0x4d; in send_cmd() 138 chdr->cmd = cpu_to_le16(cmd); in send_cmd() 139 chdr->tag = cpu_to_le16(sd->cam_tag); in send_cmd() [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 39 if (dvb_ca_en50221_debug) \ 81 /* current state of the CAM */ 93 /* base address of CAM config */ 99 /* if 1, the CAM supports DA IRQs */ 102 /* size of the buffer to use when talking to the CAM */ 112 /* Private CA-interface information */ 137 /* Flag indicating if the CA device is open */ [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 39 if (dvb_ca_en50221_debug) \ 81 /* current state of the CAM */ 93 /* base address of CAM config */ 99 /* if 1, the CAM supports DA IRQs */ 102 /* size of the buffer to use when talking to the CAM */ 112 /* Private CA-interface information */ 137 /* Flag indicating if the CA device is open */ [all …]
|