Lines Matching refs:ast
44 #define DRIVER_NAME "ast"
255 static inline unsigned long __ast_gen(struct ast_device *ast)
257 return __AST_CHIP_GEN(ast->chip);
261 static inline bool __ast_gen_is_eq(struct ast_device *ast, unsigned long gen)
263 return __ast_gen(ast) == gen;
292 static inline u32 ast_read32(struct ast_device *ast, u32 reg)
294 return ioread32(ast->regs + reg);
297 static inline void ast_write32(struct ast_device *ast, u32 reg, u32 val)
299 iowrite32(val, ast->regs + reg);
302 static inline u8 ast_io_read8(struct ast_device *ast, u32 reg)
304 return ioread8(ast->ioregs + reg);
307 static inline void ast_io_write8(struct ast_device *ast, u32 reg, u8 val)
309 iowrite8(val, ast->ioregs + reg);
312 static inline u8 ast_get_index_reg(struct ast_device *ast, u32 base, u8 index)
314 ast_io_write8(ast, base, index);
316 return ast_io_read8(ast, base);
319 static inline u8 ast_get_index_reg_mask(struct ast_device *ast, u32 base, u8 index,
322 u8 val = ast_get_index_reg(ast, base, index);
327 static inline void ast_set_index_reg(struct ast_device *ast, u32 base, u8 index, u8 val)
329 ast_io_write8(ast, base, index);
331 ast_io_write8(ast, base, val);
334 static inline void ast_set_index_reg_mask(struct ast_device *ast, u32 base, u8 index,
337 u8 tmp = ast_get_index_reg_mask(ast, base, index, preserve_mask);
340 ast_set_index_reg(ast, base, index, tmp);
397 int ast_mode_config_init(struct ast_device *ast);
518 int ast_mm_init(struct ast_device *ast);
520 /* ast post */
522 u32 ast_mindwm(struct ast_device *ast, u32 r);
523 void ast_moutdwm(struct ast_device *ast, u32 r, u32 v);
524 void ast_patch_ahb_2500(struct ast_device *ast);
525 /* ast dp501 */
528 bool ast_dp501_is_connected(struct ast_device *ast);
537 bool ast_astdp_is_connected(struct ast_device *ast);