Home
last modified time | relevance | path

Searched +full:cam +full:- +full:if (Results 1 – 25 of 337) sorted by relevance

12345678910>>...14

/linux/drivers/media/platform/marvell/
H A Dmcam-core.c1 // 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 Dcafe-driver.c1 // 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 …]
H A Dmmp-driver.c1 // 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");
54 * dphy[0] - CSI2_DPHY3
55 * dphy[1] - CSI2_DPHY5
56 * dphy[2] - CSI2_DPHY6
62 struct mmp_camera *cam = mcam_to_cam(mcam); in mmpcam_calc_dphy() local
63 struct mmp_camera_platform_data *pdata = cam->pdev->dev.platform_data; in mmpcam_calc_dphy()
[all …]
H A Dmcam-core.h1 /* 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>
22 #if IS_ENABLED(CONFIG_VIDEOBUF2_VMALLOC)
26 #if IS_ENABLED(CONFIG_VIDEOBUF2_DMA_CONTIG)
30 #if IS_ENABLED(CONFIG_VIDEOBUF2_DMA_SG)
34 #if !defined(MCAM_MODE_VMALLOC) && !defined(MCAM_MODE_DMA_CONTIG) && \
[all …]
/linux/drivers/media/platform/via/
H A Dvia-camera.c1 // 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 …]
/linux/sound/soc/sh/
H A Ddma-sh7760.c1 // 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 …]
/linux/drivers/net/wireless/realtek/rtw88/
H A Dsec.c1 // 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/usb/gspca/
H A Dgspca.c1 // 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 …]
H A Dkinect.c1 // 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 …]
H A Djl2005bcd.c1 // SPDX-License-Identifier: GPL-2.0-or-later
37 int vga; /* 1 if vga cam, 0 if cif cam */
69 * cam uses endpoint 0x03 to send commands, 0x84 for read commands,
78 memcpy(gspca_dev->usb_buf, command, 2); in jl2005c_write2()
79 retval = usb_bulk_msg(gspca_dev->dev, in jl2005c_write2()
80 usb_sndbulkpipe(gspca_dev->dev, 3), in jl2005c_write2()
81 gspca_dev->usb_buf, 2, NULL, 500); in jl2005c_write2()
82 if (retval < 0) in jl2005c_write2()
84 gspca_dev->usb_buf[0], retval); in jl2005c_write2()
88 /* Response to a command is one byte in usb_buf[0], only if requested. */
[all …]
H A Dsq905.c1 // SPDX-License-Identifier: GPL-2.0-or-later
31 MODULE_AUTHOR("Adam Baker <linux@baker-net.org.uk>, Theodore Kilgore <kilgota@auburn.edu>");
52 /* Any non-zero value in the bottom 2 bits of the 2nd byte of
53 * the ID appears to indicate the camera can do 640*480. If the
106 gspca_dev->usb_buf[0] = '\0'; in sq905_command()
107 ret = usb_control_msg(gspca_dev->dev, in sq905_command()
108 usb_sndctrlpipe(gspca_dev->dev, 0), in sq905_command()
111 SQ905_COMMAND, index, gspca_dev->usb_buf, 1, in sq905_command()
113 if (ret < 0) { in sq905_command()
118 ret = usb_control_msg(gspca_dev->dev, in sq905_command()
[all …]
H A Dstv0680.c1 // SPDX-License-Identifier: GPL-2.0-or-later
45 pipe = usb_rcvctrlpipe(gspca_dev->dev, 0); in stv_sndctrl()
49 pipe = usb_sndctrlpipe(gspca_dev->dev, 0); in stv_sndctrl()
53 pipe = usb_rcvctrlpipe(gspca_dev->dev, 0); in stv_sndctrl()
57 pipe = usb_sndctrlpipe(gspca_dev->dev, 0); in stv_sndctrl()
61 ret = usb_control_msg(gspca_dev->dev, pipe, in stv_sndctrl()
63 val, 0, gspca_dev->usb_buf, size, 500); in stv_sndctrl()
65 if ((ret < 0) && (req != 0x0a)) in stv_sndctrl()
76 gspca_dev->usb_buf[0], gspca_dev->usb_buf[1]); in stv0680_handle_error()
82 /* Note not sure if this init of usb_buf is really necessary */ in stv0680_get_video_mode()
[all …]
H A Dvicam.c1 // 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()
89 if (ret < 0) in vicam_set_camera_power()
92 if (state) in vicam_set_camera_power()
104 u8 *req_data = gspca_dev->usb_buf; in vicam_read_frame()
105 s32 expo = v4l2_ctrl_g_ctrl(gspca_dev->exposure); in vicam_read_frame()
106 s32 gain = v4l2_ctrl_g_ctrl(gspca_dev->gain); in vicam_read_frame()
[all …]
H A Dsq905c.c1 // SPDX-License-Identifier: GPL-2.0-or-later
80 ret = usb_control_msg(gspca_dev->dev, in sq905c_command()
81 usb_sndctrlpipe(gspca_dev->dev, 0), in sq905c_command()
86 if (ret < 0) { in sq905c_command()
99 ret = usb_control_msg(gspca_dev->dev, in sq905c_read()
100 usb_rcvctrlpipe(gspca_dev->dev, 0), in sq905c_read()
103 command, index, gspca_dev->usb_buf, size, in sq905c_read()
105 if (ret < 0) { in sq905c_read()
117 * threads attempting to use gspca_dev->usb_buf we take the usb_lock when
124 struct gspca_dev *gspca_dev = &dev->gspca_dev; in sq905c_dostream()
[all …]
H A Dse401.c1 // 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()
74 if (err < 0) { in se401_write_req()
75 if (!silent) 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()
89 if (USB_BUF_SZ < READ_REQ_SIZE) { in se401_read_req()
[all …]
H A Djeilinj.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * Supports some Jeilin dual-mode cameras which use bulk transport and
41 #define CAMQUALITY_MIN 0 /* highest cam quality */
42 #define CAMQUALITY_MAX 97 /* lowest cam quality */
81 * cam uses endpoint 0x03 to send commands, 0x84 for read commands,
90 if (gspca_dev->usb_err < 0) in jlj_write2()
92 memcpy(gspca_dev->usb_buf, command, 2); in jlj_write2()
93 retval = usb_bulk_msg(gspca_dev->dev, in jlj_write2()
94 usb_sndbulkpipe(gspca_dev->dev, 3), in jlj_write2()
95 gspca_dev->usb_buf, 2, NULL, 500); in jlj_write2()
[all …]
H A Dfinepix.c1 // SPDX-License-Identifier: GPL-2.0-or-later
33 /* Delay after which claim the next frame. If the delay is too small,
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()
62 USB_RECIP_INTERFACE, 0, 0, gspca_dev->usb_buf, in command()
70 * threads attempting to use gspca_dev->usb_buf we take the usb_lock when
77 struct gspca_dev *gspca_dev = &dev->gspca_dev; in dostream()
78 struct urb *urb = gspca_dev->urb[0]; in dostream()
79 u8 *data = urb->transfer_buffer; in dostream()
[all …]
/linux/drivers/media/dvb-core/
H A Ddvb_ca_en50221.c1 // 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 …]
/linux/drivers/net/wireless/realtek/rtw89/
H A Dcam.c1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
2 /* Copyright(c) 2019-2020 Realtek Corporation
5 #include "cam.h"
22 if (!skb) 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()
37 RTW89_SET_FWCMD_SEC_IDX(cmd, sec_cam->sec_cam_idx + (ext_key ? 1 : 0)); in rtw89_cam_get_sec_key_cmd()
[all …]
/linux/Documentation/devicetree/bindings/clock/
H A Dsprd,sc9860-clk.yaml1 # 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/include/media/
H A Ddvb_ca_en50221.h37 * 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
49 * @poll_slot_status: function to poll slot status. Only necessary if
56 * and if appropriate. There will be no concurrent access to one slot.
[all …]
/linux/drivers/media/usb/gspca/stv06xx/
H A Dstv06xx_vv6410.c1 // 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 …]
H A Dstv06xx_st6422.c1 // 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
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()
69 err = setgain(sd, ctrl->val); in st6422_s_ctrl()
[all …]
/linux/drivers/net/ethernet/intel/ice/
H A Dice_parser.c1 // SPDX-License-Identifier: GPL-2.0
12 * ice_parser_sect_item_get - parse an item from a section
27 if (!section) in ice_parser_sect_item_get()
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
98 struct ice_seg *seg = hw->seg; in ice_parser_create_table()
102 if (!seg) in ice_parser_create_table()
103 return ERR_PTR(-EINVAL); in ice_parser_create_table()
106 if (!table) in ice_parser_create_table()
107 return ERR_PTR(-ENOMEM); in ice_parser_create_table()
[all …]
/linux/drivers/media/usb/gspca/gl860/
H A Dgl860.c1 // 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()
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()
72 sd->vcur.mirror = ctrl->val; in sd_s_ctrl()
[all …]

12345678910>>...14