Home
last modified time | relevance | path

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

12345678910>>...32

/Linux-v5.4/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-v5.4/fs/xfs/libxfs/
Dxfs_da_format.c439 to->magic = be16_to_cpu(from->hdr.info.magic); in xfs_dir2_leaf_hdr_from_disk()
443 ASSERT(to->magic == XFS_DIR2_LEAF1_MAGIC || in xfs_dir2_leaf_hdr_from_disk()
444 to->magic == XFS_DIR2_LEAFN_MAGIC); in xfs_dir2_leaf_hdr_from_disk()
452 ASSERT(from->magic == XFS_DIR2_LEAF1_MAGIC || in xfs_dir2_leaf_hdr_to_disk()
453 from->magic == XFS_DIR2_LEAFN_MAGIC); in xfs_dir2_leaf_hdr_to_disk()
457 to->hdr.info.magic = cpu_to_be16(from->magic); in xfs_dir2_leaf_hdr_to_disk()
471 to->magic = be16_to_cpu(hdr3->info.hdr.magic); in xfs_dir3_leaf_hdr_from_disk()
475 ASSERT(to->magic == XFS_DIR3_LEAF1_MAGIC || in xfs_dir3_leaf_hdr_from_disk()
476 to->magic == XFS_DIR3_LEAFN_MAGIC); in xfs_dir3_leaf_hdr_from_disk()
486 ASSERT(from->magic == XFS_DIR3_LEAF1_MAGIC || in xfs_dir3_leaf_hdr_to_disk()
[all …]
Dxfs_dir2_data.c76 switch (hdr->magic) { in __xfs_dir3_data_check()
185 if (hdr->magic == cpu_to_be32(XFS_DIR2_BLOCK_MAGIC) || in __xfs_dir3_data_check()
186 hdr->magic == cpu_to_be32(XFS_DIR3_BLOCK_MAGIC)) { in __xfs_dir3_data_check()
208 if (hdr->magic == cpu_to_be32(XFS_DIR2_BLOCK_MAGIC) || in __xfs_dir3_data_check()
209 hdr->magic == cpu_to_be32(XFS_DIR3_BLOCK_MAGIC)) { in __xfs_dir3_data_check()
251 if (!xfs_verify_magic(bp, hdr3->magic)) in xfs_dir3_data_verify()
276 switch (hdr->magic) { in xfs_dir3_data_reada_verify()
336 .magic = { cpu_to_be32(XFS_DIR2_DATA_MAGIC),
345 .magic = { cpu_to_be32(XFS_DIR2_DATA_MAGIC),
487 ASSERT(hdr->magic == cpu_to_be32(XFS_DIR2_DATA_MAGIC) || in xfs_dir2_data_freeinsert()
[all …]
Dxfs_da_btree.c126 if (!xfs_verify_magic16(bp, hdr->magic)) in xfs_da3_blkinfo_verify()
216 switch (be16_to_cpu(info->magic)) { in xfs_da3_node_read_verify()
252 switch (be16_to_cpu(info->magic)) { in xfs_da3_node_verify_struct()
295 switch (be16_to_cpu(info->magic)) { in xfs_da3_node_read()
357 ichdr.magic = XFS_DA3_NODE_MAGIC; in xfs_da3_node_create()
362 ichdr.magic = XFS_DA_NODE_MAGIC; in xfs_da3_node_create()
401 ASSERT(state->path.blk[max].magic == XFS_ATTR_LEAF_MAGIC || in xfs_da3_split()
402 state->path.blk[max].magic == XFS_DIR2_LEAFN_MAGIC); in xfs_da3_split()
415 switch (oldblk->magic) { in xfs_da3_split()
482 state->path.blk[max].magic == XFS_DIR2_LEAFN_MAGIC); in xfs_da3_split()
[all …]
Dxfs_dir2_leaf.c48 if (leafhdr.magic == XFS_DIR3_LEAF1_MAGIC) { in xfs_dir3_leaf1_check()
52 } else if (leafhdr.magic != XFS_DIR2_LEAF1_MAGIC) in xfs_dir3_leaf1_check()
115 if ((hdr->magic == XFS_DIR2_LEAF1_MAGIC || in xfs_dir3_leaf_check_int()
116 hdr->magic == XFS_DIR3_LEAF1_MAGIC) && in xfs_dir3_leaf_check_int()
268 leaf3->info.hdr.magic = (type == XFS_DIR2_LEAF1_MAGIC) in xfs_dir3_leaf_init()
276 leaf->hdr.info.magic = cpu_to_be16(type); in xfs_dir3_leaf_init()
301 uint16_t magic) in xfs_dir3_leaf_get_buf() argument
309 ASSERT(magic == XFS_DIR2_LEAF1_MAGIC || magic == XFS_DIR2_LEAFN_MAGIC); in xfs_dir3_leaf_get_buf()
318 xfs_dir3_leaf_init(mp, tp, bp, dp->i_ino, magic); in xfs_dir3_leaf_get_buf()
320 if (magic == XFS_DIR2_LEAF1_MAGIC) in xfs_dir3_leaf_get_buf()
[all …]
/Linux-v5.4/drivers/gpu/drm/vmwgfx/
Dvmwgfx_msg.h58 flags, magic, \ argument
68 "a"(magic), \
102 flags, magic, bp, \ argument
115 "a"(magic), \
127 flags, magic, bp, \ argument
140 "a"(magic), \
161 flags, magic, bp, \ argument
176 "a"(magic), \
188 flags, magic, bp, \ argument
203 "a"(magic), \
/Linux-v5.4/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-v5.4/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-v5.4/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-v5.4/kernel/locking/
Dspinlock_debug.c27 lock->magic = SPINLOCK_MAGIC; in __raw_spin_lock_init()
45 lock->magic = RWLOCK_MAGIC; in __rwlock_init()
63 lock, lock->magic, in spin_dump()
83 SPIN_BUG_ON(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()
Dmutex-debug.c33 waiter->magic = waiter; in debug_mutex_lock_common()
41 DEBUG_LOCKS_WARN_ON(waiter->magic != waiter); in debug_mutex_wake_waiter()
75 DEBUG_LOCKS_WARN_ON(lock->magic != lock); in debug_mutex_unlock()
90 lock->magic = lock; in debug_mutex_init()
104 lock->magic = NULL; in mutex_destroy()
/Linux-v5.4/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.c691 uint32_t crc, magic, hdr_crc; in ubi_io_read_ec_hdr() local
712 magic = be32_to_cpu(ec_hdr->magic); in ubi_io_read_ec_hdr()
713 if (magic != UBI_EC_HDR_MAGIC) { in ubi_io_read_ec_hdr()
741 pnum, magic, UBI_EC_HDR_MAGIC); in ubi_io_read_ec_hdr()
745 pnum, magic, UBI_EC_HDR_MAGIC); in ubi_io_read_ec_hdr()
805 ec_hdr->magic = cpu_to_be32(UBI_EC_HDR_MAGIC); in ubi_io_write_ec_hdr()
968 uint32_t crc, magic, hdr_crc; in ubi_io_read_vid_hdr() local
980 magic = be32_to_cpu(vid_hdr->magic); in ubi_io_read_vid_hdr()
981 if (magic != UBI_VID_HDR_MAGIC) { in ubi_io_read_vid_hdr()
999 pnum, magic, UBI_VID_HDR_MAGIC); in ubi_io_read_vid_hdr()
[all …]
/Linux-v5.4/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-v5.4/drivers/gpu/drm/
Ddrm_auth.c70 if (!file_priv->magic) { in drm_getmagic()
74 file_priv->magic = ret; in drm_getmagic()
76 auth->magic = file_priv->magic; in drm_getmagic()
79 DRM_DEBUG("%u\n", auth->magic); in drm_getmagic()
90 DRM_DEBUG("%u\n", auth->magic); in drm_authmagic()
93 file = idr_find(&file_priv->master->magic_map, auth->magic); in drm_authmagic()
96 idr_replace(&file_priv->master->magic_map, NULL, auth->magic); in drm_authmagic()
274 if (file_priv->magic) in drm_master_release()
275 idr_remove(&file_priv->master->magic_map, file_priv->magic); in drm_master_release()
/Linux-v5.4/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-v5.4/tools/lib/api/fs/
Dfs.c93 long magic; member
113 .magic = SYSFS_MAGIC,
118 .magic = PROC_SUPER_MAGIC,
123 .magic = DEBUGFS_MAGIC,
128 .magic = TRACEFS_MAGIC,
133 .magic = HUGETLBFS_MAGIC,
138 .magic = BPF_FS_MAGIC,
164 static int fs__valid_mount(const char *fs, long magic) in fs__valid_mount() argument
170 else if ((long)st_fs.f_type != magic) in fs__valid_mount()
182 if (fs__valid_mount(*ptr, fs->magic) == 0) { in fs__check_mounts()
/Linux-v5.4/tools/testing/selftests/bpf/prog_tests/
Dl4lb_all.c30 u32 *magic = (u32 *)buf; in test_l4lb() local
54 *magic != MAGIC_VAL, "ipv4", in test_l4lb()
56 err, errno, retval, size, *magic); in test_l4lb()
61 *magic != MAGIC_VAL, "ipv6", in test_l4lb()
63 err, errno, retval, size, *magic); in test_l4lb()
Dxdp_noinline.c31 u32 *magic = (u32 *)buf; in test_xdp_noinline() local
55 *magic != MAGIC_VAL, "ipv4", in test_xdp_noinline()
57 err, errno, retval, size, *magic); in test_xdp_noinline()
62 *magic != MAGIC_VAL, "ipv6", in test_xdp_noinline()
64 err, errno, retval, size, *magic); in test_xdp_noinline()
/Linux-v5.4/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()
/Linux-v5.4/arch/um/drivers/
Dcow_user.c23 __s32 magic; member
42 __u32 magic; member
86 __u32 magic; member
98 __u32 magic; member
216 header->magic = htobe32(COW_MAGIC); in write_cow_header()
286 unsigned long version, magic; in read_cow_header() local
300 magic = header->v1.magic; in read_cow_header()
301 if (magic == COW_MAGIC) in read_cow_header()
303 else if (magic == be32toh(COW_MAGIC)) in read_cow_header()
/Linux-v5.4/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()
404 e->magic = p; in create_entry()
408 if (!e->magic[0]) in create_entry()
413 DUMP_PREFIX_NONE, e->magic, p - e->magic); in create_entry()
434 e->size = string_unescape_inplace(e->magic, UNESCAPE_HEX); in create_entry()
445 DUMP_PREFIX_NONE, e->magic, e->size); in create_entry()
457 masked[i] = e->magic[i] & e->mask[i]; in create_entry()
[all …]
/Linux-v5.4/drivers/media/v4l2-core/
Dvideobuf-dma-contig.c24 u32 magic; member
108 MAGIC_CHECK(mem->magic, MAGIC_DC_MEM); in videobuf_vm_close()
218 mem->magic = MAGIC_DC_MEM; in __videobuf_alloc()
229 MAGIC_CHECK(mem->magic, MAGIC_DC_MEM); in __videobuf_to_vaddr()
241 MAGIC_CHECK(mem->magic, MAGIC_DC_MEM); in __videobuf_iolock()
296 MAGIC_CHECK(mem->magic, MAGIC_DC_MEM); in __videobuf_mmap_mapper()
340 .magic = MAGIC_QTYPE_OPS,
367 MAGIC_CHECK(mem->magic, MAGIC_DC_MEM); in videobuf_to_dma_contig()
390 MAGIC_CHECK(mem->magic, MAGIC_DC_MEM); in videobuf_dma_contig_free()
/Linux-v5.4/drivers/scsi/
Dg_NCR5380.c169 static void magic_configure(int idx, u8 irq, u8 magic[]) in magic_configure() argument
173 outb(magic[0], 0x779); in magic_configure()
174 outb(magic[1], 0x379); in magic_configure()
175 outb(magic[2], 0x379); in magic_configure()
176 outb(magic[3], 0x379); in magic_configure()
177 outb(magic[4], 0x379); in magic_configure()
229 u8 *magic = NULL; in generic_NCR5380_init_one() local
243 magic = ncr_53c400a_magic; in generic_NCR5380_init_one()
247 magic = hp_c2502_magic; in generic_NCR5380_init_one()
251 magic = ncr_53c400a_magic; in generic_NCR5380_init_one()
[all …]

12345678910>>...32