Lines Matching full:cal

3  * TI Camera Access Layer (CAL)
29 #define CAL_MODULE_NAME "cal"
85 * The Camera Adaptation Layer (CAL) module is paired with one or more complex
89 * The cal_dev structure represents the whole subsystem, including the CAL and
90 * the CAMERARX instances. Instances of struct cal_dev are named cal through the
107 struct cal_dev *cal; member
147 struct cal_dev *cal; member
184 #define cal_dbg(level, cal, fmt, arg...) \ argument
187 dev_printk(KERN_DEBUG, (cal)->dev, fmt, ##arg); \
189 #define cal_info(cal, fmt, arg...) \ argument
190 dev_info((cal)->dev, fmt, ##arg)
191 #define cal_err(cal, fmt, arg...) \ argument
192 dev_err((cal)->dev, fmt, ##arg)
195 cal_dbg(level, (ctx)->cal, "ctx%u: " fmt, (ctx)->index, ##arg)
197 cal_info((ctx)->cal, "ctx%u: " fmt, (ctx)->index, ##arg)
199 cal_err((ctx)->cal, "ctx%u: " fmt, (ctx)->index, ##arg)
202 cal_dbg(level, (phy)->cal, "phy%u: " fmt, (phy)->instance, ##arg)
204 cal_info((phy)->cal, "phy%u: " fmt, (phy)->instance, ##arg)
206 cal_err((phy)->cal, "phy%u: " fmt, (phy)->instance, ##arg)
208 static inline u32 cal_read(struct cal_dev *cal, u32 offset) in cal_read() argument
210 return ioread32(cal->base + offset); in cal_read()
213 static inline void cal_write(struct cal_dev *cal, u32 offset, u32 val) in cal_write() argument
215 iowrite32(val, cal->base + offset); in cal_write()
218 static inline u32 cal_read_field(struct cal_dev *cal, u32 offset, u32 mask) in cal_read_field() argument
220 return FIELD_GET(mask, cal_read(cal, offset)); in cal_read_field()
223 static inline void cal_write_field(struct cal_dev *cal, u32 offset, u32 value, in cal_write_field() argument
226 u32 val = cal_read(cal, offset); in cal_write_field()
230 cal_write(cal, offset, val); in cal_write_field()
242 void cal_quickdump_regs(struct cal_dev *cal);
252 struct cal_camerarx *cal_camerarx_create(struct cal_dev *cal,