Home
last modified time | relevance | path

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

12345678910>>...125

/kernel/linux/linux-4.19/fs/xfs/libxfs/
Dxfs_da_format.c442 to->magic = be16_to_cpu(from->hdr.info.magic); in xfs_dir2_leaf_hdr_from_disk()
446 ASSERT(to->magic == XFS_DIR2_LEAF1_MAGIC || in xfs_dir2_leaf_hdr_from_disk()
447 to->magic == XFS_DIR2_LEAFN_MAGIC); in xfs_dir2_leaf_hdr_from_disk()
455 ASSERT(from->magic == XFS_DIR2_LEAF1_MAGIC || in xfs_dir2_leaf_hdr_to_disk()
456 from->magic == XFS_DIR2_LEAFN_MAGIC); in xfs_dir2_leaf_hdr_to_disk()
460 to->hdr.info.magic = cpu_to_be16(from->magic); in xfs_dir2_leaf_hdr_to_disk()
474 to->magic = be16_to_cpu(hdr3->info.hdr.magic); in xfs_dir3_leaf_hdr_from_disk()
478 ASSERT(to->magic == XFS_DIR3_LEAF1_MAGIC || in xfs_dir3_leaf_hdr_from_disk()
479 to->magic == XFS_DIR3_LEAFN_MAGIC); in xfs_dir3_leaf_hdr_from_disk()
489 ASSERT(from->magic == XFS_DIR3_LEAF1_MAGIC || in xfs_dir3_leaf_hdr_to_disk()
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/ath/carl9170/
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()
/kernel/linux/linux-5.10/kernel/bpf/preload/iterators/
Diterators.c42 int err, magic; in main() local
53 read(from_kernel, &magic, sizeof(magic)); in main()
54 if (magic != BPF_PRELOAD_START) { in main()
55 printf("bad start magic %d\n", magic); in main()
85 read(from_kernel, &magic, sizeof(magic)); in main()
86 if (magic != BPF_PRELOAD_END) { in main()
87 printf("bad final magic %d\n", magic); in main()
/kernel/linux/linux-5.10/kernel/locking/
Dspinlock_debug.c27 lock->magic = SPINLOCK_MAGIC; in __raw_spin_lock_init()
45 lock->magic = RWLOCK_MAGIC; in __rwlock_init()
61 printk(KERN_EMERG " lock: %pS, .magic: %08x, .owner: %s/%d, " in spin_dump()
63 lock, READ_ONCE(lock->magic), in spin_dump()
83 SPIN_BUG_ON(READ_ONCE(lock->magic) != SPINLOCK_MAGIC, lock, "bad magic"); in debug_spin_lock_before()
97 SPIN_BUG_ON(lock->magic != SPINLOCK_MAGIC, lock, "bad magic"); in debug_spin_unlock()
157 RWLOCK_BUG_ON(lock->magic != RWLOCK_MAGIC, lock, "bad magic"); in do_raw_read_lock()
176 RWLOCK_BUG_ON(lock->magic != RWLOCK_MAGIC, lock, "bad magic"); in do_raw_read_unlock()
182 RWLOCK_BUG_ON(lock->magic != RWLOCK_MAGIC, lock, "bad magic"); in debug_write_lock_before()
196 RWLOCK_BUG_ON(lock->magic != RWLOCK_MAGIC, lock, "bad magic"); in debug_write_unlock()
/kernel/linux/linux-4.19/kernel/locking/
Dspinlock_debug.c27 lock->magic = SPINLOCK_MAGIC; in __raw_spin_lock_init()
45 lock->magic = RWLOCK_MAGIC; in __rwlock_init()
61 printk(KERN_EMERG " lock: %pS, .magic: %08x, .owner: %s/%d, " in spin_dump()
63 lock, READ_ONCE(lock->magic), in spin_dump()
83 SPIN_BUG_ON(READ_ONCE(lock->magic) != SPINLOCK_MAGIC, lock, "bad magic"); in debug_spin_lock_before()
97 SPIN_BUG_ON(lock->magic != SPINLOCK_MAGIC, lock, "bad magic"); in debug_spin_unlock()
153 RWLOCK_BUG_ON(lock->magic != RWLOCK_MAGIC, lock, "bad magic"); in do_raw_read_lock()
172 RWLOCK_BUG_ON(lock->magic != RWLOCK_MAGIC, lock, "bad magic"); in do_raw_read_unlock()
178 RWLOCK_BUG_ON(lock->magic != RWLOCK_MAGIC, lock, "bad magic"); in debug_write_lock_before()
192 RWLOCK_BUG_ON(lock->magic != RWLOCK_MAGIC, lock, "bad magic"); in debug_write_unlock()
/kernel/linux/linux-4.19/drivers/net/wireless/ath/carl9170/
Dfwdesc.h114 u8 magic[CARL9170FW_MAGIC_SIZE]; member
227 .magic = _magic, \
234 u8 magic[CARL9170FW_MAGIC_SIZE], in carl9170fw_fill_desc()
237 head->magic[0] = magic[0]; in carl9170fw_fill_desc()
238 head->magic[1] = magic[1]; in carl9170fw_fill_desc()
239 head->magic[2] = magic[2]; in carl9170fw_fill_desc()
240 head->magic[3] = magic[3]; in carl9170fw_fill_desc()
249 memcmp(desc->magic, LAST_MAGIC, CARL9170FW_MAGIC_SIZE) && \
266 if (descid[0] == head->magic[0] && descid[1] == head->magic[1] && in carl9170fw_desc_cmp()
267 descid[2] == head->magic[2] && descid[3] == head->magic[3] && in carl9170fw_desc_cmp()
/kernel/linux/linux-5.10/kernel/bpf/preload/
Dbpf_preload_kern.c25 int magic = BPF_PRELOAD_START; in preload() local
34 /* send the start magic to let UMD proceed with loading BPF progs */ in preload()
36 &magic, sizeof(magic), &pos); in preload()
37 if (n != sizeof(magic)) in preload()
53 int magic = BPF_PRELOAD_END; in finish() local
58 /* send the last magic to UMD. It will do a normal exit. */ in finish()
60 &magic, sizeof(magic), &pos); in finish()
61 if (n != sizeof(magic)) in finish()
/kernel/linux/linux-4.19/fs/
Dbinfmt_misc.c6 * binfmt_misc detects binaries via a magic or filename extension and invokes
16 #include <linux/magic.h>
44 enum {Enabled, Magic}; enumerator
53 int offset; /* offset of magic */
54 int size; /* size of magic/mask */
55 char *magic; /* magic or filename extension */ member
74 * - magic: 128 bytes (512 in escaped form)
104 if (!test_bit(Magic, &e->flags)) { in check_file()
105 if (p && !strcmp(e->magic, p + 1)) in check_file()
110 /* Do matching based on magic & mask. */ in check_file()
[all …]
/kernel/linux/linux-5.10/fs/
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
76 * - magic: 128 bytes (512 in escaped form)
106 if (!test_bit(Magic, &e->flags)) { in check_file()
107 if (p && !strcmp(e->magic, p + 1)) in check_file()
112 /* Do matching based on magic & mask. */ in check_file()
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/arm64/signal/testcases/
Dtestcases.c5 struct _aarch64_ctx *get_header(struct _aarch64_ctx *head, uint32_t magic, in get_header() argument
15 head->magic != magic && head->magic) { in get_header()
19 if (head->magic == magic) { in get_header()
37 if (!term || term->magic || term->size) { in validate_extra_context()
71 switch (head->magic) { in validate_reserved()
109 * This is a BAD magic header defined in validate_reserved()
114 *err = "BAD MAGIC !"; in validate_reserved()
118 * A still unknown Magic: potentially freshly added in validate_reserved()
123 "SKIP Unknown MAGIC: 0x%X - Is KSFT arm64/signal up to date ?\n", in validate_reserved()
124 head->magic); in validate_reserved()
/kernel/linux/linux-5.10/lib/
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()
/kernel/linux/linux-5.10/drivers/power/reset/
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()
/kernel/linux/linux-4.19/Documentation/process/
Dmagic-number.rst1 Linux magic numbers
4 This file is a registry of magic numbers which are in use. When you
5 add a magic number to a structure, you should also add it to this
6 file, since it is best if the magic numbers used by various structures
9 It is a **very** good idea to protect kernel data structures with magic
17 The way to use magic numbers is to declare them at the beginning of
21 int magic;
36 The magic table is current to Linux 2.1.55.
51 Updated the magic table to Linux 2.5.45. Right over the feature freeze,
52 but it is possible that some new magic numbers will sneak into the
[all …]
/kernel/linux/linux-5.10/Documentation/process/
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 …]
/kernel/linux/linux-5.10/drivers/gpu/drm/vmwgfx/
Dvmwgfx_msg.h49 * @magic: [IN] hypervisor magic value
58 flags, magic, \ argument
68 "a"(magic), \
90 * @magic: [IN] hypervisor magic value
102 flags, magic, bp, \ argument
115 "a"(magic), \
127 flags, magic, bp, \ argument
140 "a"(magic), \
161 flags, magic, bp, \ argument
176 "a"(magic), \
[all …]
/kernel/linux/linux-4.19/drivers/gpu/drm/vmwgfx/
Dvmwgfx_msg.h48 * @magic: [IN] hypervisor magic value
57 port_num, magic, \ argument
67 "a"(magic), \
89 * @magic: [IN] hypervisor magic value
101 port_num, magic, bp, \ argument
114 "a"(magic), \
126 port_num, magic, bp, \ argument
139 "a"(magic), \
160 port_num, magic, bp, \ argument
175 "a"(magic), \
[all …]
/kernel/linux/linux-4.19/Documentation/virtual/kvm/
Dppc-pv.txt63 The magic page
70 With this hypercall issued the guest always gets the magic page mapped at the
75 instruction reads the first field of the magic page:
80 additional registers to the magic page. If you add fields to the magic page,
84 The magic page layout is described by struct kvm_vcpu_arch_shared
87 Magic page features
90 When mapping the magic page using the KVM hypercall KVM_HC_PPC_MAP_MAGIC_PAGE,
92 a bitmap of available features inside the magic page.
94 The following enhancements to the magic page are currently available:
96 KVM_MAGIC_FEAT_SR Maps SR registers r/w in the magic page
[all …]
/kernel/linux/linux-4.19/drivers/power/reset/
Dreboot-mode.c22 u32 magic; member
30 int magic = 0; in get_reboot_mode_magic() local
38 magic = info->magic; in get_reboot_mode_magic()
43 return magic; in get_reboot_mode_magic()
50 unsigned int magic; in reboot_mode_notify() local
53 magic = get_reboot_mode_magic(reboot, cmd); in reboot_mode_notify()
54 if (magic) in reboot_mode_notify()
55 reboot->write(reboot, magic); in reboot_mode_notify()
86 if (of_property_read_u32(np, prop->name, &info->magic)) { in reboot_mode_register()
87 dev_err(reboot->dev, "reboot mode %s without magic number\n", in reboot_mode_register()
/kernel/linux/linux-5.10/fs/xfs/libxfs/
Dxfs_da_btree.c137 to->magic = be16_to_cpu(from3->hdr.info.hdr.magic); in xfs_da3_node_hdr_from_disk()
141 ASSERT(to->magic == XFS_DA3_NODE_MAGIC); in xfs_da3_node_hdr_from_disk()
145 to->magic = be16_to_cpu(from->hdr.info.magic); in xfs_da3_node_hdr_from_disk()
149 ASSERT(to->magic == XFS_DA_NODE_MAGIC); in xfs_da3_node_hdr_from_disk()
162 ASSERT(from->magic == XFS_DA3_NODE_MAGIC); in xfs_da3_node_hdr_to_disk()
165 to3->hdr.info.hdr.magic = cpu_to_be16(from->magic); in xfs_da3_node_hdr_to_disk()
169 ASSERT(from->magic == XFS_DA_NODE_MAGIC); in xfs_da3_node_hdr_to_disk()
172 to->hdr.info.magic = cpu_to_be16(from->magic); in xfs_da3_node_hdr_to_disk()
191 if (!xfs_verify_magic16(bp, hdr->magic)) in xfs_da3_blkinfo_verify()
278 switch (be16_to_cpu(info->magic)) { in xfs_da3_node_read_verify()
[all …]
/kernel/linux/linux-5.10/arch/mips/include/uapi/asm/
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
/kernel/linux/linux-4.19/arch/mips/include/uapi/asm/
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
/kernel/linux/linux-5.10/arch/arm/include/asm/
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
51 unsigned long magic; member
63 unsigned long magic; member
74 unsigned long magic; member
81 * 8 byte for magic and size, 264 byte for ufp, 12 bytes for ufp_exc,
104 /* Something that isn't a valid magic number for any coprocessor. */
/kernel/linux/linux-4.19/arch/arm/include/asm/
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
51 unsigned long magic; member
63 unsigned long magic; member
74 unsigned long magic; member
81 * 8 byte for magic and size, 264 byte for ufp, 12 bytes for ufp_exc,
104 /* Something that isn't a valid magic number for any coprocessor. */
/kernel/linux/linux-4.19/arch/mips/dec/prom/
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()
/kernel/linux/linux-5.10/arch/mips/dec/prom/
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()

12345678910>>...125