xvip 89 drivers/media/platform/xilinx/xilinx-tpg.c struct xvip_device xvip; xvip 112 drivers/media/platform/xilinx/xilinx-tpg.c return container_of(subdev, struct xtpg_device, xvip.subdev); xvip 176 drivers/media/platform/xilinx/xilinx-tpg.c xvip_stop(&xtpg->xvip); xvip 185 drivers/media/platform/xilinx/xilinx-tpg.c xvip_set_frame_size(&xtpg->xvip, &xtpg->formats[0]); xvip 218 drivers/media/platform/xilinx/xilinx-tpg.c xvip_clr_and_set(&xtpg->xvip, XTPG_PATTERN_CONTROL, xvip 238 drivers/media/platform/xilinx/xilinx-tpg.c xvip_write(&xtpg->xvip, XTPG_BAYER_PHASE, bayer_phase); xvip 243 drivers/media/platform/xilinx/xilinx-tpg.c xvip_start(&xtpg->xvip); xvip 259 drivers/media/platform/xilinx/xilinx-tpg.c return v4l2_subdev_get_try_format(&xtpg->xvip.subdev, cfg, pad); xvip 377 drivers/media/platform/xilinx/xilinx-tpg.c xvip_clr_and_set(&xtpg->xvip, XTPG_PATTERN_CONTROL, xvip 381 drivers/media/platform/xilinx/xilinx-tpg.c xvip_clr_or_set(&xtpg->xvip, XTPG_PATTERN_CONTROL, xvip 385 drivers/media/platform/xilinx/xilinx-tpg.c xvip_clr_or_set(&xtpg->xvip, XTPG_PATTERN_CONTROL, xvip 389 drivers/media/platform/xilinx/xilinx-tpg.c xvip_clr_and_set(&xtpg->xvip, XTPG_PATTERN_CONTROL, xvip 395 drivers/media/platform/xilinx/xilinx-tpg.c xvip_clr_or_set(&xtpg->xvip, XTPG_PATTERN_CONTROL, xvip 399 drivers/media/platform/xilinx/xilinx-tpg.c xvip_clr_or_set(&xtpg->xvip, XTPG_PATTERN_CONTROL, xvip 403 drivers/media/platform/xilinx/xilinx-tpg.c xvip_clr_or_set(&xtpg->xvip, XTPG_PATTERN_CONTROL, xvip 407 drivers/media/platform/xilinx/xilinx-tpg.c xvip_write(&xtpg->xvip, XTPG_MOTION_SPEED, ctrl->val); xvip 410 drivers/media/platform/xilinx/xilinx-tpg.c xvip_clr_and_set(&xtpg->xvip, XTPG_CROSS_HAIRS, xvip 415 drivers/media/platform/xilinx/xilinx-tpg.c xvip_clr_and_set(&xtpg->xvip, XTPG_CROSS_HAIRS, xvip 420 drivers/media/platform/xilinx/xilinx-tpg.c xvip_clr_and_set(&xtpg->xvip, XTPG_ZPLATE_HOR_CONTROL, xvip 425 drivers/media/platform/xilinx/xilinx-tpg.c xvip_clr_and_set(&xtpg->xvip, XTPG_ZPLATE_HOR_CONTROL, xvip 430 drivers/media/platform/xilinx/xilinx-tpg.c xvip_clr_and_set(&xtpg->xvip, XTPG_ZPLATE_VER_CONTROL, xvip 435 drivers/media/platform/xilinx/xilinx-tpg.c xvip_clr_and_set(&xtpg->xvip, XTPG_ZPLATE_VER_CONTROL, xvip 440 drivers/media/platform/xilinx/xilinx-tpg.c xvip_write(&xtpg->xvip, XTPG_BOX_SIZE, ctrl->val); xvip 443 drivers/media/platform/xilinx/xilinx-tpg.c xvip_write(&xtpg->xvip, XTPG_BOX_COLOR, ctrl->val); xvip 446 drivers/media/platform/xilinx/xilinx-tpg.c xvip_write(&xtpg->xvip, XTPG_STUCK_PIXEL_THRESH, ctrl->val); xvip 449 drivers/media/platform/xilinx/xilinx-tpg.c xvip_write(&xtpg->xvip, XTPG_NOISE_GAIN, ctrl->val); xvip 690 drivers/media/platform/xilinx/xilinx-tpg.c xvip_suspend(&xtpg->xvip); xvip 699 drivers/media/platform/xilinx/xilinx-tpg.c xvip_resume(&xtpg->xvip); xvip 710 drivers/media/platform/xilinx/xilinx-tpg.c struct device *dev = xtpg->xvip.dev; xvip 711 drivers/media/platform/xilinx/xilinx-tpg.c struct device_node *node = xtpg->xvip.dev->of_node; xvip 778 drivers/media/platform/xilinx/xilinx-tpg.c xtpg->xvip.dev = &pdev->dev; xvip 784 drivers/media/platform/xilinx/xilinx-tpg.c ret = xvip_init_resources(&xtpg->xvip); xvip 802 drivers/media/platform/xilinx/xilinx-tpg.c xvip_reset(&xtpg->xvip); xvip 818 drivers/media/platform/xilinx/xilinx-tpg.c xvip_get_frame_size(&xtpg->xvip, &xtpg->default_format); xvip 829 drivers/media/platform/xilinx/xilinx-tpg.c subdev = &xtpg->xvip.subdev; xvip 875 drivers/media/platform/xilinx/xilinx-tpg.c xvip_print_version(&xtpg->xvip); xvip 890 drivers/media/platform/xilinx/xilinx-tpg.c xvip_cleanup_resources(&xtpg->xvip); xvip 897 drivers/media/platform/xilinx/xilinx-tpg.c struct v4l2_subdev *subdev = &xtpg->xvip.subdev; xvip 903 drivers/media/platform/xilinx/xilinx-tpg.c xvip_cleanup_resources(&xtpg->xvip); xvip 174 drivers/media/platform/xilinx/xilinx-vip.c void xvip_clr_or_set(struct xvip_device *xvip, u32 addr, u32 mask, bool set) xvip 178 drivers/media/platform/xilinx/xilinx-vip.c reg = xvip_read(xvip, addr); xvip 180 drivers/media/platform/xilinx/xilinx-vip.c xvip_write(xvip, addr, reg); xvip 194 drivers/media/platform/xilinx/xilinx-vip.c void xvip_clr_and_set(struct xvip_device *xvip, u32 addr, u32 clr, u32 set) xvip 198 drivers/media/platform/xilinx/xilinx-vip.c reg = xvip_read(xvip, addr); xvip 201 drivers/media/platform/xilinx/xilinx-vip.c xvip_write(xvip, addr, reg); xvip 205 drivers/media/platform/xilinx/xilinx-vip.c int xvip_init_resources(struct xvip_device *xvip) xvip 207 drivers/media/platform/xilinx/xilinx-vip.c struct platform_device *pdev = to_platform_device(xvip->dev); xvip 211 drivers/media/platform/xilinx/xilinx-vip.c xvip->iomem = devm_ioremap_resource(xvip->dev, res); xvip 212 drivers/media/platform/xilinx/xilinx-vip.c if (IS_ERR(xvip->iomem)) xvip 213 drivers/media/platform/xilinx/xilinx-vip.c return PTR_ERR(xvip->iomem); xvip 215 drivers/media/platform/xilinx/xilinx-vip.c xvip->clk = devm_clk_get(xvip->dev, NULL); xvip 216 drivers/media/platform/xilinx/xilinx-vip.c if (IS_ERR(xvip->clk)) xvip 217 drivers/media/platform/xilinx/xilinx-vip.c return PTR_ERR(xvip->clk); xvip 219 drivers/media/platform/xilinx/xilinx-vip.c clk_prepare_enable(xvip->clk); xvip 224 drivers/media/platform/xilinx/xilinx-vip.c void xvip_cleanup_resources(struct xvip_device *xvip) xvip 226 drivers/media/platform/xilinx/xilinx-vip.c clk_disable_unprepare(xvip->clk); xvip 134 drivers/media/platform/xilinx/xilinx-vip.h static inline u32 xvip_read(struct xvip_device *xvip, u32 addr) xvip 136 drivers/media/platform/xilinx/xilinx-vip.h return ioread32(xvip->iomem + addr); xvip 139 drivers/media/platform/xilinx/xilinx-vip.h static inline void xvip_write(struct xvip_device *xvip, u32 addr, u32 value) xvip 141 drivers/media/platform/xilinx/xilinx-vip.h iowrite32(value, xvip->iomem + addr); xvip 144 drivers/media/platform/xilinx/xilinx-vip.h static inline void xvip_clr(struct xvip_device *xvip, u32 addr, u32 clr) xvip 146 drivers/media/platform/xilinx/xilinx-vip.h xvip_write(xvip, addr, xvip_read(xvip, addr) & ~clr); xvip 149 drivers/media/platform/xilinx/xilinx-vip.h static inline void xvip_set(struct xvip_device *xvip, u32 addr, u32 set) xvip 151 drivers/media/platform/xilinx/xilinx-vip.h xvip_write(xvip, addr, xvip_read(xvip, addr) | set); xvip 154 drivers/media/platform/xilinx/xilinx-vip.h void xvip_clr_or_set(struct xvip_device *xvip, u32 addr, u32 mask, bool set); xvip 155 drivers/media/platform/xilinx/xilinx-vip.h void xvip_clr_and_set(struct xvip_device *xvip, u32 addr, u32 clr, u32 set); xvip 157 drivers/media/platform/xilinx/xilinx-vip.h int xvip_init_resources(struct xvip_device *xvip); xvip 158 drivers/media/platform/xilinx/xilinx-vip.h void xvip_cleanup_resources(struct xvip_device *xvip); xvip 160 drivers/media/platform/xilinx/xilinx-vip.h static inline void xvip_reset(struct xvip_device *xvip) xvip 162 drivers/media/platform/xilinx/xilinx-vip.h xvip_write(xvip, XVIP_CTRL_CONTROL, XVIP_CTRL_CONTROL_SW_RESET); xvip 165 drivers/media/platform/xilinx/xilinx-vip.h static inline void xvip_start(struct xvip_device *xvip) xvip 167 drivers/media/platform/xilinx/xilinx-vip.h xvip_set(xvip, XVIP_CTRL_CONTROL, xvip 171 drivers/media/platform/xilinx/xilinx-vip.h static inline void xvip_stop(struct xvip_device *xvip) xvip 173 drivers/media/platform/xilinx/xilinx-vip.h xvip_clr(xvip, XVIP_CTRL_CONTROL, XVIP_CTRL_CONTROL_SW_ENABLE); xvip 176 drivers/media/platform/xilinx/xilinx-vip.h static inline void xvip_resume(struct xvip_device *xvip) xvip 178 drivers/media/platform/xilinx/xilinx-vip.h xvip_write(xvip, XVIP_CTRL_CONTROL, xvip 179 drivers/media/platform/xilinx/xilinx-vip.h xvip->saved_ctrl | XVIP_CTRL_CONTROL_SW_ENABLE); xvip 182 drivers/media/platform/xilinx/xilinx-vip.h static inline void xvip_suspend(struct xvip_device *xvip) xvip 184 drivers/media/platform/xilinx/xilinx-vip.h xvip->saved_ctrl = xvip_read(xvip, XVIP_CTRL_CONTROL); xvip 185 drivers/media/platform/xilinx/xilinx-vip.h xvip_write(xvip, XVIP_CTRL_CONTROL, xvip 186 drivers/media/platform/xilinx/xilinx-vip.h xvip->saved_ctrl & ~XVIP_CTRL_CONTROL_SW_ENABLE); xvip 189 drivers/media/platform/xilinx/xilinx-vip.h static inline void xvip_set_frame_size(struct xvip_device *xvip, xvip 192 drivers/media/platform/xilinx/xilinx-vip.h xvip_write(xvip, XVIP_ACTIVE_SIZE, xvip 197 drivers/media/platform/xilinx/xilinx-vip.h static inline void xvip_get_frame_size(struct xvip_device *xvip, xvip 202 drivers/media/platform/xilinx/xilinx-vip.h reg = xvip_read(xvip, XVIP_ACTIVE_SIZE); xvip 209 drivers/media/platform/xilinx/xilinx-vip.h static inline void xvip_enable_reg_update(struct xvip_device *xvip) xvip 211 drivers/media/platform/xilinx/xilinx-vip.h xvip_set(xvip, XVIP_CTRL_CONTROL, XVIP_CTRL_CONTROL_REG_UPDATE); xvip 214 drivers/media/platform/xilinx/xilinx-vip.h static inline void xvip_disable_reg_update(struct xvip_device *xvip) xvip 216 drivers/media/platform/xilinx/xilinx-vip.h xvip_clr(xvip, XVIP_CTRL_CONTROL, XVIP_CTRL_CONTROL_REG_UPDATE); xvip 219 drivers/media/platform/xilinx/xilinx-vip.h static inline void xvip_print_version(struct xvip_device *xvip) xvip 223 drivers/media/platform/xilinx/xilinx-vip.h version = xvip_read(xvip, XVIP_CTRL_VERSION); xvip 225 drivers/media/platform/xilinx/xilinx-vip.h dev_info(xvip->dev, "device found, version %u.%02x%x\n", xvip 153 drivers/media/platform/xilinx/xilinx-vtc.c struct xvip_device xvip; xvip 167 drivers/media/platform/xilinx/xilinx-vtc.c xvip_write(&xvtc->xvip, XVTC_GENERATOR_OFFSET + addr, value); xvip 182 drivers/media/platform/xilinx/xilinx-vtc.c ret = clk_prepare_enable(xvtc->xvip.clk); xvip 220 drivers/media/platform/xilinx/xilinx-vtc.c xvip_write(&xvtc->xvip, XVIP_CTRL_CONTROL, xvip 243 drivers/media/platform/xilinx/xilinx-vtc.c xvip_write(&xvtc->xvip, XVIP_CTRL_CONTROL, 0); xvip 245 drivers/media/platform/xilinx/xilinx-vtc.c clk_disable_unprepare(xvtc->xvip.clk); xvip 266 drivers/media/platform/xilinx/xilinx-vtc.c if (xvtc->xvip.dev->of_node == xvtc_node) { xvip 311 drivers/media/platform/xilinx/xilinx-vtc.c struct device_node *node = xvtc->xvip.dev->of_node; xvip 328 drivers/media/platform/xilinx/xilinx-vtc.c xvtc->xvip.dev = &pdev->dev; xvip 334 drivers/media/platform/xilinx/xilinx-vtc.c ret = xvip_init_resources(&xvtc->xvip); xvip 340 drivers/media/platform/xilinx/xilinx-vtc.c xvip_print_version(&xvtc->xvip); xvip 353 drivers/media/platform/xilinx/xilinx-vtc.c xvip_cleanup_resources(&xvtc->xvip);