• Home
  • Raw
  • Download

Lines Matching refs:cal

170 	struct cal_dev		*cal;  member
228 struct cal_dev *cal; member
261 #define cal_dbg(level, cal, fmt, arg...) \ argument
264 dev_printk(KERN_DEBUG, (cal)->dev, fmt, ##arg); \
266 #define cal_info(cal, fmt, arg...) \ argument
267 dev_info((cal)->dev, fmt, ##arg)
268 #define cal_err(cal, fmt, arg...) \ argument
269 dev_err((cal)->dev, fmt, ##arg)
272 cal_dbg(level, (ctx)->cal, "ctx%u: " fmt, (ctx)->dma_ctx, ##arg)
274 cal_info((ctx)->cal, "ctx%u: " fmt, (ctx)->dma_ctx, ##arg)
276 cal_err((ctx)->cal, "ctx%u: " fmt, (ctx)->dma_ctx, ##arg)
279 cal_dbg(level, (phy)->cal, "phy%u: " fmt, (phy)->instance, ##arg)
281 cal_info((phy)->cal, "phy%u: " fmt, (phy)->instance, ##arg)
283 cal_err((phy)->cal, "phy%u: " fmt, (phy)->instance, ##arg)
285 static inline u32 cal_read(struct cal_dev *cal, u32 offset) in cal_read() argument
287 return ioread32(cal->base + offset); in cal_read()
290 static inline void cal_write(struct cal_dev *cal, u32 offset, u32 val) in cal_write() argument
292 iowrite32(val, cal->base + offset); in cal_write()
295 static __always_inline u32 cal_read_field(struct cal_dev *cal, u32 offset, u32 mask) in cal_read_field() argument
297 return FIELD_GET(mask, cal_read(cal, offset)); in cal_read_field()
300 static inline void cal_write_field(struct cal_dev *cal, u32 offset, u32 value, in cal_write_field() argument
303 u32 val = cal_read(cal, offset); in cal_write_field()
307 cal_write(cal, offset, val); in cal_write_field()
324 void cal_quickdump_regs(struct cal_dev *cal);
328 struct cal_camerarx *cal_camerarx_create(struct cal_dev *cal,