Lines Matching +full:layer +full:- +full:base +full:- +full:offset

1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * TI Camera Access Layer (CAL)
5 * Copyright (c) 2015-2020 Texas Instruments Inc.
22 #include <media/media-device.h>
23 #include <media/v4l2-async.h>
24 #include <media/v4l2-ctrls.h>
25 #include <media/v4l2-dev.h>
26 #include <media/v4l2-device.h>
27 #include <media/v4l2-fwnode.h>
28 #include <media/v4l2-subdev.h>
29 #include <media/videobuf2-v4l2.h>
96 /* common v4l buffer stuff -- must be first */
102 * struct cal_dmaqueue - Queue of DMA buffers
149 * The Camera Adaptation Layer (CAL) module is paired with one or more complex
150 * I/O PHYs (CAMERARX). It contains multiple instances of CSI-2, processing and
160 * The cal_ctx structure represents the combination of one CSI-2 context, one
166 void __iomem *base; member
194 void __iomem *base; member
261 dev_printk(KERN_DEBUG, (cal)->dev, fmt, ##arg); \
264 dev_info((cal)->dev, fmt, ##arg)
266 dev_err((cal)->dev, fmt, ##arg)
269 cal_dbg(level, (ctx)->cal, "ctx%u: " fmt, (ctx)->dma_ctx, ##arg)
271 cal_info((ctx)->cal, "ctx%u: " fmt, (ctx)->dma_ctx, ##arg)
273 cal_err((ctx)->cal, "ctx%u: " fmt, (ctx)->dma_ctx, ##arg)
276 cal_dbg(level, (phy)->cal, "phy%u: " fmt, (phy)->instance, ##arg)
278 cal_info((phy)->cal, "phy%u: " fmt, (phy)->instance, ##arg)
280 cal_err((phy)->cal, "phy%u: " fmt, (phy)->instance, ##arg)
282 static inline u32 cal_read(struct cal_dev *cal, u32 offset) in cal_read() argument
284 return ioread32(cal->base + offset); in cal_read()
287 static inline void cal_write(struct cal_dev *cal, u32 offset, u32 val) in cal_write() argument
289 iowrite32(val, cal->base + offset); in cal_write()
292 static __always_inline u32 cal_read_field(struct cal_dev *cal, u32 offset, u32 mask) in cal_read_field() argument
294 return FIELD_GET(mask, cal_read(cal, offset)); in cal_read_field()
297 static inline void cal_write_field(struct cal_dev *cal, u32 offset, u32 value, in cal_write_field() argument
300 u32 val = cal_read(cal, offset); in cal_write_field()
304 cal_write(cal, offset, val); in cal_write_field()