Home
last modified time | relevance | path

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

12345678910>>...37

/linux-6.6.21/tools/testing/selftests/arm64/signal/testcases/
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()
238 memcpy(magic, &head->magic, sizeof(magic)); in validate_reserved()
239 for (i = 0; i < sizeof(magic); i++) in validate_reserved()
240 if (!isalnum(magic[i])) in validate_reserved()
241 magic[i] = '?'; in validate_reserved()
[all …]
/linux-6.6.21/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()
/linux-6.6.21/drivers/gpu/drm/vmwgfx/
Dvmwgfx_msg_x86.h61 flags, magic, \ argument
71 "a"(magic), \
105 flags, magic, bp, \ argument
122 "a"(magic), \
134 flags, magic, bp, \ argument
151 "a"(magic), \
172 flags, magic, bp, \ argument
187 "a"(magic), \
199 flags, magic, bp, \ argument
214 "a"(magic), \
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, \
/linux-6.6.21/tools/perf/util/
Dcs-etm-base.c65 u64 magic; in cs_etm__print_cpu_metadata_v0() local
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()
72 fprintf(stdout, magic_unk_fmt, magic); in cs_etm__print_cpu_metadata_v0()
80 if (magic == __perf_cs_etmv3_magic) { in cs_etm__print_cpu_metadata_v0()
86 } else if (magic == __perf_cs_etmv4_magic) { in cs_etm__print_cpu_metadata_v0()
100 u64 magic; in cs_etm__print_cpu_metadata_v1() local
102 magic = val[i + CS_ETM_MAGIC]; in cs_etm__print_cpu_metadata_v1()
106 if (magic == __perf_cs_etmv3_magic) { in cs_etm__print_cpu_metadata_v1()
[all …]
/linux-6.6.21/drivers/gpu/drm/nouveau/nvkm/subdev/pmu/
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()
Dgk110.c38 } magic[] = { in gk110_pmu_pgob() local
68 for (i = 0; i < ARRAY_SIZE(magic); i++) { in gk110_pmu_pgob()
69 nvkm_wr32(device, magic[i].addr, magic[i].data); in gk110_pmu_pgob()
71 if (!(nvkm_rd32(device, magic[i].addr) & 0x80000000)) in gk110_pmu_pgob()
/linux-6.6.21/arch/mips/dec/prom/
Dinit.c45 void __init which_prom(s32 magic, s32 *prom_vec) in which_prom() argument
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-6.6.21/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()
/linux-6.6.21/fs/xfs/libxfs/
Dxfs_dir2_data.c129 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 …]
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 …]
Dxfs_dir2_leaf.c45 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-6.6.21/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 …]
/linux-6.6.21/drivers/mtd/ubi/
Dubi-media.h148 __be32 magic; member
269 __be32 magic; member
408 __be32 magic; member
430 __be32 magic; member
450 __be32 magic; member
480 __be32 magic; member
499 __be32 magic; member
Dio.c698 uint32_t crc, magic, hdr_crc; in ubi_io_read_ec_hdr() local
719 magic = be32_to_cpu(ec_hdr->magic); in ubi_io_read_ec_hdr()
720 if (magic != UBI_EC_HDR_MAGIC) { in ubi_io_read_ec_hdr()
748 pnum, magic, UBI_EC_HDR_MAGIC); in ubi_io_read_ec_hdr()
752 pnum, magic, UBI_EC_HDR_MAGIC); in ubi_io_read_ec_hdr()
812 ec_hdr->magic = cpu_to_be32(UBI_EC_HDR_MAGIC); in ubi_io_write_ec_hdr()
970 uint32_t crc, magic, hdr_crc; in ubi_io_read_vid_hdr() local
982 magic = be32_to_cpu(vid_hdr->magic); in ubi_io_read_vid_hdr()
983 if (magic != UBI_VID_HDR_MAGIC) { in ubi_io_read_vid_hdr()
1001 pnum, magic, UBI_VID_HDR_MAGIC); in ubi_io_read_vid_hdr()
[all …]
/linux-6.6.21/kernel/locking/
Dspinlock_debug.c27 lock->magic = SPINLOCK_MAGIC; in __raw_spin_lock_init()
46 lock->magic = RWLOCK_MAGIC; in __rwlock_init()
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()
Dmutex-debug.c31 waiter->magic = waiter; in debug_mutex_lock_common()
40 DEBUG_LOCKS_WARN_ON(waiter->magic != waiter); in debug_mutex_wake_waiter()
74 DEBUG_LOCKS_WARN_ON(lock->magic != lock); in debug_mutex_unlock()
89 lock->magic = lock; in debug_mutex_init()
103 lock->magic = NULL; in mutex_destroy()
/linux-6.6.21/drivers/media/usb/gspca/
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()
166 rhdr->magic[0], rhdr->magic[1]); in send_cmd()
394 if (hdr->magic[0] != 'R' || hdr->magic[1] != 'B') { in sd_pkt_scan()
396 sd->stream_flag, hdr->magic[0], hdr->magic[1]); in sd_pkt_scan()
/linux-6.6.21/fs/
Dbinfmt_misc.c57 char *magic; /* magic or filename extension */ member
107 if (p && !strcmp(e->magic, p + 1)) in check_file()
116 if ((*s++ ^ e->magic[j]) & e->mask[j]) in check_file()
120 if ((*s++ ^ e->magic[j])) in check_file()
357 e->magic = p; in create_entry()
361 if (!e->magic[0]) in create_entry()
366 DUMP_PREFIX_NONE, e->magic, p - e->magic); in create_entry()
387 e->size = string_unescape_inplace(e->magic, UNESCAPE_HEX); in create_entry()
398 DUMP_PREFIX_NONE, e->magic, e->size); in create_entry()
410 masked[i] = e->magic[i] & e->mask[i]; in create_entry()
[all …]
/linux-6.6.21/drivers/gpu/drm/
Ddrm_auth.c100 if (!file_priv->magic) { in drm_getmagic()
104 file_priv->magic = ret; in drm_getmagic()
106 auth->magic = file_priv->magic; in drm_getmagic()
109 drm_dbg_core(dev, "%u\n", auth->magic); in drm_getmagic()
120 drm_dbg_core(dev, "%u\n", auth->magic); in drm_authmagic()
123 file = idr_find(&file_priv->master->magic_map, auth->magic); in drm_authmagic()
126 idr_replace(&file_priv->master->magic_map, NULL, auth->magic); in drm_authmagic()
362 if (file_priv->magic) in drm_master_release()
363 idr_remove(&file_priv->master->magic_map, file_priv->magic); in drm_master_release()
/linux-6.6.21/include/uapi/linux/
Djffs2.h105 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-6.6.21/lib/
Dtest_memcat_p.c13 unsigned int magic; member
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()
66 (*p)->magic); in test_memcat_p_init()
Dtest_lockup.c440 unsigned int magic = 0; in test_magic() local
445 if (get_kernel_nofault(magic, ptr) || magic != expected) { in test_magic()
447 addr, offset, magic, expected); in test_magic()
490 offsetof(spinlock_t, lock.wait_lock.magic), in test_lockup_init()
493 offsetof(rwlock_t, rwbase.rtmutex.wait_lock.magic), in test_lockup_init()
496 offsetof(struct mutex, rtmutex.wait_lock.magic), in test_lockup_init()
499 offsetof(struct rw_semaphore, rwbase.rtmutex.wait_lock.magic), in test_lockup_init()
504 offsetof(spinlock_t, rlock.magic), in test_lockup_init()
507 offsetof(rwlock_t, magic), in test_lockup_init()
510 offsetof(struct mutex, wait_lock.magic), in test_lockup_init()
[all …]
/linux-6.6.21/drivers/accel/habanalabs/include/common/
Dhl_boot_if.h477 #define HL_COMMS_MSG_MAGIC_VALIDATE_MAGIC(magic) \ argument
478 (((magic) & HL_COMMS_MSG_MAGIC_MASK) == \
481 #define HL_COMMS_MSG_MAGIC_VALIDATE_VERSION(magic, ver) \ argument
482 (((magic) & HL_COMMS_MSG_MAGIC_VER_MASK) >= \
485 #define HL_COMMS_MSG_MAGIC_VALIDATE(magic, ver) \ argument
486 (HL_COMMS_MSG_MAGIC_VALIDATE_MAGIC((magic)) && \
487 HL_COMMS_MSG_MAGIC_VALIDATE_VERSION((magic), (ver)))
528 __le32 magic; /* magic for validation */ member
537 __le32 magic; /* magic for validation */ member
/linux-6.6.21/arch/um/drivers/
Dcow_user.c24 __s32 magic; member
43 __u32 magic; member
87 __u32 magic; member
99 __u32 magic; member
217 header->magic = htobe32(COW_MAGIC); in write_cow_header()
287 unsigned long version, magic; in read_cow_header() local
301 magic = header->v1.magic; in read_cow_header()
302 if (magic == COW_MAGIC) in read_cow_header()
304 else if (magic == be32toh(COW_MAGIC)) in read_cow_header()

12345678910>>...37