Home
last modified time | relevance | path

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

12345678910>>...47

/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 valu in cs_etm__print_cpu_metadata_v0()
100 u64 magic; cs_etm__print_cpu_metadata_v1() local
[all...]
/linux/lib/
H A Ddecompress.c5 * Detect the decompression method based on magic number
46 unsigned char magic[2]; member
52 { .magic = {0x1f, 0x8b}, .name = "gzip", .decompressor = gunzip },
53 { .magic = {0x1f, 0x9e}, .name = "gzip", .decompressor = gunzip },
54 { .magic = {0x42, 0x5a}, .name = "bzip2", .decompressor = bunzip2 },
55 { .magic = {0x5d, 0x00}, .name = "lzma", .decompressor = unlzma },
56 { .magic = {0xfd, 0x37}, .name = "xz", .decompressor = unxz },
57 { .magic = {0x89, 0x4c}, .name = "lzo", .decompressor = unlzo },
58 { .magic = {0x02, 0x21}, .name = "lz4", .decompressor = unlz4 },
59 { .magic = {0x28, 0xb5}, .name = "zstd", .decompressor = unzstd },
[all …]
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()
/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()
/linux/Documentation/staging/
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 …]
/linux/tools/testing/selftests/arm64/signal/testcases/
H A Dtestcases.c19 if (!term || term->magic || term->size) { in validate_extra_context()
122 char magic[4]; in validate_reserved() local
135 switch (head->magic) { in validate_reserved()
219 * This is a BAD magic header defined in validate_reserved()
224 *err = "BAD MAGIC !"; in validate_reserved()
228 * A still unknown Magic: potentially freshly added in validate_reserved()
230 * tests. Magic numbers are supposed to be allocated in validate_reserved()
234 memcpy(magic, &head->magic, sizeof(magic)); in validate_reserved()
235 for (i = 0; i < sizeof(magic); i++) in validate_reserved()
236 if (!isalnum(magic[i])) in validate_reserved()
[all …]
H A Dtestcases.h95 static inline struct _aarch64_ctx *get_header(struct _aarch64_ctx *head, uint32_t magic, in get_header() argument
105 head->magic != magic && head->magic) { in get_header()
109 if (head->magic == magic) { in get_header()
129 tail->magic = 0; in write_terminator_record()
/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
/linux/net/core/
H A Dnetmem_priv.h41 unsigned long magic; in netmem_get_dma_index() local
46 magic = netmem_to_nmdesc(netmem)->pp_magic; in netmem_get_dma_index()
48 return (magic & PP_DMA_INDEX_MASK) >> PP_DMA_INDEX_SHIFT; in netmem_get_dma_index()
54 unsigned long magic; in netmem_set_dma_index() local
59 magic = netmem_get_pp_magic(netmem) | (id << PP_DMA_INDEX_SHIFT); in netmem_set_dma_index()
60 netmem_to_nmdesc(netmem)->pp_magic = magic; in netmem_set_dma_index()
/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()
/linux/drivers/misc/
H A Dxilinx_tmr_inject.c36 * @magic: Magic hardware configuration value
40 u32 magic; member
90 cr_val = xtmr_inject->magic | in xtmr_inject_init()
125 err = of_property_read_u32(pdev->dev.of_node, "xlnx,magic", in xtmr_inject_probe()
126 &xtmr_inject->magic); in xtmr_inject_probe()
128 dev_err(&pdev->dev, "unable to read xlnx,magic property"); in xtmr_inject_probe()
132 if (xtmr_inject->magic > XTMR_INJECT_MAGIC_MAX_VAL) { in xtmr_inject_probe()
133 dev_err(&pdev->dev, "invalid xlnx,magic property value"); in xtmr_inject_probe()
/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. */
/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 …]
/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 …]
/linux/Documentation/translations/zh_CN/arch/riscv/
H A Dboot-image-header.rst33 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/include/uapi/linux/
H A Djffs2.h17 #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/fs/xfs/libxfs/
H A Dxfs_dir2_data.c130 switch (hdr->magic) { in __xfs_dir3_data_check()
253 if (hdr->magic == cpu_to_be32(XFS_DIR2_BLOCK_MAGIC) || in __xfs_dir3_data_check()
254 hdr->magic == cpu_to_be32(XFS_DIR3_BLOCK_MAGIC)) { in __xfs_dir3_data_check()
276 if (hdr->magic == cpu_to_be32(XFS_DIR2_BLOCK_MAGIC) || in __xfs_dir3_data_check()
277 hdr->magic == cpu_to_be32(XFS_DIR3_BLOCK_MAGIC)) { in __xfs_dir3_data_check()
319 if (!xfs_verify_magic(bp, hdr3->magic)) in xfs_dir3_data_verify()
344 switch (hdr->magic) { in xfs_dir3_data_reada_verify()
410 .magic = { cpu_to_be32(XFS_DIR2_DATA_MAGIC),
419 .magic = { cpu_to_be32(XFS_DIR2_DATA_MAGIC),
435 if (hdr3->hdr.magic != cpu_to_be32(XFS_DIR3_DATA_MAGIC)) in xfs_dir3_data_header_check()
[all …]
/linux/arch/riscv/include/asm/
H A Dimage.h45 * @magic: Magic number (RISC-V specific; deprecated)
46 * @magic2: Magic number 2 (to match the ARM64 'magic' field pos)
62 u64 magic; member
/linux/Documentation/arch/riscv/
H A Dboot-image-header.rst20 u64 magic = 0x5643534952; /* Magic number, little endian, "RISCV" */
21 u32 magic2 = 0x05435352; /* Magic number 2, little endian, "RSC\x05" */
34 with "MZ" magic string and res3(at offset 0x3c) points to the rest of the
47 - The "magic" field is deprecated as of version 0.2. In a future
49 with the ARM64 header "magic" field, but unfortunately does not.
/linux/drivers/media/pci/zoran/
H A Dvideocodec.c52 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/Documentation/filesystems/xfs/
H A Dxfs-self-describing-metadata.rst44 magic number in the metadata block, we have no other way of identifying what it
70 Luckily, almost all XFS metadata has magic numbers embedded already - only the
72 magic numbers. Hence we can change the on-disk format of all these objects to
73 add more identifying information and detect this simply by changing the magic
74 numbers in the metadata objects. That is, if it has the current magic number,
75 the metadata isn't self identifying. If it contains a new magic number, it is
175 The first step in read verification is checking the magic number and determining
195 __be32 magic; /* magic number */
216 - directory/attribute node blocks have a 16 bit magic number, and the
217 header that contains the magic number has other information in it as
[all …]
/linux/Documentation/devicetree/bindings/misc/
H A Dxlnx,tmr-inject.yaml26 xlnx,magic:
30 Magic number, When configured it allows the controller to perform
37 - xlnx,magic
46 xlnx,magic = <0x46>;
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dxdp_noinline.c31 u32 *magic = (u32 *)buf; in test_xdp_noinline() local
52 ASSERT_EQ(*magic, MAGIC_VAL, "ipv4 test_run magic"); in test_xdp_noinline()
63 ASSERT_EQ(*magic, MAGIC_VAL, "ipv6 test_run magic"); in test_xdp_noinline()
/linux/drivers/misc/mei/
H A Dvsc-fw-loader.c101 __le32 magic; member
139 __le32 magic; member
147 __le32 magic; member
179 __le32 magic; member
186 __le32 magic; member
315 cmd->magic = cpu_to_le32(VSC_MAGIC_NUM); in vsc_identify_silicon()
325 cmd->magic = cpu_to_le32(VSC_MAGIC_NUM); in vsc_identify_silicon()
353 cmd->magic = cpu_to_le32(VSC_MAGIC_NUM); in vsc_identify_silicon()
363 cmd->magic = cpu_to_le32(VSC_MAGIC_NUM); in vsc_identify_silicon()
392 if (le32_to_cpu(img->magic) != VSC_MAGIC_FILE) { in vsc_identify_csi_image()
[all …]
/linux/drivers/media/usb/gspca/
H A Dkinect.c29 uint8_t magic[2]; member
40 uint8_t magic[2]; member
136 chdr->magic[0] = 0x47; in send_cmd()
137 chdr->magic[1] = 0x4d; in send_cmd()
164 if (rhdr->magic[0] != 0x52 || rhdr->magic[1] != 0x42) { in send_cmd()
165 pr_err("send_cmd: Bad magic %02x %02x\n", in send_cmd()
166 rhdr->magic[0], rhdr->magic[1]); in send_cmd()
394 if (hdr->magic[0] != 'R' || hdr->magic[1] != 'B') { in sd_pkt_scan()
395 pr_warn("[Stream %02x] Invalid magic %02x%02x\n", in sd_pkt_scan()
396 sd->stream_flag, hdr->magic[0], hdr->magic[1]); in sd_pkt_scan()

12345678910>>...47