Searched refs:xvip (Results 1 – 4 of 4) sorted by relevance
/drivers/media/platform/xilinx/ |
D | xilinx-vip.h | 138 static inline u32 xvip_read(struct xvip_device *xvip, u32 addr) in xvip_read() argument 140 return ioread32(xvip->iomem + addr); in xvip_read() 143 static inline void xvip_write(struct xvip_device *xvip, u32 addr, u32 value) in xvip_write() argument 145 iowrite32(value, xvip->iomem + addr); in xvip_write() 148 static inline void xvip_clr(struct xvip_device *xvip, u32 addr, u32 clr) in xvip_clr() argument 150 xvip_write(xvip, addr, xvip_read(xvip, addr) & ~clr); in xvip_clr() 153 static inline void xvip_set(struct xvip_device *xvip, u32 addr, u32 set) in xvip_set() argument 155 xvip_write(xvip, addr, xvip_read(xvip, addr) | set); in xvip_set() 158 void xvip_clr_or_set(struct xvip_device *xvip, u32 addr, u32 mask, bool set); 159 void xvip_clr_and_set(struct xvip_device *xvip, u32 addr, u32 clr, u32 set); [all …]
|
D | xilinx-vip.c | 177 void xvip_clr_or_set(struct xvip_device *xvip, u32 addr, u32 mask, bool set) in xvip_clr_or_set() argument 181 reg = xvip_read(xvip, addr); in xvip_clr_or_set() 183 xvip_write(xvip, addr, reg); in xvip_clr_or_set() 197 void xvip_clr_and_set(struct xvip_device *xvip, u32 addr, u32 clr, u32 set) in xvip_clr_and_set() argument 201 reg = xvip_read(xvip, addr); in xvip_clr_and_set() 204 xvip_write(xvip, addr, reg); in xvip_clr_and_set() 208 int xvip_init_resources(struct xvip_device *xvip) in xvip_init_resources() argument 210 struct platform_device *pdev = to_platform_device(xvip->dev); in xvip_init_resources() 214 xvip->iomem = devm_ioremap_resource(xvip->dev, res); in xvip_init_resources() 215 if (IS_ERR(xvip->iomem)) in xvip_init_resources() [all …]
|
D | xilinx-tpg.c | 92 struct xvip_device xvip; member 115 return container_of(subdev, struct xtpg_device, xvip.subdev); in to_tpg() 179 xvip_stop(&xtpg->xvip); in xtpg_s_stream() 188 xvip_set_frame_size(&xtpg->xvip, &xtpg->formats[0]); in xtpg_s_stream() 221 xvip_clr_and_set(&xtpg->xvip, XTPG_PATTERN_CONTROL, in xtpg_s_stream() 241 xvip_write(&xtpg->xvip, XTPG_BAYER_PHASE, bayer_phase); in xtpg_s_stream() 246 xvip_start(&xtpg->xvip); in xtpg_s_stream() 262 return v4l2_subdev_get_try_format(&xtpg->xvip.subdev, cfg, pad); in __xtpg_get_pad_format() 380 xvip_clr_and_set(&xtpg->xvip, XTPG_PATTERN_CONTROL, in xtpg_s_ctrl() 384 xvip_clr_or_set(&xtpg->xvip, XTPG_PATTERN_CONTROL, in xtpg_s_ctrl() [all …]
|
D | xilinx-vtc.c | 156 struct xvip_device xvip; member 170 xvip_write(&xvtc->xvip, XVTC_GENERATOR_OFFSET + addr, value); in xvtc_gen_write() 185 ret = clk_prepare_enable(xvtc->xvip.clk); in xvtc_generator_start() 223 xvip_write(&xvtc->xvip, XVIP_CTRL_CONTROL, in xvtc_generator_start() 246 xvip_write(&xvtc->xvip, XVIP_CTRL_CONTROL, 0); in xvtc_generator_stop() 248 clk_disable_unprepare(xvtc->xvip.clk); in xvtc_generator_stop() 269 if (xvtc->xvip.dev->of_node == xvtc_node) { in xvtc_of_get() 314 struct device_node *node = xvtc->xvip.dev->of_node; in xvtc_parse_of() 331 xvtc->xvip.dev = &pdev->dev; in xvtc_probe() 337 ret = xvip_init_resources(&xvtc->xvip); in xvtc_probe() [all …]
|