/linux-4.1.27/drivers/gpu/drm/ |
H A D | drm_auth.c | 46 * Find the file with the given magic number. 49 * \param magic magic number. 52 * the one with matching magic number, while holding the drm_device::struct_mutex 55 static struct drm_file *drm_find_file(struct drm_master *master, drm_magic_t magic) drm_find_file() argument 63 if (!drm_ht_find_item(&master->magiclist, (unsigned long)magic, &hash)) { drm_find_file() 72 * Adds a magic number. 76 * \param magic magic number. 79 * associated the magic number hash key in drm_device::magiclist, while holding 83 drm_magic_t magic) drm_add_magic() 87 DRM_DEBUG("%d\n", magic); drm_add_magic() 93 entry->hash_item.key = (unsigned long)magic; drm_add_magic() 103 * Remove a magic number. 106 * \param magic magic number. 108 * Searches and unlinks the entry in drm_device::magiclist with the magic 111 int drm_remove_magic(struct drm_master *master, drm_magic_t magic) drm_remove_magic() argument 117 DRM_DEBUG("%d\n", magic); drm_remove_magic() 120 if (drm_ht_find_item(&master->magiclist, (unsigned long)magic, &hash)) { drm_remove_magic() 135 * Get a unique magic number (ioctl). 143 * If there is a magic number in drm_file::magic then use it, otherwise 144 * searches an unique non-zero magic number and add it associating it with \p 147 * struct drm_file::magic and struct drm_magic_entry::priv. 155 /* Find unique magic */ drm_getmagic() 156 if (file_priv->magic) { drm_getmagic() 157 auth->magic = file_priv->magic; drm_getmagic() 163 auth->magic = sequence++; drm_getmagic() 165 } while (drm_find_file(file_priv->master, auth->magic)); drm_getmagic() 166 file_priv->magic = auth->magic; drm_getmagic() 167 drm_add_magic(file_priv->master, file_priv, auth->magic); drm_getmagic() 170 DRM_DEBUG("%u\n", auth->magic); drm_getmagic() 176 * Authenticate with a magic. 184 * Checks if \p file_priv is associated with the magic number passed in \arg. 186 * struct drm_file::magic and struct drm_magic_entry::priv. 194 DRM_DEBUG("%u\n", auth->magic); drm_authmagic() 195 if ((file = drm_find_file(file_priv->master, auth->magic))) { drm_authmagic() 197 drm_remove_magic(file_priv->master, auth->magic); drm_authmagic() 82 drm_add_magic(struct drm_master *master, struct drm_file *priv, drm_magic_t magic) drm_add_magic() argument
|
/linux-4.1.27/tools/lib/api/fs/ |
H A D | findfs.h | 17 const char *find_mountpoint(const char *fstype, long magic, 21 int valid_mountpoint(const char *mount, long magic);
|
H A D | findfs.c | 12 int valid_mountpoint(const char *mount, long magic) valid_mountpoint() argument 18 else if ((long)st_fs.f_type != magic) valid_mountpoint() 25 const char *find_mountpoint(const char *fstype, long magic, find_mountpoint() argument 37 if (valid_mountpoint(*ptr, magic) == 0) { find_mountpoint()
|
H A D | fs.c | 33 long magic; member in struct:fs 45 .magic = SYSFS_MAGIC, 50 .magic = PROC_SUPER_MAGIC, 76 static int fs__valid_mount(const char *fs, long magic) fs__valid_mount() argument 82 else if ((long)st_fs.f_type != magic) fs__valid_mount() 94 if (fs__valid_mount(*ptr, fs->magic) == 0) { fs__check_mounts()
|
/linux-4.1.27/arch/mips/include/asm/lasat/ |
H A D | head.h | 13 u32 magic[2]; member in struct:bootloader_header
|
/linux-4.1.27/include/uapi/linux/ |
H A D | bcm933xx_hcs.h | 11 __u16 magic; member in struct:bcm_hcs
|
H A D | isdn_divertif.h | 17 /* magic value is also used to control version information */ 24 #define DIVERT_VER_ERR 0x02 /* magic/version invalid */
|
H A D | efs_fs_sb.h | 13 #include <linux/magic.h> 15 /* EFS superblock magic numbers */ 35 __be32 fs_magic; /* magic number */ 50 __u32 fs_magic; /* superblock magic number */
|
H A D | reiserfs_xattr.h | 14 __le32 h_magic; /* magic number for identification */
|
H A D | adfs_fs.h | 5 #include <linux/magic.h>
|
H A D | coda_psdev.h | 4 #include <linux/magic.h>
|
H A D | reiserfs_fs.h | 8 #include <linux/magic.h>
|
H A D | nbd.h | 51 /* These are sent over the network in the request/reply magic fields */ 62 __be32 magic; member in struct:nbd_request 74 __be32 magic; member in struct:nbd_reply
|
H A D | pg.h | 32 read and write buffers contain a single character "magic" flag. 45 char magic; /* == PG_MAGIC */ member in struct:pg_write_hdr 55 char magic; /* == PG_MAGIC */ member in struct:pg_read_hdr
|
H A D | jffs2.h | 17 #include <linux/magic.h> 23 /* Values we may expect to find in the 'magic' field */ 110 jint16_t magic; member in struct:jffs2_unknown_node 118 jint16_t magic; member in struct:jffs2_raw_dirent 142 jint16_t magic; /* A constant magic number. */ member in struct:jffs2_raw_inode 167 jint16_t magic; member in struct:jffs2_raw_xattr 183 jint16_t magic; member in struct:jffs2_raw_xref 195 jint16_t magic; member in struct:jffs2_raw_summary
|
H A D | atmioc.h | 7 * See http://icawww1.epfl.ch/linux-atm/magic.html for the complete list of 8 * "magic" ioctl numbers.
|
H A D | elf-em.h | 49 /* Bogus old v850 magic number, used by old tools. */ 51 /* Bogus old m32r magic number, used by old tools. */
|
H A D | mic_common.h | 77 * @magic: A magic value used by the card to ensure it can see the host 85 __le32 magic; member in struct:mic_bootparam 145 * for the avail index and magic for the card. 148 * @magic: A magic debug cookie. 152 __le32 magic; member in struct:_mic_vring_info 160 * avail index and magic for the card.
|
H A D | gigaset_dev.h | 19 /* The magic IOCTL value for this interface. */
|
H A D | hysdn_if.h | 19 #define EPOF_BAD_MAGIC 1001 /* bad magic in POF header */
|
H A D | nfs_fs.h | 12 #include <linux/magic.h>
|
H A D | cramfs_fs.h | 5 #include <linux/magic.h> 55 __u32 magic; /* 0x28cd3d45 - random number */ member in struct:cramfs_super
|
H A D | bcache.h | 161 __u8 magic[16]; member in struct:cache_sb 234 * The various other data structures have their own magic numbers, which are 276 __u64 magic; member in struct:jset 300 __u64 magic; member in struct:prio_set 350 __u64 magic; member in struct:bset
|
H A D | a.out.h | 47 #define N_SET_INFO(exec, magic, type, flags) \ 48 ((exec).a_info = ((magic) & 0xffff) \ 51 #define N_SET_MAGIC(exec, magic) \ 52 ((exec).a_info = (((exec).a_info & 0xffff0000) | ((magic) & 0xffff)))
|
H A D | flat.h | 28 char magic[4]; member in struct:flat_hdr
|
H A D | minix_fs.h | 5 #include <linux/magic.h>
|
H A D | qnx4_fs.h | 12 #include <linux/magic.h>
|
H A D | watchdog.h | 46 #define WDIOF_MAGICCLOSE 0x0100 /* Supports magic close char */
|
/linux-4.1.27/arch/mips/dec/prom/ |
H A D | cmdline.c | 17 void __init prom_init_cmdline(s32 argc, s32 *argv, u32 magic) prom_init_cmdline() argument 25 if (!prom_is_rex(magic)) prom_init_cmdline()
|
H A D | init.c | 44 void __init which_prom(s32 magic, s32 *prom_vec) which_prom() argument 47 * No sign of the REX PROM's magic number means we assume a non-REX which_prom() 50 if (prom_is_rex(magic)) { which_prom() 95 u32 magic = fw_arg2; prom_init() local 102 which_prom(magic, prom_vec); prom_init() 104 if (prom_is_rex(magic)) prom_init() 133 prom_meminit(magic); prom_init() 134 prom_identify_arch(magic); prom_init() 135 prom_init_cmdline(argc, argv, magic); prom_init()
|
H A D | memory.c | 87 void __init prom_meminit(u32 magic) prom_meminit() argument 89 if (!prom_is_rex(magic)) prom_meminit()
|
H A D | identify.c | 114 void __init prom_identify_arch(u32 magic) prom_identify_arch() argument 119 if (!prom_is_rex(magic)) { prom_identify_arch()
|
/linux-4.1.27/arch/arm/include/asm/ |
H A D | ucontext.h | 10 * coprocessor's saved state should start with a documented 32-bit magic 32 * Coprocessor save state. The magic values and specific 43 unsigned long magic; member in struct:crunch_sigframe 55 unsigned long magic; member in struct:iwmmxt_sigframe 66 unsigned long magic; member in struct:vfp_sigframe 73 * 8 byte for magic and size, 264 byte for ufp, 12 bytes for ufp_exc, 96 /* Something that isn't a valid magic number for any coprocessor. */
|
H A D | module.h | 26 * Add the ARM architecture version to the version magic string
|
/linux-4.1.27/block/partitions/ |
H A D | sgi.c | 33 __be32 magic; sgi_partition() local 46 magic = label->magic_mushroom; sgi_partition() 47 if(be32_to_cpu(magic) != SGI_LABEL_MAGIC) { sgi_partition() 48 /*printk("Dev %s SGI disklabel: bad magic %08x\n", sgi_partition() 49 bdevname(bdev, b), be32_to_cpu(magic));*/ sgi_partition()
|
H A D | ultrix.c | 18 s32 pt_magic; /* magic no. indicating part. info exits */ ultrix_partition() 26 #define PT_MAGIC 0x032957 /* Partition magic number */ ultrix_partition()
|
H A D | sun.c | 55 __be16 magic; /* Magic number */ sun_partition() member in struct:sun_disklabel 69 if (be16_to_cpu(label->magic) != SUN_LABEL_MAGIC) { sun_partition() 70 /* printk(KERN_INFO "Dev %s Sun disklabel: bad magic %04x\n", sun_partition() 71 bdevname(bdev, b), be16_to_cpu(label->magic)); */ sun_partition()
|
H A D | acorn.c | 68 __le32 magic; member in struct:riscix_record 90 if (rr->magic == RISCIX_MAGIC) { riscix_partition() 124 __le32 magic; member in struct:linux_part 148 while (linuxp->magic == cpu_to_le32(LINUX_NATIVE_MAGIC) || linux_partition() 149 linuxp->magic == cpu_to_le32(LINUX_SWAP_MAGIC)) { linux_partition() 487 char magic[6]; member in struct:eesox_part 537 if (memcmp(p->magic, "Eesox", 6)) adfspart_check_EESOX()
|
/linux-4.1.27/arch/mips/fw/arc/ |
H A D | init.c | 34 if (pb->magic != 0x53435241) { prom_init() 35 printk(KERN_CRIT "Aieee, bad prom vector magic %08lx\n", prom_init() 36 (unsigned long) pb->magic); prom_init()
|
/linux-4.1.27/drivers/tty/ |
H A D | tty_mutex.c | 15 if (tty->magic != TTY_MAGIC) { tty_lock() 27 if (tty->magic != TTY_MAGIC) { tty_unlock()
|
/linux-4.1.27/include/linux/ |
H A D | rwlock_types.h | 17 unsigned int magic, owner_cpu; member in struct:__anon12405 36 .magic = RWLOCK_MAGIC, \
|
H A D | mutex-debug.h | 13 , .magic = &lockname
|
H A D | via.h | 9 #define VIA_FUNCTION_PROBE 0xFF /* Special magic value to be used in code, not to be written into chip */
|
H A D | ext2_fs.h | 20 #include <linux/magic.h>
|
H A D | spinlock_types.h | 26 unsigned int magic, owner_cpu; member in struct:raw_spinlock 46 .magic = SPINLOCK_MAGIC, \
|
H A D | isdn_divertif.h | 23 { ulong if_magic; /* magic info and version */
|
/linux-4.1.27/drivers/infiniband/hw/amso1100/ |
H A D | c2_mq.c | 38 BUG_ON(q->magic != C2_MQ_MAGIC); c2_mq_alloc() 48 BUG_ON(m->magic != be32_to_cpu(~CCWR_MAGIC)); c2_mq_alloc() 49 m->magic = cpu_to_be32(CCWR_MAGIC); c2_mq_alloc() 60 BUG_ON(q->magic != C2_MQ_MAGIC); c2_mq_produce() 73 BUG_ON(q->magic != C2_MQ_MAGIC); c2_mq_consume() 83 BUG_ON(m->magic != be32_to_cpu(CCWR_MAGIC)); c2_mq_consume() 94 BUG_ON(q->magic != C2_MQ_MAGIC); c2_mq_free() 103 __raw_writel(cpu_to_be32(~CCWR_MAGIC), &m->magic); c2_mq_free() 115 BUG_ON(q->magic != C2_MQ_MAGIC); c2_mq_lconsume() 152 q->magic = C2_MQ_MAGIC; c2_mq_req_init() 169 q->magic = C2_MQ_MAGIC; c2_mq_rep_init()
|
/linux-4.1.27/drivers/staging/lustre/lnet/selftest/ |
H A D | brw_test.c | 151 brw_fill_page(struct page *pg, int pattern, __u64 magic) brw_fill_page() argument 161 if (magic == BRW_MAGIC) brw_fill_page() 162 magic += brw_inject_one_error(); brw_fill_page() 165 memcpy(addr, &magic, BRW_MSIZE); brw_fill_page() 167 memcpy(addr, &magic, BRW_MSIZE); brw_fill_page() 173 memcpy(addr + i * BRW_MSIZE, &magic, BRW_MSIZE); brw_fill_page() 181 brw_check_page(struct page *pg, int pattern, __u64 magic) brw_check_page() argument 194 if (data != magic) brw_check_page() 199 if (data != magic) brw_check_page() 208 if (data != magic) brw_check_page() 219 pg, data, magic); brw_check_page() 224 brw_fill_bulk(srpc_bulk_t *bk, int pattern, __u64 magic) brw_fill_bulk() argument 231 brw_fill_page(pg, pattern, magic); brw_fill_bulk() 236 brw_check_bulk(srpc_bulk_t *bk, int pattern, __u64 magic) brw_check_bulk() argument 243 if (brw_check_page(pg, pattern, magic) != 0) { brw_check_bulk() 314 __u64 magic = BRW_MAGIC; brw_client_done_rpc() local 332 __swab64s(&magic); brw_client_done_rpc() 349 if (brw_check_bulk(&rpc->crpc_bulk, reqst->brw_flags, magic) != 0) { brw_client_done_rpc() 383 __u64 magic = BRW_MAGIC; brw_bulk_ready() local 405 __swab64s(&magic); brw_bulk_ready() 407 if (brw_check_bulk(rpc->srpc_bulk, reqst->brw_flags, magic) != 0) { brw_bulk_ready()
|
/linux-4.1.27/drivers/net/wireless/ath/carl9170/ |
H A D | fwdesc.h | 108 u8 magic[CARL9170FW_MAGIC_SIZE]; member in struct:carl9170fw_desc_head 221 .magic = _magic, \ 228 u8 magic[CARL9170FW_MAGIC_SIZE], carl9170fw_fill_desc() 231 head->magic[0] = magic[0]; carl9170fw_fill_desc() 232 head->magic[1] = magic[1]; carl9170fw_fill_desc() 233 head->magic[2] = magic[2]; carl9170fw_fill_desc() 234 head->magic[3] = magic[3]; carl9170fw_fill_desc() 243 memcmp(desc->magic, LAST_MAGIC, CARL9170FW_MAGIC_SIZE) && \ 260 if (descid[0] == head->magic[0] && descid[1] == head->magic[1] && carl9170fw_desc_cmp() 261 descid[2] == head->magic[2] && descid[3] == head->magic[3] && carl9170fw_desc_cmp() 227 carl9170fw_fill_desc(struct carl9170fw_desc_head *head, u8 magic[CARL9170FW_MAGIC_SIZE], __le16 length, u8 min_ver, u8 cur_ver) carl9170fw_fill_desc() argument
|
/linux-4.1.27/arch/x86/include/asm/ |
H A D | vga.h | 12 * access the videoram directly without any black magic.
|
H A D | page.h | 49 * remove this Voodoo magic stuff. (i.e. once gcc3.x is deprecated)
|
H A D | vvar.h | 24 /* The kernel linker script defines its own magic to put vvars in the
|
H A D | a.out-core.h | 28 dump->magic = CMAGIC; aout_dump_thread()
|
H A D | bootparam_utils.h | 18 * private magic, so it is better to leave it unchanged.
|
/linux-4.1.27/arch/mips/boot/ |
H A D | ecoff.h | 5 unsigned short f_magic; /* magic number */ 34 short magic; /* see above */ member in struct:aouthdr 56 ((a).magic == ZMAGIC || (a).magic == LIBMAGIC ? 0 : \
|
/linux-4.1.27/arch/ia64/include/asm/ |
H A D | vga.h | 14 * videoram directly without any black magic.
|
/linux-4.1.27/arch/m32r/include/asm/ |
H A D | vga.h | 12 * access the videoram directly without any black magic.
|
/linux-4.1.27/kernel/locking/ |
H A D | spinlock_debug.c | 27 lock->magic = SPINLOCK_MAGIC; __raw_spin_lock_init() 45 lock->magic = RWLOCK_MAGIC; __rwlock_init() 61 printk(KERN_EMERG " lock: %pS, .magic: %08x, .owner: %s/%d, " spin_dump() 63 lock, lock->magic, spin_dump() 83 SPIN_BUG_ON(lock->magic != SPINLOCK_MAGIC, lock, "bad magic"); debug_spin_lock_before() 97 SPIN_BUG_ON(lock->magic != SPINLOCK_MAGIC, lock, "bad magic"); debug_spin_unlock() 203 RWLOCK_BUG_ON(lock->magic != RWLOCK_MAGIC, lock, "bad magic"); do_raw_read_lock() 222 RWLOCK_BUG_ON(lock->magic != RWLOCK_MAGIC, lock, "bad magic"); do_raw_read_unlock() 228 RWLOCK_BUG_ON(lock->magic != RWLOCK_MAGIC, lock, "bad magic"); debug_write_lock_before() 242 RWLOCK_BUG_ON(lock->magic != RWLOCK_MAGIC, lock, "bad magic"); debug_write_unlock()
|
H A D | mutex-debug.c | 33 waiter->magic = waiter; debug_mutex_lock_common() 41 DEBUG_LOCKS_WARN_ON(waiter->magic != waiter); debug_mutex_wake_waiter() 75 DEBUG_LOCKS_WARN_ON(lock->magic != lock); debug_mutex_unlock() 103 lock->magic = lock; debug_mutex_init() 117 lock->magic = NULL; mutex_destroy()
|
/linux-4.1.27/lib/ |
H A D | decompress.c | 4 * Detect the decompression method based on magic number 41 unsigned char magic[2]; member in struct:compress_format 65 pr_debug("Compressed data magic: %#.2x %#.2x\n", inbuf[0], inbuf[1]); decompress_method() 68 if (!memcmp(inbuf, cf->magic, 2)) decompress_method()
|
/linux-4.1.27/include/asm-generic/ |
H A D | vga.h | 12 * directly without any black magic.
|
/linux-4.1.27/fs/xfs/libxfs/ |
H A D | xfs_da_format.c | 459 to->magic = be16_to_cpu(from->hdr.info.magic); xfs_dir2_leaf_hdr_from_disk() 463 ASSERT(to->magic == XFS_DIR2_LEAF1_MAGIC || xfs_dir2_leaf_hdr_from_disk() 464 to->magic == XFS_DIR2_LEAFN_MAGIC); xfs_dir2_leaf_hdr_from_disk() 472 ASSERT(from->magic == XFS_DIR2_LEAF1_MAGIC || xfs_dir2_leaf_hdr_to_disk() 473 from->magic == XFS_DIR2_LEAFN_MAGIC); xfs_dir2_leaf_hdr_to_disk() 477 to->hdr.info.magic = cpu_to_be16(from->magic); xfs_dir2_leaf_hdr_to_disk() 491 to->magic = be16_to_cpu(hdr3->info.hdr.magic); xfs_dir3_leaf_hdr_from_disk() 495 ASSERT(to->magic == XFS_DIR3_LEAF1_MAGIC || xfs_dir3_leaf_hdr_from_disk() 496 to->magic == XFS_DIR3_LEAFN_MAGIC); xfs_dir3_leaf_hdr_from_disk() 506 ASSERT(from->magic == XFS_DIR3_LEAF1_MAGIC || xfs_dir3_leaf_hdr_to_disk() 507 from->magic == XFS_DIR3_LEAFN_MAGIC); xfs_dir3_leaf_hdr_to_disk() 511 hdr3->info.hdr.magic = cpu_to_be16(from->magic); xfs_dir3_leaf_hdr_to_disk() 537 ASSERT(from->hdr.info.magic == cpu_to_be16(XFS_DA_NODE_MAGIC)); xfs_da2_node_hdr_from_disk() 540 to->magic = be16_to_cpu(from->hdr.info.magic); xfs_da2_node_hdr_from_disk() 550 ASSERT(from->magic == XFS_DA_NODE_MAGIC); xfs_da2_node_hdr_to_disk() 553 to->hdr.info.magic = cpu_to_be16(from->magic); xfs_da2_node_hdr_to_disk() 565 ASSERT(from->hdr.info.magic == cpu_to_be16(XFS_DA3_NODE_MAGIC)); xfs_da3_node_hdr_from_disk() 568 to->magic = be16_to_cpu(hdr3->info.hdr.magic); xfs_da3_node_hdr_from_disk() 580 ASSERT(from->magic == XFS_DA3_NODE_MAGIC); xfs_da3_node_hdr_to_disk() 583 hdr3->info.hdr.magic = cpu_to_be16(from->magic); xfs_da3_node_hdr_to_disk() 661 to->magic = be32_to_cpu(from->hdr.magic); xfs_dir2_free_hdr_from_disk() 665 ASSERT(to->magic == XFS_DIR2_FREE_MAGIC); xfs_dir2_free_hdr_from_disk() 673 ASSERT(from->magic == XFS_DIR2_FREE_MAGIC); xfs_dir2_free_hdr_to_disk() 675 to->hdr.magic = cpu_to_be32(from->magic); xfs_dir2_free_hdr_to_disk() 688 to->magic = be32_to_cpu(hdr3->hdr.magic); xfs_dir3_free_hdr_from_disk() 693 ASSERT(to->magic == XFS_DIR3_FREE_MAGIC); xfs_dir3_free_hdr_from_disk() 703 ASSERT(from->magic == XFS_DIR3_FREE_MAGIC); xfs_dir3_free_hdr_to_disk() 705 hdr3->hdr.magic = cpu_to_be32(from->magic); xfs_dir3_free_hdr_to_disk()
|
H A D | xfs_dir2_data.c | 78 switch (hdr->magic) { __xfs_dir3_data_check() 173 if (hdr->magic == cpu_to_be32(XFS_DIR2_BLOCK_MAGIC) || __xfs_dir3_data_check() 174 hdr->magic == cpu_to_be32(XFS_DIR3_BLOCK_MAGIC)) { __xfs_dir3_data_check() 195 if (hdr->magic == cpu_to_be32(XFS_DIR2_BLOCK_MAGIC) || __xfs_dir3_data_check() 196 hdr->magic == cpu_to_be32(XFS_DIR3_BLOCK_MAGIC)) { __xfs_dir3_data_check() 221 if (hdr3->magic != cpu_to_be32(XFS_DIR3_DATA_MAGIC)) xfs_dir3_data_verify() 228 if (hdr3->magic != cpu_to_be32(XFS_DIR2_DATA_MAGIC)) xfs_dir3_data_verify() 247 switch (hdr->magic) { xfs_dir3_data_reada_verify() 367 ASSERT(hdr->magic == cpu_to_be32(XFS_DIR2_DATA_MAGIC) || xfs_dir2_data_freefind() 368 hdr->magic == cpu_to_be32(XFS_DIR3_DATA_MAGIC) || xfs_dir2_data_freefind() 369 hdr->magic == cpu_to_be32(XFS_DIR2_BLOCK_MAGIC) || xfs_dir2_data_freefind() 370 hdr->magic == cpu_to_be32(XFS_DIR3_BLOCK_MAGIC)); xfs_dir2_data_freefind() 426 ASSERT(hdr->magic == cpu_to_be32(XFS_DIR2_DATA_MAGIC) || xfs_dir2_data_freeinsert() 427 hdr->magic == cpu_to_be32(XFS_DIR2_BLOCK_MAGIC) || xfs_dir2_data_freeinsert() 428 hdr->magic == cpu_to_be32(XFS_DIR3_DATA_MAGIC) || xfs_dir2_data_freeinsert() 429 hdr->magic == cpu_to_be32(XFS_DIR3_BLOCK_MAGIC)); xfs_dir2_data_freeinsert() 469 ASSERT(hdr->magic == cpu_to_be32(XFS_DIR2_DATA_MAGIC) || xfs_dir2_data_freeremove() 470 hdr->magic == cpu_to_be32(XFS_DIR2_BLOCK_MAGIC) || xfs_dir2_data_freeremove() 471 hdr->magic == cpu_to_be32(XFS_DIR3_DATA_MAGIC) || xfs_dir2_data_freeremove() 472 hdr->magic == cpu_to_be32(XFS_DIR3_BLOCK_MAGIC)); xfs_dir2_data_freeremove() 516 ASSERT(hdr->magic == cpu_to_be32(XFS_DIR2_DATA_MAGIC) || xfs_dir2_data_freescan() 517 hdr->magic == cpu_to_be32(XFS_DIR3_DATA_MAGIC) || xfs_dir2_data_freescan() 518 hdr->magic == cpu_to_be32(XFS_DIR2_BLOCK_MAGIC) || xfs_dir2_data_freescan() 519 hdr->magic == cpu_to_be32(XFS_DIR3_BLOCK_MAGIC)); xfs_dir2_data_freescan() 531 if (hdr->magic == cpu_to_be32(XFS_DIR2_BLOCK_MAGIC) || xfs_dir2_data_freescan() 532 hdr->magic == cpu_to_be32(XFS_DIR3_BLOCK_MAGIC)) { xfs_dir2_data_freescan() 605 hdr3->magic = cpu_to_be32(XFS_DIR3_DATA_MAGIC); xfs_dir3_data_init() 611 hdr->magic = cpu_to_be32(XFS_DIR2_DATA_MAGIC); xfs_dir3_data_init() 650 ASSERT(hdr->magic == cpu_to_be32(XFS_DIR2_DATA_MAGIC) || xfs_dir2_data_log_entry() 651 hdr->magic == cpu_to_be32(XFS_DIR3_DATA_MAGIC) || xfs_dir2_data_log_entry() 652 hdr->magic == cpu_to_be32(XFS_DIR2_BLOCK_MAGIC) || xfs_dir2_data_log_entry() 653 hdr->magic == cpu_to_be32(XFS_DIR3_BLOCK_MAGIC)); xfs_dir2_data_log_entry() 671 ASSERT(hdr->magic == cpu_to_be32(XFS_DIR2_DATA_MAGIC) || xfs_dir2_data_log_header() 672 hdr->magic == cpu_to_be32(XFS_DIR3_DATA_MAGIC) || xfs_dir2_data_log_header() 673 hdr->magic == cpu_to_be32(XFS_DIR2_BLOCK_MAGIC) || xfs_dir2_data_log_header() 674 hdr->magic == cpu_to_be32(XFS_DIR3_BLOCK_MAGIC)); xfs_dir2_data_log_header() 692 ASSERT(hdr->magic == cpu_to_be32(XFS_DIR2_DATA_MAGIC) || xfs_dir2_data_log_unused() 693 hdr->magic == cpu_to_be32(XFS_DIR3_DATA_MAGIC) || xfs_dir2_data_log_unused() 694 hdr->magic == cpu_to_be32(XFS_DIR2_BLOCK_MAGIC) || xfs_dir2_data_log_unused() 695 hdr->magic == cpu_to_be32(XFS_DIR3_BLOCK_MAGIC)); xfs_dir2_data_log_unused() 739 if (hdr->magic == cpu_to_be32(XFS_DIR2_DATA_MAGIC) || xfs_dir2_data_make_free() 740 hdr->magic == cpu_to_be32(XFS_DIR3_DATA_MAGIC)) xfs_dir2_data_make_free() 745 ASSERT(hdr->magic == cpu_to_be32(XFS_DIR2_BLOCK_MAGIC) || xfs_dir2_data_make_free() 746 hdr->magic == cpu_to_be32(XFS_DIR3_BLOCK_MAGIC)); xfs_dir2_data_make_free() 922 ASSERT(hdr->magic == cpu_to_be32(XFS_DIR2_DATA_MAGIC) || xfs_dir2_data_use_free() 923 hdr->magic == cpu_to_be32(XFS_DIR3_DATA_MAGIC) || xfs_dir2_data_use_free() 924 hdr->magic == cpu_to_be32(XFS_DIR2_BLOCK_MAGIC) || xfs_dir2_data_use_free() 925 hdr->magic == cpu_to_be32(XFS_DIR3_BLOCK_MAGIC)); xfs_dir2_data_use_free()
|
H A D | xfs_da_btree.c | 146 if (ichdr.magic != XFS_DA3_NODE_MAGIC) xfs_da3_node_verify() 154 if (ichdr.magic != XFS_DA_NODE_MAGIC) xfs_da3_node_verify() 212 switch (be16_to_cpu(info->magic)) { xfs_da3_node_read_verify() 265 switch (be16_to_cpu(info->magic)) { xfs_da3_node_read() 324 ichdr.magic = XFS_DA3_NODE_MAGIC; xfs_da3_node_create() 329 ichdr.magic = XFS_DA_NODE_MAGIC; xfs_da3_node_create() 369 ASSERT(state->path.blk[max].magic == XFS_ATTR_LEAF_MAGIC || xfs_da3_split() 370 state->path.blk[max].magic == XFS_DIR2_LEAFN_MAGIC); xfs_da3_split() 383 switch (oldblk->magic) { xfs_da3_split() 459 * Note: the magic numbers and sibling pointers are in the same xfs_da3_split() 539 if (oldroot->hdr.info.magic == cpu_to_be16(XFS_DA_NODE_MAGIC) || xfs_da3_root_split() 540 oldroot->hdr.info.magic == cpu_to_be16(XFS_DA3_NODE_MAGIC)) { xfs_da3_root_split() 561 ASSERT(leafhdr.magic == XFS_DIR2_LEAFN_MAGIC || xfs_da3_root_split() 562 leafhdr.magic == XFS_DIR3_LEAFN_MAGIC); xfs_da3_root_split() 580 if (oldroot->hdr.info.magic == cpu_to_be16(XFS_DA3_NODE_MAGIC) || xfs_da3_root_split() 581 oldroot->hdr.info.magic == cpu_to_be16(XFS_DIR3_LEAFN_MAGIC)) { xfs_da3_root_split() 613 if (oldroot->hdr.info.magic == cpu_to_be16(XFS_DIR2_LEAFN_MAGIC) || xfs_da3_root_split() 614 oldroot->hdr.info.magic == cpu_to_be16(XFS_DIR3_LEAFN_MAGIC)) { xfs_da3_root_split() 676 newblk->magic = XFS_DA_NODE_MAGIC; xfs_da3_node_split() 942 ASSERT(state->path.blk[0].magic == XFS_DA_NODE_MAGIC); xfs_da3_join() 943 ASSERT(drop_blk->magic == XFS_ATTR_LEAF_MAGIC || xfs_da3_join() 944 drop_blk->magic == XFS_DIR2_LEAFN_MAGIC); xfs_da3_join() 958 switch (drop_blk->magic) { xfs_da3_join() 1016 __be16 magic = blkinfo->magic; xfs_da_blkinfo_onlychild_validate() local 1019 ASSERT(magic == cpu_to_be16(XFS_DIR2_LEAFN_MAGIC) || xfs_da_blkinfo_onlychild_validate() 1020 magic == cpu_to_be16(XFS_DIR3_LEAFN_MAGIC) || xfs_da_blkinfo_onlychild_validate() 1021 magic == cpu_to_be16(XFS_ATTR_LEAF_MAGIC) || xfs_da_blkinfo_onlychild_validate() 1022 magic == cpu_to_be16(XFS_ATTR3_LEAF_MAGIC)); xfs_da_blkinfo_onlychild_validate() 1024 ASSERT(magic == cpu_to_be16(XFS_DA_NODE_MAGIC) || xfs_da_blkinfo_onlychild_validate() 1025 magic == cpu_to_be16(XFS_DA3_NODE_MAGIC)); xfs_da_blkinfo_onlychild_validate() 1054 ASSERT(root_blk->magic == XFS_DA_NODE_MAGIC); xfs_da3_root_join() 1091 if (oldroothdr.magic == XFS_DA3_NODE_MAGIC) { xfs_da3_root_join() 1273 switch (blk->magic) { xfs_da3_fixhashpath() 1488 blk->magic = be16_to_cpu(curr->magic); xfs_da3_node_lookup_int() 1490 if (blk->magic == XFS_ATTR_LEAF_MAGIC || xfs_da3_node_lookup_int() 1491 blk->magic == XFS_ATTR3_LEAF_MAGIC) { xfs_da3_node_lookup_int() 1492 blk->magic = XFS_ATTR_LEAF_MAGIC; xfs_da3_node_lookup_int() 1497 if (blk->magic == XFS_DIR2_LEAFN_MAGIC || xfs_da3_node_lookup_int() 1498 blk->magic == XFS_DIR3_LEAFN_MAGIC) { xfs_da3_node_lookup_int() 1499 blk->magic = XFS_DIR2_LEAFN_MAGIC; xfs_da3_node_lookup_int() 1505 blk->magic = XFS_DA_NODE_MAGIC; xfs_da3_node_lookup_int() 1569 if (blk->magic == XFS_DIR2_LEAFN_MAGIC) { xfs_da3_node_lookup_int() 1572 } else if (blk->magic == XFS_ATTR_LEAF_MAGIC) { xfs_da3_node_lookup_int() 1588 } else if (blk->magic == XFS_ATTR_LEAF_MAGIC) { xfs_da3_node_lookup_int() 1660 ASSERT(old_blk->magic == XFS_DA_NODE_MAGIC || xfs_da3_blk_link() 1661 old_blk->magic == XFS_DIR2_LEAFN_MAGIC || xfs_da3_blk_link() 1662 old_blk->magic == XFS_ATTR_LEAF_MAGIC); xfs_da3_blk_link() 1664 switch (old_blk->magic) { xfs_da3_blk_link() 1694 ASSERT(tmp_info->magic == old_info->magic); xfs_da3_blk_link() 1715 ASSERT(tmp_info->magic == old_info->magic); xfs_da3_blk_link() 1751 ASSERT(save_blk->magic == XFS_DA_NODE_MAGIC || xfs_da3_blk_unlink() 1752 save_blk->magic == XFS_DIR2_LEAFN_MAGIC || xfs_da3_blk_unlink() 1753 save_blk->magic == XFS_ATTR_LEAF_MAGIC); xfs_da3_blk_unlink() 1754 ASSERT(save_blk->magic == drop_blk->magic); xfs_da3_blk_unlink() 1774 ASSERT(tmp_info->magic == save_info->magic); xfs_da3_blk_unlink() 1791 ASSERT(tmp_info->magic == save_info->magic); xfs_da3_blk_unlink() 1884 ASSERT(info->magic == cpu_to_be16(XFS_DA_NODE_MAGIC) || xfs_da3_path_shift() 1885 info->magic == cpu_to_be16(XFS_DA3_NODE_MAGIC) || xfs_da3_path_shift() 1886 info->magic == cpu_to_be16(XFS_DIR2_LEAFN_MAGIC) || xfs_da3_path_shift() 1887 info->magic == cpu_to_be16(XFS_DIR3_LEAFN_MAGIC) || xfs_da3_path_shift() 1888 info->magic == cpu_to_be16(XFS_ATTR_LEAF_MAGIC) || xfs_da3_path_shift() 1889 info->magic == cpu_to_be16(XFS_ATTR3_LEAF_MAGIC)); xfs_da3_path_shift() 1893 * Note: we flatten the magic number to a single type so we xfs_da3_path_shift() 1896 switch (be16_to_cpu(info->magic)) { xfs_da3_path_shift() 1899 blk->magic = XFS_DA_NODE_MAGIC; xfs_da3_path_shift() 1912 blk->magic = XFS_ATTR_LEAF_MAGIC; xfs_da3_path_shift() 1919 blk->magic = XFS_DIR2_LEAFN_MAGIC; xfs_da3_path_shift() 2175 if (dead_info->magic == cpu_to_be16(XFS_DIR2_LEAFN_MAGIC) || xfs_da3_swap_lastblock() 2176 dead_info->magic == cpu_to_be16(XFS_DIR3_LEAFN_MAGIC)) { xfs_da3_swap_lastblock() 2205 sib_info->magic != dead_info->magic)) { xfs_da3_swap_lastblock() 2227 sib_info->magic != dead_info->magic)) { xfs_da3_swap_lastblock()
|
H A D | xfs_dir2_leaf.c | 68 if (leafhdr.magic == XFS_DIR3_LEAF1_MAGIC) { xfs_dir3_leaf1_check() 72 } else if (leafhdr.magic != XFS_DIR2_LEAF1_MAGIC) xfs_dir3_leaf1_check() 119 if ((hdr->magic == XFS_DIR2_LEAF1_MAGIC || xfs_dir3_leaf_check_int() 120 hdr->magic == XFS_DIR3_LEAF1_MAGIC) && xfs_dir3_leaf_check_int() 140 * We verify the magic numbers before decoding the leaf header so that on debug 142 * to incorrect magic numbers. 147 __uint16_t magic) xfs_dir3_leaf_verify() 152 ASSERT(magic == XFS_DIR2_LEAF1_MAGIC || magic == XFS_DIR2_LEAFN_MAGIC); xfs_dir3_leaf_verify() 158 magic3 = (magic == XFS_DIR2_LEAF1_MAGIC) ? XFS_DIR3_LEAF1_MAGIC xfs_dir3_leaf_verify() 161 if (leaf3->info.hdr.magic != cpu_to_be16(magic3)) xfs_dir3_leaf_verify() 168 if (leaf->hdr.info.magic != cpu_to_be16(magic)) xfs_dir3_leaf_verify() 178 __uint16_t magic) __read_verify() 185 else if (!xfs_dir3_leaf_verify(bp, magic)) __read_verify() 195 __uint16_t magic) __write_verify() 201 if (!xfs_dir3_leaf_verify(bp, magic)) { __write_verify() 289 * Initialize a new leaf block, leaf1 or leafn magic accepted. 308 leaf3->info.hdr.magic = (type == XFS_DIR2_LEAF1_MAGIC) xfs_dir3_leaf_init() 316 leaf->hdr.info.magic = cpu_to_be16(type); xfs_dir3_leaf_init() 341 __uint16_t magic) xfs_dir3_leaf_get_buf() 349 ASSERT(magic == XFS_DIR2_LEAF1_MAGIC || magic == XFS_DIR2_LEAFN_MAGIC); xfs_dir3_leaf_get_buf() 358 xfs_dir3_leaf_init(mp, tp, bp, dp->i_ino, magic); xfs_dir3_leaf_get_buf() 360 if (magic == XFS_DIR2_LEAF1_MAGIC) xfs_dir3_leaf_get_buf() 452 if (hdr->magic == cpu_to_be32(XFS_DIR2_BLOCK_MAGIC)) xfs_dir2_block_to_leaf() 453 hdr->magic = cpu_to_be32(XFS_DIR2_DATA_MAGIC); xfs_dir2_block_to_leaf() 455 hdr->magic = cpu_to_be32(XFS_DIR3_DATA_MAGIC); xfs_dir2_block_to_leaf() 1063 ASSERT(leaf->hdr.info.magic == cpu_to_be16(XFS_DIR2_LEAF1_MAGIC) || xfs_dir3_leaf_log_bests() 1064 leaf->hdr.info.magic == cpu_to_be16(XFS_DIR3_LEAF1_MAGIC)); xfs_dir3_leaf_log_bests() 1089 ASSERT(leaf->hdr.info.magic == cpu_to_be16(XFS_DIR2_LEAF1_MAGIC) || xfs_dir3_leaf_log_ents() 1090 leaf->hdr.info.magic == cpu_to_be16(XFS_DIR3_LEAF1_MAGIC) || xfs_dir3_leaf_log_ents() 1091 leaf->hdr.info.magic == cpu_to_be16(XFS_DIR2_LEAFN_MAGIC) || xfs_dir3_leaf_log_ents() 1092 leaf->hdr.info.magic == cpu_to_be16(XFS_DIR3_LEAFN_MAGIC)); xfs_dir3_leaf_log_ents() 1112 ASSERT(leaf->hdr.info.magic == cpu_to_be16(XFS_DIR2_LEAF1_MAGIC) || xfs_dir3_leaf_log_header() 1113 leaf->hdr.info.magic == cpu_to_be16(XFS_DIR3_LEAF1_MAGIC) || xfs_dir3_leaf_log_header() 1114 leaf->hdr.info.magic == cpu_to_be16(XFS_DIR2_LEAFN_MAGIC) || xfs_dir3_leaf_log_header() 1115 leaf->hdr.info.magic == cpu_to_be16(XFS_DIR3_LEAFN_MAGIC)); xfs_dir3_leaf_log_header() 1133 ASSERT(leaf->hdr.info.magic == cpu_to_be16(XFS_DIR2_LEAF1_MAGIC) || xfs_dir3_leaf_log_tail() 1134 leaf->hdr.info.magic == cpu_to_be16(XFS_DIR3_LEAF1_MAGIC) || xfs_dir3_leaf_log_tail() 1135 leaf->hdr.info.magic == cpu_to_be16(XFS_DIR2_LEAFN_MAGIC) || xfs_dir3_leaf_log_tail() 1136 leaf->hdr.info.magic == cpu_to_be16(XFS_DIR3_LEAFN_MAGIC)); xfs_dir3_leaf_log_tail() 1620 ASSERT(hdr->magic == cpu_to_be32(XFS_DIR2_DATA_MAGIC) || xfs_dir2_leaf_trim_data() 1621 hdr->magic == cpu_to_be32(XFS_DIR3_DATA_MAGIC)); xfs_dir2_leaf_trim_data() 1656 if (hdr->magic == XFS_DIR2_LEAF1_MAGIC || xfs_dir3_leaf_size() 1657 hdr->magic == XFS_DIR2_LEAFN_MAGIC) xfs_dir3_leaf_size() 1741 ASSERT(leafhdr.magic == XFS_DIR2_LEAFN_MAGIC || xfs_dir2_node_to_leaf() 1742 leafhdr.magic == XFS_DIR3_LEAFN_MAGIC); xfs_dir2_node_to_leaf() 1772 leafhdr.magic = (leafhdr.magic == XFS_DIR2_LEAFN_MAGIC) xfs_dir2_node_to_leaf() 145 xfs_dir3_leaf_verify( struct xfs_buf *bp, __uint16_t magic) xfs_dir3_leaf_verify() argument 176 __read_verify( struct xfs_buf *bp, __uint16_t magic) __read_verify() argument 193 __write_verify( struct xfs_buf *bp, __uint16_t magic) __write_verify() argument 337 xfs_dir3_leaf_get_buf( xfs_da_args_t *args, xfs_dir2_db_t bno, struct xfs_buf **bpp, __uint16_t magic) xfs_dir3_leaf_get_buf() argument
|
H A D | xfs_da_format.h | 28 #define XFS_DA_NODE_MAGIC 0xfebe /* magic number: non-leaf blocks */ 29 #define XFS_ATTR_LEAF_MAGIC 0xfbee /* magic number: attribute leaf blks */ 30 #define XFS_DIR2_LEAF1_MAGIC 0xd2f1 /* magic number: v2 dirlf single blks */ 31 #define XFS_DIR2_LEAFN_MAGIC 0xd2ff /* magic number: v2 dirlf multi blks */ 36 __be16 magic; /* validity check on block */ member in struct:xfs_da_blkinfo 46 * magic numbers without modification for both v2 and v3 nodes. 48 #define XFS_DA3_NODE_MAGIC 0x3ebe /* magic number: non-leaf blocks */ 49 #define XFS_ATTR3_LEAF_MAGIC 0x3bee /* magic number: attribute leaf blks */ 50 #define XFS_DIR3_LEAF1_MAGIC 0x3df1 /* magic number: v2 dirlf single blks */ 51 #define XFS_DIR3_LEAFN_MAGIC 0x3dff /* magic number: v2 dirlf multi blks */ 116 __uint16_t magic; member in struct:xfs_da3_icnode_hdr 152 * Where it is possible, the code decides what to do based on the magic numbers 163 * - new magic numbers to be able to detect the v2/v3 types on the fly. 344 __be32 magic; /* XFS_DIR2_DATA_MAGIC or */ member in struct:xfs_dir2_data_hdr 352 * The magic number must be the first entry to align with all the dir2 353 * structures so we determine how to decode them just by the magic number. 356 __be32 magic; /* magic number */ member in struct:xfs_dir3_blk_hdr 437 * for single-leaf (magic = XFS_DIR2_LEAF1_MAGIC) blocks only, but not present 439 * (magic = XFS_DIR2_LEAFN_MAGIC). 471 __uint16_t magic; member in struct:xfs_dir3_icleaf_hdr 526 __be32 magic; /* XFS_DIR2_FREE_MAGIC */ member in struct:xfs_dir2_free_hdr 560 __uint32_t magic; member in struct:xfs_dir3_icfree_hdr 732 __uint16_t magic; member in struct:xfs_attr3_icleaf_hdr 791 if (leafp->hdr.info.magic == cpu_to_be16(XFS_ATTR3_LEAF_MAGIC)) xfs_attr3_leaf_hdr_size() 799 if (leafp->hdr.info.magic == cpu_to_be16(XFS_ATTR3_LEAF_MAGIC)) xfs_attr3_leaf_entryp()
|
/linux-4.1.27/drivers/mcb/ |
H A D | mcb-parse.c | 107 header->magic = le16_to_cpu(header->magic); chameleon_parse_cells() 108 if (header->magic != CHAMELEONV2_MAGIC) { chameleon_parse_cells() 110 header->magic); chameleon_parse_cells() 123 pr_debug("header->magic = 0x%x\n", header->magic); chameleon_parse_cells()
|
H A D | mcb-internal.h | 34 * @magic: Chameleon header magic number (0xabce for version 2) 43 u16 magic; member in struct:chameleon_fpga_header
|
/linux-4.1.27/drivers/staging/dgnc/ |
H A D | dgnc_sysfs.c | 99 if (!bd || bd->magic != DGNC_BOARD_MAGIC) \ 378 if (!un || un->magic != DGNC_UNIT_MAGIC) dgnc_tty_state_show() 381 if (!ch || ch->magic != DGNC_CHANNEL_MAGIC) dgnc_tty_state_show() 384 if (!bd || bd->magic != DGNC_BOARD_MAGIC) dgnc_tty_state_show() 403 if (!un || un->magic != DGNC_UNIT_MAGIC) dgnc_tty_baud_show() 406 if (!ch || ch->magic != DGNC_CHANNEL_MAGIC) dgnc_tty_baud_show() 409 if (!bd || bd->magic != DGNC_BOARD_MAGIC) dgnc_tty_baud_show() 428 if (!un || un->magic != DGNC_UNIT_MAGIC) dgnc_tty_msignals_show() 431 if (!ch || ch->magic != DGNC_CHANNEL_MAGIC) dgnc_tty_msignals_show() 434 if (!bd || bd->magic != DGNC_BOARD_MAGIC) dgnc_tty_msignals_show() 462 if (!un || un->magic != DGNC_UNIT_MAGIC) dgnc_tty_iflag_show() 465 if (!ch || ch->magic != DGNC_CHANNEL_MAGIC) dgnc_tty_iflag_show() 468 if (!bd || bd->magic != DGNC_BOARD_MAGIC) dgnc_tty_iflag_show() 487 if (!un || un->magic != DGNC_UNIT_MAGIC) dgnc_tty_cflag_show() 490 if (!ch || ch->magic != DGNC_CHANNEL_MAGIC) dgnc_tty_cflag_show() 493 if (!bd || bd->magic != DGNC_BOARD_MAGIC) dgnc_tty_cflag_show() 512 if (!un || un->magic != DGNC_UNIT_MAGIC) dgnc_tty_oflag_show() 515 if (!ch || ch->magic != DGNC_CHANNEL_MAGIC) dgnc_tty_oflag_show() 518 if (!bd || bd->magic != DGNC_BOARD_MAGIC) dgnc_tty_oflag_show() 537 if (!un || un->magic != DGNC_UNIT_MAGIC) dgnc_tty_lflag_show() 540 if (!ch || ch->magic != DGNC_CHANNEL_MAGIC) dgnc_tty_lflag_show() 543 if (!bd || bd->magic != DGNC_BOARD_MAGIC) dgnc_tty_lflag_show() 562 if (!un || un->magic != DGNC_UNIT_MAGIC) dgnc_tty_digi_flag_show() 565 if (!ch || ch->magic != DGNC_CHANNEL_MAGIC) dgnc_tty_digi_flag_show() 568 if (!bd || bd->magic != DGNC_BOARD_MAGIC) dgnc_tty_digi_flag_show() 587 if (!un || un->magic != DGNC_UNIT_MAGIC) dgnc_tty_rxcount_show() 590 if (!ch || ch->magic != DGNC_CHANNEL_MAGIC) dgnc_tty_rxcount_show() 593 if (!bd || bd->magic != DGNC_BOARD_MAGIC) dgnc_tty_rxcount_show() 612 if (!un || un->magic != DGNC_UNIT_MAGIC) dgnc_tty_txcount_show() 615 if (!ch || ch->magic != DGNC_CHANNEL_MAGIC) dgnc_tty_txcount_show() 618 if (!bd || bd->magic != DGNC_BOARD_MAGIC) dgnc_tty_txcount_show() 637 if (!un || un->magic != DGNC_UNIT_MAGIC) dgnc_tty_name_show() 640 if (!ch || ch->magic != DGNC_CHANNEL_MAGIC) dgnc_tty_name_show() 643 if (!bd || bd->magic != DGNC_BOARD_MAGIC) dgnc_tty_name_show()
|
H A D | dgnc_tty.c | 181 brd->SerialDriver.magic = TTY_DRIVER_MAGIC; dgnc_tty_register() 231 brd->PrintDriver.magic = TTY_DRIVER_MAGIC; dgnc_tty_register() 333 /* Store all our magic numbers */ dgnc_tty_init() 334 ch->magic = DGNC_CHANNEL_MAGIC; dgnc_tty_init() 335 ch->ch_tun.magic = DGNC_UNIT_MAGIC; dgnc_tty_init() 340 ch->ch_pun.magic = DGNC_UNIT_MAGIC; dgnc_tty_init() 448 if (!ch || ch->magic != DGNC_CHANNEL_MAGIC) dgnc_wmove() 506 if (!ch || ch->magic != DGNC_CHANNEL_MAGIC) dgnc_input() 512 if (!bd || bd->magic != DGNC_BOARD_MAGIC) dgnc_input() 533 if (!tp || (tp->magic != TTY_MAGIC) || !(ch->ch_tun.un_flags & UN_ISOPEN) || dgnc_input() 675 if (!ch || ch->magic != DGNC_CHANNEL_MAGIC) dgnc_carrier() 680 if (!bd || bd->magic != DGNC_BOARD_MAGIC) dgnc_carrier() 913 if (!ch || ch->magic != DGNC_CHANNEL_MAGIC) dgnc_wakeup_writes() 1221 if (!tty || tty->magic != TTY_MAGIC || !file || !ch || ch->magic != DGNC_CHANNEL_MAGIC) dgnc_block_til_ready() 1225 if (!un || un->magic != DGNC_UNIT_MAGIC) dgnc_block_til_ready() 1347 if (!tty || tty->magic != TTY_MAGIC) dgnc_tty_hangup() 1351 if (!un || un->magic != DGNC_UNIT_MAGIC) dgnc_tty_hangup() 1373 if (!tty || tty->magic != TTY_MAGIC) dgnc_tty_close() 1377 if (!un || un->magic != DGNC_UNIT_MAGIC) dgnc_tty_close() 1381 if (!ch || ch->magic != DGNC_CHANNEL_MAGIC) dgnc_tty_close() 1385 if (!bd || bd->magic != DGNC_BOARD_MAGIC) dgnc_tty_close() 1528 if (!un || un->magic != DGNC_UNIT_MAGIC) dgnc_tty_chars_in_buffer() 1532 if (!ch || ch->magic != DGNC_CHANNEL_MAGIC) dgnc_tty_chars_in_buffer() 1573 if (!un || un->magic != DGNC_UNIT_MAGIC) dgnc_maxcps_room() 1577 if (!ch || ch->magic != DGNC_CHANNEL_MAGIC) dgnc_maxcps_room() 1631 if (!un || un->magic != DGNC_UNIT_MAGIC) dgnc_tty_write_room() 1635 if (!ch || ch->magic != DGNC_CHANNEL_MAGIC) dgnc_tty_write_room() 1694 * In here exists all the Transparent Print magic as well. 1714 if (!un || un->magic != DGNC_UNIT_MAGIC) dgnc_tty_write() 1718 if (!ch || ch->magic != DGNC_CHANNEL_MAGIC) dgnc_tty_write() 1892 if (!tty || tty->magic != TTY_MAGIC) dgnc_tty_tiocmget() 1896 if (!un || un->magic != DGNC_UNIT_MAGIC) dgnc_tty_tiocmget() 1900 if (!ch || ch->magic != DGNC_CHANNEL_MAGIC) dgnc_tty_tiocmget() 1943 if (!tty || tty->magic != TTY_MAGIC) dgnc_tty_tiocmset() 1947 if (!un || un->magic != DGNC_UNIT_MAGIC) dgnc_tty_tiocmset() 1951 if (!ch || ch->magic != DGNC_CHANNEL_MAGIC) dgnc_tty_tiocmset() 1955 if (!bd || bd->magic != DGNC_BOARD_MAGIC) dgnc_tty_tiocmset() 1993 if (!tty || tty->magic != TTY_MAGIC) dgnc_tty_send_break() 1997 if (!un || un->magic != DGNC_UNIT_MAGIC) dgnc_tty_send_break() 2001 if (!ch || ch->magic != DGNC_CHANNEL_MAGIC) dgnc_tty_send_break() 2005 if (!bd || bd->magic != DGNC_BOARD_MAGIC) dgnc_tty_send_break() 2042 if (!tty || tty->magic != TTY_MAGIC) dgnc_tty_wait_until_sent() 2046 if (!un || un->magic != DGNC_UNIT_MAGIC) dgnc_tty_wait_until_sent() 2050 if (!ch || ch->magic != DGNC_CHANNEL_MAGIC) dgnc_tty_wait_until_sent() 2054 if (!bd || bd->magic != DGNC_BOARD_MAGIC) dgnc_tty_wait_until_sent() 2073 if (!tty || tty->magic != TTY_MAGIC) dgnc_tty_send_xchar() 2077 if (!un || un->magic != DGNC_UNIT_MAGIC) dgnc_tty_send_xchar() 2081 if (!ch || ch->magic != DGNC_CHANNEL_MAGIC) dgnc_tty_send_xchar() 2085 if (!bd || bd->magic != DGNC_BOARD_MAGIC) dgnc_tty_send_xchar() 2109 if (!ch || ch->magic != DGNC_CHANNEL_MAGIC) dgnc_get_mstat() 2145 if (!ch || ch->magic != DGNC_CHANNEL_MAGIC) dgnc_get_modem_info() 2171 if (!tty || tty->magic != TTY_MAGIC) dgnc_set_modem_info() 2175 if (!un || un->magic != DGNC_UNIT_MAGIC) dgnc_set_modem_info() 2179 if (!ch || ch->magic != DGNC_CHANNEL_MAGIC) dgnc_set_modem_info() 2183 if (!bd || bd->magic != DGNC_BOARD_MAGIC) dgnc_set_modem_info() 2255 if (!tty || tty->magic != TTY_MAGIC) dgnc_tty_digigeta() 2259 if (!un || un->magic != DGNC_UNIT_MAGIC) dgnc_tty_digigeta() 2263 if (!ch || ch->magic != DGNC_CHANNEL_MAGIC) dgnc_tty_digigeta() 2295 if (!tty || tty->magic != TTY_MAGIC) dgnc_tty_digiseta() 2299 if (!un || un->magic != DGNC_UNIT_MAGIC) dgnc_tty_digiseta() 2303 if (!ch || ch->magic != DGNC_CHANNEL_MAGIC) dgnc_tty_digiseta() 2307 if (!bd || bd->magic != DGNC_BOARD_MAGIC) dgnc_tty_digiseta() 2372 if (!tty || tty->magic != TTY_MAGIC) dgnc_tty_set_termios() 2376 if (!un || un->magic != DGNC_UNIT_MAGIC) dgnc_tty_set_termios() 2380 if (!ch || ch->magic != DGNC_CHANNEL_MAGIC) dgnc_tty_set_termios() 2384 if (!bd || bd->magic != DGNC_BOARD_MAGIC) dgnc_tty_set_termios() 2409 if (!tty || tty->magic != TTY_MAGIC) dgnc_tty_throttle() 2413 if (!un || un->magic != DGNC_UNIT_MAGIC) dgnc_tty_throttle() 2417 if (!ch || ch->magic != DGNC_CHANNEL_MAGIC) dgnc_tty_throttle() 2434 if (!tty || tty->magic != TTY_MAGIC) dgnc_tty_unthrottle() 2438 if (!un || un->magic != DGNC_UNIT_MAGIC) dgnc_tty_unthrottle() 2442 if (!ch || ch->magic != DGNC_CHANNEL_MAGIC) dgnc_tty_unthrottle() 2460 if (!tty || tty->magic != TTY_MAGIC) dgnc_tty_start() 2464 if (!un || un->magic != DGNC_UNIT_MAGIC) dgnc_tty_start() 2468 if (!ch || ch->magic != DGNC_CHANNEL_MAGIC) dgnc_tty_start() 2472 if (!bd || bd->magic != DGNC_BOARD_MAGIC) dgnc_tty_start() 2490 if (!tty || tty->magic != TTY_MAGIC) dgnc_tty_stop() 2494 if (!un || un->magic != DGNC_UNIT_MAGIC) dgnc_tty_stop() 2498 if (!ch || ch->magic != DGNC_CHANNEL_MAGIC) dgnc_tty_stop() 2502 if (!bd || bd->magic != DGNC_BOARD_MAGIC) dgnc_tty_stop() 2533 if (!tty || tty->magic != TTY_MAGIC) dgnc_tty_flush_chars() 2537 if (!un || un->magic != DGNC_UNIT_MAGIC) dgnc_tty_flush_chars() 2541 if (!ch || ch->magic != DGNC_CHANNEL_MAGIC) dgnc_tty_flush_chars() 2545 if (!bd || bd->magic != DGNC_BOARD_MAGIC) dgnc_tty_flush_chars() 2568 if (!tty || tty->magic != TTY_MAGIC) dgnc_tty_flush_buffer() 2572 if (!un || un->magic != DGNC_UNIT_MAGIC) dgnc_tty_flush_buffer() 2576 if (!ch || ch->magic != DGNC_CHANNEL_MAGIC) dgnc_tty_flush_buffer() 2624 if (!tty || tty->magic != TTY_MAGIC) dgnc_tty_ioctl() 2628 if (!un || un->magic != DGNC_UNIT_MAGIC) dgnc_tty_ioctl() 2632 if (!ch || ch->magic != DGNC_CHANNEL_MAGIC) dgnc_tty_ioctl() 2636 if (!bd || bd->magic != DGNC_BOARD_MAGIC) dgnc_tty_ioctl()
|
H A D | dgnc_cls.c | 342 if (!ch || ch->magic != DGNC_CHANNEL_MAGIC) cls_clear_break() 382 if (!ch || ch->magic != DGNC_CHANNEL_MAGIC) cls_parse_isr() 445 if (!tty || tty->magic != TTY_MAGIC) cls_param() 449 if (!un || un->magic != DGNC_UNIT_MAGIC) cls_param() 453 if (!ch || ch->magic != DGNC_CHANNEL_MAGIC) cls_param() 457 if (!bd || bd->magic != DGNC_BOARD_MAGIC) cls_param() 694 if (!bd || bd->magic != DGNC_BOARD_MAGIC) cls_tasklet() 770 if (!brd || brd->magic != DGNC_BOARD_MAGIC) cls_intr() 828 if (!ch || ch->magic != DGNC_CHANNEL_MAGIC) cls_copy_data_from_uart_to_queue() 918 if (!tty || tty->magic != TTY_MAGIC) cls_drain() 922 if (!un || un->magic != DGNC_UNIT_MAGIC) cls_drain() 926 if (!ch || ch->magic != DGNC_CHANNEL_MAGIC) cls_drain() 946 if (!ch || ch->magic != DGNC_CHANNEL_MAGIC) cls_flush_uart_write() 959 if (!ch || ch->magic != DGNC_CHANNEL_MAGIC) cls_flush_uart_read() 985 if (!ch || ch->magic != DGNC_CHANNEL_MAGIC) cls_copy_data_from_queue_to_uart() 1059 if (!ch || ch->magic != DGNC_CHANNEL_MAGIC) cls_parse_modem() 1123 if (!ch || ch->magic != DGNC_CHANNEL_MAGIC) cls_assert_modem_signals() 1139 if (!ch || ch->magic != DGNC_CHANNEL_MAGIC) cls_send_start_character() 1150 if (!ch || ch->magic != DGNC_CHANNEL_MAGIC) cls_send_stop_character() 1215 if (!ch || ch->magic != DGNC_CHANNEL_MAGIC) cls_get_uart_bytes_left() 1241 if (!ch || ch->magic != DGNC_CHANNEL_MAGIC) cls_send_break() 1284 if (!ch || ch->magic != DGNC_CHANNEL_MAGIC) cls_send_immediate_char()
|
/linux-4.1.27/fs/ |
H A D | binfmt_misc.c | 6 * binfmt_misc detects binaries via a magic or filename extension and invokes 16 #include <linux/magic.h> 50 int offset; /* offset of magic */ 51 int size; /* size of magic/mask */ 52 char *magic; /* magic or filename extension */ member in struct:__anon10771 70 * - magic: 128 bytes (512 in escaped form) 101 if (p && !strcmp(e->magic, p + 1)) check_file() 106 /* Do matching based on magic & mask. */ check_file() 110 if ((*s++ ^ e->magic[j]) & e->mask[j]) check_file() 114 if ((*s++ ^ e->magic[j])) check_file() 298 * ':name:type:offset:magic:mask:interpreter:flags' 355 pr_debug("register: type: M (magic)\n"); create_entry() 365 /* Handle the 'M' (magic) format. */ create_entry() 378 /* Parse the 'magic' field. */ create_entry() 379 e->magic = p; create_entry() 383 if (!e->magic[0]) create_entry() 387 KBUILD_MODNAME ": register: magic[raw]: ", create_entry() 388 DUMP_PREFIX_NONE, e->magic, p - e->magic); create_entry() 404 * Decode the magic & mask fields. create_entry() 409 e->size = string_unescape_inplace(e->magic, UNESCAPE_HEX); create_entry() 415 pr_debug("register: magic/mask length: %i\n", e->size); create_entry() 418 KBUILD_MODNAME ": register: magic[decoded]: ", create_entry() 419 DUMP_PREFIX_NONE, e->magic, e->size); create_entry() 431 masked[i] = e->magic[i] & e->mask[i]; create_entry() 433 KBUILD_MODNAME ": register: magic[masked]: ", create_entry() 449 /* Parse the 'magic' field. */ create_entry() 450 e->magic = p; create_entry() 455 if (!e->magic[0] || strchr(e->magic, '/')) create_entry() 457 pr_debug("register: extension: {%s}\n", e->magic); create_entry() 549 sprintf(dp, "extension .%s\n", e->magic); entry_status() 552 dp = bin2hex(dp, e->magic, e->size); entry_status()
|
/linux-4.1.27/arch/parisc/include/asm/ |
H A D | smp.h | 43 #define NO_PROC_ID 0xFF /* No processor magic marker */ smp_send_all_nop() 44 #define ANY_PROC_ID 0xFF /* Any processor magic marker */ __cpu_disable()
|
/linux-4.1.27/arch/alpha/kernel/ |
H A D | gct.c | 18 /* First check the magic number. */ gct6_find_nodes() 19 if (node->magic != GCT_NODE_MAGIC) { gct6_find_nodes()
|
/linux-4.1.27/fs/befs/ |
H A D | inode.c | 25 /* check magic header. */ befs_check_inode() 28 "Inode has a bad magic header - inode = %lu", befs_check_inode()
|
H A D | super.c | 64 /* Check magic headers of super block */ befs_check_sb() 68 befs_error(sb, "invalid magic header"); befs_check_sb()
|
/linux-4.1.27/drivers/video/fbdev/ |
H A D | pxa3xx-gcu.h | 29 u32 magic; member in struct:pxa3xx_gcu_shared
|
/linux-4.1.27/drivers/net/wireless/brcm80211/brcmfmac/ |
H A D | vendor.h | 52 * @magic: magic number for verification 59 uint magic; member in struct:brcmf_vndr_dcmd_hdr
|
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/pmu/ |
H A D | gk110.c | 37 } magic[] = { gk110_pmu_pgob() local 67 for (i = 0; i < ARRAY_SIZE(magic); i++) { gk110_pmu_pgob() 68 nv_wr32(pmu, magic[i].addr, magic[i].data); gk110_pmu_pgob() 69 nv_wait(pmu, magic[i].addr, 0x80000000, 0x00000000); gk110_pmu_pgob()
|
/linux-4.1.27/drivers/media/pci/zoran/ |
H A D | videocodec.c | 90 "videocodec_attach: '%s', flags %lx, magic %lx\n", videocodec_attach() 91 master->name, master->flags, master->magic); videocodec_attach() 181 "videocodec_detach: '%s', type: %x, flags %lx, magic %lx\n", videocodec_detach() 182 codec->name, codec->type, codec->flags, codec->magic); videocodec_detach() 244 "videocodec: register '%s', type: %x, flags %lx, magic %lx\n", videocodec_register() 245 codec->name, codec->type, codec->flags, codec->magic); videocodec_register() 279 "videocodec: unregister '%s', type: %x, flags %lx, magic %lx\n", videocodec_unregister() 280 codec->name, codec->type, codec->flags, codec->magic); videocodec_unregister() 328 seq_printf(m, "<S>lave or attached <M>aster name type flags magic "); proc_videocodecs_show() 335 h->codec->flags, h->codec->magic); proc_videocodecs_show() 342 a->codec->master_data->magic, proc_videocodecs_show()
|
/linux-4.1.27/drivers/media/usb/gspca/ |
H A D | kinect.c | 42 uint8_t magic[2]; member in struct:pkt_hdr 53 uint8_t magic[2]; member in struct:cam_hdr 149 chdr->magic[0] = 0x47; send_cmd() 150 chdr->magic[1] = 0x4d; send_cmd() 176 if (rhdr->magic[0] != 0x52 || rhdr->magic[1] != 0x42) { send_cmd() 177 pr_err("send_cmd: Bad magic %02x %02x\n", send_cmd() 178 rhdr->magic[0], rhdr->magic[1]); send_cmd() 406 if (hdr->magic[0] != 'R' || hdr->magic[1] != 'B') { sd_pkt_scan() 407 pr_warn("[Stream %02x] Invalid magic %02x%02x\n", sd_pkt_scan() 408 sd->stream_flag, hdr->magic[0], hdr->magic[1]); sd_pkt_scan()
|
/linux-4.1.27/drivers/staging/lustre/lnet/lnet/ |
H A D | acceptor.c | 59 lnet_accept_magic(__u32 magic, __u32 constant) lnet_accept_magic() argument 61 return (magic == constant || lnet_accept_magic() 62 magic == __swab32(constant)); lnet_accept_magic() 211 lnet_accept(struct socket *sock, __u32 magic) lnet_accept() argument 226 if (!lnet_accept_magic(magic, LNET_PROTO_ACCEPTOR_MAGIC)) { lnet_accept() 228 if (lnet_accept_magic(magic, LNET_PROTO_MAGIC)) { lnet_accept() 241 CERROR("Error sending magic+version in response to LNET magic from %pI4h: %d\n", lnet_accept() 246 if (magic == le32_to_cpu(LNET_PROTO_TCP_MAGIC)) lnet_accept() 248 else if (lnet_accept_magic(magic, LNET_PROTO_RA_MAGIC)) lnet_accept() 253 LCONSOLE_ERROR_MSG(0x11f, "Refusing connection from %pI4h magic %08x: %s acceptor protocol\n", lnet_accept() 254 &peer_ip, magic, str); lnet_accept() 258 flip = (magic != LNET_PROTO_ACCEPTOR_MAGIC); lnet_accept() 287 CERROR("Error sending magic+version in response to version %d from %pI4h: %d\n", lnet_accept() 337 __u32 magic; lnet_acceptor() local 398 rc = libcfs_sock_read(newsock, &magic, sizeof(magic), lnet_acceptor() 406 rc = lnet_accept(newsock, magic); lnet_acceptor()
|
/linux-4.1.27/fs/hpfs/ |
H A D | map.c | 67 if (le32_to_cpu(cp->magic) != CP_DIR_MAGIC) { hpfs_load_code_page() 68 pr_err("Code page directory magic doesn't match (magic = %08x)\n", hpfs_load_code_page() 69 le32_to_cpu(cp->magic)); hpfs_load_code_page() 147 if (le32_to_cpu(fnode->magic) != FNODE_MAGIC) { hpfs_map_fnode() 148 hpfs_error(s, "bad magic on fnode %08lx", hpfs_map_fnode() 200 if (le32_to_cpu(anode->magic) != ANODE_MAGIC) { hpfs_map_anode() 201 hpfs_error(s, "bad magic on anode %08x", ano); hpfs_map_anode() 245 if (le32_to_cpu(dnode->magic) != DNODE_MAGIC) { hpfs_map_dnode() 246 hpfs_error(s, "bad magic on dnode %08x", secno); hpfs_map_dnode()
|
/linux-4.1.27/net/irda/ |
H A D | irias_object.c | 58 obj->magic = IAS_OBJECT_MAGIC; irias_new_object() 94 IRDA_ASSERT(attrib->magic == IAS_ATTRIB_MAGIC, return;); __irias_delete_attrib() 99 attrib->magic = ~IAS_ATTRIB_MAGIC; __irias_delete_attrib() 107 IRDA_ASSERT(obj->magic == IAS_OBJECT_MAGIC, return;); __irias_delete_object() 113 obj->magic = ~IAS_OBJECT_MAGIC; __irias_delete_object() 130 IRDA_ASSERT(obj->magic == IAS_OBJECT_MAGIC, return -1;); irias_delete_object() 158 IRDA_ASSERT(obj->magic == IAS_OBJECT_MAGIC, return -1;); irias_delete_attrib() 190 IRDA_ASSERT(obj->magic == IAS_OBJECT_MAGIC, return;); irias_insert_object() 222 IRDA_ASSERT(obj->magic == IAS_OBJECT_MAGIC, return NULL;); irias_find_attrib() 243 IRDA_ASSERT(obj->magic == IAS_OBJECT_MAGIC, return;); irias_add_attrib() 246 IRDA_ASSERT(attrib->magic == IAS_ATTRIB_MAGIC, return;); irias_add_attrib() 318 IRDA_ASSERT(obj->magic == IAS_OBJECT_MAGIC, return;); irias_add_integer_attrib() 328 attrib->magic = IAS_ATTRIB_MAGIC; irias_add_integer_attrib() 360 IRDA_ASSERT(obj->magic == IAS_OBJECT_MAGIC, return;); irias_add_octseq_attrib() 372 attrib->magic = IAS_ATTRIB_MAGIC; irias_add_octseq_attrib() 402 IRDA_ASSERT(obj->magic == IAS_OBJECT_MAGIC, return;); irias_add_string_attrib() 414 attrib->magic = IAS_ATTRIB_MAGIC; irias_add_string_attrib()
|
H A D | iriap_event.c | 99 IRDA_ASSERT(self->magic == IAS_MAGIC, return;); iriap_next_client_state() 107 IRDA_ASSERT(self->magic == IAS_MAGIC, return;); iriap_next_call_state() 115 IRDA_ASSERT(self->magic == IAS_MAGIC, return;); iriap_next_server_state() 123 IRDA_ASSERT(self->magic == IAS_MAGIC, return;); iriap_next_r_connect_state() 132 IRDA_ASSERT(self->magic == IAS_MAGIC, return;); iriap_do_client_event() 141 IRDA_ASSERT(self->magic == IAS_MAGIC, return;); iriap_do_call_event() 150 IRDA_ASSERT(self->magic == IAS_MAGIC, return;); iriap_do_server_event() 159 IRDA_ASSERT(self->magic == IAS_MAGIC, return;); iriap_do_r_connect_event() 175 IRDA_ASSERT(self->magic == IAS_MAGIC, return;); state_s_disconnect() 205 IRDA_ASSERT(self->magic == IAS_MAGIC, return;); state_s_connecting() 463 IRDA_ASSERT(self->magic == IAS_MAGIC, return;); state_r_execute()
|
H A D | irlap.c | 117 self->magic = LAP_MAGIC; irlap_open() 183 IRDA_ASSERT(self->magic == LAP_MAGIC, return;); __irlap_close() 197 self->magic = 0; __irlap_close() 213 IRDA_ASSERT(self->magic == LAP_MAGIC, return;); irlap_close() 242 IRDA_ASSERT(self->magic == LAP_MAGIC, return;); irlap_connect_indication() 274 IRDA_ASSERT(self->magic == LAP_MAGIC, return;); irlap_connect_request() 299 IRDA_ASSERT(self->magic == LAP_MAGIC, return;); irlap_connect_confirm() 331 IRDA_ASSERT(self->magic == LAP_MAGIC, return;); irlap_data_request() 376 IRDA_ASSERT(self->magic == LAP_MAGIC, return;); irlap_unitdata_request() 403 IRDA_ASSERT(self->magic == LAP_MAGIC, return;); irlap_unitdata_indication() 421 IRDA_ASSERT(self->magic == LAP_MAGIC, return;); irlap_disconnect_request() 456 IRDA_ASSERT(self->magic == LAP_MAGIC, return;); irlap_disconnect_indication() 490 IRDA_ASSERT(self->magic == LAP_MAGIC, return;); irlap_discovery_request() 550 IRDA_ASSERT(self->magic == LAP_MAGIC, return;); irlap_discovery_confirm() 581 IRDA_ASSERT(self->magic == LAP_MAGIC, return;); irlap_discovery_indication() 625 IRDA_ASSERT(self->magic == LAP_MAGIC, return;); irlap_reset_indication() 766 IRDA_ASSERT(self->magic == LAP_MAGIC, return;); irlap_initiate_connection_state() 822 IRDA_ASSERT(self->magic == LAP_MAGIC, return;); irlap_flush_all_queues() 849 IRDA_ASSERT(self->magic == LAP_MAGIC, return;); irlap_change_speed() 874 IRDA_ASSERT(self->magic == LAP_MAGIC, return;); irlap_init_qos_capabilities() 920 IRDA_ASSERT(self->magic == LAP_MAGIC, return;); irlap_apply_default_connection_parameters() 981 IRDA_ASSERT(self->magic == LAP_MAGIC, return;); irlap_apply_connection_parameters() 1111 IRDA_ASSERT(self->magic == LAP_MAGIC, return -EINVAL;); irlap_seq_show()
|
H A D | irlmp.c | 91 irlmp->magic = LMP_MAGIC; irlmp_init() 132 IRDA_ASSERT(irlmp->magic == LMP_MAGIC, return;); irlmp_cleanup() 159 IRDA_ASSERT(irlmp->magic == LMP_MAGIC, return NULL;); irlmp_open_lsap() 175 self->magic = LMP_LSAP_MAGIC; irlmp_open_lsap() 210 IRDA_ASSERT(self->magic == LMP_LSAP_MAGIC, return;); __irlmp_close_lsap() 215 self->magic = 0; __irlmp_close_lsap() 236 IRDA_ASSERT(self->magic == LMP_LSAP_MAGIC, return;); irlmp_close_lsap() 244 IRDA_ASSERT(lap->magic == LMP_LAP_MAGIC, return;); irlmp_close_lsap() 287 IRDA_ASSERT(irlmp->magic == LMP_MAGIC, return;); irlmp_register_link() 298 lap->magic = LMP_LAP_MAGIC; irlmp_register_link() 344 IRDA_ASSERT(link->magic == LMP_LAP_MAGIC, return;); irlmp_unregister_link() 356 link->magic = 0; irlmp_unregister_link() 378 IRDA_ASSERT(self->magic == LMP_LSAP_MAGIC, return -EBADR;); irlmp_connect_request() 475 IRDA_ASSERT(lsap->magic == LMP_LSAP_MAGIC, return -1;); irlmp_connect_request() 477 IRDA_ASSERT(lsap->lap->magic == LMP_LAP_MAGIC, return -1;); irlmp_connect_request() 518 IRDA_ASSERT(self->magic == LMP_LSAP_MAGIC, return;); irlmp_connect_indication() 557 IRDA_ASSERT(self->magic == LMP_LSAP_MAGIC, return -1;); irlmp_connect_response() 592 IRDA_ASSERT(self->magic == LMP_LSAP_MAGIC, return;); irlmp_connect_confirm() 682 IRDA_ASSERT(self->magic == LMP_LSAP_MAGIC, return -1;); irlmp_disconnect_request() 711 IRDA_ASSERT(self->lap->magic == LMP_LAP_MAGIC, return -1;); irlmp_disconnect_request() 720 IRDA_ASSERT(lsap->magic == LMP_LSAP_MAGIC, return -1;); irlmp_disconnect_request() 747 IRDA_ASSERT(self->magic == LMP_LSAP_MAGIC, return;); irlmp_disconnect_indication() 817 IRDA_ASSERT(lap->magic == LMP_LAP_MAGIC, return;); irlmp_do_expiry() 867 IRDA_ASSERT(lap->magic == LMP_LAP_MAGIC, return;); irlmp_do_discovery() 1111 IRDA_ASSERT(self->magic == LMP_LSAP_MAGIC, return -1;); irlmp_data_request() 1174 IRDA_ASSERT(self->magic == LMP_LSAP_MAGIC, return;); irlmp_udata_indication() 1218 IRDA_ASSERT(lap->magic == LMP_LAP_MAGIC, return -1;); irlmp_connless_data_request() 1248 IRDA_ASSERT(self->magic == LMP_LSAP_MAGIC, return;); irlmp_connless_data_indication() 1280 IRDA_ASSERT(curr->magic == LMP_LSAP_MAGIC, return;); irlmp_status_indication() 1310 IRDA_ASSERT(self->magic == LMP_LAP_MAGIC, return;); irlmp_flow_indication() 1636 IRDA_ASSERT(irlmp->magic == LMP_MAGIC, return TRUE;); irlmp_slsap_inuse() 1658 IRDA_ASSERT(lap->magic == LMP_LAP_MAGIC, goto errlap;); irlmp_slsap_inuse() 1668 IRDA_ASSERT(self->magic == LMP_LSAP_MAGIC, irlmp_slsap_inuse() 1695 IRDA_ASSERT(self->magic == LMP_LSAP_MAGIC, goto erruncon;); irlmp_slsap_inuse() 1735 IRDA_ASSERT(irlmp->magic == LMP_MAGIC, return -1;); irlmp_find_free_slsap() 1924 IRDA_ASSERT(self->magic == LMP_LSAP_MAGIC, return -EINVAL; ); irlmp_seq_show() 1953 IRDA_ASSERT(self->magic == LMP_LSAP_MAGIC, irlmp_seq_show()
|
H A D | timer.c | 146 IRDA_ASSERT(self->magic == LAP_MAGIC, return;); irlap_slot_timer_expired() 162 IRDA_ASSERT(self->magic == LAP_MAGIC, return;); irlap_query_timer_expired() 178 IRDA_ASSERT(self->magic == LAP_MAGIC, return;); irlap_final_timer_expired() 194 IRDA_ASSERT(self->magic == LAP_MAGIC, return;); irlap_wd_timer_expired() 210 IRDA_ASSERT(self->magic == LAP_MAGIC, return;); irlap_backoff_timer_expired()
|
H A D | iriap.c | 186 self->magic = IAS_MAGIC; iriap_open() 221 IRDA_ASSERT(self->magic == IAS_MAGIC, return;); __iriap_close() 228 self->magic = 0; __iriap_close() 243 IRDA_ASSERT(self->magic == IAS_MAGIC, return;); iriap_close() 301 IRDA_ASSERT(self->magic == IAS_MAGIC, return;); iriap_disconnect_indication() 340 IRDA_ASSERT(self->magic == IAS_MAGIC, return;); iriap_disconnect_request() 372 IRDA_ASSERT(self->magic == IAS_MAGIC, return -1;); iriap_getvaluebyclass_request() 439 IRDA_ASSERT(self->magic == IAS_MAGIC, return;); iriap_getvaluebyclass_confirm() 551 IRDA_ASSERT(self->magic == IAS_MAGIC, return;); iriap_getvaluebyclass_response() 643 IRDA_ASSERT(self->magic == IAS_MAGIC, return;); iriap_getvaluebyclass_indication() 700 IRDA_ASSERT(self->magic == IAS_MAGIC, return;); iriap_send_ack() 722 IRDA_ASSERT(self->magic == IAS_MAGIC, return;); iriap_connect_request() 749 IRDA_ASSERT(self->magic == IAS_MAGIC, return;); iriap_connect_confirm() 780 IRDA_ASSERT(self->magic == IAS_MAGIC, goto out;); iriap_connect_indication() 826 IRDA_ASSERT(self->magic == IAS_MAGIC, goto out;); iriap_data_indication() 914 IRDA_ASSERT(self->magic == IAS_MAGIC, return;); iriap_call_indication() 950 IRDA_ASSERT(self->magic == IAS_MAGIC, return;); iriap_watchdog_timer_expired() 1006 IRDA_ASSERT(obj->magic == IAS_OBJECT_MAGIC, return -EINVAL;); irias_seq_show() 1021 IRDA_ASSERT(attrib->magic == IAS_ATTRIB_MAGIC, irias_seq_show()
|
/linux-4.1.27/drivers/mtd/devices/ |
H A D | ms02-nv.h | 31 * from an operating system. If anything but the valid data magic 40 * operating system, a magic ID to distinguish a MS02-NV board from 73 #define MS02NV_MAGIC 0x0003fc /* MS02-NV magic ID */ 74 #define MS02NV_VALID 0x000400 /* valid data magic ID */ 86 #define MS02NV_ID 0x03021966 /* MS02-NV magic ID value */ 87 #define MS02NV_VALID_ID 0xbd100248 /* valid data magic ID value */
|
/linux-4.1.27/arch/arm/mach-netx/ |
H A D | xc.c | 46 unsigned int magic; member in struct:fw_header 136 if (head->magic != 0x4e657458) { xc_request_firmware() 137 if (head->magic == 0x5874654e) { xc_request_firmware() 139 "firmware magic is 'XteN'. Endianness problems?\n"); xc_request_firmware() 143 dev_err(x->dev, "unrecognized firmware magic 0x%08x\n", xc_request_firmware() 144 head->magic); xc_request_firmware()
|
/linux-4.1.27/drivers/net/ethernet/cisco/enic/ |
H A D | vnic_resource.h | 56 u32 magic; member in struct:vnic_resource_header 61 u32 magic; /* magic number */ member in struct:mgmt_barmap_hdr
|
/linux-4.1.27/drivers/staging/lustre/lustre/lov/ |
H A D | lov_offset.c | 53 int magic = lsm->lsm_magic; lov_stripe_size() local 58 LASSERT(lsm_op_find(magic) != NULL); lov_stripe_size() 59 lsm_op_find(magic)->lsm_stripe_by_index(lsm, &stripeno, NULL, &swidth); lov_stripe_size() 124 int magic = lsm->lsm_magic; lov_stripe_offset() local 132 LASSERT(lsm_op_find(magic) != NULL); lov_stripe_offset() 134 lsm_op_find(magic)->lsm_stripe_by_index(lsm, &stripeno, &lov_off, lov_stripe_offset() 181 int magic = lsm->lsm_magic; lov_size_to_stripe() local 186 LASSERT(lsm_op_find(magic) != NULL); lov_size_to_stripe() 187 lsm_op_find(magic)->lsm_stripe_by_index(lsm, &stripeno, &file_size, lov_size_to_stripe() 253 int magic = lsm->lsm_magic; lov_stripe_number() local 255 LASSERT(lsm_op_find(magic) != NULL); lov_stripe_number() 256 lsm_op_find(magic)->lsm_stripe_by_offset(lsm, NULL, &lov_off, &swidth); lov_stripe_number()
|
H A D | lov_pack.c | 59 CDEBUG(level, "objid "DOSTID", magic 0x%08x, pattern %#x\n", lov_dump_lmm_common() 105 int magic; lov_dump_lmm() local 107 magic = le32_to_cpu(((struct lov_mds_md *)lmm)->lmm_magic); lov_dump_lmm() 108 switch (magic) { lov_dump_lmm() 117 magic, LOV_MAGIC_V1); lov_dump_lmm() 252 __u16 lov_get_stripecnt(struct lov_obd *lov, __u32 magic, __u16 stripe_count) lov_get_stripecnt() argument 268 lov->lov_ocd.ocd_max_easize, magic); lov_get_stripecnt() 306 int pattern, int magic) lov_alloc_memmd() 320 (*lsmp)->lsm_magic = magic; lov_alloc_memmd() 361 __u32 magic; lov_unpackmd() local 369 magic = le32_to_cpu(lmm->lmm_magic); lov_unpackmd() 371 magic = LOV_MAGIC; lov_unpackmd() 372 stripe_count = lov_get_stripecnt(lov, magic, 0); lov_unpackmd() 388 lsm_size = lov_alloc_memmd(lsmp, stripe_count, pattern, magic); lov_unpackmd() 396 LASSERT(lsm_op_find(magic) != NULL); lov_unpackmd() 397 rc = lsm_op_find(magic)->lsm_unpackmd(lov, *lsmp, lmm); lov_unpackmd() 305 lov_alloc_memmd(struct lov_stripe_md **lsmp, __u16 stripe_count, int pattern, int magic) lov_alloc_memmd() argument
|
/linux-4.1.27/drivers/net/irda/ |
H A D | irtty-sir.h | 26 magic_t magic; member in struct:sirtty_cb
|
H A D | irtty-sir.c | 65 IRDA_ASSERT(priv->magic == IRTTY_MAGIC, return -1;); irtty_chars_in_buffer() 93 IRDA_ASSERT(priv->magic == IRTTY_MAGIC, return;); irtty_wait_until_sent() 122 IRDA_ASSERT(priv->magic == IRTTY_MAGIC, return -1;); irtty_change_speed() 152 IRDA_ASSERT(priv->magic == IRTTY_MAGIC, return -1;); irtty_set_dtr_rts() 189 IRDA_ASSERT(priv->magic == IRTTY_MAGIC, return -1;); irtty_do_write() 227 IRDA_ASSERT(priv->magic == IRTTY_MAGIC, return;); irtty_receive_buf() 264 IRDA_ASSERT(priv->magic == IRTTY_MAGIC, return;); irtty_write_wakeup() 314 if (unlikely(!priv || priv->magic!=IRTTY_MAGIC)) { irtty_start_dev() 341 if (unlikely(!priv || priv->magic!=IRTTY_MAGIC)) { irtty_stop_dev() 388 IRDA_ASSERT(priv->magic == IRTTY_MAGIC, return -EBADR;); irtty_ioctl() 457 priv->magic = IRTTY_MAGIC; irtty_open() 492 IRDA_ASSERT(priv->magic == IRTTY_MAGIC, return;); irtty_close() 527 .magic = TTY_LDISC_MAGIC,
|
/linux-4.1.27/drivers/rtc/ |
H A D | rtc-ds1216.c | 35 static const u8 magic[] = { variable 73 /* Reset magic pointer */ ds1216_switch_ds_to_clock() 75 /* Write 64 bit magic to DS1216 */ ds1216_switch_ds_to_clock() 76 ds1216_write(ioaddr, magic); ds1216_switch_ds_to_clock()
|
/linux-4.1.27/drivers/staging/lustre/lustre/ptlrpc/ |
H A D | pack_generic.c | 61 int lustre_msg_hdr_size(__u32 magic, int count) lustre_msg_hdr_size() argument 63 switch (magic) { lustre_msg_hdr_size() 67 LASSERTF(0, "incorrect message magic: %08x\n", magic); lustre_msg_hdr_size() 111 CERROR("incorrect message magic: %08x\n", msg->lm_magic); lustre_msg_check_version() 155 int lustre_msg_size(__u32 magic, int count, __u32 *lens) lustre_msg_size() argument 167 switch (magic) { lustre_msg_size() 171 LASSERTF(0, "incorrect message magic: %08x\n", magic); lustre_msg_size() 185 CERROR("incorrect message magic: %08x\n", msg->lm_magic); lustre_packed_msg_size() 233 int lustre_pack_request(struct ptlrpc_request *req, __u32 magic, int count, lustre_pack_request() argument 381 LASSERTF(0, "incorrect message magic: %08x\n", lustre_pack_reply_flags() 434 LASSERTF(0, "incorrect message magic: %08x(msg:%p)\n", m->lm_magic, m); lustre_msg_buf() 494 LASSERTF(0, "incorrect message magic: %08x\n", msg->lm_magic); lustre_shrink_msg() 571 * message magic and version first. In the future, struct __lustre_unpack_msg() 580 CERROR("message length %d too small for magic/version check\n", __lustre_unpack_msg() 648 CERROR("bad lustre msg magic: %08x\n", lustre_unpack_req_ptlrpc_body() 660 CERROR("bad lustre msg magic: %08x\n", lustre_unpack_rep_ptlrpc_body() 687 CERROR("incorrect message magic: %08x\n", m->lm_magic); lustre_msg_buflen() 709 LASSERTF(0, "incorrect message magic: %08x\n", m->lm_magic); lustre_msg_set_buflen() 723 CERROR("incorrect message magic: %08x\n", m->lm_magic); lustre_msg_bufcount() 741 LASSERTF(0, "incorrect message magic: %08x\n", m->lm_magic); lustre_msg_string() 785 CERROR("incorrect message magic: %08x\n", msg->lm_magic); __lustre_swab_buf() 810 LASSERTF(0, "incorrect message magic: %08x\n", msg->lm_magic); lustre_msghdr_get_flags() 825 LASSERTF(0, "incorrect message magic: %08x\n", msg->lm_magic); lustre_msghdr_set_flags() 858 LASSERTF(0, "incorrect message magic: %08x\n", msg->lm_magic); lustre_msg_add_flags() 873 LASSERTF(0, "incorrect message magic: %08x\n", msg->lm_magic); lustre_msg_set_flags() 888 LASSERTF(0, "incorrect message magic: %08x\n", msg->lm_magic); lustre_msg_clear_flags() 920 LASSERTF(0, "incorrect message magic: %08x\n", msg->lm_magic); lustre_msg_add_op_flags() 935 LASSERTF(0, "incorrect message magic: %08x\n", msg->lm_magic); lustre_msg_set_op_flags() 952 CERROR("incorrect message magic: %08x\n", msg->lm_magic); lustre_msg_get_handle() 970 CERROR("incorrect message magic: %08x\n", msg->lm_magic); lustre_msg_get_type() 988 CERROR("incorrect message magic: %08x\n", msg->lm_magic); lustre_msg_get_version() 1004 LASSERTF(0, "incorrect message magic: %08x\n", msg->lm_magic); lustre_msg_add_version() 1021 CERROR("incorrect message magic: %08x(msg:%p)\n", msg->lm_magic, msg); lustre_msg_get_opc() 1040 CERROR("incorrect message magic: %08x\n", msg->lm_magic); lustre_msg_get_last_xid() 1058 CERROR("incorrect message magic: %08x\n", msg->lm_magic); lustre_msg_get_last_committed() 1078 CERROR("incorrect message magic: %08x\n", msg->lm_magic); lustre_msg_get_versions() 1096 CERROR("incorrect message magic: %08x\n", msg->lm_magic); lustre_msg_get_transno() 1133 CERROR("invalid msg magic %08x\n", msg->lm_magic); lustre_msg_get_slv() 1153 CERROR("invalid msg magic %x\n", msg->lm_magic); lustre_msg_set_slv() 1171 CERROR("invalid msg magic %x\n", msg->lm_magic); lustre_msg_get_limit() 1191 CERROR("invalid msg magic %08x\n", msg->lm_magic); lustre_msg_set_limit() 1209 CERROR("incorrect message magic: %08x\n", msg->lm_magic); lustre_msg_get_conn_cnt() 1233 CERROR("incorrect message magic: %08x\n", msg->lm_magic); lustre_msg_get_magic() 1255 CERROR("incorrect message magic: %08x\n", msg->lm_magic); lustre_msg_get_timeout() 1276 CERROR("incorrect message magic: %08x\n", msg->lm_magic); lustre_msg_get_service_time() 1297 CERROR("incorrect message magic: %08x\n", msg->lm_magic); lustre_msg_get_jobid() 1309 CERROR("incorrect message magic: %08x\n", msg->lm_magic); lustre_msg_get_cksum() 1327 CERROR("incorrect message magic: %08x\n", msg->lm_magic); lustre_msg_calc_cksum() 1342 LASSERTF(0, "incorrect message magic: %08x\n", msg->lm_magic); lustre_msg_set_handle() 1357 LASSERTF(0, "incorrect message magic: %08x\n", msg->lm_magic); lustre_msg_set_type() 1372 LASSERTF(0, "incorrect message magic: %08x\n", msg->lm_magic); lustre_msg_set_opc() 1387 LASSERTF(0, "incorrect message magic: %08x\n", msg->lm_magic); lustre_msg_set_last_xid() 1402 LASSERTF(0, "incorrect message magic: %08x\n", msg->lm_magic); lustre_msg_set_last_committed() 1422 LASSERTF(0, "incorrect message magic: %08x\n", msg->lm_magic); lustre_msg_set_versions() 1437 LASSERTF(0, "incorrect message magic: %08x\n", msg->lm_magic); lustre_msg_set_transno() 1452 LASSERTF(0, "incorrect message magic: %08x\n", msg->lm_magic); lustre_msg_set_status() 1467 LASSERTF(0, "incorrect message magic: %08x\n", msg->lm_magic); lustre_msg_set_conn_cnt() 1484 LASSERTF(0, "incorrect message magic: %08x\n", msg->lm_magic); lustre_msg_set_timeout() 1500 LASSERTF(0, "incorrect message magic: %08x\n", msg->lm_magic); lustre_msg_set_service_time() 1530 LASSERTF(0, "incorrect message magic: %08x\n", msg->lm_magic); lustre_msg_set_jobid() 1544 LASSERTF(0, "incorrect message magic: %08x\n", msg->lm_magic); lustre_msg_set_cksum() 2355 CERROR("bad lustre msg magic: %#08X\n", req_ptlrpc_body_swabbed()
|
/linux-4.1.27/arch/sh/include/mach-landisk/mach/ |
H A D | gio.h | 12 /* Use 'k' as magic number */
|
/linux-4.1.27/arch/alpha/include/asm/ |
H A D | gct.h | 30 u32 magic; /* 'GLXY' */ member in struct:__gct6_node
|
/linux-4.1.27/drivers/media/v4l2-core/ |
H A D | videobuf-vmalloc.c | 35 printk(KERN_ERR "magic mismatch: %x (expected %x)\n", \ 99 MAGIC_CHECK(mem->magic, MAGIC_VMAL_MEM); videobuf_vm_close() 148 mem->magic = MAGIC_VMAL_MEM; __videobuf_alloc_vb() 166 MAGIC_CHECK(mem->magic, MAGIC_VMAL_MEM); __videobuf_iolock() 254 MAGIC_CHECK(mem->magic, MAGIC_VMAL_MEM); __videobuf_mmap_mapper() 292 .magic = MAGIC_QTYPE_OPS, 319 MAGIC_CHECK(mem->magic, MAGIC_VMAL_MEM); videobuf_to_vmalloc() 341 MAGIC_CHECK(mem->magic, MAGIC_VMAL_MEM); videobuf_vmalloc_free()
|
H A D | videobuf-dma-sg.c | 42 printk(KERN_ERR "magic mismatch: %x (expected %x)\n", \ 142 MAGIC_CHECK(mem->magic, MAGIC_SG_MEM); videobuf_to_dma() 151 dma->magic = MAGIC_DMABUF; videobuf_dma_init() 287 MAGIC_CHECK(dma->magic, MAGIC_DMABUF); videobuf_dma_map() 330 MAGIC_CHECK(dma->magic, MAGIC_DMABUF); videobuf_dma_unmap() 348 MAGIC_CHECK(dma->magic, MAGIC_DMABUF); videobuf_dma_free() 415 MAGIC_CHECK(mem->magic, MAGIC_SG_MEM); videobuf_vm_close() 478 mem->magic = MAGIC_SG_MEM; __videobuf_alloc_vb() 494 MAGIC_CHECK(mem->magic, MAGIC_SG_MEM); __videobuf_to_vaddr() 508 MAGIC_CHECK(mem->magic, MAGIC_SG_MEM); __videobuf_iolock() 578 MAGIC_CHECK(mem->magic, MAGIC_SG_MEM); __videobuf_sync() 579 MAGIC_CHECK(mem->dma.magic, MAGIC_DMABUF); __videobuf_sync() 599 MAGIC_CHECK(mem->magic, MAGIC_SG_MEM); __videobuf_mmap_mapper() 648 .magic = MAGIC_QTYPE_OPS,
|
H A D | videobuf-dma-contig.c | 27 u32 magic; member in struct:videobuf_dma_contig_memory 36 pr_err("magic mismatch: %x expected %x\n", (is), (should)); \ 111 MAGIC_CHECK(mem->magic, MAGIC_DC_MEM); videobuf_vm_close() 220 mem->magic = MAGIC_DC_MEM; __videobuf_alloc() 231 MAGIC_CHECK(mem->magic, MAGIC_DC_MEM); __videobuf_to_vaddr() 243 MAGIC_CHECK(mem->magic, MAGIC_DC_MEM); __videobuf_iolock() 299 MAGIC_CHECK(mem->magic, MAGIC_DC_MEM); __videobuf_mmap_mapper() 344 .magic = MAGIC_QTYPE_OPS, 371 MAGIC_CHECK(mem->magic, MAGIC_DC_MEM); videobuf_to_dma_contig() 394 MAGIC_CHECK(mem->magic, MAGIC_DC_MEM); videobuf_dma_contig_free()
|
H A D | videobuf-core.c | 31 "magic mismatch: %x (expected %x)\n", \ 71 vb->magic = MAGIC_BUFFER; videobuf_alloc_vb() 95 MAGIC_CHECK(vb->magic, MAGIC_BUFFER); videobuf_waiton() 124 MAGIC_CHECK(vb->magic, MAGIC_BUFFER); videobuf_iolock() 125 MAGIC_CHECK(q->int_ops->magic, MAGIC_QTYPE_OPS); videobuf_iolock() 189 MAGIC_CHECK(q->int_ops->magic, MAGIC_QTYPE_OPS); videobuf_queue_is_busy() 243 MAGIC_CHECK(q->int_ops->magic, MAGIC_QTYPE_OPS); __videobuf_free() 321 MAGIC_CHECK(vb->magic, MAGIC_BUFFER); videobuf_status() 322 MAGIC_CHECK(q->int_ops->magic, MAGIC_QTYPE_OPS); videobuf_status() 391 MAGIC_CHECK(q->int_ops->magic, MAGIC_QTYPE_OPS); __videobuf_mmap_setup() 535 MAGIC_CHECK(q->int_ops->magic, MAGIC_QTYPE_OPS); videobuf_qbuf() 560 MAGIC_CHECK(buf->magic, MAGIC_BUFFER); videobuf_qbuf() 701 MAGIC_CHECK(q->int_ops->magic, MAGIC_QTYPE_OPS); videobuf_dqbuf() 794 MAGIC_CHECK(q->int_ops->magic, MAGIC_QTYPE_OPS); videobuf_read_zerocopy() 883 MAGIC_CHECK(q->int_ops->magic, MAGIC_QTYPE_OPS); videobuf_read_one() 1053 MAGIC_CHECK(q->int_ops->magic, MAGIC_QTYPE_OPS); videobuf_read_stream() 1175 MAGIC_CHECK(q->int_ops->magic, MAGIC_QTYPE_OPS); videobuf_mmap_mapper()
|
/linux-4.1.27/drivers/net/wireless/libertas/ |
H A D | if_usb.h | 26 __le32 magic; member in struct:bootcmd 37 __le32 magic; member in struct:bootcmdresp
|
/linux-4.1.27/drivers/net/wireless/libertas_tf/ |
H A D | if_usb.h | 29 __le32 magic; member in struct:bootcmd 38 __le32 magic; member in struct:bootcmdresp
|
/linux-4.1.27/drivers/tty/serial/ |
H A D | kgdb_nmi.c | 42 module_param_named(magic, kgdb_nmi_magic, charp, 0600); 43 MODULE_PARM_DESC(magic, "magic sequence to enter NMI debugger (default $3#33)"); 122 const char *magic = kgdb_nmi_magic; kgdb_nmi_poll_one_knock() local 123 size_t m = strlen(magic); kgdb_nmi_poll_one_knock() 132 } else if (c == magic[n]) { kgdb_nmi_poll_one_knock() 153 kgdb_nmi_knock ? magic : "<return>", (int)m, ""); kgdb_nmi_poll_one_knock() 168 * enter the debugger until we receive a known magic phrase (which is actually
|
/linux-4.1.27/arch/mips/lantiq/falcon/ |
H A D | reset.c | 54 /* reboot magic */ machine_restart() 59 /* watchdog magic */ machine_restart()
|
/linux-4.1.27/arch/arm64/include/uapi/asm/ |
H A D | sigcontext.h | 40 * magic and size set to 0. 43 __u32 magic; member in struct:_aarch64_ctx
|
/linux-4.1.27/arch/avr32/boot/u-boot/ |
H A D | head.S | 18 * r12 contains a magic number (ATAG_MAGIC) 83 2: .asciz "Boot loader didn't provide correct magic number\n"
|
/linux-4.1.27/arch/cris/include/asm/ |
H A D | axisflashmap.h | 13 #define PARTITION_TABLE_MAGIC 0xbeef /* Not a good magic */ 17 __u16 magic; /* PARTITION_TABLE_MAGIC */ member in struct:partitiontable_head
|
/linux-4.1.27/arch/ia64/lib/ |
H A D | clear_page.S | 17 # define PREFETCH_LINES 9 // magic number 20 # define PREFETCH_LINES 12 // magic number
|
/linux-4.1.27/net/irda/irlan/ |
H A D | irlan_event.c | 46 IRDA_ASSERT(self->magic == IRLAN_MAGIC, return;); irlan_next_client_state() 56 IRDA_ASSERT(self->magic == IRLAN_MAGIC, return;); irlan_next_provider_state()
|
H A D | irlan_client.c | 76 IRDA_ASSERT(self->magic == IRLAN_MAGIC, return;); irlan_client_kick_timer_expired() 105 IRDA_ASSERT(self->magic == IRLAN_MAGIC, return;); irlan_client_wakeup() 168 IRDA_ASSERT(self->magic == IRLAN_MAGIC, goto out;); irlan_client_discovery_indication() 193 IRDA_ASSERT(self->magic == IRLAN_MAGIC, return -1;); irlan_client_ctrl_data_indication() 222 IRDA_ASSERT(self->magic == IRLAN_MAGIC, return;); irlan_client_ctrl_disconnect_indication() 224 IRDA_ASSERT(tsap->magic == TTP_TSAP_MAGIC, return;); irlan_client_ctrl_disconnect_indication() 249 IRDA_ASSERT(self->magic == IRLAN_MAGIC, return;); irlan_client_open_ctrl_tsap() 289 IRDA_ASSERT(self->magic == IRLAN_MAGIC, return;); irlan_client_ctrl_connect_confirm() 366 IRDA_ASSERT(self->magic == IRLAN_MAGIC, return;); irlan_client_parse_response() 429 IRDA_ASSERT(self->magic == IRLAN_MAGIC, return;); irlan_check_response_param() 529 IRDA_ASSERT(self->magic == IRLAN_MAGIC, return;); irlan_client_get_value_confirm()
|
H A D | irlan_provider.c | 76 IRDA_ASSERT(self->magic == IRLAN_MAGIC, return -1;); irlan_provider_data_indication() 133 IRDA_ASSERT(self->magic == IRLAN_MAGIC, return;); irlan_provider_connect_indication() 165 IRDA_ASSERT(self->magic == IRLAN_MAGIC, return;); irlan_provider_connect_response() 184 IRDA_ASSERT(self->magic == IRLAN_MAGIC, return;); irlan_provider_disconnect_indication() 186 IRDA_ASSERT(tsap->magic == TTP_TSAP_MAGIC, return;); irlan_provider_disconnect_indication() 235 IRDA_ASSERT(self->magic == IRLAN_MAGIC, return -RSP_PROTOCOL_ERROR;); irlan_provider_parse_command() 288 IRDA_ASSERT(self->magic == IRLAN_MAGIC, return;); irlan_provider_send_reply() 380 IRDA_ASSERT(self->magic == IRLAN_MAGIC, return -1;); irlan_provider_open_ctrl_tsap()
|
H A D | irlan_common.c | 210 self->magic = IRLAN_MAGIC; irlan_open() 264 IRDA_ASSERT(self->magic == IRLAN_MAGIC, return;); __irlan_close() 312 IRDA_ASSERT(self->magic == IRLAN_MAGIC, return;); irlan_connect_indication() 355 IRDA_ASSERT(self->magic == IRLAN_MAGIC, return;); irlan_connect_confirm() 401 IRDA_ASSERT(self->magic == IRLAN_MAGIC, return;); irlan_disconnect_indication() 403 IRDA_ASSERT(tsap->magic == TTP_TSAP_MAGIC, return;); irlan_disconnect_indication() 453 IRDA_ASSERT(self->magic == IRLAN_MAGIC, return;); irlan_open_data_tsap() 487 IRDA_ASSERT(self->magic == IRLAN_MAGIC, return;); irlan_close_tsaps() 522 IRDA_ASSERT(self->magic == IRLAN_MAGIC, return;); irlan_ias_register() 623 IRDA_ASSERT(self->magic == IRLAN_MAGIC, return;); irlan_get_provider_info() 654 IRDA_ASSERT(self->magic == IRLAN_MAGIC, return;); irlan_open_data_channel() 687 IRDA_ASSERT(self->magic == IRLAN_MAGIC, return;); irlan_close_data_channel() 726 IRDA_ASSERT(self->magic == IRLAN_MAGIC, return;); irlan_open_unicast_addr() 766 IRDA_ASSERT(self->magic == IRLAN_MAGIC, return;); irlan_set_broadcast_filter() 808 IRDA_ASSERT(self->magic == IRLAN_MAGIC, return;); irlan_set_multicast_filter() 851 IRDA_ASSERT(self->magic == IRLAN_MAGIC, return;); irlan_get_unicast_addr() 889 IRDA_ASSERT(self->magic == IRLAN_MAGIC, return;); irlan_get_media_char() 1122 IRDA_ASSERT(self->magic == IRLAN_MAGIC, return -1;); irlan_seq_show()
|
/linux-4.1.27/scripts/dtc/libfdt/ |
H A D | fdt.h | 7 uint32_t magic; /* magic word FDT_MAGIC */ member in struct:fdt_header
|
/linux-4.1.27/sound/soc/codecs/ |
H A D | wmfw.h | 19 char magic[4]; member in struct:wmfw_header 94 u8 magic[4]; member in struct:wmfw_coeff_hdr
|
/linux-4.1.27/drivers/s390/block/ |
H A D | dasd_erp.c | 26 dasd_alloc_erp_request(char *magic, int cplength, int datasize, dasd_alloc_erp_request() argument 35 BUG_ON( magic == NULL || datasize > PAGE_SIZE || dasd_alloc_erp_request() 64 strncpy((char *) &cqr->magic, magic, 4); dasd_alloc_erp_request() 65 ASCEBC((char *) &cqr->magic, 4); dasd_alloc_erp_request()
|
/linux-4.1.27/arch/mips/bcm47xx/ |
H A D | nvram.c | 30 u32 magic; member in struct:nvram_header 47 if (header->magic == NVRAM_MAGIC) find_nvram_size() 82 if (header->magic == NVRAM_MAGIC) { nvram_find_and_copy() 88 if (header->magic == NVRAM_MAGIC) { nvram_find_and_copy() 149 if (!err && header.magic == NVRAM_MAGIC) { nvram_init()
|
/linux-4.1.27/drivers/watchdog/ |
H A D | lantiq_wdt.c | 28 * essentially the following two magic passwords need to be written to allow 62 /* write the first password magic */ ltq_wdt_enable() 64 /* write the second magic plus the configuration and new timeout */ ltq_wdt_enable() 72 /* write the first password magic */ ltq_wdt_disable() 75 * write the second password magic with no config ltq_wdt_disable()
|
/linux-4.1.27/fs/gfs2/ |
H A D | util.h | 87 u32 magic = be32_to_cpu(mh->mh_magic); gfs2_meta_check() local 88 if (unlikely(magic != GFS2_MAGIC)) { gfs2_meta_check() 108 u32 magic = be32_to_cpu(mh->mh_magic); gfs2_metatype_check_i() local 110 if (unlikely(magic != GFS2_MAGIC)) gfs2_metatype_check_i() 111 return gfs2_meta_check_ii(sdp, bh, "magic number", function, gfs2_metatype_check_i()
|
/linux-4.1.27/arch/arm64/kernel/ |
H A D | signal.c | 61 /* copy the magic/size information */ preserve_fpsimd_context() 62 __put_user_error(FPSIMD_MAGIC, &ctx->head.magic, err); preserve_fpsimd_context() 71 __u32 magic, size; restore_fpsimd_context() local 74 /* check the magic/size information */ restore_fpsimd_context() 75 __get_user_error(magic, &ctx->head.magic, err); restore_fpsimd_context() 79 if (magic != FPSIMD_MAGIC || size != sizeof(struct fpsimd_context)) restore_fpsimd_context() 198 __put_user_error(ESR_MAGIC, &esr_ctx->head.magic, err); setup_sigframe() 204 /* set the "end" magic */ setup_sigframe() 206 __put_user_error(0, &end->magic, err); setup_sigframe()
|
/linux-4.1.27/drivers/staging/dgap/ |
H A D | dgap.c | 1365 if (!ch || ch->magic != DGAP_CHANNEL_MAGIC) dgap_get_custom_baud() 1368 if (!ch->ch_bd || ch->ch_bd->magic != DGAP_BOARD_MAGIC) dgap_get_custom_baud() 1394 if (!brd || brd->magic != DGAP_BOARD_MAGIC) dgap_remap() 1450 if (!ch || ch->magic != DGAP_CHANNEL_MAGIC) dgap_parity_scan() 1537 if (!ch || ch->magic != DGAP_CHANNEL_MAGIC) dgap_input() 1547 if (!bd || bd->magic != DGAP_BOARD_MAGIC) dgap_input() 1579 (tp->magic != TTY_MAGIC) || dgap_input() 1756 if (!ch || ch->magic != DGAP_CHANNEL_MAGIC) dgap_carrier() 1761 if (!bd || bd->magic != DGAP_BOARD_MAGIC) dgap_carrier() 1882 if (!bd || bd->magic != DGAP_BOARD_MAGIC) dgap_event() 1938 if (!ch || ch->magic != DGAP_CHANNEL_MAGIC) dgap_event() 2059 if (!bd || (bd->magic != DGAP_BOARD_MAGIC)) dgap_poll_tasklet() 2136 brd->magic = DGAP_BOARD_MAGIC; dgap_found_board() 2254 if (brd->magic != DGAP_BOARD_MAGIC) dgap_intr() 2413 if (!ch || ch->magic != DGAP_CHANNEL_MAGIC) dgap_cmdb() 2498 if (!ch || ch->magic != DGAP_CHANNEL_MAGIC) dgap_cmdw() 2581 if (!ch || ch->magic != DGAP_CHANNEL_MAGIC) dgap_cmdw_ext() 2672 if (!ch || ch->magic != DGAP_CHANNEL_MAGIC) dgap_wmove() 3076 if (!tty || tty->magic != TTY_MAGIC || !file || !ch || dgap_block_til_ready() 3077 ch->magic != DGAP_CHANNEL_MAGIC) dgap_block_til_ready() 3081 if (!un || un->magic != DGAP_UNIT_MAGIC) dgap_block_til_ready() 3207 if (!tty || tty->magic != TTY_MAGIC) dgap_tty_flush_buffer() 3211 if (!un || un->magic != DGAP_UNIT_MAGIC) dgap_tty_flush_buffer() 3215 if (!ch || ch->magic != DGAP_CHANNEL_MAGIC) dgap_tty_flush_buffer() 3219 if (!bd || bd->magic != DGAP_BOARD_MAGIC) dgap_tty_flush_buffer() 3256 if (!tty || tty->magic != TTY_MAGIC) dgap_tty_hangup() 3260 if (!un || un->magic != DGAP_UNIT_MAGIC) dgap_tty_hangup() 3264 if (!ch || ch->magic != DGAP_CHANNEL_MAGIC) dgap_tty_hangup() 3268 if (!bd || bd->magic != DGAP_BOARD_MAGIC) dgap_tty_hangup() 3299 if (!un || un->magic != DGAP_UNIT_MAGIC) dgap_tty_chars_in_buffer() 3303 if (!ch || ch->magic != DGAP_CHANNEL_MAGIC) dgap_tty_chars_in_buffer() 3307 if (!bd || bd->magic != DGAP_BOARD_MAGIC) dgap_tty_chars_in_buffer() 3384 if (!tty || tty->magic != TTY_MAGIC) dgap_wait_for_drain() 3388 if (!un || un->magic != DGAP_UNIT_MAGIC) dgap_wait_for_drain() 3392 if (!ch || ch->magic != DGAP_CHANNEL_MAGIC) dgap_wait_for_drain() 3477 if (!un || un->magic != DGAP_UNIT_MAGIC) dgap_set_firmware_event() 3480 if (!ch || ch->magic != DGAP_CHANNEL_MAGIC) dgap_set_firmware_event() 3518 if (!un || un->magic != DGAP_UNIT_MAGIC) dgap_tty_write_room() 3522 if (!ch || ch->magic != DGAP_CHANNEL_MAGIC) dgap_tty_write_room() 3575 * In here exists all the Transparent Print magic as well. 3592 if (!un || un->magic != DGAP_UNIT_MAGIC) dgap_tty_write() 3596 if (!ch || ch->magic != DGAP_CHANNEL_MAGIC) dgap_tty_write() 3759 if (!tty || tty->magic != TTY_MAGIC) dgap_tty_tiocmget() 3763 if (!un || un->magic != DGAP_UNIT_MAGIC) dgap_tty_tiocmget() 3767 if (!ch || ch->magic != DGAP_CHANNEL_MAGIC) dgap_tty_tiocmget() 3810 if (!tty || tty->magic != TTY_MAGIC) dgap_tty_tiocmset() 3814 if (!un || un->magic != DGAP_UNIT_MAGIC) dgap_tty_tiocmset() 3818 if (!ch || ch->magic != DGAP_CHANNEL_MAGIC) dgap_tty_tiocmset() 3822 if (!bd || bd->magic != DGAP_BOARD_MAGIC) dgap_tty_tiocmset() 3869 if (!tty || tty->magic != TTY_MAGIC) dgap_tty_send_break() 3873 if (!un || un->magic != DGAP_UNIT_MAGIC) dgap_tty_send_break() 3877 if (!ch || ch->magic != DGAP_CHANNEL_MAGIC) dgap_tty_send_break() 3881 if (!bd || bd->magic != DGAP_BOARD_MAGIC) dgap_tty_send_break() 3932 if (!tty || tty->magic != TTY_MAGIC) dgap_tty_send_xchar() 3936 if (!un || un->magic != DGAP_UNIT_MAGIC) dgap_tty_send_xchar() 3940 if (!ch || ch->magic != DGAP_CHANNEL_MAGIC) dgap_tty_send_xchar() 3944 if (!bd || bd->magic != DGAP_BOARD_MAGIC) dgap_tty_send_xchar() 4181 if (!tty || tty->magic != TTY_MAGIC) dgap_tty_digigetedelay() 4185 if (!un || un->magic != DGAP_UNIT_MAGIC) dgap_tty_digigetedelay() 4189 if (!ch || ch->magic != DGAP_CHANNEL_MAGIC) dgap_tty_digigetedelay() 4302 if (!tty || tty->magic != TTY_MAGIC) dgap_tty_set_termios() 4306 if (!un || un->magic != DGAP_UNIT_MAGIC) dgap_tty_set_termios() 4310 if (!ch || ch->magic != DGAP_CHANNEL_MAGIC) dgap_tty_set_termios() 4314 if (!bd || bd->magic != DGAP_BOARD_MAGIC) dgap_tty_set_termios() 4342 if (!tty || tty->magic != TTY_MAGIC) dgap_tty_throttle() 4346 if (!un || un->magic != DGAP_UNIT_MAGIC) dgap_tty_throttle() 4350 if (!ch || ch->magic != DGAP_CHANNEL_MAGIC) dgap_tty_throttle() 4354 if (!bd || bd->magic != DGAP_BOARD_MAGIC) dgap_tty_throttle() 4378 if (!tty || tty->magic != TTY_MAGIC) dgap_tty_unthrottle() 4382 if (!un || un->magic != DGAP_UNIT_MAGIC) dgap_tty_unthrottle() 4386 if (!ch || ch->magic != DGAP_CHANNEL_MAGIC) dgap_tty_unthrottle() 4390 if (!bd || bd->magic != DGAP_BOARD_MAGIC) dgap_tty_unthrottle() 4590 if (!tty || tty->magic != TTY_MAGIC) dgap_tty_close() 4594 if (!un || un->magic != DGAP_UNIT_MAGIC) dgap_tty_close() 4598 if (!ch || ch->magic != DGAP_CHANNEL_MAGIC) dgap_tty_close() 4602 if (!bd || bd->magic != DGAP_BOARD_MAGIC) dgap_tty_close() 4716 if (!tty || tty->magic != TTY_MAGIC) dgap_tty_start() 4720 if (!un || un->magic != DGAP_UNIT_MAGIC) dgap_tty_start() 4724 if (!ch || ch->magic != DGAP_CHANNEL_MAGIC) dgap_tty_start() 4728 if (!bd || bd->magic != DGAP_BOARD_MAGIC) dgap_tty_start() 4748 if (!tty || tty->magic != TTY_MAGIC) dgap_tty_stop() 4752 if (!un || un->magic != DGAP_UNIT_MAGIC) dgap_tty_stop() 4756 if (!ch || ch->magic != DGAP_CHANNEL_MAGIC) dgap_tty_stop() 4760 if (!bd || bd->magic != DGAP_BOARD_MAGIC) dgap_tty_stop() 4793 if (!tty || tty->magic != TTY_MAGIC) dgap_tty_flush_chars() 4797 if (!un || un->magic != DGAP_UNIT_MAGIC) dgap_tty_flush_chars() 4801 if (!ch || ch->magic != DGAP_CHANNEL_MAGIC) dgap_tty_flush_chars() 4805 if (!bd || bd->magic != DGAP_BOARD_MAGIC) dgap_tty_flush_chars() 4840 if (!tty || tty->magic != TTY_MAGIC) dgap_tty_ioctl() 4844 if (!un || un->magic != DGAP_UNIT_MAGIC) dgap_tty_ioctl() 4848 if (!ch || ch->magic != DGAP_CHANNEL_MAGIC) dgap_tty_ioctl() 4852 if (!bd || bd->magic != DGAP_BOARD_MAGIC) dgap_tty_ioctl() 5363 if (!bd || bd->magic != DGAP_BOARD_MAGIC || bd->state != BOARD_READY) dgap_verify_board() 5599 if (!un || un->magic != DGAP_UNIT_MAGIC) dgap_tty_state_show() 5602 if (!ch || ch->magic != DGAP_CHANNEL_MAGIC) dgap_tty_state_show() 5605 if (!bd || bd->magic != DGAP_BOARD_MAGIC) dgap_tty_state_show() 5626 if (!un || un->magic != DGAP_UNIT_MAGIC) dgap_tty_baud_show() 5629 if (!ch || ch->magic != DGAP_CHANNEL_MAGIC) dgap_tty_baud_show() 5632 if (!bd || bd->magic != DGAP_BOARD_MAGIC) dgap_tty_baud_show() 5652 if (!un || un->magic != DGAP_UNIT_MAGIC) dgap_tty_msignals_show() 5655 if (!ch || ch->magic != DGAP_CHANNEL_MAGIC) dgap_tty_msignals_show() 5658 if (!bd || bd->magic != DGAP_BOARD_MAGIC) dgap_tty_msignals_show() 5687 if (!un || un->magic != DGAP_UNIT_MAGIC) dgap_tty_iflag_show() 5690 if (!ch || ch->magic != DGAP_CHANNEL_MAGIC) dgap_tty_iflag_show() 5693 if (!bd || bd->magic != DGAP_BOARD_MAGIC) dgap_tty_iflag_show() 5713 if (!un || un->magic != DGAP_UNIT_MAGIC) dgap_tty_cflag_show() 5716 if (!ch || ch->magic != DGAP_CHANNEL_MAGIC) dgap_tty_cflag_show() 5719 if (!bd || bd->magic != DGAP_BOARD_MAGIC) dgap_tty_cflag_show() 5739 if (!un || un->magic != DGAP_UNIT_MAGIC) dgap_tty_oflag_show() 5742 if (!ch || ch->magic != DGAP_CHANNEL_MAGIC) dgap_tty_oflag_show() 5745 if (!bd || bd->magic != DGAP_BOARD_MAGIC) dgap_tty_oflag_show() 5765 if (!un || un->magic != DGAP_UNIT_MAGIC) dgap_tty_lflag_show() 5768 if (!ch || ch->magic != DGAP_CHANNEL_MAGIC) dgap_tty_lflag_show() 5771 if (!bd || bd->magic != DGAP_BOARD_MAGIC) dgap_tty_lflag_show() 5791 if (!un || un->magic != DGAP_UNIT_MAGIC) dgap_tty_digi_flag_show() 5794 if (!ch || ch->magic != DGAP_CHANNEL_MAGIC) dgap_tty_digi_flag_show() 5797 if (!bd || bd->magic != DGAP_BOARD_MAGIC) dgap_tty_digi_flag_show() 5817 if (!un || un->magic != DGAP_UNIT_MAGIC) dgap_tty_rxcount_show() 5820 if (!ch || ch->magic != DGAP_CHANNEL_MAGIC) dgap_tty_rxcount_show() 5823 if (!bd || bd->magic != DGAP_BOARD_MAGIC) dgap_tty_rxcount_show() 5843 if (!un || un->magic != DGAP_UNIT_MAGIC) dgap_tty_txcount_show() 5846 if (!ch || ch->magic != DGAP_CHANNEL_MAGIC) dgap_tty_txcount_show() 5849 if (!bd || bd->magic != DGAP_BOARD_MAGIC) dgap_tty_txcount_show() 5876 if (!un || un->magic != DGAP_UNIT_MAGIC) dgap_tty_name_show() 5879 if (!ch || ch->magic != DGAP_CHANNEL_MAGIC) dgap_tty_name_show() 5882 if (!bd || bd->magic != DGAP_BOARD_MAGIC) dgap_tty_name_show() 6025 if (!brd || (brd->magic != DGAP_BOARD_MAGIC) || !brd->re_map_membase) dgap_do_bios_load() 6059 if (!brd || (brd->magic != DGAP_BOARD_MAGIC) || !brd->re_map_membase) dgap_test_bios() 6100 if (!brd || (brd->magic != DGAP_BOARD_MAGIC) || !brd->re_map_membase) dgap_do_fep_load() 6147 if (!brd || (brd->magic != DGAP_BOARD_MAGIC) || !brd->re_map_membase) dgap_test_fep() 6197 if (!brd || (brd->magic != DGAP_BOARD_MAGIC) || dgap_do_reset_board() 6247 if (!brd || (brd->magic != DGAP_BOARD_MAGIC) || !brd->re_map_membase) dgap_do_conc_load() 6268 u32 magic; dgap_get_vpd() local 6278 * Poke the magic number at the PCI Rom Address location. dgap_get_vpd() 6282 magic = FEP5_ROM_MAGIC; dgap_get_vpd() 6283 pci_write_config_dword(brd->pdev, PCI_ROM_ADDRESS, magic); dgap_get_vpd() 6284 pci_read_config_dword(brd->pdev, PCI_ROM_ADDRESS, &magic); dgap_get_vpd() 6287 if (!magic) dgap_get_vpd() 6294 magic = brd->membase | 0x01; dgap_get_vpd() 6295 pci_write_config_dword(brd->pdev, PCI_ROM_ADDRESS, magic); dgap_get_vpd() 6296 pci_read_config_dword(brd->pdev, PCI_ROM_ADDRESS, &magic); dgap_get_vpd() 6316 * Lots of magic numbers here. dgap_get_vpd() 6366 * We MUST poke the magic number at the PCI Rom Address location again. dgap_get_vpd() 6370 magic = FEP5_ROM_MAGIC; dgap_get_vpd() 6371 pci_write_config_dword(brd->pdev, PCI_ROM_ADDRESS, magic); dgap_get_vpd() 6591 if (!brd || brd->magic != DGAP_BOARD_MAGIC) dgap_request_irq() 6825 /* Store all our magic numbers */ dgap_tty_init() 6826 ch->magic = DGAP_CHANNEL_MAGIC; dgap_tty_init() 6827 ch->ch_tun.magic = DGAP_UNIT_MAGIC; dgap_tty_init() 6832 ch->ch_pun.magic = DGAP_UNIT_MAGIC; dgap_tty_init() 7083 if (!brd || brd->magic != DGAP_BOARD_MAGIC) dgap_cleanup_board()
|
/linux-4.1.27/fs/kernfs/ |
H A D | mount.c | 14 #include <linux/magic.h> 65 static int kernfs_fill_super(struct super_block *sb, unsigned long magic) kernfs_fill_super() argument 74 sb->s_magic = magic; kernfs_fill_super() 135 * @magic: file system specific magic number 147 struct kernfs_root *root, unsigned long magic, kernfs_mount_ns() 173 error = kernfs_fill_super(sb, magic); kernfs_mount_ns() 146 kernfs_mount_ns(struct file_system_type *fs_type, int flags, struct kernfs_root *root, unsigned long magic, bool *new_sb_created, const void *ns) kernfs_mount_ns() argument
|
/linux-4.1.27/drivers/net/wireless/b43/ |
H A D | main.h | 36 #define P4D_BYT3S(magic, nr_bytes) u8 __p4dding##magic[nr_bytes] 38 /* Magic helper macro to pad structures. Ignore those above. It's magic. */
|
/linux-4.1.27/drivers/net/wireless/b43legacy/ |
H A D | main.h | 38 #define P4D_BYT3S(magic, nr_bytes) u8 __p4dding##magic[nr_bytes] 40 /* Magic helper macro to pad structures. Ignore those above. It's magic. */
|
/linux-4.1.27/arch/x86/power/ |
H A D | hibernate_64.c | 113 unsigned long magic; member in struct:restore_data_record 131 rdr->magic = RESTORE_MAGIC; arch_hibernation_header_save() 146 return (rdr->magic == RESTORE_MAGIC) ? 0 : -EINVAL; arch_hibernation_header_restore()
|
/linux-4.1.27/include/uapi/scsi/ |
H A D | scsi_netlink.h | 45 uint16_t magic; member in struct:scsi_nl_hdr 53 /* scsi_nl_hdr->magic value */ 117 (hdr)->magic = SCSI_NL_MAGIC; \
|
/linux-4.1.27/arch/powerpc/boot/ |
H A D | wii.c | 35 char magic[3]; member in struct:mipc_infohdr 70 if (memcmp(hdr->magic, "IPC", 3)) { mipc_get_infohdr() 71 printf("mini: invalid magic\n"); mipc_get_infohdr()
|
H A D | epapr.c | 35 fatal("r6 contained 0x%08x instead of ePAPR magic number\n", platform_fixups()
|
/linux-4.1.27/net/irda/ircomm/ |
H A D | ircomm_param.c | 105 IRDA_ASSERT(self->magic == IRCOMM_TTY_MAGIC, return -1;); ircomm_param_request() 164 IRDA_ASSERT(self->magic == IRCOMM_TTY_MAGIC, return -1;); ircomm_param_service_type() 228 IRDA_ASSERT(self->magic == IRCOMM_TTY_MAGIC, return -1;); ircomm_param_port_type() 252 IRDA_ASSERT(self->magic == IRCOMM_TTY_MAGIC, return -1;); ircomm_param_port_name() 275 IRDA_ASSERT(self->magic == IRCOMM_TTY_MAGIC, return -1;); ircomm_param_data_rate() 299 IRDA_ASSERT(self->magic == IRCOMM_TTY_MAGIC, return -1;); ircomm_param_data_format() 321 IRDA_ASSERT(self->magic == IRCOMM_TTY_MAGIC, return -1;); ircomm_param_flow_control() 344 IRDA_ASSERT(self->magic == IRCOMM_TTY_MAGIC, return -1;); ircomm_param_xon_xoff() 371 IRDA_ASSERT(self->magic == IRCOMM_TTY_MAGIC, return -1;); ircomm_param_enq_ack() 413 IRDA_ASSERT(self->magic == IRCOMM_TTY_MAGIC, return -1;); ircomm_param_dte() 462 IRDA_ASSERT(self->magic == IRCOMM_TTY_MAGIC, return -1;); ircomm_param_dce() 489 IRDA_ASSERT(self->magic == IRCOMM_TTY_MAGIC, return -1;); ircomm_param_poll()
|
H A D | ircomm_core.c | 122 self->magic = IRCOMM_MAGIC; ircomm_open() 170 self->magic = 0; __ircomm_close() 188 IRDA_ASSERT(self->magic == IRCOMM_MAGIC, return -EIO;); ircomm_close() 214 IRDA_ASSERT(self->magic == IRCOMM_MAGIC, return -1;); ircomm_connect_request() 263 IRDA_ASSERT(self->magic == IRCOMM_MAGIC, return -1;); ircomm_connect_response() 302 IRDA_ASSERT(self->magic == IRCOMM_MAGIC, return -EFAULT;); ircomm_data_request() 385 IRDA_ASSERT(self->magic == IRCOMM_MAGIC, return -EFAULT;); ircomm_control_request() 439 IRDA_ASSERT(self->magic == IRCOMM_MAGIC, return -1;); ircomm_disconnect_request() 476 IRDA_ASSERT(self->magic == IRCOMM_MAGIC, return;); ircomm_flow_request() 520 IRDA_ASSERT(self->magic == IRCOMM_MAGIC, return -EINVAL; ); ircomm_seq_show()
|
H A D | ircomm_tty.c | 178 IRDA_ASSERT(self->magic == IRCOMM_TTY_MAGIC, return;); __ircomm_tty_cleanup() 182 self->magic = 0; __ircomm_tty_cleanup() 220 IRDA_ASSERT(self->magic == IRCOMM_TTY_MAGIC, return -1;); ircomm_tty_startup() 390 self->magic = IRCOMM_TTY_MAGIC; ircomm_tty_install() 513 IRDA_ASSERT(self->magic == IRCOMM_TTY_MAGIC, return;); ircomm_tty_close() 537 IRDA_ASSERT(self->magic == IRCOMM_TTY_MAGIC, return;); ircomm_tty_flush_buffer() 561 if (!self || self->magic != IRCOMM_TTY_MAGIC) ircomm_tty_do_softint() 630 IRDA_ASSERT(self->magic == IRCOMM_TTY_MAGIC, return -1;); ircomm_tty_write() 756 IRDA_ASSERT(self->magic == IRCOMM_TTY_MAGIC, return -1;); ircomm_tty_write_room() 796 IRDA_ASSERT(self->magic == IRCOMM_TTY_MAGIC, return;); ircomm_tty_wait_until_sent() 831 IRDA_ASSERT(self->magic == IRCOMM_TTY_MAGIC, return;); ircomm_tty_throttle() 860 IRDA_ASSERT(self->magic == IRCOMM_TTY_MAGIC, return;); ircomm_tty_unthrottle() 890 IRDA_ASSERT(self->magic == IRCOMM_TTY_MAGIC, return -1;); ircomm_tty_chars_in_buffer() 907 IRDA_ASSERT(self->magic == IRCOMM_TTY_MAGIC, return;); ircomm_tty_shutdown() 952 IRDA_ASSERT(self->magic == IRCOMM_TTY_MAGIC, return;); ircomm_tty_hangup() 1005 IRDA_ASSERT(self->magic == IRCOMM_TTY_MAGIC, return;); ircomm_tty_stop() 1023 IRDA_ASSERT(self->magic == IRCOMM_TTY_MAGIC, return;); ircomm_tty_check_modem_status() 1083 IRDA_ASSERT(self->magic == IRCOMM_TTY_MAGIC, return -1;); ircomm_tty_data_indication() 1133 IRDA_ASSERT(self->magic == IRCOMM_TTY_MAGIC, return -1;); ircomm_tty_control_indication() 1160 IRDA_ASSERT(self->magic == IRCOMM_TTY_MAGIC, return;); ircomm_tty_flow_indication() 1332 if (self->magic != IRCOMM_TTY_MAGIC) ircomm_tty_proc_show()
|
H A D | ircomm_tty_attach.c | 132 IRDA_ASSERT(self->magic == IRCOMM_TTY_MAGIC, return -1;); ircomm_tty_attach_cable() 163 IRDA_ASSERT(self->magic == IRCOMM_TTY_MAGIC, return;); ircomm_tty_detach_cable() 210 IRDA_ASSERT(self->magic == IRCOMM_TTY_MAGIC, return;); ircomm_tty_ias_register() 299 IRDA_ASSERT(self->magic == IRCOMM_TTY_MAGIC, return -1;); ircomm_tty_send_initial_parameters() 398 IRDA_ASSERT(self->magic == IRCOMM_TTY_MAGIC, return;); ircomm_tty_disconnect_indication() 428 IRDA_ASSERT(self->magic == IRCOMM_TTY_MAGIC, return;); ircomm_tty_getvalue_confirm() 487 IRDA_ASSERT(self->magic == IRCOMM_TTY_MAGIC, return;); ircomm_tty_connect_confirm() 516 IRDA_ASSERT(self->magic == IRCOMM_TTY_MAGIC, return;); ircomm_tty_connect_indication() 545 IRDA_ASSERT(self->magic == IRCOMM_TTY_MAGIC, return;); ircomm_tty_link_established() 588 IRDA_ASSERT(self->magic == IRCOMM_TTY_MAGIC, return;); ircomm_tty_start_watchdog_timer() 605 IRDA_ASSERT(self->magic == IRCOMM_TTY_MAGIC, return;); ircomm_tty_watchdog_timer_expired() 621 IRDA_ASSERT(self->magic == IRCOMM_TTY_MAGIC, return -1;); ircomm_tty_do_event() 639 IRDA_ASSERT(self->magic == IRCOMM_TTY_MAGIC, return;); ircomm_tty_next_state()
|
H A D | ircomm_lmp.c | 150 IRDA_ASSERT(self->magic == IRCOMM_MAGIC, return;); ircomm_lmp_flow_control() 218 IRDA_ASSERT(self->magic == IRCOMM_MAGIC, return -1;); ircomm_lmp_data_indication() 246 IRDA_ASSERT(self->magic == IRCOMM_MAGIC, return;); ircomm_lmp_connect_confirm() 277 IRDA_ASSERT(self->magic == IRCOMM_MAGIC, return;); ircomm_lmp_connect_indication() 305 IRDA_ASSERT(self->magic == IRCOMM_MAGIC, return;); ircomm_lmp_disconnect_indication()
|
H A D | ircomm_ttp.c | 204 IRDA_ASSERT(self->magic == IRCOMM_MAGIC, return -1;); ircomm_ttp_data_indication() 225 IRDA_ASSERT(self->magic == IRCOMM_MAGIC, return;); ircomm_ttp_connect_confirm() 264 IRDA_ASSERT(self->magic == IRCOMM_MAGIC, return;); ircomm_ttp_connect_indication() 321 IRDA_ASSERT(self->magic == IRCOMM_MAGIC, return;); ircomm_ttp_disconnect_indication() 344 IRDA_ASSERT(self->magic == IRCOMM_MAGIC, return;); ircomm_ttp_flow_indication()
|
/linux-4.1.27/tools/perf/util/ |
H A D | header.h | 48 u64 magic; member in struct:perf_file_header 59 u64 magic; member in struct:perf_pipe_file_header 148 bool is_perf_magic(u64 magic);
|
/linux-4.1.27/drivers/md/bcache/ |
H A D | closure.c | 146 BUG_ON(cl->magic == CLOSURE_MAGIC_ALIVE); closure_debug_create() 147 cl->magic = CLOSURE_MAGIC_ALIVE; closure_debug_create() 159 BUG_ON(cl->magic != CLOSURE_MAGIC_ALIVE); closure_debug_destroy() 160 cl->magic = CLOSURE_MAGIC_DEAD; closure_debug_destroy()
|
/linux-4.1.27/drivers/net/wan/ |
H A D | x25_asy.h | 18 int magic; member in struct:x25_asy
|
/linux-4.1.27/arch/x86/xen/ |
H A D | platform-pci-unplug.c | 40 short magic; check_platform_magic() local 43 magic = inw(XEN_IOPORT_MAGIC); check_platform_magic() 44 if (magic != XEN_IOPORT_MAGIC_VAL) { check_platform_magic() 45 printk(KERN_ERR "Xen Platform PCI: unrecognised magic value\n"); check_platform_magic()
|
/linux-4.1.27/fs/ncpfs/ |
H A D | symlink.c | 6 * infrequently-used flag (Sh) and store a two-word magic header in 11 * don't bother with the magic numbers. 34 /* these magic numbers must appear in the symlink file -- this makes it a bit 35 more resilient against the magic attributes being set on random files. */
|
/linux-4.1.27/include/media/ |
H A D | videobuf-vmalloc.h | 23 u32 magic; member in struct:videobuf_vmalloc_memory
|
H A D | videobuf-dma-sg.h | 47 u32 magic; member in struct:videobuf_dmabuf 71 u32 magic; member in struct:videobuf_dma_sg_memory
|
/linux-4.1.27/arch/s390/include/asm/ |
H A D | os_info.h | 24 u64 magic; member in struct:os_info
|
/linux-4.1.27/arch/sh/include/asm/ |
H A D | io_trapped.h | 11 unsigned int magic; member in struct:trapped_io
|
/linux-4.1.27/arch/mips/include/asm/ |
H A D | vga.h | 14 * access the videoram directly without any black magic.
|
/linux-4.1.27/arch/powerpc/perf/ |
H A D | hv-24x7-catalog.h | 10 __be32 magic; member in struct:hv_24x7_catalog_page_0
|
/linux-4.1.27/arch/arm/mach-alpine/ |
H A D | alpine_cpu_resume.h | 34 /* The expected magic number for validating the resume addresses */
|
/linux-4.1.27/net/ceph/ |
H A D | auth_x_protocol.h | 87 __le64 magic; member in struct:ceph_x_encrypt_header
|
/linux-4.1.27/scripts/dtc/ |
H A D | flattree.c | 348 fdt->magic = cpu_to_fdt32(FDT_MAGIC); make_fdt_header() 482 fprintf(f, "\t/* magic */\n"); dt_to_asm() 807 uint32_t magic, totalsize, version, size_dt, boot_cpuid_phys; dt_from_blob() local 823 rc = fread(&magic, sizeof(magic), 1, f); dt_from_blob() 825 die("Error reading DT blob magic number: %s\n", dt_from_blob() 829 die("EOF reading DT blob magic number\n"); dt_from_blob() 831 die("Mysterious short read reading magic number\n"); dt_from_blob() 834 magic = fdt32_to_cpu(magic); dt_from_blob() 835 if (magic != FDT_MAGIC) dt_from_blob() 836 die("Blob has incorrect magic number\n"); dt_from_blob() 855 fdt->magic = cpu_to_fdt32(magic); dt_from_blob() 858 sizeleft = totalsize - sizeof(magic) - sizeof(totalsize); dt_from_blob() 859 p = blob + sizeof(magic) + sizeof(totalsize); dt_from_blob()
|
H A D | fdtdump.c | 67 printf("// magic:\t\t0x%x\n", fdt32_to_cpu(bph->magic)); dump_blob()
|
/linux-4.1.27/arch/um/drivers/ |
H A D | mconsole.h | 22 u32 magic; member in struct:mconsole_request 36 u32 magic; member in struct:mconsole_notify
|
H A D | cow_user.c | 23 __s32 magic; member in struct:cow_header_v1 42 __u32 magic; member in struct:cow_header_v2 86 __u32 magic; member in struct:cow_header_v3 98 __u32 magic; member in struct:cow_header_v3_broken 216 header->magic = htobe32(COW_MAGIC); write_cow_header() 286 unsigned long version, magic; read_cow_header() local 300 magic = header->v1.magic; read_cow_header() 301 if (magic == COW_MAGIC) read_cow_header() 303 else if (magic == be32toh(COW_MAGIC)) read_cow_header()
|
H A D | mconsole_user.c | 91 if (req->request.magic != MCONSOLE_MAGIC) { mconsole_get_request() 98 req->request.magic = MCONSOLE_MAGIC; mconsole_get_request() 202 packet.magic = MCONSOLE_MAGIC; mconsole_notify()
|
/linux-4.1.27/arch/arc/kernel/ |
H A D | signal.c | 92 static inline int is_do_ss_needed(unsigned int magic) is_do_ss_needed() argument 94 if (MAGIC_SIGALTSTK == magic) is_do_ss_needed() 103 unsigned int magic; SYSCALL_DEFINE0() local 121 if (__get_user(magic, &sf->sigret_magic)) SYSCALL_DEFINE0() 124 if (unlikely(is_do_ss_needed(magic))) SYSCALL_DEFINE0() 178 unsigned int magic = 0; setup_rt_frame() local 214 magic = MAGIC_SIGALTSTK; setup_rt_frame() 217 err |= __put_user(magic, &sf->sigret_magic); setup_rt_frame()
|
/linux-4.1.27/drivers/misc/mic/card/ |
H A D | mic_device.c | 110 u32 magic; mic_dp_init() local 122 magic = ioread32(&bootparam->magic); mic_dp_init() 123 if (MIC_MAGIC != magic) { mic_dp_init() 124 dev_err(mdrv->dev, "bootparam magic mismatch 0x%x\n", magic); mic_dp_init()
|
/linux-4.1.27/fs/ntfs/ |
H A D | mst.c | 32 * magic of the ntfs record header being processed with "BAAD" (in memory only!) 35 * Return 0 on success and -EINVAL on error ("BAAD" magic will be present). 78 * Set the magic to "BAAD" and return failure. post_read_mst_fixup() 81 b->magic = magic_BAAD; post_read_mst_fixup() 130 if (!b || ntfs_is_baad_record(b->magic) || pre_write_mst_fixup() 131 ntfs_is_hole_record(b->magic)) pre_write_mst_fixup()
|
/linux-4.1.27/include/uapi/linux/usb/ |
H A D | functionfs.h | 38 __le32 magic; member in struct:usb_functionfs_descs_head_v2 49 __le32 magic; member in struct:usb_functionfs_descs_head 91 * | 0 | magic | LE32 | FUNCTIONFS_DESCRIPTORS_MAGIC_V2 | 111 * | 0 | magic | LE32 | FUNCTIONFS_DESCRIPTORS_MAGIC | 177 __le32 magic; member in struct:usb_functionfs_strings_head 188 * | 0 | magic | LE32 | FUNCTIONFS_STRINGS_MAGIC |
|
/linux-4.1.27/drivers/mtd/ubi/ |
H A D | ubi-media.h | 44 /* Erase counter header magic number (ASCII "UBI#") */ 46 /* Volume identifier header magic number (ASCII "UBI!") */ 125 * @magic: erase counter header magic number (%UBI_EC_HDR_MAGIC) 158 __be32 magic; member in struct:ubi_ec_hdr 171 * @magic: volume identifier header magic number (%UBI_VID_HDR_MAGIC) 279 __be32 magic; member in struct:ubi_vid_hdr 408 * @magic: fastmap super block magic number (%UBI_FM_SB_MAGIC) 418 __be32 magic; member in struct:ubi_fm_sb 431 * @magic: fastmap header magic number (%UBI_FM_HDR_MAGIC) 440 __be32 magic; member in struct:ubi_fm_hdr 454 * @magic: pool magic numer (%UBI_FM_POOL_MAGIC) 460 __be32 magic; member in struct:ubi_fm_scan_pool 482 * @magic: Fastmap volume header magic number (%UBI_FM_VHDR_MAGIC) 490 __be32 magic; member in struct:ubi_fm_volhdr 504 * @magic: EBA table magic number 509 __be32 magic; member in struct:ubi_fm_eba
|
H A D | io.c | 495 * magic numbers in order to invalidate them and prevent the failures. Returns 736 uint32_t crc, magic, hdr_crc; ubi_io_read_ec_hdr() local 757 magic = be32_to_cpu(ec_hdr->magic); ubi_io_read_ec_hdr() 758 if (magic != UBI_EC_HDR_MAGIC) { ubi_io_read_ec_hdr() 763 * The magic field is wrong. Let's check if we have read all ubi_io_read_ec_hdr() 785 ubi_warn(ubi, "bad magic number at PEB %d: %08x instead of %08x", ubi_io_read_ec_hdr() 786 pnum, magic, UBI_EC_HDR_MAGIC); ubi_io_read_ec_hdr() 789 dbg_bld("bad magic number at PEB %d: %08x instead of %08x", ubi_io_read_ec_hdr() 790 pnum, magic, UBI_EC_HDR_MAGIC); ubi_io_read_ec_hdr() 850 ec_hdr->magic = cpu_to_be32(UBI_EC_HDR_MAGIC); ubi_io_write_ec_hdr() 1014 uint32_t crc, magic, hdr_crc; ubi_io_read_vid_hdr() local 1026 magic = be32_to_cpu(vid_hdr->magic); ubi_io_read_vid_hdr() 1027 if (magic != UBI_VID_HDR_MAGIC) { ubi_io_read_vid_hdr() 1044 ubi_warn(ubi, "bad magic number at PEB %d: %08x instead of %08x", ubi_io_read_vid_hdr() 1045 pnum, magic, UBI_VID_HDR_MAGIC); ubi_io_read_vid_hdr() 1048 dbg_bld("bad magic number at PEB %d: %08x instead of %08x", ubi_io_read_vid_hdr() 1049 pnum, magic, UBI_VID_HDR_MAGIC); ubi_io_read_vid_hdr() 1087 * @vid_hdr->magic and the @vid_hdr->version fields, as well as calculates 1108 vid_hdr->magic = cpu_to_be32(UBI_VID_HDR_MAGIC); ubi_io_write_vid_hdr() 1163 uint32_t magic; self_check_ec_hdr() local 1168 magic = be32_to_cpu(ec_hdr->magic); self_check_ec_hdr() 1169 if (magic != UBI_EC_HDR_MAGIC) { self_check_ec_hdr() 1170 ubi_err(ubi, "bad magic %#08x, must be %#08x", self_check_ec_hdr() 1171 magic, UBI_EC_HDR_MAGIC); self_check_ec_hdr() 1246 uint32_t magic; self_check_vid_hdr() local 1251 magic = be32_to_cpu(vid_hdr->magic); self_check_vid_hdr() 1252 if (magic != UBI_VID_HDR_MAGIC) { self_check_vid_hdr() 1253 ubi_err(ubi, "bad VID header magic %#08x at PEB %d, must be %#08x", self_check_vid_hdr() 1254 magic, pnum, UBI_VID_HDR_MAGIC); self_check_vid_hdr()
|
H A D | fastmap.c | 628 if (be32_to_cpu(fmhdr->magic) != UBI_FM_HDR_MAGIC) { ubi_attach_fastmap() 629 ubi_err(ubi, "bad fastmap header magic: 0x%x, expected: 0x%x", ubi_attach_fastmap() 630 be32_to_cpu(fmhdr->magic), UBI_FM_HDR_MAGIC); ubi_attach_fastmap() 638 if (be32_to_cpu(fmpl1->magic) != UBI_FM_POOL_MAGIC) { ubi_attach_fastmap() 639 ubi_err(ubi, "bad fastmap pool magic: 0x%x, expected: 0x%x", ubi_attach_fastmap() 640 be32_to_cpu(fmpl1->magic), UBI_FM_POOL_MAGIC); ubi_attach_fastmap() 648 if (be32_to_cpu(fmpl2->magic) != UBI_FM_POOL_MAGIC) { ubi_attach_fastmap() 649 ubi_err(ubi, "bad fastmap pool magic: 0x%x, expected: 0x%x", ubi_attach_fastmap() 650 be32_to_cpu(fmpl2->magic), UBI_FM_POOL_MAGIC); ubi_attach_fastmap() 737 if (be32_to_cpu(fmvhdr->magic) != UBI_FM_VHDR_MAGIC) { ubi_attach_fastmap() 738 ubi_err(ubi, "bad fastmap vol header magic: 0x%x, expected: 0x%x", ubi_attach_fastmap() 739 be32_to_cpu(fmvhdr->magic), UBI_FM_VHDR_MAGIC); ubi_attach_fastmap() 762 if (be32_to_cpu(fm_eba->magic) != UBI_FM_EBA_MAGIC) { ubi_attach_fastmap() 763 ubi_err(ubi, "bad fastmap EBA header magic: 0x%x, expected: 0x%x", ubi_attach_fastmap() 764 be32_to_cpu(fm_eba->magic), UBI_FM_EBA_MAGIC); ubi_attach_fastmap() 889 if (be32_to_cpu(fmsb->magic) != UBI_FM_SB_MAGIC) { ubi_scan_fastmap() 890 ubi_err(ubi, "bad super block magic: 0x%x, expected: 0x%x", ubi_scan_fastmap() 891 be32_to_cpu(fmsb->magic), UBI_FM_SB_MAGIC); ubi_scan_fastmap() 1132 fmsb->magic = cpu_to_be32(UBI_FM_SB_MAGIC); ubi_write_fastmap() 1138 fmh->magic = cpu_to_be32(UBI_FM_HDR_MAGIC); ubi_write_fastmap() 1147 fmpl1->magic = cpu_to_be32(UBI_FM_POOL_MAGIC); ubi_write_fastmap() 1158 fmpl2->magic = cpu_to_be32(UBI_FM_POOL_MAGIC); ubi_write_fastmap() 1249 fvh->magic = cpu_to_be32(UBI_FM_VHDR_MAGIC); 1267 feba->magic = cpu_to_be32(UBI_FM_EBA_MAGIC);
|
/linux-4.1.27/drivers/w1/slaves/ |
H A D | w1_ds2408.c | 300 u8 magic[10] = {0x96, }; w1_f29_disable_test_mode() local 303 memcpy(&magic[1], &rn, 8); w1_f29_disable_test_mode() 304 magic[9] = 0x3C; w1_f29_disable_test_mode() 311 w1_write_block(sl->master, magic, ARRAY_SIZE(magic)); w1_f29_disable_test_mode()
|
/linux-4.1.27/drivers/net/ethernet/broadcom/genet/ |
H A D | bcmgenet_wol.c | 62 * Only for magic packet detection mode. 205 /* Stop monitoring magic packet IRQ */ bcmgenet_wol_power_up_cfg() 208 /* Stop monitoring magic packet IRQ */ bcmgenet_wol_power_up_cfg()
|
/linux-4.1.27/drivers/block/ |
H A D | nbd.c | 46 int magic; member in struct:nbd_device 235 request.magic = htonl(NBD_REQUEST_MAGIC); nbd_send_req() 320 reply.magic = 0; nbd_read_stat() 328 if (ntohl(reply.magic) != NBD_REPLY_MAGIC) { nbd_read_stat() 329 dev_err(disk_to_dev(nbd->disk), "Wrong magic (0x%lx)\n", nbd_read_stat() 330 (unsigned long)ntohl(reply.magic)); nbd_read_stat() 396 BUG_ON(nbd->magic != NBD_MAGIC); nbd_do_it() 419 BUG_ON(nbd->magic != NBD_MAGIC); nbd_clear_que() 554 BUG_ON(nbd->magic != NBD_MAGIC); 748 BUG_ON(nbd->magic != NBD_MAGIC); nbd_ioctl() 842 nbd_dev[i].magic = NBD_MAGIC; nbd_init() 875 nbd_dev[i].magic = 0; nbd_cleanup()
|
/linux-4.1.27/arch/mips/include/asm/dec/ |
H A D | prom.h | 52 #define prom_is_rex(magic) 1 /* KN04 and KN05 are REX PROMs. */ 56 #define prom_is_rex(magic) ((magic) == REX_PROM_MAGIC)
|
/linux-4.1.27/drivers/isdn/sc/ |
H A D | init.c | 53 unsigned long magic; sc_init() local 71 magic = 0; sc_init() 207 * Set the board's magic number, memory size and page register sc_init() 212 magic = 0x20000; sc_init() 220 magic = 0x60000; sc_init() 314 sc_adapter[cinst]->shmem_magic = magic; sc_init()
|
/linux-4.1.27/include/net/irda/ |
H A D | irda_device.h | 93 magic_t magic; member in struct:irda_task 141 magic_t magic; /* Be sure that we can trust the information */ member in struct:irda_skb_cb 242 return (cb->magic == LAP_MAGIC) ? cb->mtt : 10000; irda_get_mtt() 255 return (cb->magic == LAP_MAGIC) ? cb->next_speed : -1; irda_get_next_speed() 268 return (cb->magic == LAP_MAGIC) ? cb->xbofs : 10; irda_get_xbofs() 281 return (cb->magic == LAP_MAGIC) ? cb->next_xbofs : -1; irda_get_next_xbofs()
|
H A D | irias_object.h | 46 magic_t magic; member in struct:ias_object 75 int magic; member in struct:ias_attrib
|
/linux-4.1.27/scripts/ |
H A D | pnmtologo.c | 129 int magic; read_image() local 138 magic = fgetc(fp); read_image() 139 if (magic != 'P') read_image() 141 magic = fgetc(fp); read_image() 142 switch (magic) { read_image() 173 switch (magic) { read_image()
|
/linux-4.1.27/drivers/net/wireless/hostap/ |
H A D | hostap_80211_tx.c | 254 meta->magic = HOSTAP_SKB_TX_DATA_MAGIC; hostap_data_start_xmit() 292 meta->magic = HOSTAP_SKB_TX_DATA_MAGIC; hostap_mgmt_start_xmit() 401 if (meta->magic != HOSTAP_SKB_TX_DATA_MAGIC) { hostap_master_start_xmit() 402 printk(KERN_DEBUG "%s: invalid skb->cb magic (0x%08x, " hostap_master_start_xmit() 404 dev->name, meta->magic, HOSTAP_SKB_TX_DATA_MAGIC); hostap_master_start_xmit() 523 if (meta->magic != HOSTAP_SKB_TX_DATA_MAGIC) { hostap_master_start_xmit() 524 printk(KERN_DEBUG "%s: invalid skb->cb magic (0x%08x, " hostap_master_start_xmit() 526 dev->name, meta->magic, hostap_master_start_xmit()
|
/linux-4.1.27/fs/qnx6/ |
H A D | super_mmi.c | 54 pr_err("wrong signature (magic) in superblock #1.\n"); qnx6_mmi_fill_super() 91 pr_err("wrong signature (magic) in superblock #2.\n"); qnx6_mmi_fill_super()
|
/linux-4.1.27/fs/xfs/ |
H A D | xfs_attr_list.c | 252 switch (be16_to_cpu(node->hdr.info.magic)) { xfs_attr_node_list() 293 __uint16_t magic; xfs_attr_node_list() local 301 magic = be16_to_cpu(node->hdr.info.magic); xfs_attr_node_list() 302 if (magic == XFS_ATTR_LEAF_MAGIC || xfs_attr_node_list() 303 magic == XFS_ATTR3_LEAF_MAGIC) xfs_attr_node_list() 305 if (magic != XFS_DA_NODE_MAGIC && xfs_attr_node_list() 306 magic != XFS_DA3_NODE_MAGIC) { xfs_attr_node_list()
|
/linux-4.1.27/arch/powerpc/platforms/powernv/ |
H A D | opal-msglog.c | 21 __be64 magic; member in struct:memcons 115 if (be64_to_cpu(mc->magic) != MEMCONS_MAGIC) { opal_msglog_init()
|
/linux-4.1.27/arch/s390/kernel/ |
H A D | os_info.c | 62 os_info.magic = OS_INFO_MAGIC; os_info_init() 134 if (os_info_old->magic != OS_INFO_MAGIC) os_info_old_init()
|
/linux-4.1.27/arch/cris/boot/compressed/ |
H A D | head_v10.S | 92 ;; Save command line magic and address. 108 ;; Restore command line magic and address.
|
/linux-4.1.27/fs/cramfs/ |
H A D | inode.c | 34 unsigned long magic; member in struct:cramfs_sb_info 281 if (super.magic != CRAMFS_MAGIC) { cramfs_fill_super() 283 if (super.magic == CRAMFS_MAGIC_WEND) { cramfs_fill_super() 293 if (super.magic != CRAMFS_MAGIC) { cramfs_fill_super() 294 if (super.magic == CRAMFS_MAGIC_WEND && !silent) cramfs_fill_super() 297 pr_err("wrong magic\n"); cramfs_fill_super() 326 sbi->magic = super.magic; cramfs_fill_super()
|
/linux-4.1.27/fs/efs/ |
H A D | efs.h | 39 unsigned int ex_magic:8; /* magic # (zero) */ 101 __be16 magic; member in struct:efs_dir
|
/linux-4.1.27/fs/ext3/ |
H A D | xattr.h | 26 __le32 h_magic; /* magic number for identification */ 34 __le32 h_magic; /* magic number for identification */
|
/linux-4.1.27/fs/ext4/ |
H A D | xattr.h | 29 __le32 h_magic; /* magic number for identification */ 39 __le32 h_magic; /* magic number for identification */
|
/linux-4.1.27/kernel/gcov/ |
H A D | base.c | 39 * Printing gcc's version magic may prove useful for debugging __gcov_init() 42 pr_info("version magic: 0x%x\n", gcov_version); __gcov_init()
|
/linux-4.1.27/arch/arm/kernel/ |
H A D | signal.c | 37 kframe->magic = CRUNCH_MAGIC; preserve_crunch_context() 52 if (kframe->magic != CRUNCH_MAGIC || restore_crunch_context() 69 kframe->magic = IWMMXT_MAGIC; preserve_iwmmxt_context() 84 if (kframe->magic != IWMMXT_MAGIC || restore_iwmmxt_context() 97 const unsigned long magic = VFP_MAGIC; preserve_vfp_context() local 101 __put_user_error(magic, &frame->magic, err); preserve_vfp_context() 112 unsigned long magic; restore_vfp_context() local 116 __get_user_error(magic, &frame->magic, err); restore_vfp_context() 121 if (magic != VFP_MAGIC || size != VFP_STORAGE_SIZE) restore_vfp_context()
|
/linux-4.1.27/fs/autofs4/ |
H A D | dev-ioctl.c | 22 #include <linux/magic.h> 504 * path is a mount point and the super magic of the covering 512 * the super magic of the mount or 0 otherwise. 524 unsigned int devid, magic; autofs_dev_ioctl_ismountpoint() local 536 param->ismountpoint.out.magic = magic = 0; autofs_dev_ioctl_ismountpoint() 551 magic = path.dentry->d_sb->s_magic; autofs_dev_ioctl_ismountpoint() 565 magic = path.dentry->d_sb->s_magic; autofs_dev_ioctl_ismountpoint() 569 param->ismountpoint.out.magic = magic; autofs_dev_ioctl_ismountpoint() 681 if (!sbi || sbi->magic != AUTOFS_SBI_MAGIC) { _autofs_dev_ioctl()
|
/linux-4.1.27/drivers/isdn/divert/ |
H A D | divert_init.c | 26 DIVERT_IF_MAGIC, /* magic value */
|
/linux-4.1.27/drivers/isdn/i4l/ |
H A D | isdn_x25iface.c | 33 int magic; member in struct:isdn_x25iface_proto_data 76 if (pda && pda->magic == ISDN_X25IFACE_MAGIC) return 0; pdata_is_bad() 89 tmp->magic = ISDN_X25IFACE_MAGIC; isdn_x25iface_proto_new() 153 tmp->magic = 0; isdn_x25iface_proto_del()
|
/linux-4.1.27/drivers/scsi/fnic/ |
H A D | vnic_resource.h | 49 u32 magic; member in struct:vnic_resource_header
|
/linux-4.1.27/drivers/gpu/drm/i915/ |
H A D | i915_vgpu.c | 64 uint64_t magic; i915_check_vgpu() local 72 magic = readq(dev_priv->regs + vgtif_reg(magic)); i915_check_vgpu() 73 if (magic != VGT_MAGIC) i915_check_vgpu()
|
/linux-4.1.27/drivers/input/joystick/ |
H A D | walkera0701.c | 70 int magic, magic_bit; walkera0701_parse_frame() local 106 magic = (w->buf[21] << 4) | w->buf[22]; walkera0701_parse_frame() 108 pr_debug("%4d %4d %4d %4d %4d %4d %4d %4d (magic %2x %d)\n", walkera0701_parse_frame() 110 magic, magic_bit); walkera0701_parse_frame()
|
/linux-4.1.27/drivers/dma/bestcomm/ |
H A D | bcom_ata_task.c | 17 * u32 magic;
|
H A D | bcom_gen_bd_rx_task.c | 21 * u32 magic;
|
H A D | bcom_gen_bd_tx_task.c | 21 * u32 magic;
|
/linux-4.1.27/arch/x86/include/uapi/asm/ |
H A D | sigcontext32.h | 37 unsigned short magic; /* 0xffff = regular FPU data only */ member in struct:_fpstate_ia32
|
/linux-4.1.27/arch/sparc/include/uapi/asm/ |
H A D | ptrace.h | 12 /* This magic value must have the low 9 bits clear, 28 /* We encode a magic number, PT_REGS_MAGIC, along 30 * entry time. The magic number allows us to identify 39 unsigned int magic; member in struct:pt_regs
|
/linux-4.1.27/arch/sparc/kernel/ |
H A D | kstack.h | 58 if ((regs->magic & ~0x1ff) == PT_REGS_MAGIC) kstack_is_trap_frame()
|
/linux-4.1.27/arch/tile/include/asm/ |
H A D | kgdb.h | 53 * the debugger via magic system request key (sysrq-G).
|
/linux-4.1.27/arch/mips/include/asm/mips-boards/ |
H A D | piix4.h | 67 /* Data for magic special PCI cycle */
|
/linux-4.1.27/fs/sysfs/ |
H A D | mount.c | 16 #include <linux/magic.h>
|
/linux-4.1.27/init/ |
H A D | do_mounts_rd.c | 50 * is a compressed image, and -1 if an image with the right magic 53 * We currently check for the following magic numbers: 117 if (cramfsb->magic == CRAMFS_MAGIC) { identify_ramdisk_image() 141 if (cramfsb->magic == CRAMFS_MAGIC) { identify_ramdisk_image()
|
/linux-4.1.27/arch/powerpc/platforms/cell/spufs/ |
H A D | Makefile | 8 # magic for the trace events
|
/linux-4.1.27/arch/sh/boards/mach-sdk7786/ |
H A D | fpga.c | 21 * so we attempt to scan for it using the fixed SRSTR read magic.
|