diff options
author | Rahul Gupta <rahul.g.chimera@gmail.com> | 2018-06-26 11:19:13 +0530 |
---|---|---|
committer | Rahul Gupta <rahul.g.chimera@gmail.com> | 2018-06-26 11:19:13 +0530 |
commit | 82b5e45ebf316afd7daa97d9f9b7b75636fb4e64 (patch) | |
tree | fabed7d2c0cc187206b2f2e768a4afaafa046bd8 /src/framework/common/mem_mgr/include | |
parent | 24cbcfaa6fa1121dec1a029a1df114f065341156 (diff) |
Spell correction
Change-Id: Icc062e358398ecf0fc46b7a55ce1c37a71aee650
Signed-off-by: Rahul Gupta <rahul.g.chimera@gmail.com>
Diffstat (limited to 'src/framework/common/mem_mgr/include')
-rw-r--r-- | src/framework/common/mem_mgr/include/nsfw_mem_desc.h | 10 | ||||
-rw-r--r-- | src/framework/common/mem_mgr/include/nsfw_ring_data.h | 6 | ||||
-rw-r--r-- | src/framework/common/mem_mgr/include/nsfw_ring_fun.h | 2 |
3 files changed, 9 insertions, 9 deletions
diff --git a/src/framework/common/mem_mgr/include/nsfw_mem_desc.h b/src/framework/common/mem_mgr/include/nsfw_mem_desc.h index 1e959d9..9a14c8d 100644 --- a/src/framework/common/mem_mgr/include/nsfw_mem_desc.h +++ b/src/framework/common/mem_mgr/include/nsfw_mem_desc.h @@ -30,10 +30,10 @@ #define NSFW_NAME_LENCHECK_RET(name, desc) \ { \ i32 inamelen = strlen(name); \ - if (inamelen >= NSFW_MEM_APPNAME_LENTH) \ + if (inamelen >= NSFW_MEM_APPNAME_LENGTH) \ { \ NSCOMM_LOGERR("name length check fail] desc=%s, name len=%d, expected max=%d", \ - #desc, inamelen, NSFW_MEM_APPNAME_LENTH); \ + #desc, inamelen, NSFW_MEM_APPNAME_LENGTH); \ return NSFW_MEM_ERR; \ } \ } @@ -41,10 +41,10 @@ #define NSFW_NAME_LENCHECK_RET_NULL(name, desc) \ { \ i32 inamelen = strlen(name); \ - if (inamelen >= NSFW_MEM_APPNAME_LENTH) \ + if (inamelen >= NSFW_MEM_APPNAME_LENGTH) \ { \ NSCOMM_LOGERR("name length check fail] desc=%s, name len=%d, expected max=%d", \ - #desc, inamelen, NSFW_MEM_APPNAME_LENTH); \ + #desc, inamelen, NSFW_MEM_APPNAME_LENGTH); \ return NULL; \ } \ } @@ -123,7 +123,7 @@ typedef struct { i32 (*mem_ops_init) (nsfw_mem_para * para); void (*mem_ops_destroy) (void); - mzone_handle (*mem_ops_zone_creae) (nsfw_mem_zone * pinfo); + mzone_handle (*mem_ops_zone_create) (nsfw_mem_zone * pinfo); i32 (*mem_ops_zone_createv) (nsfw_mem_zone * pmeminfo, i32 inum, mzone_handle * paddr_array, i32 iarray_num); mzone_handle (*mem_ops_zone_lookup) (nsfw_mem_name * pname); diff --git a/src/framework/common/mem_mgr/include/nsfw_ring_data.h b/src/framework/common/mem_mgr/include/nsfw_ring_data.h index 99ec0ed..e6007ab 100644 --- a/src/framework/common/mem_mgr/include/nsfw_ring_data.h +++ b/src/framework/common/mem_mgr/include/nsfw_ring_data.h @@ -65,7 +65,7 @@ struct nsfw_mem_ring u8 ringflag; //scmp, scsp, mcsp,mcmp u16 reserv; //reserv data u32 size; //size of the Ring, must 2^n - u32 eltsize; //for sppool, it is the size of per buf, if is ring, eltsize is zero. + u32 eltsize; //for s-pool, it is the size of per buf, if is ring, eltsize is zero. u32 mask; //mask of the Ring, used mask mod Head/Tail to get real pos, must 2^n-1 void *Addrbase; /*Cause the Addr we support just 40b(1024G), we using a basAddr+offset to get the real addr; ring[x].data_s.val just store offset; * not used when no shared mode @@ -78,13 +78,13 @@ struct nsfw_mem_ring struct { - volatile u32 head; //Head of the Ring, used to indicat pos where to pull a val + volatile u32 head; //Head of the Ring, used to indicate pos where to pull a val volatile u32 tail; //for nshmem, shmem not used. } prod; struct { volatile u32 head; //for nshmem, shmem not used. - volatile u32 tail; //Tail of the Ring, used to indicat pos where to push a val + volatile u32 tail; //Tail of the Ring, used to indicate pos where to push a val } cons; u32 uireserv[4]; //reserved for update union RingData_U ring[0]; //Value of Ring diff --git a/src/framework/common/mem_mgr/include/nsfw_ring_fun.h b/src/framework/common/mem_mgr/include/nsfw_ring_fun.h index 57a7bf3..d74cc4b 100644 --- a/src/framework/common/mem_mgr/include/nsfw_ring_fun.h +++ b/src/framework/common/mem_mgr/include/nsfw_ring_fun.h @@ -71,7 +71,7 @@ nsfw_mem_ring_init (struct nsfw_mem_ring *ring, unsigned int size, /* another way to init Pool while no continuous space -1. init a empt rte_perf_ring +1. init a empty rte_perf_ring 2. add element to PerRing. */ static inline void |