WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
crypto_osal_adapt.h 文件参考
#include "crypto_osal_lib.h"
#include "crypto_common_struct.h"
#include "osal_addr.h"
crypto_osal_adapt.h 的引用(Include)关系图:
此图展示该文件直接或间接的被哪些文件引用了:

浏览源代码.

宏定义

#define crypto_msleep   osal_msleep
 
#define crypto_udelay   osal_udelay
 
#define crypto_ioremap_nocache   osal_ioremap_nocache
 
#define crypto_iounmap   osal_iounmap
 
#define crypto_mutex   osal_mutex
 
#define crypto_mutex_init   osal_mutex_init
 
#define crypto_mutex_destroy   osal_mutex_destroy
 
#define crypto_mutex_lock   osal_mutex_lock
 
#define crypto_mutex_unlock   osal_mutex_unlock
 
#define crypto_service_preprocess()
 
#define crypto_service_postprocess()
 
#define crypto_print   osal_printk
 
#define crypto_log_fmt(LOG_LEVEL_LABEL, fmt, ...)    crypto_print("[%s:%d]" LOG_LEVEL_LABEL ": " fmt, __func__, __LINE__, ##__VA_ARGS__)
 
#define CRYPTO_LOG_LEVEL   0
 
#define crypto_log_err(fmt, ...)   crypto_log_fmt("ERROR", fmt, ##__VA_ARGS__)
 
#define crypto_log_warn(fmt, ...)
 
#define crypto_log_notice(fmt, ...)
 
#define crypto_log_dbg(fmt, ...)
 
#define crypto_log_trace(fmt, ...)
 
#define crypto_malloc(x)   (((x) > 0) ? osal_kmalloc((x), OSAL_GFP_KERNEL) : TD_NULL)
 
#define crypto_free(x)   {if (((x) != TD_NULL)) osal_kfree(x);}
 
#define crypto_addr_align_check(addr)   ((((addr) % 4) != 0) ? TD_FALSE : TD_TRUE)
 
#define crypto_ioctl_cmd   osal_ioctl_cmd
 

函数

td_s32 crypto_copy_from_user (td_void *to, unsigned long to_len, const td_void *from, unsigned long from_len)
 
td_s32 crypto_copy_to_user (td_void *to, unsigned long to_len, const td_void *from, unsigned long from_len)
 
void crypto_dump_data (const char *name, const td_u8 *data, td_u32 data_len)
 
void crypto_dump_phys_addr (const char *name, const td_phys_addr_t phys_addr, td_u32 data_len)
 
td_bool crypto_data_buf_check (const crypto_buf_attr *buf_attr, td_u32 length)
 

宏定义说明

◆ crypto_addr_align_check

#define crypto_addr_align_check (   addr)    ((((addr) % 4) != 0) ? TD_FALSE : TD_TRUE)

◆ crypto_free

#define crypto_free (   x)    {if (((x) != TD_NULL)) osal_kfree(x);}

◆ crypto_ioctl_cmd

#define crypto_ioctl_cmd   osal_ioctl_cmd

◆ crypto_ioremap_nocache

#define crypto_ioremap_nocache   osal_ioremap_nocache

◆ crypto_iounmap

#define crypto_iounmap   osal_iounmap

◆ crypto_log_dbg

#define crypto_log_dbg (   fmt,
  ... 
)

◆ crypto_log_err

#define crypto_log_err (   fmt,
  ... 
)    crypto_log_fmt("ERROR", fmt, ##__VA_ARGS__)

◆ crypto_log_fmt

#define crypto_log_fmt (   LOG_LEVEL_LABEL,
  fmt,
  ... 
)     crypto_print("[%s:%d]" LOG_LEVEL_LABEL ": " fmt, __func__, __LINE__, ##__VA_ARGS__)

◆ CRYPTO_LOG_LEVEL

#define CRYPTO_LOG_LEVEL   0

◆ crypto_log_notice

#define crypto_log_notice (   fmt,
  ... 
)

◆ crypto_log_trace

#define crypto_log_trace (   fmt,
  ... 
)

◆ crypto_log_warn

#define crypto_log_warn (   fmt,
  ... 
)

◆ crypto_malloc

#define crypto_malloc (   x)    (((x) > 0) ? osal_kmalloc((x), OSAL_GFP_KERNEL) : TD_NULL)

◆ crypto_msleep

#define crypto_msleep   osal_msleep

Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2023-2023. All rights reserved.

Description: Provides cipher driver common adapt api.
History:
2023-03-22, Create file.

◆ crypto_mutex

#define crypto_mutex   osal_mutex

◆ crypto_mutex_destroy

#define crypto_mutex_destroy   osal_mutex_destroy

◆ crypto_mutex_init

#define crypto_mutex_init   osal_mutex_init

◆ crypto_mutex_lock

#define crypto_mutex_lock   osal_mutex_lock

◆ crypto_mutex_unlock

#define crypto_mutex_unlock   osal_mutex_unlock

◆ crypto_print

#define crypto_print   osal_printk

◆ crypto_service_postprocess

#define crypto_service_postprocess ( )

◆ crypto_service_preprocess

#define crypto_service_preprocess ( )

◆ crypto_udelay

#define crypto_udelay   osal_udelay

函数说明

◆ crypto_copy_from_user()

td_s32 crypto_copy_from_user ( td_void to,
unsigned long  to_len,
const td_void from,
unsigned long  from_len 
)

◆ crypto_copy_to_user()

td_s32 crypto_copy_to_user ( td_void to,
unsigned long  to_len,
const td_void from,
unsigned long  from_len 
)

◆ crypto_data_buf_check()

td_bool crypto_data_buf_check ( const crypto_buf_attr buf_attr,
td_u32  length 
)

◆ crypto_dump_data()

void crypto_dump_data ( const char *  name,
const td_u8 data,
td_u32  data_len 
)

◆ crypto_dump_phys_addr()

void crypto_dump_phys_addr ( const char *  name,
const td_phys_addr_t  phys_addr,
td_u32  data_len 
)