Lines Matching refs:size
36 int size; in nval_find() local
38 memcpy(&size, xb, sizeof(int)); in nval_find()
39 while (size > 0 && (size < xb_size) && (pos + size < xb_size)) { in nval_find()
41 name, size)) { in nval_find()
43 *exist_size = size; in nval_find()
46 pos += size; in nval_find()
48 memcpy(&size, xb + pos, sizeof(int)); in nval_find()
50 size = 0; in nval_find()
60 int size; in nval_used() local
62 memcpy(&size, xb + pos, sizeof(int)); in nval_used()
63 while (size > 0 && (size < xb_size) && (pos + size < xb_size)) { in nval_used()
64 pos += size; in nval_used()
66 memcpy(&size, xb + pos, sizeof(int)); in nval_used()
68 size = 0; in nval_used()
76 int size; in nval_del() local
83 memcpy(&size, xb + pos, sizeof(int)); in nval_del()
84 memcpy(xb + pos, xb + pos + size, xb_size - (pos + size)); in nval_del()
85 memset(xb + (xb_size - size), 0, size); in nval_del()
133 int size; in nval_get() local
137 memcpy(&size, xb + pos, sizeof(int)); in nval_get()
139 size -= sizeof(int); in nval_get()
142 while (xb[pos] && size > 0 && pos < xb_size) { in nval_get()
144 size--; in nval_get()
148 size--; in nval_get()
154 return size; in nval_get()
156 if (size <= bsize) { in nval_get()
157 memcpy(buf, xb + pos, size); in nval_get()
158 return size; in nval_get()
170 int size; in nval_list() local
175 memcpy(&size, xb + pos, sizeof(int)); in nval_list()
176 while (size > sizeof(int) && in nval_list()
177 size <= xb_size && in nval_list()
178 (pos + size) < xb_size && in nval_list()
181 size -= sizeof(int); in nval_list()
182 name_len = yaffs_strnlen((YCHAR *) (xb + pos), size); in nval_list()
196 pos += size; in nval_list()
198 memcpy(&size, xb + pos, sizeof(int)); in nval_list()
200 size = 0; in nval_list()