Home
last modified time | relevance | path

Searched refs:n (Results 1 – 14 of 14) sorted by relevance

/DragonStub/lib/
H A Dinit.c181 void *memset(void *s, int c, __SIZE_TYPE__ n) in memset() argument
185 while (n--) in memset()
191 void *memcpy(void *dest, const void *src, __SIZE_TYPE__ n) in memcpy() argument
196 while (n--) in memcpy()
239 void *memchr(const void *src, int c, size_t n) in memchr() argument
244 for (; ((uintptr_t)s & __ALIGN) && n && *s != c; s++, n--); in memchr()
245 if (n && *s != c) { in memchr()
249 for (w = (const void *)s; n>=SS && !HASZERO(*w^k); w++, n-=SS); in memchr()
253 for (; n && *s != c; s++, n--); in memchr()
254 return n ? (void *)s : 0; in memchr()
[all …]
/DragonStub/inc/dragonstub/linux/
H A Ddiv64.h45 #define do_div(n, base) \ argument
49 __rem = ((uint64_t)(n)) % __base; \
50 (n) = ((uint64_t)(n)) / __base; \
H A Dconst.h35 #define __KERNEL_DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d)) argument
/DragonStub/inc/
H A Defi_pxe.h47 #define PXE_SWAP_UINT16(n) \ argument
48 ((((PXE_UINT16)(n) & 0x00FF) << 8) | \
49 (((PXE_UINT16)(n) & 0xFF00) >> 8))
51 #define PXE_SWAP_UINT32(n) \ argument
52 ((((PXE_UINT32)(n) & 0x000000FF) << 24) | \
53 (((PXE_UINT32)(n) & 0x0000FF00) << 8) | \
54 (((PXE_UINT32)(n) & 0x00FF0000) >> 8) | \
55 (((PXE_UINT32)(n) & 0xFF000000) >> 24))
58 #define PXE_SWAP_UINT64(n) \ argument
59 ((((PXE_UINT64)(n) & 0x00000000000000FF) << 56) | \
[all …]
H A Dlib.h94 void *memset(void *s, int c, __SIZE_TYPE__ n);
96 void *memcpy(void *dest, const void *src, __SIZE_TYPE__ n);
98 int memcmp(const void *vl, const void *vr, size_t n);
99 void *memchr(const void *src, int c, size_t n);
100 void *memrchr(const void *m, int c, size_t n);
/DragonStub/apps/lib/libfdt/
H A Dlibfdt_internal.h36 static inline const struct fdt_reserve_entry *fdt_mem_rsv_(const void *fdt, int n) in fdt_mem_rsv_() argument
42 return rsv_table + n; in fdt_mem_rsv_()
44 static inline struct fdt_reserve_entry *fdt_mem_rsv_w_(void *fdt, int n) in fdt_mem_rsv_w_() argument
46 return (void *)(uintptr_t)fdt_mem_rsv_(fdt, n); in fdt_mem_rsv_w_()
H A Dlibfdt_env.h31 #define EXTRACT_BYTE(x, n) ((unsigned long long)((uint8_t *)&x)[n]) argument
H A Dfdt_ro.c40 const char *s, *n; in fdt_get_string() local
83 n = memchr(s, '\0', len); in fdt_get_string()
84 if (!n) { in fdt_get_string()
91 *lenp = n - s; in fdt_get_string()
160 static const struct fdt_reserve_entry *fdt_mem_rsv(const void *fdt, int n) in fdt_mem_rsv() argument
162 unsigned int offset = n * sizeof(struct fdt_reserve_entry); in fdt_mem_rsv()
172 return fdt_mem_rsv_(fdt, n); in fdt_mem_rsv()
175 int fdt_get_mem_rsv(const void *fdt, int n, uint64_t *address, uint64_t *size) in fdt_get_mem_rsv() argument
180 re = fdt_mem_rsv(fdt, n); in fdt_get_mem_rsv()
H A Dfdt_rw.c172 int fdt_del_mem_rsv(void *fdt, int n) in fdt_del_mem_rsv() argument
174 struct fdt_reserve_entry *re = fdt_mem_rsv_w_(fdt, n); in fdt_del_mem_rsv()
178 if (n >= fdt_num_mem_rsv(fdt)) in fdt_del_mem_rsv()
H A Dlibfdt.h454 int fdt_get_mem_rsv(const void *fdt, int n, uint64_t *address, uint64_t *size);
1573 int fdt_del_mem_rsv(void *fdt, int n);
/DragonStub/apps/lib/
H A Dcmdline.c22 static int get_range(char **str, int *pint, int n) in get_range() argument
29 for (x = *pint; n && x < upper_range; x++, n--) in get_range()
117 int n = validate ? 0 : nints - i; in get_options() local
120 range_nums = get_range((char **)&str, pint, n); in get_options()
H A Dvsprintf.c177 static noinline_for_stack char *put_dec(char *buf, unsigned long long n) in put_dec() argument
179 if (n >= 100 * 1000 * 1000) in put_dec()
180 buf = put_dec_full8(buf, do_div(n, 100 * 1000 * 1000)); in put_dec()
182 if (n >= 100 * 1000 * 1000) in put_dec()
183 buf = put_dec_full8(buf, do_div(n, 100 * 1000 * 1000)); in put_dec()
185 return put_dec_trunc8(buf, n); in put_dec()
222 static char *put_dec(char *buf, unsigned long long n) in put_dec() argument
226 if (n < 100 * 1000 * 1000) in put_dec()
227 return put_dec_trunc8(buf, n); in put_dec()
229 d1 = ((uint32_t)n >> 16); /* implicit "& 0xffff" */ in put_dec()
[all …]
/DragonStub/tools/
H A Drun-qemu.sh84 n
/DragonStub/
H A DChangeLog77 Signed-off-by: Jonathan Boeing <jonathan.n.boeing@gmail.com>
1072 * Release 3.0n