Home
last modified time | relevance | path

Searched refs:xvip (Results 1 – 4 of 4) sorted by relevance

/Linux-v5.10/drivers/media/platform/xilinx/
Dxilinx-vip.h134 static inline u32 xvip_read(struct xvip_device *xvip, u32 addr) in xvip_read() argument
136 return ioread32(xvip->iomem + addr); in xvip_read()
139 static inline void xvip_write(struct xvip_device *xvip, u32 addr, u32 value) in xvip_write() argument
141 iowrite32(value, xvip->iomem + addr); in xvip_write()
144 static inline void xvip_clr(struct xvip_device *xvip, u32 addr, u32 clr) in xvip_clr() argument
146 xvip_write(xvip, addr, xvip_read(xvip, addr) & ~clr); in xvip_clr()
149 static inline void xvip_set(struct xvip_device *xvip, u32 addr, u32 set) in xvip_set() argument
151 xvip_write(xvip, addr, xvip_read(xvip, addr) | set); in xvip_set()
154 void xvip_clr_or_set(struct xvip_device *xvip, u32 addr, u32 mask, bool set);
155 void xvip_clr_and_set(struct xvip_device *xvip, u32 addr, u32 clr, u32 set);
[all …]
Dxilinx-vip.c174 void xvip_clr_or_set(struct xvip_device *xvip, u32 addr, u32 mask, bool set) in xvip_clr_or_set() argument
178 reg = xvip_read(xvip, addr); in xvip_clr_or_set()
180 xvip_write(xvip, addr, reg); in xvip_clr_or_set()
194 void xvip_clr_and_set(struct xvip_device *xvip, u32 addr, u32 clr, u32 set) in xvip_clr_and_set() argument
198 reg = xvip_read(xvip, addr); in xvip_clr_and_set()
201 xvip_write(xvip, addr, reg); in xvip_clr_and_set()
205 int xvip_init_resources(struct xvip_device *xvip) in xvip_init_resources() argument
207 struct platform_device *pdev = to_platform_device(xvip->dev); in xvip_init_resources()
211 xvip->iomem = devm_ioremap_resource(xvip->dev, res); in xvip_init_resources()
212 if (IS_ERR(xvip->iomem)) in xvip_init_resources()
[all …]
Dxilinx-tpg.c89 struct xvip_device xvip; member
112 return container_of(subdev, struct xtpg_device, xvip.subdev); in to_tpg()
176 xvip_stop(&xtpg->xvip); in xtpg_s_stream()
185 xvip_set_frame_size(&xtpg->xvip, &xtpg->formats[0]); in xtpg_s_stream()
218 xvip_clr_and_set(&xtpg->xvip, XTPG_PATTERN_CONTROL, in xtpg_s_stream()
238 xvip_write(&xtpg->xvip, XTPG_BAYER_PHASE, bayer_phase); in xtpg_s_stream()
243 xvip_start(&xtpg->xvip); in xtpg_s_stream()
259 return v4l2_subdev_get_try_format(&xtpg->xvip.subdev, cfg, pad); in __xtpg_get_pad_format()
377 xvip_clr_and_set(&xtpg->xvip, XTPG_PATTERN_CONTROL, in xtpg_s_ctrl()
381 xvip_clr_or_set(&xtpg->xvip, XTPG_PATTERN_CONTROL, in xtpg_s_ctrl()
[all …]
Dxilinx-vtc.c153 struct xvip_device xvip; member
167 xvip_write(&xvtc->xvip, XVTC_GENERATOR_OFFSET + addr, value); in xvtc_gen_write()
182 ret = clk_prepare_enable(xvtc->xvip.clk); in xvtc_generator_start()
220 xvip_write(&xvtc->xvip, XVIP_CTRL_CONTROL, in xvtc_generator_start()
243 xvip_write(&xvtc->xvip, XVIP_CTRL_CONTROL, 0); in xvtc_generator_stop()
245 clk_disable_unprepare(xvtc->xvip.clk); in xvtc_generator_stop()
266 if (xvtc->xvip.dev->of_node == xvtc_node) { in xvtc_of_get()
311 struct device_node *node = xvtc->xvip.dev->of_node; in xvtc_parse_of()
328 xvtc->xvip.dev = &pdev->dev; in xvtc_probe()
334 ret = xvip_init_resources(&xvtc->xvip); in xvtc_probe()
[all …]