Home
last modified time | relevance | path

Searched refs:val (Results 1 – 21 of 21) sorted by relevance

/DragonStub/inc/dragonstub/
H A Dminmax.h41 #define __clamp(val, lo, hi) \ argument
42 ((val) >= (hi) ? (hi) : ((val) <= (lo) ? (lo) : (val)))
44 #define __clamp_once(val, lo, hi, unique_val, unique_lo, unique_hi) \ argument
46 typeof(val) unique_val = (val); \
56 #define __careful_clamp(val, lo, hi) \ argument
60 __typecheck(val, lo) && \
61 __typecheck(val, hi) && \
63 __is_constexpr(val) && \
66 __clamp(val, lo, hi), \
67 __clamp_once(val, lo, hi, __UNIQUE_ID(__val), \
[all …]
H A Ddragonstub.h175 char *next_arg(char *args, char **param, char **val);
/DragonStub/apps/lib/libfdt/
H A Dfdt_addresses.c17 uint32_t val; in fdt_cells() local
27 val = fdt32_to_cpu(*c); in fdt_cells()
28 if (val > FDT_MAX_NCELLS) in fdt_cells()
31 return (int)val; in fdt_cells()
36 int val; in fdt_address_cells() local
38 val = fdt_cells(fdt, nodeoffset, "#address-cells"); in fdt_address_cells()
39 if (val == 0) in fdt_address_cells()
41 if (val == -FDT_ERR_NOTFOUND) in fdt_address_cells()
43 return val; in fdt_address_cells()
48 int val; in fdt_size_cells() local
[all …]
H A Dlibfdt.h261 static inline void fdt_set_##name(void *fdt, uint32_t val) \
264 fdth->name = cpu_to_fdt32(val); \
1259 uint32_t idx, const void *val,
1293 const void *val, int len);
1325 const char *name, uint32_t val) in fdt_setprop_inplace_u32() argument
1327 fdt32_t tmp = cpu_to_fdt32(val); in fdt_setprop_inplace_u32()
1360 const char *name, uint64_t val) in fdt_setprop_inplace_u64() argument
1362 fdt64_t tmp = cpu_to_fdt64(val); in fdt_setprop_inplace_u64()
1377 const char *name, uint32_t val) in fdt_setprop_inplace_cell() argument
1379 return fdt_setprop_inplace_u32(fdt, nodeoffset, name, val); in fdt_setprop_inplace_cell()
[all …]
H A Dfdt_strerror.c18 #define FDT_ERRTABENT(val) \ argument
19 [(val)] = { .str = #val, }
H A Dfdt_wip.c15 uint32_t idx, const void *val, in fdt_setprop_inplace_namelen_partial() argument
29 memcpy((char *)propval + idx, val, len); in fdt_setprop_inplace_namelen_partial()
34 const void *val, int len) in fdt_setprop_inplace() argument
48 val, len); in fdt_setprop_inplace()
H A Dfdt_overlay.c30 const fdt32_t *val; in overlay_get_target_phandle() local
33 val = fdt_getprop(fdto, fragment, "target", &len); in overlay_get_target_phandle()
34 if (!val) in overlay_get_target_phandle()
37 if ((len != sizeof(*val)) || (fdt32_to_cpu(*val) == (uint32_t)-1)) in overlay_get_target_phandle()
40 return fdt32_to_cpu(*val); in overlay_get_target_phandle()
104 const fdt32_t *val; in overlay_phandle_add_offset() local
108 val = fdt_getprop(fdt, node, name, &len); in overlay_phandle_add_offset()
109 if (!val) in overlay_phandle_add_offset()
112 if (len != sizeof(*val)) in overlay_phandle_add_offset()
115 adj_val = fdt32_to_cpu(*val); in overlay_phandle_add_offset()
H A Dfdt_rw.c277 const void *val, int len) in fdt_setprop() argument
287 memcpy(prop_data, val, len); in fdt_setprop()
292 const void *val, int len) in fdt_appendprop() argument
308 memcpy(prop->data + oldlen, val, len); in fdt_appendprop()
313 memcpy(prop->data, val, len); in fdt_appendprop()
H A Dfdt_ro.c659 const void *val; in fdt_node_offset_by_prop_value() local
672 val = fdt_getprop(fdt, offset, propname, &len); in fdt_node_offset_by_prop_value()
673 if (val && (len == proplen) in fdt_node_offset_by_prop_value()
674 && (memcmp(val, propval, len) == 0)) in fdt_node_offset_by_prop_value()
H A Dfdt_sw.c325 int fdt_property(void *fdt, const char *name, const void *val, int len) in fdt_property() argument
333 memcpy(ptr, val, len); in fdt_property()
/DragonStub/inc/dragonstub/linux/
H A Dbyteorder.h147 static inline void le16_add_cpu(__le16 *var, u16 val) in le16_add_cpu() argument
149 *var = cpu_to_le16(le16_to_cpu(*var) + val); in le16_add_cpu()
152 static inline void le32_add_cpu(__le32 *var, u32 val) in le32_add_cpu() argument
154 *var = cpu_to_le32(le32_to_cpu(*var) + val); in le32_add_cpu()
157 static inline void le64_add_cpu(__le64 *var, u64 val) in le64_add_cpu() argument
159 *var = cpu_to_le64(le64_to_cpu(*var) + val); in le64_add_cpu()
179 static inline void be16_add_cpu(__be16 *var, u16 val) in be16_add_cpu() argument
181 *var = cpu_to_be16(be16_to_cpu(*var) + val); in be16_add_cpu()
184 static inline void be32_add_cpu(__be32 *var, u32 val) in be32_add_cpu() argument
186 *var = cpu_to_be32(be32_to_cpu(*var) + val); in be32_add_cpu()
[all …]
H A Dswab.h52 static inline __attribute_const__ __u16 __fswab16(__u16 val) in __fswab16() argument
55 return __arch_swab16(val); in __fswab16()
57 return ___constant_swab16(val); in __fswab16()
61 static inline __attribute_const__ __u32 __fswab32(__u32 val) in __fswab32() argument
64 return __arch_swab32(val); in __fswab32()
66 return ___constant_swab32(val); in __fswab32()
70 static inline __attribute_const__ __u64 __fswab64(__u64 val) in __fswab64() argument
73 return __arch_swab64(val); in __fswab64()
75 __u32 h = val >> 32; in __fswab64()
76 __u32 l = val & ((1ULL << 32) - 1); in __fswab64()
[all …]
H A Dunaligned.h11 #define __put_unaligned_t(type, val, ptr) \ argument
16 __pptr->x = (val); \
H A Dpfn.h18 u64 val; member
H A Dposix_types.h80 int val[2]; member
/DragonStub/gnuefi/
H A Dreloc_ia64.S96 #define val r17 macro
141 (Psymtab) add val = d_val, ldbase
145 (Psymtab) setf.sig symtab = val
184 ld8 val = [target]
186 add val = val,ldbase
188 st8 [target] = val
214 ld8 val = [addr]
216 add val = val,ldbase
218 st8 [fptr] = val,16
/DragonStub/apps/
H A Dhelper.c276 char *param, *val; in efi_parse_options() local
278 str = next_arg(str, &param, &val); in efi_parse_options()
279 if (!val && !strcmp(param, "--")) in efi_parse_options()
295 else if (!strcmp(param, "efi") && val) { in efi_parse_options()
296 efi_nochunk = parse_option_str(val, "nochunk"); in efi_parse_options()
297 efi_novamap |= parse_option_str(val, "novamap"); in efi_parse_options()
304 if (parse_option_str(val, "disable_early_pci_dma")) in efi_parse_options()
306 if (parse_option_str(val, "no_disable_early_pci_dma")) in efi_parse_options()
308 if (parse_option_str(val, "debug")) { in efi_parse_options()
311 } else if (!strcmp(param, "video") && val && in efi_parse_options()
[all …]
/DragonStub/apps/lib/
H A Dcmdline.c195 char *next_arg(char *args, char **param, char **val) in next_arg() argument
219 *val = NULL; in next_arg()
222 *val = args + equals + 1; in next_arg()
225 if (**val == '"') { in next_arg()
226 (*val)++; in next_arg()
/DragonStub/inc/dragonstub/linux/arch/riscv/asm/
H A Dcsr.h456 #define csr_swap(csr, val) \ argument
458 unsigned long __v = (unsigned long)(val); \
474 #define csr_write(csr, val) \ argument
476 unsigned long __v = (unsigned long)(val); \
482 #define csr_read_set(csr, val) \ argument
484 unsigned long __v = (unsigned long)(val); \
491 #define csr_set(csr, val) \ argument
493 unsigned long __v = (unsigned long)(val); \
499 #define csr_read_clear(csr, val) \ argument
501 unsigned long __v = (unsigned long)(val); \
[all …]
/DragonStub/inc/
H A Delf.h571 #define ELF32_ST_BIND(val) (((unsigned char) (val)) >> 4) argument
572 #define ELF32_ST_TYPE(val) ((val) & 0xf) argument
576 #define ELF64_ST_BIND(val) ELF32_ST_BIND (val) argument
577 #define ELF64_ST_TYPE(val) ELF32_ST_TYPE (val) argument
667 #define ELF32_R_SYM(val) ((val) >> 8) argument
668 #define ELF32_R_TYPE(val) ((val) & 0xff) argument
/DragonStub/lib/
H A Ddpath.c739 UINT8 val ; in IsNotNullIPv4() local
740 val = Address-> Addr[ 0 ] | Address-> Addr[ 1 ] ; in IsNotNullIPv4()
741 val |= Address-> Addr[ 2 ] | Address-> Addr[ 3 ] ; in IsNotNullIPv4()
742 return val != 0 ; in IsNotNullIPv4()