/linux-3.4.99/lib/ |
D | atomic64_test.c | 27 BUG_ON(v.counter != r); in test_atomic64() 31 BUG_ON(v.counter != r); in test_atomic64() 32 BUG_ON(atomic64_read(&v) != r); in test_atomic64() 37 BUG_ON(v.counter != r); in test_atomic64() 42 BUG_ON(v.counter != r); in test_atomic64() 46 BUG_ON(atomic64_add_return(onestwos, &v) != r); in test_atomic64() 47 BUG_ON(v.counter != r); in test_atomic64() 51 BUG_ON(atomic64_add_return(-one, &v) != r); in test_atomic64() 52 BUG_ON(v.counter != r); in test_atomic64() 57 BUG_ON(v.counter != r); in test_atomic64() [all …]
|
D | lru_cache.c | 41 BUG_ON(!lc); \ 42 BUG_ON(!lc->nr_elements); \ 43 BUG_ON(test_and_set_bit(__LC_PARANOIA, &lc->flags)); \ 55 BUG_ON(i >= lc_->nr_elements); \ 56 BUG_ON(lc_->lc_element[i] != e_); } while (0) 241 BUG_ON(!lc); in lc_find() 242 BUG_ON(!lc->nr_elements); in lc_find() 281 BUG_ON(e->refcnt); in lc_del() 388 BUG_ON(!e); in lc_get() 391 BUG_ON(++e->refcnt != 1); in lc_get() [all …]
|
/linux-3.4.99/drivers/infiniband/hw/amso1100/ |
D | c2_mq.c | 38 BUG_ON(q->magic != C2_MQ_MAGIC); in c2_mq_alloc() 39 BUG_ON(q->type != C2_MQ_ADAPTER_TARGET); in c2_mq_alloc() 48 BUG_ON(m->magic != be32_to_cpu(~CCWR_MAGIC)); in c2_mq_alloc() 60 BUG_ON(q->magic != C2_MQ_MAGIC); in c2_mq_produce() 61 BUG_ON(q->type != C2_MQ_ADAPTER_TARGET); in c2_mq_produce() 73 BUG_ON(q->magic != C2_MQ_MAGIC); in c2_mq_consume() 74 BUG_ON(q->type != C2_MQ_HOST_TARGET); in c2_mq_consume() 83 BUG_ON(m->magic != be32_to_cpu(CCWR_MAGIC)); in c2_mq_consume() 94 BUG_ON(q->magic != C2_MQ_MAGIC); in c2_mq_free() 95 BUG_ON(q->type != C2_MQ_HOST_TARGET); in c2_mq_free() [all …]
|
/linux-3.4.99/drivers/staging/rtl8192e/rtl8192e/ |
D | rtl_crypto.h | 240 BUG_ON(crypto_tfm_alg_type(tfm) != CRYPTO_ALG_TYPE_CIPHER); in crypto_tfm_alg_min_keysize() 246 BUG_ON(crypto_tfm_alg_type(tfm) != CRYPTO_ALG_TYPE_CIPHER); in crypto_tfm_alg_max_keysize() 252 BUG_ON(crypto_tfm_alg_type(tfm) != CRYPTO_ALG_TYPE_CIPHER); in crypto_tfm_alg_ivsize() 263 BUG_ON(crypto_tfm_alg_type(tfm) != CRYPTO_ALG_TYPE_DIGEST); in crypto_tfm_alg_digestsize() 272 BUG_ON(crypto_tfm_alg_type(tfm) != CRYPTO_ALG_TYPE_DIGEST); in crypto_digest_init() 280 BUG_ON(crypto_tfm_alg_type(tfm) != CRYPTO_ALG_TYPE_DIGEST); in crypto_digest_update() 286 BUG_ON(crypto_tfm_alg_type(tfm) != CRYPTO_ALG_TYPE_DIGEST); in crypto_digest_final() 294 BUG_ON(crypto_tfm_alg_type(tfm) != CRYPTO_ALG_TYPE_DIGEST); in crypto_digest_digest() 301 BUG_ON(crypto_tfm_alg_type(tfm) != CRYPTO_ALG_TYPE_DIGEST); in crypto_digest_setkey() 310 BUG_ON(crypto_tfm_alg_type(tfm) != CRYPTO_ALG_TYPE_CIPHER); in crypto_cipher_setkey() [all …]
|
/linux-3.4.99/drivers/staging/rtl8192u/ieee80211/ |
D | rtl_crypto.h | 243 BUG_ON(crypto_tfm_alg_type(tfm) != CRYPTO_ALG_TYPE_CIPHER); in crypto_tfm_alg_min_keysize() 249 BUG_ON(crypto_tfm_alg_type(tfm) != CRYPTO_ALG_TYPE_CIPHER); in crypto_tfm_alg_max_keysize() 255 BUG_ON(crypto_tfm_alg_type(tfm) != CRYPTO_ALG_TYPE_CIPHER); in crypto_tfm_alg_ivsize() 266 BUG_ON(crypto_tfm_alg_type(tfm) != CRYPTO_ALG_TYPE_DIGEST); in crypto_tfm_alg_digestsize() 275 BUG_ON(crypto_tfm_alg_type(tfm) != CRYPTO_ALG_TYPE_DIGEST); in crypto_digest_init() 283 BUG_ON(crypto_tfm_alg_type(tfm) != CRYPTO_ALG_TYPE_DIGEST); in crypto_digest_update() 289 BUG_ON(crypto_tfm_alg_type(tfm) != CRYPTO_ALG_TYPE_DIGEST); in crypto_digest_final() 297 BUG_ON(crypto_tfm_alg_type(tfm) != CRYPTO_ALG_TYPE_DIGEST); in crypto_digest_digest() 304 BUG_ON(crypto_tfm_alg_type(tfm) != CRYPTO_ALG_TYPE_DIGEST); in crypto_digest_setkey() 313 BUG_ON(crypto_tfm_alg_type(tfm) != CRYPTO_ALG_TYPE_CIPHER); in crypto_cipher_setkey() [all …]
|
/linux-3.4.99/drivers/mmc/core/ |
D | sd_ops.c | 30 BUG_ON(!host); in mmc_app_cmd() 31 BUG_ON(card && (card->host != host)); in mmc_app_cmd() 75 BUG_ON(!cmd); in mmc_wait_for_app_cmd() 76 BUG_ON(retries < 0); in mmc_wait_for_app_cmd() 126 BUG_ON(!card); in mmc_app_set_bus_width() 127 BUG_ON(!card->host); in mmc_app_set_bus_width() 155 BUG_ON(!host); in mmc_send_app_op_cond() 229 BUG_ON(!host); in mmc_send_relative_addr() 230 BUG_ON(!rca); in mmc_send_relative_addr() 254 BUG_ON(!card); in mmc_app_send_scr() [all …]
|
D | sdio_io.c | 29 BUG_ON(!func); in sdio_claim_host() 30 BUG_ON(!func->card); in sdio_claim_host() 45 BUG_ON(!func); in sdio_release_host() 46 BUG_ON(!func->card); in sdio_release_host() 65 BUG_ON(!func); in sdio_enable_func() 66 BUG_ON(!func->card); in sdio_enable_func() 115 BUG_ON(!func); in sdio_disable_func() 116 BUG_ON(!func->card); in sdio_disable_func() 374 BUG_ON(!func); in sdio_readb() 405 BUG_ON(!func); in sdio_writeb() [all …]
|
/linux-3.4.99/mm/ |
D | mm_init.c | 36 BUG_ON(MAX_ZONELISTS > 2); in mminit_verify_zonelist() 103 BUG_ON(shift != SECTIONS_PGSHIFT); in mminit_verify_pageflags_layout() 107 BUG_ON(shift != NODES_PGSHIFT); in mminit_verify_pageflags_layout() 111 BUG_ON(shift != ZONES_PGSHIFT); in mminit_verify_pageflags_layout() 121 BUG_ON(or_mask != add_mask); in mminit_verify_pageflags_layout() 127 BUG_ON(page_to_nid(page) != nid); in mminit_verify_page_links() 128 BUG_ON(page_zonenum(page) != zone); in mminit_verify_page_links() 129 BUG_ON(page_to_pfn(page) != pfn); in mminit_verify_page_links()
|
/linux-3.4.99/arch/tile/kernel/ |
D | pci-dma.c | 118 BUG_ON(!valid_dma_direction(direction)); in dma_map_single() 130 BUG_ON(!valid_dma_direction(direction)); in dma_unmap_single() 140 BUG_ON(!valid_dma_direction(direction)); in dma_map_sg() 156 BUG_ON(!valid_dma_direction(direction)); in dma_unmap_sg() 164 BUG_ON(!valid_dma_direction(direction)); in dma_map_page() 166 BUG_ON(offset + size > PAGE_SIZE); in dma_map_page() 176 BUG_ON(!valid_dma_direction(direction)); in dma_unmap_page() 183 BUG_ON(!valid_dma_direction(direction)); in dma_sync_single_for_cpu() 194 BUG_ON(!valid_dma_direction(direction)); in dma_sync_single_for_device() 203 BUG_ON(!valid_dma_direction(direction)); in dma_sync_sg_for_cpu() [all …]
|
/linux-3.4.99/include/asm-generic/ |
D | dma-mapping-common.h | 19 BUG_ON(!valid_dma_direction(dir)); in dma_map_single_attrs() 36 BUG_ON(!valid_dma_direction(dir)); in dma_unmap_single_attrs() 52 BUG_ON(!valid_dma_direction(dir)); in dma_map_sg_attrs() 65 BUG_ON(!valid_dma_direction(dir)); in dma_unmap_sg_attrs() 79 BUG_ON(!valid_dma_direction(dir)); in dma_map_page() 91 BUG_ON(!valid_dma_direction(dir)); in dma_unmap_page() 103 BUG_ON(!valid_dma_direction(dir)); in dma_sync_single_for_cpu() 115 BUG_ON(!valid_dma_direction(dir)); in dma_sync_single_for_device() 129 BUG_ON(!valid_dma_direction(dir)); in dma_sync_single_range_for_cpu() 143 BUG_ON(!valid_dma_direction(dir)); in dma_sync_single_range_for_device() [all …]
|
/linux-3.4.99/drivers/staging/ramster/ |
D | tmem.c | 85 BUG_ON(RB_EMPTY_NODE(rbnode)); in tmem_obj_find() 110 BUG_ON(obj == NULL); in tmem_obj_free() 112 BUG_ON(obj->pampd_count > 0); in tmem_obj_free() 114 BUG_ON(pool == NULL); in tmem_obj_free() 117 BUG_ON(obj->objnode_tree_root != NULL); in tmem_obj_free() 118 BUG_ON((long)obj->objnode_count != 0); in tmem_obj_free() 120 BUG_ON(atomic_read(&pool->obj_count) < 0); in tmem_obj_free() 138 BUG_ON(pool == NULL); in tmem_obj_init() 149 BUG_ON(RB_EMPTY_NODE(*new)); in tmem_obj_init() 184 BUG_ON(pool == NULL); in tmem_pool_flush() [all …]
|
/linux-3.4.99/fs/ntfs/ |
D | aops.c | 148 BUG_ON(!recs); in ntfs_end_buffer_async_read() 207 BUG_ON(!ni->runlist.rl && !ni->mft_no && !NInoAttr(ni)); in ntfs_read_block() 220 BUG_ON(!bh); in ntfs_read_block() 412 BUG_ON(!PageLocked(page)); in ntfs_readpage() 442 BUG_ON(ni->type != AT_DATA); in ntfs_readpage() 448 BUG_ON(ni->type != AT_DATA); in ntfs_readpage() 449 BUG_ON(ni->name_len); in ntfs_readpage() 576 BUG_ON(!NInoNonResident(ni)); in ntfs_write_block() 577 BUG_ON(NInoMstProtected(ni)); in ntfs_write_block() 581 BUG_ON(!PageUptodate(page)); in ntfs_write_block() [all …]
|
D | collate.c | 53 BUG_ON(data1_len != data2_len); in ntfs_collate_ntofs_ulong() 54 BUG_ON(data1_len != 4); in ntfs_collate_ntofs_ulong() 111 BUG_ON(cr != COLLATION_BINARY && cr != COLLATION_NTOFS_ULONG); in ntfs_collate() 113 BUG_ON(i < 0); in ntfs_collate() 117 BUG_ON(i < 0x10); in ntfs_collate()
|
D | bitmap.c | 58 BUG_ON(!vi); in __ntfs_bitmap_set_bits_in_run() 63 BUG_ON(start_bit < 0); in __ntfs_bitmap_set_bits_in_run() 64 BUG_ON(cnt < 0); in __ntfs_bitmap_set_bits_in_run() 65 BUG_ON(value > 1); in __ntfs_bitmap_set_bits_in_run() 121 BUG_ON(cnt <= 0); in __ntfs_bitmap_set_bits_in_run() 147 BUG_ON(cnt > 7); in __ntfs_bitmap_set_bits_in_run()
|
/linux-3.4.99/drivers/staging/zcache/ |
D | tmem.c | 84 BUG_ON(RB_EMPTY_NODE(rbnode)); in tmem_obj_find() 109 BUG_ON(obj == NULL); in tmem_obj_free() 111 BUG_ON(obj->pampd_count > 0); in tmem_obj_free() 113 BUG_ON(pool == NULL); in tmem_obj_free() 116 BUG_ON(obj->objnode_tree_root != NULL); in tmem_obj_free() 117 BUG_ON((long)obj->objnode_count != 0); in tmem_obj_free() 119 BUG_ON(atomic_read(&pool->obj_count) < 0); in tmem_obj_free() 137 BUG_ON(pool == NULL); in tmem_obj_init() 148 BUG_ON(RB_EMPTY_NODE(*new)); in tmem_obj_init() 183 BUG_ON(pool == NULL); in tmem_pool_flush() [all …]
|
/linux-3.4.99/fs/logfs/ |
D | dev_bdev.c | 75 BUG_ON(!uptodate); /* FIXME: Retry io or write elsewhere */ in writeseg_end_io() 76 BUG_ON(err); in writeseg_end_io() 77 BUG_ON(bio->bi_vcnt == 0); in writeseg_end_io() 105 BUG_ON(!bio); in __bdev_writeseg() 126 BUG_ON(!bio); in __bdev_writeseg() 129 BUG_ON(!page); in __bdev_writeseg() 134 BUG_ON(PageWriteback(page)); in __bdev_writeseg() 155 BUG_ON(super->s_flags & LOGFS_SB_FLAG_RO); in bdev_writeseg() 180 BUG_ON(!uptodate); /* FIXME: Retry io or write elsewhere */ in erase_end_io() 181 BUG_ON(err); in erase_end_io() [all …]
|
/linux-3.4.99/drivers/md/persistent-data/ |
D | dm-space-map-checker.c | 77 BUG_ON(ca->counts[b] == 0); in ca_dec_block() 120 BUG_ON(ca->nr != nr_blocks); in ca_load() 157 BUG_ON(old->nr > new->nr); in ca_commit() 161 BUG_ON(old->nr != new->nr); in ca_commit() 193 BUG_ON(smc->old_counts.nr != *count); in sm_checker_get_nr_blocks() 224 BUG_ON(*b >= smc->old_counts.nr); in sm_checker_new_block() 225 BUG_ON(smc->old_counts.counts[*b] != 0); in sm_checker_new_block() 226 BUG_ON(*b >= smc->counts.nr); in sm_checker_new_block() 227 BUG_ON(smc->counts.counts[*b] != 0); in sm_checker_new_block() 239 BUG_ON(r != r2); in sm_checker_inc_block() [all …]
|
/linux-3.4.99/arch/mn10300/include/asm/ |
D | dma-mapping.h | 38 BUG_ON(direction == DMA_NONE); in dma_map_single() 47 BUG_ON(direction == DMA_NONE); in dma_unmap_single() 57 BUG_ON(!valid_dma_direction(direction)); in dma_map_sg() 61 BUG_ON(!sg_page(sg)); in dma_map_sg() 74 BUG_ON(!valid_dma_direction(direction)); in dma_unmap_sg() 82 BUG_ON(direction == DMA_NONE); in dma_map_page() 90 BUG_ON(direction == DMA_NONE); in dma_unmap_page()
|
/linux-3.4.99/arch/ia64/sn/pci/ |
D | pci_dma.c | 37 BUG_ON(dev->bus != &pci_bus_type); in sn_dma_supported() 53 BUG_ON(dev->bus != &pci_bus_type); in sn_dma_set_mask() 88 BUG_ON(dev->bus != &pci_bus_type); in sn_dma_alloc_coherent() 146 BUG_ON(dev->bus != &pci_bus_type); in sn_dma_free_coherent() 190 BUG_ON(dev->bus != &pci_bus_type); in sn_dma_map_page() 226 BUG_ON(dev->bus != &pci_bus_type); in sn_dma_unmap_page() 250 BUG_ON(dev->bus != &pci_bus_type); in sn_dma_unmap_sg() 287 BUG_ON(dev->bus != &pci_bus_type); in sn_dma_map_sg() 326 BUG_ON(dev->bus != &pci_bus_type); in sn_dma_sync_single_for_cpu() 333 BUG_ON(dev->bus != &pci_bus_type); in sn_dma_sync_single_for_device() [all …]
|
/linux-3.4.99/fs/ |
D | bio-integrity.c | 91 BUG_ON(bio == NULL); in bio_integrity_alloc_bioset() 149 BUG_ON(bip == NULL); in bio_integrity_free() 186 BUG_ON(iv == NULL); in bio_integrity_add_page() 266 BUG_ON(bio->bi_size == 0); in bio_integrity_tag_size() 278 BUG_ON(bip->bip_buf == NULL); in bio_integrity_tag() 313 BUG_ON(bio_data_dir(bio) != WRITE); in bio_integrity_set_tag() 331 BUG_ON(bio_data_dir(bio) != READ); in bio_integrity_get_tag() 372 BUG_ON(total > bio->bi_integrity->bip_size); in bio_integrity_generate() 410 BUG_ON(bi == NULL); in bio_integrity_prep() 411 BUG_ON(bio_integrity(bio)); in bio_integrity_prep() [all …]
|
/linux-3.4.99/fs/btrfs/ |
D | relocation.c | 236 BUG_ON(!list_empty(&cache->pending[i])); in backref_cache_cleanup() 237 BUG_ON(!list_empty(&cache->changed)); in backref_cache_cleanup() 238 BUG_ON(!list_empty(&cache->detached)); in backref_cache_cleanup() 239 BUG_ON(!RB_EMPTY_ROOT(&cache->rb_root)); in backref_cache_cleanup() 240 BUG_ON(cache->nr_nodes); in backref_cache_cleanup() 241 BUG_ON(cache->nr_edges); in backref_cache_cleanup() 358 BUG_ON(node->detached); in walk_up_backref() 410 BUG_ON(!list_empty(&node->upper)); in drop_backref_node() 432 BUG_ON(!node->lowest && !node->detached); in remove_backref_node() 442 BUG_ON(!list_empty(&node->upper)); in remove_backref_node() [all …]
|
/linux-3.4.99/arch/x86/xen/ |
D | multicalls.c | 63 BUG_ON(preemptible()); in xen_mc_flush() 74 BUG_ON(b->argidx != 0); in xen_mc_flush() 140 BUG_ON(preemptible()); in __xen_mc_entry() 141 BUG_ON(b->argidx >= MC_ARGS); in __xen_mc_entry() 159 BUG_ON(b->argidx >= MC_ARGS); in __xen_mc_entry() 168 BUG_ON(preemptible()); in xen_mc_extend_args() 169 BUG_ON(b->argidx >= MC_ARGS); in xen_mc_extend_args() 186 BUG_ON(b->argidx >= MC_ARGS); in xen_mc_extend_args()
|
/linux-3.4.99/fs/ocfs2/dlm/ |
D | dlmast.c | 71 BUG_ON(lock->ml.highest_blocked == LKM_NLMODE); in dlm_should_cancel_bast() 95 BUG_ON(!dlm); in __dlm_queue_ast() 96 BUG_ON(!lock); in __dlm_queue_ast() 148 BUG_ON(!dlm); in dlm_queue_ast() 149 BUG_ON(!lock); in dlm_queue_ast() 161 BUG_ON(!dlm); in __dlm_queue_bast() 162 BUG_ON(!lock); in __dlm_queue_bast() 168 BUG_ON(!list_empty(&lock->bast_list)); in __dlm_queue_bast() 185 BUG_ON(!dlm); in dlm_queue_bast() 186 BUG_ON(!lock); in dlm_queue_bast() [all …]
|
/linux-3.4.99/arch/tile/mm/ |
D | homecache.c | 194 BUG_ON(home < 0 || home >= NR_CPUS); in flush_remote_page() 233 BUG_ON(home < 0 || home >= NR_CPUS); in homecache_mask() 325 BUG_ON(hv_pte_get_writable(pte)); in pte_set_home() 350 BUG_ON(home < 0 || home >= NR_CPUS || in pte_set_home() 369 BUG_ON(hv_pte_get_mode(pte) == 0); in pte_set_home() 404 BUG_ON(PageHighMem(page)); in homecache_change_page_home() 405 BUG_ON(page_count(page) > 1); in homecache_change_page_home() 406 BUG_ON(page_mapcount(page) != 0); in homecache_change_page_home() 415 BUG_ON(!pte_present(pteval) || pte_huge(pteval)); in homecache_change_page_home() 424 BUG_ON(gfp_mask & __GFP_HIGHMEM); /* must be lowmem */ in homecache_alloc_pages() [all …]
|
/linux-3.4.99/arch/xtensa/include/asm/ |
D | dma-mapping.h | 40 BUG_ON(direction == DMA_NONE); in dma_map_single() 49 BUG_ON(direction == DMA_NONE); in dma_unmap_single() 58 BUG_ON(direction == DMA_NONE); in dma_map_sg() 61 BUG_ON(!sg_page(sg)); in dma_map_sg() 74 BUG_ON(direction == DMA_NONE); in dma_map_page() 82 BUG_ON(direction == DMA_NONE); in dma_unmap_page() 90 BUG_ON(direction == DMA_NONE); in dma_unmap_sg()
|