Home
last modified time | relevance | path

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

12345678910>>...146

/linux/drivers/net/wireless/ath/carl9170/
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/drivers/gpu/drm/vmwgfx/
A Dvmwgfx_msg_x86.h61 flags, magic, \ argument
71 "a"(magic), \
105 flags, magic, bp, \ argument
118 "a"(magic), \
130 flags, magic, bp, \ argument
143 "a"(magic), \
164 flags, magic, bp, \ argument
179 "a"(magic), \
191 flags, magic, bp, \ argument
206 "a"(magic), \
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, \
/linux/kernel/bpf/preload/iterators/
A 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()
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/pmu/
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()
A 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/arch/mips/dec/prom/
A 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/fs/xfs/libxfs/
A Dxfs_da_btree.c137 to->magic = be16_to_cpu(from3->hdr.info.hdr.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()
165 to3->hdr.info.hdr.magic = cpu_to_be16(from->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()
1145 __be16 magic = blkinfo->magic; in xfs_da_blkinfo_onlychild_validate() local
1612 magic = be16_to_cpu(curr->magic); in xfs_da3_node_lookup_int()
1844 ASSERT(tmp_info->magic == old_info->magic); in xfs_da3_blk_link()
1865 ASSERT(tmp_info->magic == old_info->magic); in xfs_da3_blk_link()
1904 ASSERT(save_blk->magic == drop_blk->magic); in xfs_da3_blk_unlink()
2342 sib_info->magic != dead_info->magic)) { in xfs_da3_swap_lastblock()
[all …]
A Dxfs_dir2_data.c129 switch (hdr->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),
724 hdr3->magic = cpu_to_be32(XFS_DIR3_DATA_MAGIC); in xfs_dir3_data_init()
730 hdr->magic = cpu_to_be32(XFS_DIR2_DATA_MAGIC); in xfs_dir3_data_init()
1019 hdr->magic != cpu_to_be32(XFS_DIR3_BLOCK_MAGIC)) in xfs_dir2_data_check_free()
[all …]
A 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()
61 to->magic == XFS_DIR2_LEAFN_MAGIC); in xfs_dir2_leaf_hdr_from_disk()
79 to3->hdr.info.hdr.magic = cpu_to_be16(from->magic); in xfs_dir2_leaf_hdr_to_disk()
88 to->hdr.info.magic = cpu_to_be16(from->magic); in xfs_dir2_leaf_hdr_to_disk()
349 uint16_t magic) in xfs_dir3_leaf_get_buf() argument
357 ASSERT(magic == XFS_DIR2_LEAF1_MAGIC || magic == XFS_DIR2_LEAFN_MAGIC); in xfs_dir3_leaf_get_buf()
368 if (magic == XFS_DIR2_LEAF1_MAGIC) in xfs_dir3_leaf_get_buf()
[all …]
A Dxfs_dir2_node.c69 if (leafhdr.magic == XFS_DIR3_LEAFN_MAGIC) { in xfs_dir3_leafn_check()
105 if (!xfs_verify_magic(bp, hdr->magic)) in xfs_dir3_free_verify()
253 to->magic = be32_to_cpu(from3->hdr.hdr.magic); in xfs_dir2_free_hdr_from_disk()
259 ASSERT(to->magic == XFS_DIR3_FREE_MAGIC); in xfs_dir2_free_hdr_from_disk()
261 to->magic = be32_to_cpu(from->hdr.magic); in xfs_dir2_free_hdr_from_disk()
282 to3->hdr.hdr.magic = cpu_to_be32(from->magic); in xfs_dir2_free_hdr_to_disk()
289 to->hdr.magic = cpu_to_be32(from->magic); in xfs_dir2_free_hdr_to_disk()
347 hdr.magic = XFS_DIR3_FREE_MAGIC; in xfs_dir3_free_get_buf()
353 hdr.magic = XFS_DIR2_FREE_MAGIC; in xfs_dir3_free_get_buf()
1447 newblk->magic = XFS_DIR2_LEAFN_MAGIC; in xfs_dir2_leafn_split()
[all …]
/linux/drivers/power/reset/
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()
/linux/kernel/bpf/preload/
A Dbpf_preload_kern.c25 int magic = BPF_PRELOAD_START; in preload() local
36 &magic, sizeof(magic), &pos); in preload()
37 if (n != sizeof(magic)) in preload()
53 int magic = BPF_PRELOAD_END; in finish() local
60 &magic, sizeof(magic), &pos); in finish()
61 if (n != sizeof(magic)) in finish()
/linux/tools/testing/selftests/arm64/signal/testcases/
A 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()
97 switch (head->magic) { in validate_reserved()
149 head->magic); in validate_reserved()
/linux/kernel/locking/
A 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()
A 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/drivers/mtd/ubi/
A 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
A 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()
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()
1119 uint32_t magic; in self_check_ec_hdr() local
1124 magic = be32_to_cpu(ec_hdr->magic); in self_check_ec_hdr()
1125 if (magic != UBI_EC_HDR_MAGIC) { in self_check_ec_hdr()
1127 magic, UBI_EC_HDR_MAGIC); in self_check_ec_hdr()
1202 uint32_t magic; in self_check_vid_hdr() local
[all …]
/linux/drivers/media/usb/gspca/
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()
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/drivers/misc/habanalabs/include/common/
A Dhl_boot_if.h440 #define HL_COMMS_MSG_MAGIC_VALIDATE_MAGIC(magic) \ argument
441 (((magic) & HL_COMMS_MSG_MAGIC_MASK) == \
444 #define HL_COMMS_MSG_MAGIC_VALIDATE_VERSION(magic, ver) \ argument
445 (((magic) & HL_COMMS_MSG_MAGIC_VER_MASK) >= \
448 #define HL_COMMS_MSG_MAGIC_VALIDATE(magic, ver) \ argument
449 (HL_COMMS_MSG_MAGIC_VALIDATE_MAGIC((magic)) && \
450 HL_COMMS_MSG_MAGIC_VALIDATE_VERSION((magic), (ver)))
462 __le32 magic; /* magic for validation */ member
471 __le32 magic; /* magic for validation */ member
/linux/fs/
A Dbinfmt_misc.c107 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()
398 DUMP_PREFIX_NONE, e->magic, e->size); in create_entry()
410 masked[i] = e->magic[i] & e->mask[i]; in create_entry()
429 e->magic = p; in create_entry()
434 if (!e->magic[0] || strchr(e->magic, '/')) in create_entry()
[all …]
/linux/drivers/gpu/drm/
A 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_DEBUG("%u\n", auth->magic); in drm_getmagic()
120 DRM_DEBUG("%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()
357 if (file_priv->magic) in drm_master_release()
358 idr_remove(&file_priv->master->magic_map, file_priv->magic); in drm_master_release()
/linux/lib/
A Dtest_lockup.c435 unsigned int magic = 0; in test_magic() local
440 if (get_kernel_nofault(magic, ptr) || magic != expected) { in test_magic()
442 addr, offset, magic, expected); in test_magic()
485 offsetof(spinlock_t, lock.wait_lock.magic), in test_lockup_init()
488 offsetof(rwlock_t, rwbase.rtmutex.wait_lock.magic), in test_lockup_init()
491 offsetof(struct mutex, rtmutex.wait_lock.magic), in test_lockup_init()
494 offsetof(struct rw_semaphore, rwbase.rtmutex.wait_lock.magic), in test_lockup_init()
499 offsetof(spinlock_t, rlock.magic), in test_lockup_init()
502 offsetof(rwlock_t, magic), in test_lockup_init()
505 offsetof(struct mutex, wait_lock.magic), in test_lockup_init()
[all …]
/linux/Documentation/process/
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.
54 but it is possible that some new magic numbers will sneak into the
61 Updated the magic table to Linux 2.5.74.
[all …]
/linux/include/uapi/linux/
A 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

Completed in 65 milliseconds

12345678910>>...146