Searched refs:mcam (Results 1 – 8 of 8) sorted by relevance
/Linux-v4.19/drivers/media/platform/marvell-ccic/ |
D | mmp-driver.c | 42 struct mcam_camera mcam; member 48 static inline struct mmp_camera *mcam_to_cam(struct mcam_camera *mcam) in mcam_to_cam() argument 50 return container_of(mcam, struct mmp_camera, mcam); in mcam_to_cam() 110 static void mcam_clk_enable(struct mcam_camera *mcam) in mcam_clk_enable() argument 115 if (!IS_ERR(mcam->clk[i])) in mcam_clk_enable() 116 clk_prepare_enable(mcam->clk[i]); in mcam_clk_enable() 120 static void mcam_clk_disable(struct mcam_camera *mcam) in mcam_clk_disable() argument 125 if (!IS_ERR(mcam->clk[i])) in mcam_clk_disable() 126 clk_disable_unprepare(mcam->clk[i]); in mcam_clk_disable() 140 static int mmpcam_power_up(struct mcam_camera *mcam) in mmpcam_power_up() argument [all …]
|
D | cafe-driver.c | 53 struct mcam_camera mcam; member 147 return container_of(m, struct cafe_camera, mcam); in to_cam() 151 static int cafe_smbus_write_done(struct mcam_camera *mcam) in cafe_smbus_write_done() argument 162 spin_lock_irqsave(&mcam->dev_lock, flags); in cafe_smbus_write_done() 163 c1 = mcam_reg_read(mcam, REG_TWSIC1); in cafe_smbus_write_done() 164 spin_unlock_irqrestore(&mcam->dev_lock, flags); in cafe_smbus_write_done() 173 struct mcam_camera *mcam = &cam->mcam; in cafe_smbus_write_data() local 175 spin_lock_irqsave(&mcam->dev_lock, flags); in cafe_smbus_write_data() 182 mcam_reg_write(mcam, REG_TWSIC0, rval); in cafe_smbus_write_data() 183 (void) mcam_reg_read(mcam, REG_TWSIC1); /* force write */ in cafe_smbus_write_data() [all …]
|
D | mcam-core.c | 282 static void mcam_enable_mipi(struct mcam_camera *mcam) in mcam_enable_mipi() argument 285 cam_dbg(mcam, "camera: DPHY3=0x%x, DPHY5=0x%x, DPHY6=0x%x\n", in mcam_enable_mipi() 286 mcam->dphy[0], mcam->dphy[1], mcam->dphy[2]); in mcam_enable_mipi() 287 mcam_reg_write(mcam, REG_CSI2_DPHY3, mcam->dphy[0]); in mcam_enable_mipi() 288 mcam_reg_write(mcam, REG_CSI2_DPHY5, mcam->dphy[1]); in mcam_enable_mipi() 289 mcam_reg_write(mcam, REG_CSI2_DPHY6, mcam->dphy[2]); in mcam_enable_mipi() 291 if (!mcam->mipi_enabled) { in mcam_enable_mipi() 292 if (mcam->lane > 4 || mcam->lane <= 0) { in mcam_enable_mipi() 293 cam_warn(mcam, "lane number error\n"); in mcam_enable_mipi() 294 mcam->lane = 1; /* set the default value */ in mcam_enable_mipi() [all …]
|
D | Makefile | 1 obj-$(CONFIG_VIDEO_CAFE_CCIC) += cafe_ccic.o mcam-core.o 4 obj-$(CONFIG_VIDEO_MMP_CAMERA) += mmp_camera.o mcam-core.o
|
/Linux-v4.19/include/linux/mlx5/ |
D | device.h | 1189 MLX5_GET(mcam_reg, (mdev)->caps.mcam, mng_access_reg_cap_mask.access_regs.reg) 1192 MLX5_GET(mcam_reg, (mdev)->caps.mcam, mng_feature_cap_mask.enhanced_features.fld)
|
D | driver.h | 836 u32 mcam[MLX5_ST_SZ_DW(mcam_reg)]; member
|
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx5/core/ |
D | fw.c | 105 return mlx5_query_mcam_reg(dev, dev->caps.mcam, in mlx5_get_mcam_reg()
|
D | port.c | 89 int mlx5_query_mcam_reg(struct mlx5_core_dev *dev, u32 *mcam, u8 feature_group, in mlx5_query_mcam_reg() argument 98 return mlx5_core_access_reg(dev, in, sz, mcam, sz, MLX5_REG_MCAM, 0, 0); in mlx5_query_mcam_reg()
|