Home
last modified time | relevance | path

Searched refs:csi2 (Results 1 – 25 of 80) sorted by relevance

1234

/Linux-v6.6/drivers/staging/media/imx/
Dimx6-mipi-csi2.c132 static void csi2_enable(struct csi2_dev *csi2, bool enable) in csi2_enable() argument
135 writel(0x1, csi2->base + CSI2_PHY_SHUTDOWNZ); in csi2_enable()
136 writel(0x1, csi2->base + CSI2_DPHY_RSTZ); in csi2_enable()
137 writel(0x1, csi2->base + CSI2_RESETN); in csi2_enable()
139 writel(0x0, csi2->base + CSI2_PHY_SHUTDOWNZ); in csi2_enable()
140 writel(0x0, csi2->base + CSI2_DPHY_RSTZ); in csi2_enable()
141 writel(0x0, csi2->base + CSI2_RESETN); in csi2_enable()
145 static void csi2_set_lanes(struct csi2_dev *csi2, unsigned int lanes) in csi2_set_lanes() argument
147 writel(lanes - 1, csi2->base + CSI2_N_LANES); in csi2_set_lanes()
150 static void dw_mipi_csi2_phy_write(struct csi2_dev *csi2, in dw_mipi_csi2_phy_write() argument
[all …]
Dimx-media-dev-common.c26 struct v4l2_subdev *sd, *csi2 = NULL; in imx_media_create_csi2_links() local
30 csi2 = sd; in imx_media_create_csi2_links()
34 if (!csi2) in imx_media_create_csi2_links()
43 v4l2_create_fwnode_links(csi2, sd); in imx_media_create_csi2_links()
/Linux-v6.6/drivers/staging/media/omap4iss/
Diss_csi2.c24 static void csi2_if_enable(struct iss_csi2_device *csi2, u8 enable) in csi2_if_enable() argument
26 struct iss_csi2_ctrl_cfg *currctrl = &csi2->ctrl; in csi2_if_enable()
28 iss_reg_update(csi2->iss, csi2->regs1, CSI2_CTRL, CSI2_CTRL_IF_EN, in csi2_if_enable()
39 static void csi2_recv_config(struct iss_csi2_device *csi2, in csi2_recv_config() argument
88 iss_reg_write(csi2->iss, csi2->regs1, CSI2_CTRL, reg); in csi2_recv_config()
194 static u16 csi2_ctx_map_format(struct iss_csi2_device *csi2) in csi2_ctx_map_format() argument
196 const struct v4l2_mbus_framefmt *fmt = &csi2->formats[CSI2_PAD_SINK]; in csi2_ctx_map_format()
228 if (!(csi2->output & CSI2_OUTPUT_IPIPEIF) && in csi2_ctx_map_format()
229 !(csi2->output & CSI2_OUTPUT_MEMORY)) { in csi2_ctx_map_format()
237 destidx = csi2->frame_skip ? 0 : !!(csi2->output & CSI2_OUTPUT_IPIPEIF); in csi2_ctx_map_format()
[all …]
Diss_csiphy.c118 struct iss_csi2_device *csi2 = v4l2_get_subdevdata(csi2_subdev); in omap4iss_csiphy_config() local
128 lanes = &subdevs->bus.csi2.lanecfg; in omap4iss_csiphy_config()
171 csi2->phy->used_data_lanes = 0; in omap4iss_csiphy_config()
174 for (i = 0; i < csi2->phy->max_data_lanes; i++) { in omap4iss_csiphy_config()
179 lanes->data[i].pos > (csi2->phy->max_data_lanes + 1)) in omap4iss_csiphy_config()
186 csi2->phy->used_data_lanes++; in omap4iss_csiphy_config()
190 lanes->clk.pos > (csi2->phy->max_data_lanes + 1)) in omap4iss_csiphy_config()
197 / (2 * csi2->phy->used_data_lanes) in omap4iss_csiphy_config()
210 mutex_lock(&csi2->phy->mutex); in omap4iss_csiphy_config()
211 csi2->phy->dphy = csi2phy; in omap4iss_csiphy_config()
[all …]
Diss_csi2.h147 void omap4iss_csi2_isr(struct iss_csi2_device *csi2);
148 int omap4iss_csi2_reset(struct iss_csi2_device *csi2);
152 void omap4iss_csi2_unregister_entities(struct iss_csi2_device *csi2);
153 int omap4iss_csi2_register_entities(struct iss_csi2_device *csi2,
Diss_csiphy.h29 struct iss_csi2_device *csi2; member
/Linux-v6.6/drivers/media/platform/ti/omap3isp/
Dispcsi2.c28 struct isp_csi2_device *csi2, u8 enable) in csi2_if_enable() argument
30 struct isp_csi2_ctrl_cfg *currctrl = &csi2->ctrl; in csi2_if_enable()
32 isp_reg_clr_set(isp, csi2->regs1, ISPCSI2_CTRL, ISPCSI2_CTRL_IF_EN, in csi2_if_enable()
44 struct isp_csi2_device *csi2, in csi2_recv_config() argument
49 reg = isp_reg_readl(isp, csi2->regs1, ISPCSI2_CTRL); in csi2_recv_config()
74 isp_reg_writel(isp, reg, csi2->regs1, ISPCSI2_CTRL); in csi2_recv_config()
165 static u16 csi2_ctx_map_format(struct isp_csi2_device *csi2) in csi2_ctx_map_format() argument
167 const struct v4l2_mbus_framefmt *fmt = &csi2->formats[CSI2_PAD_SINK]; in csi2_ctx_map_format()
192 if (!(csi2->output & CSI2_OUTPUT_CCDC) && in csi2_ctx_map_format()
193 !(csi2->output & CSI2_OUTPUT_MEMORY)) { in csi2_ctx_map_format()
[all …]
Dispcsi2.h145 void omap3isp_csi2_isr(struct isp_csi2_device *csi2);
146 int omap3isp_csi2_reset(struct isp_csi2_device *csi2);
149 void omap3isp_csi2_unregister_entities(struct isp_csi2_device *csi2);
150 int omap3isp_csi2_register_entities(struct isp_csi2_device *csi2,
Dispcsiphy.c182 lanes = &buscfg->bus.csi2.lanecfg; in omap3isp_csiphy_config()
183 num_data_lanes = buscfg->bus.csi2.num_data_lanes; in omap3isp_csiphy_config()
281 rval = omap3isp_csi2_reset(phy->csi2); in omap3isp_csiphy_acquire()
342 phy2->csi2 = &isp->isp_csi2a; in omap3isp_csiphy_init()
352 phy1->csi2 = &isp->isp_csi2c; in omap3isp_csiphy_init()
Dispcsiphy.h25 struct isp_csi2_device *csi2; member
/Linux-v6.6/drivers/media/platform/renesas/rzg2l-cru/
Drzg2l-csi2.c214 static u32 rzg2l_csi2_read(struct rzg2l_csi2 *csi2, unsigned int reg) in rzg2l_csi2_read() argument
216 return ioread32(csi2->base + reg); in rzg2l_csi2_read()
219 static void rzg2l_csi2_write(struct rzg2l_csi2 *csi2, unsigned int reg, in rzg2l_csi2_write() argument
222 iowrite32(data, csi2->base + reg); in rzg2l_csi2_write()
225 static void rzg2l_csi2_set(struct rzg2l_csi2 *csi2, unsigned int reg, u32 set) in rzg2l_csi2_set() argument
227 rzg2l_csi2_write(csi2, reg, rzg2l_csi2_read(csi2, reg) | set); in rzg2l_csi2_set()
230 static void rzg2l_csi2_clr(struct rzg2l_csi2 *csi2, unsigned int reg, u32 clr) in rzg2l_csi2_clr() argument
232 rzg2l_csi2_write(csi2, reg, rzg2l_csi2_read(csi2, reg) & ~clr); in rzg2l_csi2_clr()
235 static int rzg2l_csi2_calc_mbps(struct rzg2l_csi2 *csi2) in rzg2l_csi2_calc_mbps() argument
237 struct v4l2_subdev *source = csi2->remote_source; in rzg2l_csi2_calc_mbps()
[all …]
DMakefile3 obj-$(CONFIG_VIDEO_RZG2L_CSI2) += rzg2l-csi2.o
/Linux-v6.6/drivers/staging/media/atomisp/pci/
Datomisp_csi2.c26 v4l2_mbus_framefmt *__csi2_get_format(struct atomisp_mipi_csi2_device *csi2, in __csi2_get_format() argument
32 return v4l2_subdev_get_try_format(&csi2->subdev, sd_state, in __csi2_get_format()
35 return &csi2->formats[pad]; in __csi2_get_format()
75 struct atomisp_mipi_csi2_device *csi2 = v4l2_get_subdevdata(sd); in csi2_get_format() local
78 format = __csi2_get_format(csi2, sd_state, fmt->which, fmt->pad); in csi2_get_format()
90 struct atomisp_mipi_csi2_device *csi2 = v4l2_get_subdevdata(sd); in atomisp_csi2_set_ffmt() local
91 struct v4l2_mbus_framefmt *actual_ffmt = __csi2_get_format(csi2, in atomisp_csi2_set_ffmt()
120 *actual_ffmt = *ffmt = *__csi2_get_format(csi2, sd_state, which, in atomisp_csi2_set_ffmt()
188 static int mipi_csi2_init_entities(struct atomisp_mipi_csi2_device *csi2, in mipi_csi2_init_entities() argument
191 struct v4l2_subdev *sd = &csi2->subdev; in mipi_csi2_init_entities()
[all …]
Datomisp_csi2.h71 struct atomisp_mipi_csi2_device *csi2);
72 int atomisp_mipi_csi2_register_entities(struct atomisp_mipi_csi2_device *csi2,
/Linux-v6.6/drivers/media/platform/nxp/imx8-isi/
Dimx8-isi-gasket.c37 val = GASKET_CTRL_DATA_TYPE(fd->entry[0].bus.csi2.dt); in mxc_imx8_gasket_enable()
38 if (fd->entry[0].bus.csi2.dt == MIPI_CSI2_DT_YUV422_8B) in mxc_imx8_gasket_enable()
71 val = DISP_MIX_CAMERA_MUX_DATA_TYPE(fd->entry[0].bus.csi2.dt); in mxc_imx93_gasket_enable()
/Linux-v6.6/drivers/media/platform/sunxi/sun6i-mipi-csi2/
DMakefile2 sun6i-mipi-csi2-y += sun6i_mipi_csi2.o
4 obj-$(CONFIG_VIDEO_SUN6I_MIPI_CSI2) += sun6i-mipi-csi2.o
/Linux-v6.6/drivers/media/platform/sunxi/sun8i-a83t-mipi-csi2/
DMakefile2 sun8i-a83t-mipi-csi2-y += sun8i_a83t_mipi_csi2.o sun8i_a83t_dphy.o
4 obj-$(CONFIG_VIDEO_SUN8I_A83T_MIPI_CSI2) += sun8i-a83t-mipi-csi2.o
/Linux-v6.6/drivers/media/platform/sunxi/
DMakefile5 obj-y += sun6i-mipi-csi2/
6 obj-y += sun8i-a83t-mipi-csi2/
DKconfig7 source "drivers/media/platform/sunxi/sun6i-mipi-csi2/Kconfig"
8 source "drivers/media/platform/sunxi/sun8i-a83t-mipi-csi2/Kconfig"
/Linux-v6.6/drivers/media/i2c/adv748x/
DMakefile5 adv748x-csi2.o \
/Linux-v6.6/drivers/media/platform/renesas/rcar-vin/
DMakefile4 obj-$(CONFIG_VIDEO_RCAR_CSI2) += rcar-csi2.o
/Linux-v6.6/drivers/media/platform/qcom/camss/
Dcamss-csiphy-2ph-1-0.c101 struct csiphy_lanes_cfg *c = &cfg->csi2->lane_cfg; in csiphy_lanes_enable()
140 struct csiphy_lanes_cfg *c = &cfg->csi2->lane_cfg; in csiphy_lanes_disable()
/Linux-v6.6/drivers/media/platform/nxp/
DMakefile8 obj-$(CONFIG_VIDEO_IMX8MQ_MIPI_CSI2) += imx8mq-mipi-csi2.o
/Linux-v6.6/include/linux/platform_data/media/
Domap4iss.h57 struct iss_csi2_platform_data csi2; member
/Linux-v6.6/drivers/media/pci/intel/ipu3/
Dipu3-cio2.c357 u8 lanes, csi2bus = q->csi2.port; in cio2_hw_init()
366 lanes = q->csi2.lanes; in cio2_hw_init()
494 base + CIO2_REG_PXM_FRF_CFG(q->csi2.port)); in cio2_hw_init()
1377 struct csi2_bus_info csi2; member
1393 if (cio2->queue[s_asd->csi2.port].sensor) in cio2_notifier_bound()
1400 q = &cio2->queue[s_asd->csi2.port]; in cio2_notifier_bound()
1402 q->csi2 = s_asd->csi2; in cio2_notifier_bound()
1404 q->csi_rx_base = cio2->base + CIO2_REG_PIPE_BASE(q->csi2.port); in cio2_notifier_bound()
1417 cio2->queue[s_asd->csi2.port].sensor = NULL; in cio2_notifier_unbind()
1432 q = &cio2->queue[s_asd->csi2.port]; in cio2_notifier_complete()
[all …]

1234