Home
last modified time | relevance | path

Searched refs:xb_size (Results 1 – 2 of 2) sorted by relevance

/external/u-boot/fs/yaffs2/
Dyaffs_nameval.c32 static int nval_find(const char *xb, int xb_size, const YCHAR *name, in nval_find() argument
39 while (size > 0 && (size < xb_size) && (pos + size < xb_size)) { in nval_find()
47 if (pos < xb_size - sizeof(int)) in nval_find()
57 static int nval_used(const char *xb, int xb_size) in nval_used() argument
63 while (size > 0 && (size < xb_size) && (pos + size < xb_size)) { in nval_used()
65 if (pos < xb_size - sizeof(int)) in nval_used()
73 int nval_del(char *xb, int xb_size, const YCHAR *name) in nval_del() argument
75 int pos = nval_find(xb, xb_size, name, NULL); in nval_del()
78 if (pos < 0 || pos >= xb_size) in nval_del()
84 memcpy(xb + pos, xb + pos + size, xb_size - (pos + size)); in nval_del()
[all …]
Dyaffs_nameval.h21 int nval_del(char *xb, int xb_size, const YCHAR * name);
22 int nval_set(char *xb, int xb_size, const YCHAR * name, const char *buf,
24 int nval_get(const char *xb, int xb_size, const YCHAR * name, char *buf,
26 int nval_list(const char *xb, int xb_size, char *buf, int bsize);
27 int nval_hasvalues(const char *xb, int xb_size);