Lines Matching full:cal

3  * TI Camera Access Layer (CAL)
31 #define CAL_MODULE_NAME "cal"
149 * The Camera Adaptation Layer (CAL) module is paired with one or more complex
153 * The cal_dev structure represents the whole subsystem, including the CAL and
154 * the CAMERARX instances. Instances of struct cal_dev are named cal through the
170 struct cal_dev *cal; member
225 struct cal_dev *cal; member
257 #define cal_dbg(level, cal, fmt, arg...) \ argument
260 dev_printk(KERN_DEBUG, (cal)->dev, fmt, ##arg); \
262 #define cal_info(cal, fmt, arg...) \ argument
263 dev_info((cal)->dev, fmt, ##arg)
264 #define cal_err(cal, fmt, arg...) \ argument
265 dev_err((cal)->dev, fmt, ##arg)
268 cal_dbg(level, (ctx)->cal, "ctx%u: " fmt, (ctx)->dma_ctx, ##arg)
270 cal_info((ctx)->cal, "ctx%u: " fmt, (ctx)->dma_ctx, ##arg)
272 cal_err((ctx)->cal, "ctx%u: " fmt, (ctx)->dma_ctx, ##arg)
275 cal_dbg(level, (phy)->cal, "phy%u: " fmt, (phy)->instance, ##arg)
277 cal_info((phy)->cal, "phy%u: " fmt, (phy)->instance, ##arg)
279 cal_err((phy)->cal, "phy%u: " fmt, (phy)->instance, ##arg)
281 static inline u32 cal_read(struct cal_dev *cal, u32 offset) in cal_read() argument
283 return ioread32(cal->base + offset); in cal_read()
286 static inline void cal_write(struct cal_dev *cal, u32 offset, u32 val) in cal_write() argument
288 iowrite32(val, cal->base + offset); in cal_write()
291 static __always_inline u32 cal_read_field(struct cal_dev *cal, u32 offset, u32 mask) in cal_read_field() argument
293 return FIELD_GET(mask, cal_read(cal, offset)); in cal_read_field()
296 static inline void cal_write_field(struct cal_dev *cal, u32 offset, u32 value, in cal_write_field() argument
299 u32 val = cal_read(cal, offset); in cal_write_field()
303 cal_write(cal, offset, val); in cal_write_field()
320 void cal_quickdump_regs(struct cal_dev *cal);
324 struct cal_camerarx *cal_camerarx_create(struct cal_dev *cal,