/Linux-v6.1/drivers/net/wireless/ath/carl9170/ |
D | fwdesc.h | 102 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()
|
/Linux-v6.1/kernel/locking/ |
D | spinlock_debug.c | 27 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()
|
/Linux-v6.1/fs/ |
D | binfmt_misc.c | 7 * 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 …]
|
/Linux-v6.1/Documentation/process/ |
D | magic-number.rst | 3 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 …]
|
/Linux-v6.1/lib/ |
D | test_memcat_p.c | 13 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()
|
/Linux-v6.1/drivers/power/reset/ |
D | reboot-mode.c | 18 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()
|
/Linux-v6.1/fs/xfs/libxfs/ |
D | xfs_da_btree.c | 149 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 …]
|
D | xfs_dir2_data.c | 129 switch (hdr->magic) { in __xfs_dir3_data_check() 231 if (hdr->magic == cpu_to_be32(XFS_DIR2_BLOCK_MAGIC) || in __xfs_dir3_data_check() 232 hdr->magic == cpu_to_be32(XFS_DIR3_BLOCK_MAGIC)) { in __xfs_dir3_data_check() 254 if (hdr->magic == cpu_to_be32(XFS_DIR2_BLOCK_MAGIC) || in __xfs_dir3_data_check() 255 hdr->magic == cpu_to_be32(XFS_DIR3_BLOCK_MAGIC)) { in __xfs_dir3_data_check() 297 if (!xfs_verify_magic(bp, hdr3->magic)) in xfs_dir3_data_verify() 322 switch (hdr->magic) { in xfs_dir3_data_reada_verify() 382 .magic = { cpu_to_be32(XFS_DIR2_DATA_MAGIC), 391 .magic = { cpu_to_be32(XFS_DIR2_DATA_MAGIC), 561 ASSERT(hdr->magic == cpu_to_be32(XFS_DIR2_DATA_MAGIC) || in xfs_dir2_data_freeinsert() [all …]
|
D | xfs_dir2_leaf.c | 45 to->magic = be16_to_cpu(from3->hdr.info.hdr.magic); in xfs_dir2_leaf_hdr_from_disk() 50 ASSERT(to->magic == XFS_DIR3_LEAF1_MAGIC || in xfs_dir2_leaf_hdr_from_disk() 51 to->magic == XFS_DIR3_LEAFN_MAGIC); in xfs_dir2_leaf_hdr_from_disk() 55 to->magic = be16_to_cpu(from->hdr.info.magic); in xfs_dir2_leaf_hdr_from_disk() 60 ASSERT(to->magic == XFS_DIR2_LEAF1_MAGIC || in xfs_dir2_leaf_hdr_from_disk() 61 to->magic == XFS_DIR2_LEAFN_MAGIC); in xfs_dir2_leaf_hdr_from_disk() 74 ASSERT(from->magic == XFS_DIR3_LEAF1_MAGIC || in xfs_dir2_leaf_hdr_to_disk() 75 from->magic == XFS_DIR3_LEAFN_MAGIC); in xfs_dir2_leaf_hdr_to_disk() 79 to3->hdr.info.hdr.magic = cpu_to_be16(from->magic); in xfs_dir2_leaf_hdr_to_disk() 83 ASSERT(from->magic == XFS_DIR2_LEAF1_MAGIC || in xfs_dir2_leaf_hdr_to_disk() [all …]
|
/Linux-v6.1/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_msg_x86.h | 52 * @magic: [IN] hypervisor magic value 61 flags, magic, \ argument 71 "a"(magic), \ 93 * @magic: [IN] hypervisor magic value 105 flags, magic, bp, \ argument 118 "a"(magic), \ 130 flags, magic, bp, \ argument 143 "a"(magic), \ 164 flags, magic, bp, \ argument 179 "a"(magic), \ [all …]
|
D | vmwgfx_msg_arm64.h | 50 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, \
|
/Linux-v6.1/arch/mips/include/uapi/asm/ |
D | ucontext.h | 7 * @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
|
/Linux-v6.1/tools/testing/selftests/arm64/signal/testcases/ |
D | testcases.c | 5 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() 38 if (!term || term->magic || term->size) { in validate_extra_context() 132 switch (head->magic) { in validate_reserved() 186 * This is a BAD magic header defined in validate_reserved() 191 *err = "BAD MAGIC !"; in validate_reserved() 195 * A still unknown Magic: potentially freshly added in validate_reserved() 200 "SKIP Unknown MAGIC: 0x%X - Is KSFT arm64/signal up to date ?\n", in validate_reserved() 201 head->magic); in validate_reserved()
|
/Linux-v6.1/arch/mips/dec/prom/ |
D | init.c | 45 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()
|
/Linux-v6.1/drivers/gpu/drm/nouveau/nvkm/subdev/pmu/ |
D | gk104.c | 50 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()
|
/Linux-v6.1/drivers/mtd/ubi/ |
D | ubi-media.h | 28 /* 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 …]
|
/Linux-v6.1/arch/arm/include/asm/ |
D | ucontext.h | 12 * 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. */
|
/Linux-v6.1/Documentation/virt/kvm/ |
D | ppc-pv.rst | 70 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 …]
|
/Linux-v6.1/include/uapi/linux/ |
D | jffs2.h | 17 #include <linux/magic.h> 23 /* Values we may expect to find in the 'magic' field */ 30 /* Summary node MAGIC marker */ 105 jint16_t magic; member 113 jint16_t magic; member 137 jint16_t magic; /* A constant magic number. */ member 162 jint16_t magic; member 178 jint16_t magic; member 190 jint16_t magic; member
|
/Linux-v6.1/Documentation/admin-guide/ |
D | binfmt-misc.rst | 10 at the beginning of the file with a magic byte sequence (masking out specified 19 ``:name:type:offset:magic:mask:interpreter:flags`` (where you can choose the 29 is the type of recognition. Give ``M`` for magic and ``E`` for extension. 31 is the offset of the magic/mask in the file, counted in bytes. This 32 defaults to 0 if you omit it (i.e. you write ``:name:type::magic...``). 34 - ``magic`` 35 is the byte sequence binfmt_misc is matching for. The magic string 45 bits from matching by supplying a string like magic and as long as magic. 96 - the magic must reside in the first 128 bytes of the file, i.e. 97 offset+size(magic) has to be less than 128
|
/Linux-v6.1/Documentation/translations/zh_CN/riscv/ |
D | boot-image-header.rst | 33 u64 magic = 0x5643534952; /* Magic number, little endian, "RISCV" */ 34 u32 magic2 = 0x05435352; /* Magic number 2, little endian, "RSC\x05" */ 58 - 从版本0.2开始,结构体成员“magic”就已经被弃用,在之后的版本中,可能会移除掉它。 59 最初,该成员应该与ARM64头的“magic”成员匹配,但遗憾的是并没有。 60 “magic2”成员代替“magic”成员与ARM64头相匹配。
|
/Linux-v6.1/arch/riscv/include/asm/ |
D | image.h | 43 * @magic: Magic number (RISC-V specific; deprecated) 44 * @magic2: Magic number 2 (to match the ARM64 'magic' field pos) 60 u64 magic; member
|
/Linux-v6.1/include/linux/ |
D | genl_magic_struct.h | 60 * MAGIC 61 * multi-include macro expansion magic starts here 64 /* MAGIC helpers {{{2 */ 116 * Magic: define the enum symbols for genl_ops 117 * Magic: define the enum symbols for top level attributes 118 * Magic: define the enum symbols for nested attributes 173 * Magic: compile time assert unique numbers for operations 174 * Magic: -"- unique numbers for top level attributes 175 * Magic: -"- unique numbers for nested attributes 242 * Magic: declare structs
|
/Linux-v6.1/drivers/media/pci/zoran/ |
D | videocodec.c | 52 zrdev_dbg(zr, "%s: '%s', flags %lx, magic %lx\n", __func__, in videocodec_attach() 53 master->name, master->flags, master->magic); in videocodec_attach() 123 zrdev_dbg(zr, "%s: '%s', type: %x, flags %lx, magic %lx\n", __func__, in videocodec_detach() 124 codec->name, codec->type, codec->flags, codec->magic); in videocodec_detach() 180 "videocodec: register '%s', type: %x, flags %lx, magic %lx\n", in videocodec_register() 181 codec->name, codec->type, codec->flags, codec->magic); in videocodec_register() 215 "videocodec: unregister '%s', type: %x, flags %lx, magic %lx\n", in videocodec_unregister() 216 codec->name, codec->type, codec->flags, codec->magic); in videocodec_unregister() 257 seq_puts(m, "<S>lave or attached <M>aster name type flags magic "); in videocodec_debugfs_show() 263 h->codec->flags, h->codec->magic); in videocodec_debugfs_show() [all …]
|
/Linux-v6.1/Documentation/filesystems/ |
D | xfs-self-describing-metadata.rst | 43 magic number in the metadata block, we have no other way of identifying what it 69 Luckily, almost all XFS metadata has magic numbers embedded already - only the 71 magic numbers. Hence we can change the on-disk format of all these objects to 72 add more identifying information and detect this simply by changing the magic 73 numbers in the metadata objects. That is, if it has the current magic number, 74 the metadata isn't self identifying. If it contains a new magic number, it is 174 The first step in read verification is checking the magic number and determining 194 __be32 magic; /* magic number */ 215 - directory/attribute node blocks have a 16 bit magic number, and the 216 header that contains the magic number has other information in it as [all …]
|