|
| #define | crypto_cpu_to_be32(v) |
| |
| #define | crypto_max(a, b) ((a) > (b)) ? (a) : (b) |
| |
| #define | crypto_min(a, b) ((a) > (b)) ? (b) : (a) |
| |
| #define | crypto_unused(x) (td_void)(x) |
| |
| #define | crypto_array_size(arr) (sizeof(arr) / sizeof((arr)[0])) |
| |
| #define | crypto_reg_read(reg_addr) (*(volatile td_u32 *)(uintptr_t)(reg_addr)) |
| |
| #define | crypto_reg_write(reg_addr, value) (*(volatile td_u32 *)(uintptr_t)(reg_addr) = (value)) |
| |
| #define | crypto_reg_read_u16(reg_addr) (*(volatile td_u16 *)(uintptr_t)(reg_addr)) |
| |
| #define | crypto_set_bits(src, bit) ((src) |= (1 << (bit))) |
| |
| #define | crypto_clear_bits(src, bit) ((src) &= ~(1 << (bit))) |
| |
| #define | crypto_chk_print(cond, ...) |
| |
| #define | crypto_chk_return(cond, err_ret, ...) |
| |
| #define | crypto_chk_return_void(cond, ...) |
| |
| #define | crypto_chk_goto(cond, label, ...) |
| |
| #define | crypto_param_require(cond) |
| |
| #define | crypto_param_check(cond) |
| |
| #define | crypto_chk_goto_with_ret(ret, cond, label, err_ret, fmt, ...) |
| |
| #define | crypto_hal_func_enter() |
| |
| #define | crypto_hal_func_exit() |
| |
| #define | crypto_kapi_func_enter() |
| |
| #define | crypto_kapi_func_exit() |
| |
| #define | crypto_drv_func_enter() |
| |
| #define | crypto_drv_func_exit() |
| |
| #define | crypto_dispatch_func_enter() |
| |
| #define | crypto_dispatch_func_exit() |
| |
| #define | crypto_uapi_func_enter() |
| |
| #define | crypto_uapi_func_exit() |
| |
| #define | crypto_print_func_err(_func, _err_code) |
| |
| #define | crypto_chk_func_return(func, ret) |
| |
| #define | crypto_check_param(err_level, module, cond, err_code) |
| |
| #define | crypto_check_param_null(err_level, module, _val) |
| |