Home
last modified time | relevance | path

Searched full:magic (Results 1 – 25 of 2320) sorted by relevance

12345678910>>...93

/openbmc/qemu/tests/qemu-iotests/
H A D031.out8 magic 0x514649fb
28 magic 0x12345678 (<unknown>)
36 magic 0x514649fb
56 magic 0x12345678 (<unknown>)
64 magic 0x514649fb
84 magic 0xe2792aca (Backing format)
89 magic 0x12345678 (<unknown>)
99 magic 0x514649fb
119 magic 0x6803f857 (Feature table)
124 magic 0x12345678 (<unknown>)
[all …]
H A Dqcow2.py61 def cmd_add_header_ext(fd, magic, data): argument
63 magic = int(magic, 0)
65 print("'%s' is not a valid magic number" % magic)
69 h.extensions.append(QcowHeaderExtension.create(magic,
74 def cmd_add_header_ext_stdio(fd, magic): argument
76 cmd_add_header_ext(fd, magic, data)
79 def cmd_del_header_ext(fd, magic): argument
81 magic = int(magic, 0)
83 print("'%s' is not a valid magic number" % magic)
90 if ex.magic == magic:
/openbmc/linux/tools/perf/util/
H A Dcs-etm-base.c19 [CS_ETM_MAGIC] = " Magic number %llx\n",
29 [CS_ETM_MAGIC] = " Magic number %llx\n",
43 [CS_ETM_MAGIC] = " Magic number %llx\n",
60 " Magic number Unknown %"PRIx64"\n";
65 u64 magic; in cs_etm__print_cpu_metadata_v0() local
67 /* check magic value */ in cs_etm__print_cpu_metadata_v0()
68 magic = val[i + CS_ETM_MAGIC]; in cs_etm__print_cpu_metadata_v0()
69 if ((magic != __perf_cs_etmv3_magic) && in cs_etm__print_cpu_metadata_v0()
70 (magic != __perf_cs_etmv4_magic)) { in cs_etm__print_cpu_metadata_v0()
71 /* failure - note bad magic value */ in cs_etm__print_cpu_metadata_v0()
[all …]
/openbmc/linux/tools/testing/selftests/arm64/signal/testcases/
H A Dtestcases.c9 struct _aarch64_ctx *get_header(struct _aarch64_ctx *head, uint32_t magic, in get_header() argument
19 head->magic != magic && head->magic) { in get_header()
23 if (head->magic == magic) { in get_header()
42 if (!term || term->magic || term->size) { in validate_extra_context()
145 char magic[4]; in validate_reserved() local
158 switch (head->magic) { in validate_reserved()
223 * This is a BAD magic header defined in validate_reserved()
228 *err = "BAD MAGIC !"; in validate_reserved()
232 * A still unknown Magic: potentially freshly added in validate_reserved()
234 * tests. Magic numbers are supposed to be allocated in validate_reserved()
[all …]
/openbmc/qemu/tests/tcg/s390x/
H A Dex-branch.c10 void (*func)(long *link, long *magic);
46 static void test_ ## insn(long *link, long *magic) \
53 "0: lgfi %[magic],0x12345678\n" \
55 , [magic] "+r" (*magic) \
59 static void test_ex_ ## insn(long *link, long *magic) \
71 "1: lgfi %[magic],0x12345678\n" \
74 , [magic] "+r" (*magic) \
78 static void test_exrl_ ## insn(long *link, long *magic) \
87 "1: lgfi %[magic],0x12345678\n" \
89 , [magic] "+r" (*magic) \
[all …]
/openbmc/linux/drivers/net/wireless/ath/carl9170/
H A Dfwdesc.h102 u8 magic[CARL9170FW_MAGIC_SIZE]; member
215 .magic = _magic, \
222 u8 magic[CARL9170FW_MAGIC_SIZE], in carl9170fw_fill_desc()
225 head->magic[0] = magic[0]; in carl9170fw_fill_desc()
226 head->magic[1] = magic[1]; in carl9170fw_fill_desc()
227 head->magic[2] = magic[2]; in carl9170fw_fill_desc()
228 head->magic[3] = magic[3]; in carl9170fw_fill_desc()
237 memcmp(desc->magic, LAST_MAGIC, CARL9170FW_MAGIC_SIZE) && \
254 if (descid[0] == head->magic[0] && descid[1] == head->magic[1] && in carl9170fw_desc_cmp()
255 descid[2] == head->magic[2] && descid[3] == head->magic[3] && in carl9170fw_desc_cmp()
/openbmc/bios-bmc-smm-error-logger/
H A Dmeson.options15 # Magic Number Array Constants
16 option('magic-number-byte1', type: 'integer', value: 1, description: 'Magic Number array[0] for val…
17 option('magic-number-byte2', type: 'integer', value: 2, description: 'Magic Number array[1] for val…
18 option('magic-number-byte3', type: 'integer', value: 3, description: 'Magic Number array[2] for val…
19 option('magic-number-byte4', type: 'integer', value: 4, description: 'Magic Number array[3] for val…
/openbmc/linux/kernel/locking/
H A Dspinlock_debug.c27 lock->magic = SPINLOCK_MAGIC; in __raw_spin_lock_init()
46 lock->magic = RWLOCK_MAGIC; in __rwlock_init()
63 printk(KERN_EMERG " lock: %pS, .magic: %08x, .owner: %s/%d, " in spin_dump()
65 lock, READ_ONCE(lock->magic), in spin_dump()
85 SPIN_BUG_ON(READ_ONCE(lock->magic) != SPINLOCK_MAGIC, lock, "bad magic"); in debug_spin_lock_before()
99 SPIN_BUG_ON(lock->magic != SPINLOCK_MAGIC, lock, "bad magic"); in debug_spin_unlock()
160 RWLOCK_BUG_ON(lock->magic != RWLOCK_MAGIC, lock, "bad magic"); in do_raw_read_lock()
179 RWLOCK_BUG_ON(lock->magic != RWLOCK_MAGIC, lock, "bad magic"); in do_raw_read_unlock()
185 RWLOCK_BUG_ON(lock->magic != RWLOCK_MAGIC, lock, "bad magic"); in debug_write_lock_before()
199 RWLOCK_BUG_ON(lock->magic != RWLOCK_MAGIC, lock, "bad magic"); in debug_write_unlock()
/openbmc/linux/Documentation/process/
H A Dmagic-number.rst3 Linux magic numbers
6 This file is a registry of magic numbers which are in use. When you
7 add a magic number to a structure, you should also add it to this
8 file, since it is best if the magic numbers used by various structures
11 It is a **very** good idea to protect kernel data structures with magic
19 The way to use magic numbers is to declare them at the beginning of
23 int magic;
38 The magic table is current to Linux 2.1.55.
53 Updated the magic table to Linux 2.5.45. Right over the feature freeze,
54 but it is possible that some new magic numbers will sneak into the
[all …]
/openbmc/openbmc/poky/meta/recipes-devtools/createrepo-c/
H A Dcreaterepo-c_1.2.0.bb29 MAGIC=${STAGING_DIR_NATIVE}${datadir_native}/misc/magic.mgc
31 MAGIC=${STAGING_DIR_NATIVE}${datadir_native}/misc/magic.mgc
37 MAGIC=${datadir}/misc/magic.mgc
39 MAGIC=${datadir}/misc/magic.mgc
/openbmc/linux/lib/
H A Dtest_memcat_p.c13 unsigned int magic; member
16 #define MAGIC 0xf00ff00f macro
50 in0[i]->magic = MAGIC; in test_memcat_p_init()
51 in1[i]->magic = MAGIC; in test_memcat_p_init()
64 if ((*p)->magic != MAGIC) { in test_memcat_p_init()
65 pr_err("test failed: wrong magic at %d: %u\n", i, in test_memcat_p_init()
66 (*p)->magic); in test_memcat_p_init()
/openbmc/linux/fs/
H A Dbinfmt_misc.c7 * binfmt_misc detects binaries via a magic or filename extension and invokes
17 #include <linux/magic.h>
46 enum {Enabled, Magic}; enumerator
55 int offset; /* offset of magic */
56 int size; /* size of magic/mask */
57 char *magic; /* magic or filename extension */ member
75 * - magic: 128 bytes (512 in escaped form)
109 if (!test_bit(Magic, &e->flags)) { in search_binfmt_handler()
110 if (p && !strcmp(e->magic, p + 1)) in search_binfmt_handler()
115 /* Do matching based on magic & mask. */ in search_binfmt_handler()
[all …]
/openbmc/linux/drivers/power/reset/
H A Dreboot-mode.c18 u32 magic; member
26 int magic = 0; in get_reboot_mode_magic() local
34 magic = info->magic; in get_reboot_mode_magic()
39 return magic; in get_reboot_mode_magic()
46 unsigned int magic; in reboot_mode_notify() local
49 magic = get_reboot_mode_magic(reboot, cmd); in reboot_mode_notify()
50 if (magic) in reboot_mode_notify()
51 reboot->write(reboot, magic); in reboot_mode_notify()
82 if (of_property_read_u32(np, prop->name, &info->magic)) { in reboot_mode_register()
83 dev_err(reboot->dev, "reboot mode %s without magic number\n", in reboot_mode_register()
/openbmc/linux/fs/xfs/libxfs/
H A Dxfs_da_btree.c149 to->magic = be16_to_cpu(from3->hdr.info.hdr.magic); in xfs_da3_node_hdr_from_disk()
153 ASSERT(to->magic == XFS_DA3_NODE_MAGIC); in xfs_da3_node_hdr_from_disk()
157 to->magic = be16_to_cpu(from->hdr.info.magic); in xfs_da3_node_hdr_from_disk()
161 ASSERT(to->magic == XFS_DA_NODE_MAGIC); in xfs_da3_node_hdr_from_disk()
174 ASSERT(from->magic == XFS_DA3_NODE_MAGIC); in xfs_da3_node_hdr_to_disk()
177 to3->hdr.info.hdr.magic = cpu_to_be16(from->magic); in xfs_da3_node_hdr_to_disk()
181 ASSERT(from->magic == XFS_DA_NODE_MAGIC); in xfs_da3_node_hdr_to_disk()
184 to->hdr.info.magic = cpu_to_be16(from->magic); in xfs_da3_node_hdr_to_disk()
203 if (!xfs_verify_magic16(bp, hdr->magic)) in xfs_da3_blkinfo_verify()
290 switch (be16_to_cpu(info->magic)) { in xfs_da3_node_read_verify()
[all …]
H A Dxfs_dir2_data.c129 switch (hdr->magic) { in __xfs_dir3_data_check()
252 if (hdr->magic == cpu_to_be32(XFS_DIR2_BLOCK_MAGIC) || in __xfs_dir3_data_check()
253 hdr->magic == cpu_to_be32(XFS_DIR3_BLOCK_MAGIC)) { in __xfs_dir3_data_check()
275 if (hdr->magic == cpu_to_be32(XFS_DIR2_BLOCK_MAGIC) || in __xfs_dir3_data_check()
276 hdr->magic == cpu_to_be32(XFS_DIR3_BLOCK_MAGIC)) { in __xfs_dir3_data_check()
318 if (!xfs_verify_magic(bp, hdr3->magic)) in xfs_dir3_data_verify()
343 switch (hdr->magic) { in xfs_dir3_data_reada_verify()
403 .magic = { cpu_to_be32(XFS_DIR2_DATA_MAGIC),
412 .magic = { cpu_to_be32(XFS_DIR2_DATA_MAGIC),
582 ASSERT(hdr->magic == cpu_to_be32(XFS_DIR2_DATA_MAGIC) || in xfs_dir2_data_freeinsert()
[all …]
/openbmc/linux/arch/mips/include/uapi/asm/
H A Ducontext.h7 * @magic: magic value identifying the type of extended context
14 * indicated by the magic field. Userland may check each extended context
15 * structure against magic values that it recognises. The size field allows any
17 * of the extended context data is indicated by the magic value
21 unsigned int magic; member
27 * @ext: the extended context header, with magic == MSA_EXTCONTEXT_MAGIC
/openbmc/linux/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_msg_x86.h52 * @magic: [IN] hypervisor magic value
61 flags, magic, \ argument
71 "a"(magic), \
93 * @magic: [IN] hypervisor magic value
105 flags, magic, bp, \ argument
122 "a"(magic), \
134 flags, magic, bp, \ argument
151 "a"(magic), \
172 flags, magic, bp, \ argument
187 "a"(magic), \
[all …]
H A Dvmwgfx_msg_arm64.h50 unsigned long flags, unsigned long magic, in vmw_port() argument
55 register u64 x0 asm("x0") = magic; in vmw_port()
82 unsigned long flags, unsigned long magic, in vmw_port_hb() argument
88 register u64 x0 asm("x0") = magic; in vmw_port_hb()
113 #define VMW_PORT(cmd, in_ebx, in_si, in_di, flags, magic, eax, ebx, ecx, edx, \ argument
115 vmw_port(cmd, in_ebx, in_si, in_di, flags, magic, &eax, &ebx, &ecx, \
118 #define VMW_PORT_HB_OUT(cmd, in_ecx, in_si, in_di, flags, magic, bp, eax, ebx, \ argument
120 vmw_port_hb(cmd, in_ecx, in_si, in_di, flags, magic, bp, \
123 #define VMW_PORT_HB_IN(cmd, in_ecx, in_si, in_di, flags, magic, bp, eax, ebx, \ argument
125 vmw_port_hb(cmd, in_ecx, in_si, in_di, flags, magic, bp, \
/openbmc/linux/arch/mips/dec/prom/
H A Dinit.c45 void __init which_prom(s32 magic, s32 *prom_vec) in which_prom() argument
48 * No sign of the REX PROM's magic number means we assume a non-REX in which_prom()
51 if (prom_is_rex(magic)) { in which_prom()
96 u32 magic = fw_arg2; in prom_init() local
103 which_prom(magic, prom_vec); in prom_init()
105 if (prom_is_rex(magic)) in prom_init()
134 prom_meminit(magic); in prom_init()
135 prom_identify_arch(magic); in prom_init()
136 prom_init_cmdline(argc, argv, magic); in prom_init()
/openbmc/linux/drivers/misc/
H A Dxilinx_tmr_inject.c35 * @magic: Magic hardware configuration value
39 u32 magic; member
89 cr_val = xtmr_inject->magic | in xtmr_inject_init()
124 err = of_property_read_u32(pdev->dev.of_node, "xlnx,magic", in xtmr_inject_probe()
125 &xtmr_inject->magic); in xtmr_inject_probe()
127 dev_err(&pdev->dev, "unable to read xlnx,magic property"); in xtmr_inject_probe()
131 if (xtmr_inject->magic > XTMR_INJECT_MAGIC_MAX_VAL) { in xtmr_inject_probe()
132 dev_err(&pdev->dev, "invalid xlnx,magic property value"); in xtmr_inject_probe()
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/pmu/
H A Dgk104.c50 magic(struct nvkm_device *device, u32 ctrl) in magic() function
87 magic(device, 0x04000000); in gk104_pmu_pgob()
88 magic(device, 0x06000000); in gk104_pmu_pgob()
89 magic(device, 0x0c000000); in gk104_pmu_pgob()
90 magic(device, 0x0e000000); in gk104_pmu_pgob()
93 magic(device, 0x02000000); in gk104_pmu_pgob()
94 magic(device, 0x04000000); in gk104_pmu_pgob()
95 magic(device, 0x0a000000); in gk104_pmu_pgob()
98 magic(device, 0x02000000); in gk104_pmu_pgob()
/openbmc/linux/arch/arm/include/asm/
H A Ducontext.h12 * coprocessor's saved state should start with a documented 32-bit magic
34 * Coprocessor save state. The magic values and specific
41 * Dummy padding block: if this magic is encountered, the block should
52 unsigned long magic; member
63 unsigned long magic; member
70 * 8 byte for magic and size, 264 byte for ufp, 12 bytes for ufp_exc,
90 /* Something that isn't a valid magic number for any coprocessor. */
/openbmc/u-boot/drivers/mtd/ubi/
H A Dubi-media.h31 /* Erase counter header magic number (ASCII "UBI#") */
33 /* Volume identifier header magic number (ASCII "UBI!") */
112 * @magic: erase counter header magic number (%UBI_EC_HDR_MAGIC)
145 __be32 magic; member
158 * @magic: volume identifier header magic number (%UBI_VID_HDR_MAGIC)
266 __be32 magic; member
399 * @magic: fastmap super block magic number (%UBI_FM_SB_MAGIC)
409 __be32 magic; member
422 * @magic: fastmap header magic number (%UBI_FM_HDR_MAGIC)
431 __be32 magic; member
[all …]
/openbmc/linux/drivers/mtd/ubi/
H A Dubi-media.h28 /* Erase counter header magic number (ASCII "UBI#") */
30 /* Volume identifier header magic number (ASCII "UBI!") */
115 * @magic: erase counter header magic number (%UBI_EC_HDR_MAGIC)
148 __be32 magic; member
161 * @magic: volume identifier header magic number (%UBI_VID_HDR_MAGIC)
269 __be32 magic; member
398 * @magic: fastmap super block magic number (%UBI_FM_SB_MAGIC)
408 __be32 magic; member
421 * @magic: fastmap header magic number (%UBI_FM_HDR_MAGIC)
430 __be32 magic; member
[all …]
/openbmc/linux/Documentation/virt/kvm/
H A Dppc-pv.rst70 The magic page
77 With this hypercall issued the guest always gets the magic page mapped at the
82 instruction reads the first field of the magic page::
87 additional registers to the magic page. If you add fields to the magic page,
91 The magic page layout is described by struct kvm_vcpu_arch_shared
94 Magic page features
97 When mapping the magic page using the KVM hypercall KVM_HC_PPC_MAP_MAGIC_PAGE,
99 a bitmap of available features inside the magic page.
101 The following enhancements to the magic page are currently available:
104 KVM_MAGIC_FEAT_SR Maps SR registers r/w in the magic page
[all …]

12345678910>>...93