Home
last modified time | relevance | path

Searched full:cam (Results 1 – 25 of 530) sorted by relevance

12345678910>>...22

/openbmc/linux/drivers/media/platform/marvell/
H A Dmcam-core.c95 #define sensor_call(cam, o, f, args...) \ argument
96 v4l2_subdev_call(cam->sensor, o, f, ##args)
210 static void mcam_buffer_done(struct mcam_camera *cam, int frame, in mcam_buffer_done() argument
213 vbuf->vb2_buf.planes[0].bytesused = cam->pix_format.sizeimage; in mcam_buffer_done()
214 vbuf->sequence = cam->buf_seq[frame]; in mcam_buffer_done()
217 vb2_set_plane_payload(&vbuf->vb2_buf, 0, cam->pix_format.sizeimage); in mcam_buffer_done()
226 #define cam_err(cam, fmt, arg...) \ argument
227 dev_err((cam)->dev, fmt, ##arg);
228 #define cam_warn(cam, fmt, arg...) \ argument
229 dev_warn((cam)->dev, fmt, ##arg);
[all …]
H A Dcafe-driver.c129 #define cam_err(cam, fmt, arg...) \ argument
130 dev_err(&(cam)->pdev->dev, fmt, ##arg);
131 #define cam_warn(cam, fmt, arg...) \ argument
132 dev_warn(&(cam)->pdev->dev, fmt, ##arg);
159 static int cafe_smbus_write_data(struct cafe_camera *cam, in cafe_smbus_write_data() argument
164 struct mcam_camera *mcam = &cam->mcam; in cafe_smbus_write_data()
197 wait_event_timeout(cam->smbus_wait, cafe_smbus_write_done(mcam), in cafe_smbus_write_data()
205 cam_err(cam, "SMBUS write (%02x/%02x/%02x) timed out\n", addr, in cafe_smbus_write_data()
210 cam_err(cam, "SMBUS write (%02x/%02x/%02x) error\n", addr, in cafe_smbus_write_data()
238 static int cafe_smbus_read_data(struct cafe_camera *cam, in cafe_smbus_read_data() argument
[all …]
H A Dmmp-driver.c61 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()
63 struct device *dev = &cam->pdev->dev; in mmpcam_calc_dphy()
121 if (IS_ERR(cam->mipi_clk)) in mmpcam_calc_dphy()
125 clk_prepare_enable(cam->mipi_clk); in mmpcam_calc_dphy()
126 tx_clk_esc = (clk_get_rate(cam->mipi_clk) / 1000000) / 12; in mmpcam_calc_dphy()
127 clk_disable_unprepare(cam->mipi_clk); in mmpcam_calc_dphy()
178 struct mmp_camera *cam; in mmpcam_probe() local
186 cam = devm_kzalloc(&pdev->dev, sizeof(*cam), GFP_KERNEL); in mmpcam_probe()
187 if (cam == NULL) in mmpcam_probe()
[all …]
H A Dmcam-core.h135 int (*plat_power_up) (struct mcam_camera *cam);
136 void (*plat_power_down) (struct mcam_camera *cam);
137 void (*calc_dphy) (struct mcam_camera *cam);
179 void (*dma_setup)(struct mcam_camera *cam);
180 void (*frame_complete)(struct mcam_camera *cam, int frame);
198 static inline void mcam_reg_write(struct mcam_camera *cam, unsigned int reg, in mcam_reg_write() argument
201 iowrite32(val, cam->regs + reg); in mcam_reg_write()
204 static inline unsigned int mcam_reg_read(struct mcam_camera *cam, in mcam_reg_read() argument
207 return ioread32(cam->regs + reg); in mcam_reg_read()
211 static inline void mcam_reg_write_mask(struct mcam_camera *cam, unsigned int reg, in mcam_reg_write_mask() argument
[all …]
/openbmc/linux/drivers/media/platform/via/
H A Dvia-camera.c127 #define sensor_call(cam, optype, func, args...) \ argument
128 v4l2_subdev_call(cam->sensor, optype, func, ##args)
133 #define cam_err(cam, fmt, arg...) \ argument
134 dev_err(&(cam)->platdev->dev, fmt, ##arg)
135 #define cam_warn(cam, fmt, arg...) \ argument
136 dev_warn(&(cam)->platdev->dev, fmt, ##arg)
137 #define cam_dbg(cam, fmt, arg...) \ argument
138 dev_dbg(&(cam)->platdev->dev, fmt, ##arg)
180 static int via_sensor_power_setup(struct via_camera *cam) in via_sensor_power_setup() argument
182 struct device *dev = &cam->platdev->dev; in via_sensor_power_setup()
[all …]
/openbmc/linux/sound/soc/sh/
H A Ddma-sh7760.c73 #define BRGREG(x) (*(unsigned long *)(cam->mmio + (x)))
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
114 cam->rx_period ^= 1; in camelot_rxdma()
115 snd_pcm_period_elapsed(cam->rx_ss); in camelot_rxdma()
122 struct camelot_pcm *cam = &cam_pcm_data[asoc_rtd_to_cpu(rtd, 0)->id]; in camelot_pcm_open() local
129 dmairq = (recv) ? cam->txid + 2 : cam->txid; in camelot_pcm_open()
131 cam->rx_ss = substream; in camelot_pcm_open()
[all …]
/openbmc/linux/drivers/net/wireless/realtek/rtw88/
H A Dsec.c11 /* if default key search is enabled, the first 4 cam entries in rtw_sec_get_free_cam()
13 * driver should use cam entries after 4 to install pairwise key in rtw_sec_get_free_cam()
28 struct rtw_cam_entry *cam = &sec->cam_table[hw_key_idx]; in rtw_sec_write_cam() local
36 cam->valid = true; in rtw_sec_write_cam()
37 cam->group = !(key->flags & IEEE80211_KEY_FLAG_PAIRWISE); in rtw_sec_write_cam()
38 cam->hw_key_type = hw_key_type; in rtw_sec_write_cam()
39 cam->key = key; in rtw_sec_write_cam()
41 ether_addr_copy(cam->addr, sta->addr); in rtw_sec_write_cam()
43 eth_broadcast_addr(cam->addr); in rtw_sec_write_cam()
52 (cam->group << 6) | in rtw_sec_write_cam()
[all …]
/openbmc/linux/drivers/net/wireless/realtek/rtw89/
H A Dcam.c5 #include "cam.h"
124 /* ext keys need two cam entries for 256-bit key */ in rtw89_cam_get_avail_sec_cam()
229 rtw89_err(rtwdev, "No iface for adding sec cam\n"); in rtw89_cam_attach_sec_cam()
237 rtw89_err(rtwdev, "failed to get addr cam key idx %d, %d\n", in rtw89_cam_attach_sec_cam()
249 rtw89_err(rtwdev, "failed to update dctl cam sec entry: %d\n", in rtw89_cam_attach_sec_cam()
255 rtw89_err(rtwdev, "failed to update addr cam sec entry: %d\n", in rtw89_cam_attach_sec_cam()
284 rtw89_warn(rtwdev, "no available sec cam: %d ext: %d\n", in rtw89_cam_sec_key_install()
306 /* associate with addr cam */ in rtw89_cam_sec_key_install()
309 rtw89_err(rtwdev, "failed to attach sec cam: %d\n", ret); in rtw89_cam_sec_key_install()
393 rtw89_err(rtwdev, "No iface for deleting sec cam\n"); in rtw89_cam_sec_key_del()
[all …]
/openbmc/linux/drivers/media/usb/gspca/
H A Dgspca.c366 if (gspca_dev->cam.bulk_nurbs != 0) { in bulk_irq()
539 if (!gspca_dev->cam.needs_full_bandwidth && in which_bandwidth()
670 if (!gspca_dev->cam.bulk) { /* isoc */ in create_urbs()
677 npkt = gspca_dev->cam.npkt; in create_urbs()
687 bsize = gspca_dev->cam.bulk_size; in create_urbs()
691 if (gspca_dev->cam.bulk_nurbs != 0) in create_urbs()
692 nurbs = gspca_dev->cam.bulk_nurbs; in create_urbs()
773 gspca_dev->alt = gspca_dev->cam.bulk ? intf->num_altsetting : 0; in gspca_init_transfer()
779 xfer = gspca_dev->cam.bulk ? USB_ENDPOINT_XFER_BULK in gspca_init_transfer()
824 if (!gspca_dev->cam.no_urb_create) { in gspca_init_transfer()
[all …]
H A Dkinect.c224 struct cam *cam; in sd_config_video() local
230 cam = &gspca_dev->cam; in sd_config_video()
232 cam->cam_mode = video_camera_mode; in sd_config_video()
233 cam->nmodes = ARRAY_SIZE(video_camera_mode); in sd_config_video()
239 cam->npkt = 15; in sd_config_video()
250 struct cam *cam; in sd_config_depth() local
256 cam = &gspca_dev->cam; in sd_config_depth()
258 cam->cam_mode = depth_camera_mode; in sd_config_depth()
259 cam->nmodes = ARRAY_SIZE(depth_camera_mode); in sd_config_depth()
282 mode = gspca_dev->cam.cam_mode[gspca_dev->curr_mode].priv; in sd_start_video()
H A Djl2005bcd.c37 int vga; /* 1 if vga cam, 0 if cif cam */
69 * cam uses endpoint 0x03 to send commands, 0x84 for read commands,
398 struct cam *cam; in sd_config() local
401 cam = &gspca_dev->cam; in sd_config()
403 cam->bulk_size = 64; in sd_config()
404 cam->bulk = 1; in sd_config()
420 cam->cam_mode = cif_mode; in sd_config()
421 cam->nmodes = ARRAY_SIZE(cif_mode); in sd_config()
424 cam->cam_mode = vga_mode; in sd_config()
425 cam->nmodes = ARRAY_SIZE(vga_mode); in sd_config()
[all …]
H A Dsq905.c217 frame_sz = gspca_dev->cam.cam_mode[gspca_dev->curr_mode].sizeimage in sq905_dostream()
288 struct cam *cam = &gspca_dev->cam; in sd_config() local
292 cam->bulk = 1; in sd_config()
293 cam->bulk_size = 64; in sd_config()
340 gspca_dev->cam.cam_mode = sq905_mode; in sd_init()
341 gspca_dev->cam.nmodes = ARRAY_SIZE(sq905_mode); in sd_init()
343 gspca_dev->cam.nmodes--; in sd_init()
346 gspca_dev->cam.input_flags = V4L2_IN_ST_VFLIP; in sd_init()
348 gspca_dev->cam.input_flags = V4L2_IN_ST_VFLIP | in sd_init()
H A Dstv0680.c126 struct cam *cam = &gspca_dev->cam; in sd_config() local
195 cam->bulk = 1; in sd_config()
196 cam->bulk_nurbs = 1; /* The cam cannot handle more */ in sd_config()
197 cam->bulk_size = (gspca_dev->usb_buf[0] << 24) | in sd_config()
208 sd->mode.sizeimage = cam->bulk_size; in sd_config()
213 cam->cam_mode = &sd->mode; in sd_config()
214 cam->nmodes = 1; in sd_config()
H A Dvicam.c174 frame_sz = gspca_dev->cam.cam_mode[gspca_dev->curr_mode].sizeimage + in vicam_dostream()
195 bother reading from the cam */ in vicam_dostream()
209 struct cam *cam = &gspca_dev->cam; in sd_config() local
213 cam->bulk = 1; in sd_config()
214 cam->bulk_size = 64; in sd_config()
215 cam->cam_mode = vicam_mode; in sd_config()
216 cam->nmodes = ARRAY_SIZE(vicam_mode); in sd_config()
H A Dsq905c.c196 struct cam *cam = &gspca_dev->cam; in sd_config() local
220 cam->cam_mode = sq905c_mode; in sd_config()
221 cam->nmodes = 2; in sd_config()
223 cam->nmodes = 1; in sd_config()
225 cam->bulk_size = 32; in sd_config()
226 cam->bulk = 1; in sd_config()
258 dev->cap_mode = gspca_dev->cam.cam_mode; in sd_start()
H A Djeilinj.c41 #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,
308 struct cam *cam = &gspca_dev->cam; in sd_config() local
314 cam->cam_mode = jlj_mode; in sd_config()
315 cam->nmodes = ARRAY_SIZE(jlj_mode); in sd_config()
316 cam->bulk = 1; in sd_config()
317 cam->bulk_nurbs = 1; in sd_config()
318 cam->bulk_size = JEILINJ_MAX_TRANSFER; in sd_config()
H A Dse401.c161 /* HDG: this does not seem to do anything on my cam */ in setbrightness()
211 struct cam *cam = &gspca_dev->cam; in sd_config() local
298 cam->cam_mode = sd->fmts; in sd_config()
299 cam->nmodes = n; in sd_config()
300 cam->bulk = 1; in sd_config()
301 cam->bulk_size = BULK_SIZE; in sd_config()
302 cam->bulk_nurbs = 4; in sd_config()
331 int mult = gspca_dev->cam.cam_mode[gspca_dev->curr_mode].priv; in sd_start()
559 struct cam *cam = &gspca_dev->cam; in sd_pkt_scan_bayer() local
560 int imagesize = cam->cam_mode[gspca_dev->curr_mode].sizeimage; in sd_pkt_scan_bayer()
[all …]
/openbmc/linux/include/media/
H A Ddvb_ca_en50221.h40 * @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
/openbmc/linux/drivers/media/dvb-core/
H A Ddvb_ca_en50221.c3 * dvb_ca.c: generic DVB functions for EN50221 CAM interfaces
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 */
226 * dvb_ca_en50221_check_camstatus - Check CAM status.
269 * register on a CAM interface, checking for errors and timeout.
319 * dvb_ca_en50221_link_init - Initialise the link layer connection to a CAM.
344 /* read the buffer size from the CAM */ in dvb_ca_en50221_link_init()
360 * store it, and choose the minimum of our buffer and the CAM's buffer in dvb_ca_en50221_link_init()
[all …]
/openbmc/linux/Documentation/devicetree/bindings/soc/mediatek/
H A Dscpsys.txt40 "isp-1", "cam-0", "cam-1", "cam-2",
41 "cam-3","cam-4"
/openbmc/linux/arch/mips/include/asm/octeon/
H A Dcvmx-pow-defs.h79 uint64_t cam:1; member
97 uint64_t cam:1;
108 uint64_t cam:1; member
126 uint64_t cam:1;
137 uint64_t cam:1; member
157 uint64_t cam:1;
168 uint64_t cam:1; member
186 uint64_t cam:1;
197 uint64_t cam:1; member
217 uint64_t cam:1;
[all …]
/openbmc/linux/drivers/pinctrl/berlin/
H A Dberlin-bg2q.c127 BERLIN_PINCTRL_FUNCTION(0x0, "cam"),
138 BERLIN_PINCTRL_FUNCTION(0x0, "cam"),
143 BERLIN_PINCTRL_FUNCTION(0x0, "cam"),
146 BERLIN_PINCTRL_FUNCTION(0x0, "cam"),
151 BERLIN_PINCTRL_FUNCTION(0x0, "cam"),
156 BERLIN_PINCTRL_FUNCTION(0x0, "cam"),
162 BERLIN_PINCTRL_FUNCTION(0x0, "cam"),
166 BERLIN_PINCTRL_FUNCTION(0x0, "cam"),
170 BERLIN_PINCTRL_FUNCTION(0x0, "cam"),
175 BERLIN_PINCTRL_FUNCTION(0x0, "cam"),
[all …]
/openbmc/linux/drivers/media/usb/gspca/stv06xx/
H A Dstv06xx_vv6410.c11 * P/N 861055: Sensor ST VV6410 ASIC STV0610 - LEGO cam
79 sd->gspca_dev.cam.cam_mode = vv6410_mode; in vv6410_probe()
80 sd->gspca_dev.cam.nmodes = ARRAY_SIZE(vv6410_mode); in vv6410_probe()
119 struct cam *cam = &sd->gspca_dev.cam; in vv6410_start() local
120 u32 priv = cam->cam_mode[sd->gspca_dev.curr_mode].priv; in vv6410_start()
/openbmc/linux/drivers/clk/sprd/
H A Dsc9860-clk.c948 static SPRD_SC_GATE_CLK(cam_eb, "cam-eb", "aon-apb", 0x4,
1450 static SPRD_MUX_CLK(ahb_cam, "ahb-cam", ahb_parents, 0x20,
1460 static SPRD_GATE_CLK(mipi_csi0_eb, "mipi-csi0-eb", "ahb-cam", 0x4c,
1462 static SPRD_GATE_CLK(mipi_csi1_eb, "mipi-csi1-eb", "ahb-cam", 0x50,
1493 static SPRD_SC_GATE_CLK(dcam0_eb, "dcam0-eb", "ahb-cam", 0x0,
1495 static SPRD_SC_GATE_CLK(dcam1_eb, "dcam1-eb", "ahb-cam", 0x0,
1497 static SPRD_SC_GATE_CLK(isp0_eb, "isp0-eb", "ahb-cam", 0x0,
1499 static SPRD_SC_GATE_CLK(csi0_eb, "csi0-eb", "ahb-cam", 0x0,
1501 static SPRD_SC_GATE_CLK(csi1_eb, "csi1-eb", "ahb-cam", 0x0,
1503 static SPRD_SC_GATE_CLK(jpg0_eb, "jpg0-eb", "ahb-cam", 0x0,
[all …]
/openbmc/linux/drivers/media/platform/ti/omap3isp/
H A Domap3isp.h27 * 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]

12345678910>>...22