Home
last modified time | relevance | path

Searched refs:magic (Results 1 – 25 of 611) sorted by relevance

12345678910>>...25

/external/e2fsprogs/lib/ext2fs/
Dgen_bitmap.c31 errcode_t magic; member
42 (((bmap)->magic == EXT2_ET_MAGIC_GENERIC_BITMAP) || \
43 ((bmap)->magic == EXT2_ET_MAGIC_BLOCK_BITMAP) || \
44 ((bmap)->magic == EXT2_ET_MAGIC_INODE_BITMAP))
47 (((bmap)->magic == EXT2_ET_MAGIC_GENERIC_BITMAP64) || \
48 ((bmap)->magic == EXT2_ET_MAGIC_BLOCK_BITMAP64) || \
49 ((bmap)->magic == EXT2_ET_MAGIC_INODE_BITMAP64))
69 if (!bitmap || !((bitmap->magic == EXT2_ET_MAGIC_GENERIC_BITMAP) || in check_magic()
70 (bitmap->magic == EXT2_ET_MAGIC_INODE_BITMAP) || in check_magic()
71 (bitmap->magic == EXT2_ET_MAGIC_BLOCK_BITMAP))) in check_magic()
[all …]
Dext2_err.et.in15 "Wrong magic number for ext2_filsys structure"
18 "Wrong magic number for badblocks_list structure"
21 "Wrong magic number for badblocks_iterate structure"
24 "Wrong magic number for inode_scan structure"
27 "Wrong magic number for io_channel structure"
30 "Wrong magic number for unix io_channel structure"
33 "Wrong magic number for io_manager structure"
36 "Wrong magic number for block_bitmap structure"
39 "Wrong magic number for inode_bitmap structure"
42 "Wrong magic number for generic_bitmap structure"
[all …]
Dbmap64.h41 errcode_t magic; member
57 (((bmap)->magic == EXT2_ET_MAGIC_GENERIC_BITMAP) || \
58 ((bmap)->magic == EXT2_ET_MAGIC_BLOCK_BITMAP) || \
59 ((bmap)->magic == EXT2_ET_MAGIC_INODE_BITMAP))
62 (((bmap)->magic == EXT2_ET_MAGIC_GENERIC_BITMAP64) || \
63 ((bmap)->magic == EXT2_ET_MAGIC_BLOCK_BITMAP64) || \
64 ((bmap)->magic == EXT2_ET_MAGIC_INODE_BITMAP64))
Dfreefs.c24 if (!fs || (fs->magic != EXT2_ET_MAGIC_EXT2FS_FILSYS)) in ext2fs_free()
63 fs->magic = 0; in ext2fs_free()
88 if (bb->magic != EXT2_ET_MAGIC_BADBLOCKS_LIST) in ext2fs_u32_list_free()
108 if (!dblist || (dblist->magic != EXT2_ET_MAGIC_DBLIST)) in ext2fs_free_dblist()
116 dblist->magic = 0; in ext2fs_free_dblist()
/external/dexmaker/src/dx/java/com/android/dx/dex/
DDexFormat.java63 public static int magicToApi(byte[] magic) { in magicToApi() argument
64 if (magic.length != 8) { in magicToApi()
68 if ((magic[0] != 'd') || (magic[1] != 'e') || (magic[2] != 'x') || (magic[3] != '\n') || in magicToApi()
69 (magic[7] != '\0')) { in magicToApi()
73 String version = "" + ((char) magic[4]) + ((char) magic[5]) +((char) magic[6]); in magicToApi()
/external/mesa3d/src/gallium/auxiliary/util/
Du_debug_memory.c65 unsigned magic; member
70 unsigned magic; member
129 hdr->magic = DEBUG_MEMORY_MAGIC; in debug_malloc()
136 ftr->magic = DEBUG_MEMORY_MAGIC; in debug_malloc()
156 if(hdr->magic != DEBUG_MEMORY_MAGIC) { in debug_free()
165 if(ftr->magic != DEBUG_MEMORY_MAGIC) { in debug_free()
175 hdr->magic = 0; in debug_free()
176 ftr->magic = 0; in debug_free()
208 if(old_hdr->magic != DEBUG_MEMORY_MAGIC) { in debug_realloc()
217 if(old_ftr->magic != DEBUG_MEMORY_MAGIC) { in debug_realloc()
[all …]
Du_half.h54 union fi magic; in util_float_to_half() local
58 magic.ui = 0xf << 23; in util_float_to_half()
75 f32.f *= magic.f; in util_float_to_half()
95 union fi magic; in util_half_to_float() local
100 magic.ui = 0xef << 23; in util_half_to_float()
106 f32.f *= magic.f; in util_half_to_float()
/external/libdrm/
Dxf86drmSL.c57 unsigned long magic; /* SL_ENTRY_MAGIC */ member
65 unsigned long magic; /* SL_LIST_MAGIC */ member
81 entry->magic = SL_ENTRY_MAGIC; in SLCreateEntry()
107 list->magic = SL_LIST_MAGIC; in drmSLCreate()
123 if (list->magic != SL_LIST_MAGIC) return -1; /* Bad magic */ in drmSLDestroy()
126 if (entry->magic != SL_ENTRY_MAGIC) return -1; /* Bad magic */ in drmSLDestroy()
128 entry->magic = SL_FREED_MAGIC; in drmSLDestroy()
132 list->magic = SL_FREED_MAGIC; in drmSLDestroy()
143 if (list->magic != SL_LIST_MAGIC) return NULL; in SLLocate()
162 if (list->magic != SL_LIST_MAGIC) return -1; /* Bad magic */ in drmSLInsert()
[all …]
Dxf86drmHash.c114 table->magic = HASH_MAGIC; in drmHashCreate()
131 if (table->magic != HASH_MAGIC) return -1; /* Bad magic */ in drmHashDestroy()
180 if (!table || table->magic != HASH_MAGIC) return -1; /* Bad magic */ in drmHashLookup()
194 if (table->magic != HASH_MAGIC) return -1; /* Bad magic */ in drmHashInsert()
216 if (table->magic != HASH_MAGIC) return -1; /* Bad magic */ in drmHashDelete()
248 if (table->magic != HASH_MAGIC) return -1; /* Bad magic */ in drmHashFirst()
/external/google-breakpad/src/common/mac/
Dmacho_walker.cc135 uint32_t magic; in FindHeader() local
136 if (!ReadBytes(&magic, sizeof(magic), 0)) in FindHeader()
139 offset = sizeof(magic); in FindHeader()
143 if (magic == FAT_MAGIC || magic == FAT_CIGAM) { in FindHeader()
146 else if (magic != MH_MAGIC && magic != MH_CIGAM && magic != MH_MAGIC_64 && in FindHeader()
147 magic != MH_CIGAM_64) { in FindHeader()
158 if (magic == MH_CIGAM || magic == MH_CIGAM_64) in FindHeader()
209 bool swap = (header.magic == MH_CIGAM); in WalkHeaderAtOffset()
235 bool swap = (header.magic == MH_CIGAM_64); in WalkHeader64AtOffset()
/external/blktrace/
Dblktrace.h64 #define CHECK_MAGIC(t) (((t)->magic & 0xffffff00) == BLK_IO_TRACE_MAGIC)
92 fprintf(stderr, "bad trace magic %x\n", t->magic); in verify_trace()
95 if ((t->magic & 0xff) != SUPPORTED_VERSION) { in verify_trace()
97 t->magic & 0xff); in verify_trace()
109 t->magic = be32_to_cpu(t->magic); in trace_to_cpu()
125 static inline int check_data_endianness(u32 magic) in check_data_endianness() argument
127 if ((magic & 0xffffff00) == BLK_IO_TRACE_MAGIC) { in check_data_endianness()
132 magic = __bswap_32(magic); in check_data_endianness()
133 if ((magic & 0xffffff00) == BLK_IO_TRACE_MAGIC) { in check_data_endianness()
/external/boringssl/src/crypto/aes/asm/
Dvpaes-x86.pl58 my ($round, $base, $magic, $key, $const, $inp, $out)=
182 &mov ($magic,16);
209 &movdqa ("xmm1",&QWP(-0x40,$base,$magic));# .Lk_mc_forward[]
212 &movdqa ("xmm4",&QWP(0,$base,$magic)); # .Lk_mc_backward[]
220 &add ($magic,16); # next mc
223 &and ($magic,0x30); # ... mod 4
257 &movdqa ("xmm1",&QWP(0x40,$base,$magic));# .Lk_sr[]
274 &mov ($magic,$round);
277 &shl ($magic,4);
281 &xor ($magic,0x30);
[all …]
/external/tremolo/Tremolo/
Dmisc.h73 union magic { union
83 union magic { union
93 union magic magic; in MULT32() local
94 magic.whole = (ogg_int64_t)x * y; in MULT32()
95 return magic.halves.hi; in MULT32()
103 union magic magic; in MULT31_SHIFT15() local
104 magic.whole = (ogg_int64_t)x * y; in MULT31_SHIFT15()
105 return ((ogg_uint32_t)(magic.halves.lo)>>15) | ((magic.halves.hi)<<17); in MULT31_SHIFT15()
/external/fio/
Dmutex.c23 assert(mutex->magic == FIO_MUTEX_MAGIC); in __fio_mutex_remove()
40 mutex->magic = FIO_MUTEX_MAGIC; in __fio_mutex_init()
106 assert(mutex->magic == FIO_MUTEX_MAGIC); in fio_mutex_down_timeout()
140 assert(mutex->magic == FIO_MUTEX_MAGIC); in fio_mutex_down_trylock()
154 assert(mutex->magic == FIO_MUTEX_MAGIC); in fio_mutex_down()
172 assert(mutex->magic == FIO_MUTEX_MAGIC); in fio_mutex_up()
187 assert(lock->magic == FIO_RWLOCK_MAGIC); in fio_rwlock_write()
193 assert(lock->magic == FIO_RWLOCK_MAGIC); in fio_rwlock_read()
199 assert(lock->magic == FIO_RWLOCK_MAGIC); in fio_rwlock_unlock()
205 assert(lock->magic == FIO_RWLOCK_MAGIC); in fio_rwlock_remove()
[all …]
/external/opencv3/3rdparty/openexr/IlmImf/
DImfTestFile.cpp59 int magic, version; in isOpenExrFile() local
60 Xdr::read <StreamIO> (is, magic); in isOpenExrFile()
64 return magic == MAGIC; in isOpenExrFile()
101 int magic, version; in isOpenExrFile() local
102 Xdr::read <StreamIO> (is, magic); in isOpenExrFile()
108 return magic == MAGIC; in isOpenExrFile()
/external/libdrm/tests/
Dauth.c78 auth.magic = 0; /* Quiet valgrind */ in client()
83 ret = write(commfd[0], &auth.magic, sizeof(auth.magic)); in client()
98 auth.magic = 0xd0d0d0d0; in server()
106 ret = read(commfd[1], &auth.magic, sizeof(auth.magic)); in server()
/external/libpcap/
Dsf-pcap.c151 pcap_check_header(bpf_u_int32 magic, FILE *fp, u_int precision, char *errbuf, in pcap_check_header() argument
170 if (magic != TCPDUMP_MAGIC && magic != KUZNETZOV_TCPDUMP_MAGIC && in pcap_check_header()
171 magic != NSEC_TCPDUMP_MAGIC) { in pcap_check_header()
172 magic = SWAPLONG(magic); in pcap_check_header()
173 if (magic != TCPDUMP_MAGIC && magic != KUZNETZOV_TCPDUMP_MAGIC && in pcap_check_header()
174 magic != NSEC_TCPDUMP_MAGIC) in pcap_check_header()
183 hdr.magic = magic; in pcap_check_header()
184 amt_read = fread(((char *)&hdr) + sizeof hdr.magic, 1, in pcap_check_header()
185 sizeof(hdr) - sizeof(hdr.magic), fp); in pcap_check_header()
186 if (amt_read != sizeof(hdr) - sizeof(hdr.magic)) { in pcap_check_header()
[all …]
/external/skia/src/core/
DSkHalf.cpp33 static const FloatUIntUnion magic = { 15 << 23 }; in SkFloatToHalf() local
56 floatUnion.fFloat *= magic.fFloat; in SkFloatToHalf()
73 static const FloatUIntUnion magic = { 126 << 23 }; in SkHalfToFloat() local
79 o.fUInt = magic.fUInt + halfMantissa(h); in SkHalfToFloat()
80 o.fFloat -= magic.fFloat; in SkHalfToFloat()
/external/valgrind/helgrind/
Dhg_lock_n_thread.c49 return thr != NULL && thr->magic == Thread_MAGIC; in HG_()
68 || (lock->magic != LockN_MAGIC && lock->magic != LockP_MAGIC)) in is_sane_Lock_BASE()
104 && lock->magic == LockP_MAGIC in HG_()
111 && lock->magic == LockN_MAGIC in HG_()
/external/wpa_supplicant_8/src/utils/
Dwpabuf.c19 unsigned int magic; member
34 if (trace->magic != WPABUF_MAGIC) { in wpabuf_overflow()
36 trace->magic); in wpabuf_overflow()
61 if (trace->magic != WPABUF_MAGIC) { in wpabuf_resize()
63 trace->magic); in wpabuf_resize()
121 trace->magic = WPABUF_MAGIC; in wpabuf_alloc()
143 trace->magic = WPABUF_MAGIC; in wpabuf_alloc_ext_data()
189 if (trace->magic != WPABUF_MAGIC) { in wpabuf_free()
191 trace->magic); in wpabuf_free()
/external/jemalloc/test/unit/
Drb.c18 uint32_t magic; member
27 assert_u32_eq(a->magic, NODE_MAGIC, "Bad magic"); in node_cmp()
28 assert_u32_eq(b->magic, NODE_MAGIC, "Bad magic"); in node_cmp()
57 key.magic = NODE_MAGIC; in TEST_BEGIN()
61 key.magic = NODE_MAGIC; in TEST_BEGIN()
65 key.magic = NODE_MAGIC; in TEST_BEGIN()
97 assert_u32_eq(node->magic, NODE_MAGIC, "Bad magic"); in tree_recurse()
120 assert_u32_eq(node->magic, NODE_MAGIC, "Bad magic"); in tree_iterate_cb()
186 node->magic = 0; in node_remove()
261 nodes[k].magic = NODE_MAGIC; in TEST_BEGIN()
/external/kernel-headers/original/uapi/linux/
Djffs2.h110 jint16_t magic; member
118 jint16_t magic; member
142 jint16_t magic; /* A constant magic number. */ member
167 jint16_t magic; member
183 jint16_t magic; member
195 jint16_t magic; member
/external/e2fsprogs/e2fsck/
Dprof_err.et8 error_code PROF_MAGIC_NODE, "Bad magic value in profile_node"
19 error_code PROF_MAGIC_ITERATOR, "Bad magic value in profile iterator"
37 error_code PROF_MAGIC_PROFILE, "Bad magic value in profile_t"
38 error_code PROF_MAGIC_SECTION, "Bad magic value in profile_section_t"
49 error_code PROF_MAGIC_FILE, "Bad magic value in profile_file_t"
63 error_code PROF_MAGIC_FILE_DATA, "Bad magic value in profile_file_data_t"
/external/icu/icu4c/source/samples/ucnv/
Dflagcb.c145 if(q->magic != 0xC0FFEE) { in debugCB_print_log()
147 q,q->serial, q->magic); in debugCB_print_log()
150 q, q->serial, name, q->magic); in debugCB_print_log()
160 newCtx->magic = 0xC0FFEE; in debugCB_clone()
187 if(ctx->magic != 0xC0FFEE) { in debugCB_fromU()
188 …, "debugCB_fromU: Context %p:%d magic is 0x%x should be 0xC0FFEE.\n", ctx,ctx->serial, ctx->magic); in debugCB_fromU()
275 ctx->magic = 0xC0FFEE; in debugCB_openContext()
/external/valgrind/memcheck/tests/
Ddemangle.cpp15 class magic { class
25 magic<int> *c = new magic<int>; in main()

12345678910>>...25