Home
last modified time | relevance | path

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

12345678910>>...20

/linux-6.12.1/drivers/media/platform/marvell/
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 …]
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 …]
Dmmp-driver.c62 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()
64 struct device *dev = &cam->pdev->dev; in mmpcam_calc_dphy()
122 if (IS_ERR(cam->mipi_clk)) in mmpcam_calc_dphy()
126 clk_prepare_enable(cam->mipi_clk); in mmpcam_calc_dphy()
127 tx_clk_esc = (clk_get_rate(cam->mipi_clk) / 1000000) / 12; in mmpcam_calc_dphy()
128 clk_disable_unprepare(cam->mipi_clk); in mmpcam_calc_dphy()
179 struct mmp_camera *cam; in mmpcam_probe() local
187 cam = devm_kzalloc(&pdev->dev, sizeof(*cam), GFP_KERNEL); in mmpcam_probe()
188 if (cam == NULL) in mmpcam_probe()
[all …]
Dmcam-core.h136 int (*plat_power_up) (struct mcam_camera *cam);
137 void (*plat_power_down) (struct mcam_camera *cam);
138 void (*calc_dphy) (struct mcam_camera *cam);
180 void (*dma_setup)(struct mcam_camera *cam);
181 void (*frame_complete)(struct mcam_camera *cam, int frame);
199 static inline void mcam_reg_write(struct mcam_camera *cam, unsigned int reg, in mcam_reg_write() argument
202 iowrite32(val, cam->regs + reg); in mcam_reg_write()
205 static inline unsigned int mcam_reg_read(struct mcam_camera *cam, in mcam_reg_read() argument
208 return ioread32(cam->regs + reg); in mcam_reg_read()
212 static inline void mcam_reg_write_mask(struct mcam_camera *cam, unsigned int reg, in mcam_reg_write_mask() argument
[all …]
/linux-6.12.1/drivers/media/platform/via/
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 …]
/linux-6.12.1/sound/soc/sh/
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[snd_soc_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 …]
/linux-6.12.1/drivers/net/wireless/realtek/rtw88/
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 …]
/linux-6.12.1/drivers/media/usb/gspca/
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 …]
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()
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 …]
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()
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()
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()
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()
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()
/linux-6.12.1/include/media/
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
/linux-6.12.1/drivers/media/dvb-core/
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 …]
/linux-6.12.1/drivers/net/wireless/realtek/rtw89/
Dcam.c5 #include "cam.h"
124 /* ext keys need two cam entries for 256-bit key */ in rtw89_cam_get_avail_sec_cam()
227 rtw89_err(rtwdev, "No iface for deleting sec cam\n"); in rtw89_cam_detach_sec_cam()
245 "failed to update dctl cam del key: %d\n", ret); in rtw89_cam_detach_sec_cam()
248 rtw89_err(rtwdev, "failed to update cam del key: %d\n", ret); in rtw89_cam_detach_sec_cam()
267 rtw89_err(rtwdev, "No iface for adding sec cam\n"); in rtw89_cam_attach_sec_cam()
280 rtw89_err(rtwdev, "failed to get addr cam key idx %d, %d\n", in rtw89_cam_attach_sec_cam()
290 rtw89_err(rtwdev, "failed to update dctl cam sec entry: %d\n", in rtw89_cam_attach_sec_cam()
296 rtw89_err(rtwdev, "failed to update addr cam sec entry: %d\n", in rtw89_cam_attach_sec_cam()
324 rtw89_warn(rtwdev, "no available sec cam: %d ext: %d\n", in rtw89_cam_sec_key_install()
[all …]
/linux-6.12.1/Documentation/devicetree/bindings/clock/
Dsprd,sc9860-clk.yaml24 - sprd,sc9860-cam-clk
25 - sprd,sc9860-cam-gate
65 - sprd,sc9860-cam-gate
81 - sprd,sc9860-cam-clk
108 - sprd,sc9860-cam-clk
126 - sprd,sc9860-cam-gate
/linux-6.12.1/arch/mips/include/asm/octeon/
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 …]
/linux-6.12.1/Documentation/devicetree/bindings/soc/mediatek/
Dscpsys.txt40 "isp-1", "cam-0", "cam-1", "cam-2",
41 "cam-3","cam-4"
/linux-6.12.1/drivers/pinctrl/berlin/
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 …]
/linux-6.12.1/drivers/media/usb/gspca/stv06xx/
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()
/linux-6.12.1/drivers/net/ethernet/intel/ice/
Dice_parser.c679 * ice_pg_cam_dump - dump an parse graph cam info
681 * @item: parse graph cam to dump
691 * ice_pg_nm_cam_dump - dump an parse graph no match cam info
693 * @item: parse graph no match cam to dump
714 * ice_pg_cam_action_init - parse 55 bits of Parse Graph CAM Action
715 * @action: pointer to the Parse Graph CAM Action structure
716 * @data: Parse Graph CAM Action data to be parsed
742 * ice_pg_nm_cam_key_init - parse 41 bits of Parse Graph NoMatch CAM Key
743 * @key: pointer to the Parse Graph NoMatch CAM Key structure
744 * @data: Parse Graph NoMatch CAM Key data to be parsed
[all …]
/linux-6.12.1/drivers/clk/sprd/
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 …]

12345678910>>...20