Home
last modified time | relevance | path

Searched refs:BUG_ON (Results 1 – 25 of 2083) sorted by relevance

12345678910>>...84

/linux/tools/testing/selftests/vm/
A Dmremap_dontunmap.c74 BUG_ON(size & (page_size - 1), in check_region_contains_byte()
117 BUG_ON(check_region_contains_byte in mremap_dontunmap_simple()
120 BUG_ON(check_region_contains_byte in mremap_dontunmap_simple()
136 BUG_ON(mem_fd < 0, "memfd_create"); in mremap_dontunmap_simple_shmem()
146 BUG_ON(close(mem_fd) < 0, "close"); in mremap_dontunmap_simple_shmem()
165 BUG_ON(check_region_contains_byte in mremap_dontunmap_simple_shmem()
171 BUG_ON(check_region_contains_byte in mremap_dontunmap_simple_shmem()
207 BUG_ON(remapped_mapping != dest_mapping, in mremap_dontunmap_simple_fixed()
212 BUG_ON(check_region_contains_byte in mremap_dontunmap_simple_fixed()
217 BUG_ON(check_region_contains_byte in mremap_dontunmap_simple_fixed()
[all …]
A Dmap_populate.c38 BUG_ON(ret <= 0, "read(sock)"); in parent_f()
42 BUG_ON(ret, "msync()"); in parent_f()
45 BUG_ON(ret <= 0, "write(sock)"); in parent_f()
67 BUG_ON(ret <= 0, "read(sock)"); in child_f()
82 BUG_ON(ftmp == 0, "tmpfile()"); in main()
85 BUG_ON(ret, "ftruncate()"); in main()
94 BUG_ON(ret, "msync()"); in main()
97 BUG_ON(ret, "socketpair()"); in main()
100 BUG_ON(child == -1, "fork()"); in main()
104 BUG_ON(ret, "close()"); in main()
[all …]
/linux/lib/
A Datomic64_test.c159 BUG_ON(v.counter != r); in test_atomic64()
163 BUG_ON(v.counter != r); in test_atomic64()
193 BUG_ON(v.counter != r); in test_atomic64()
198 BUG_ON(v.counter != r); in test_atomic64()
208 BUG_ON(v.counter != r); in test_atomic64()
213 BUG_ON(v.counter != r); in test_atomic64()
218 BUG_ON(v.counter != r); in test_atomic64()
222 BUG_ON(v.counter != r); in test_atomic64()
226 BUG_ON(v.counter != r); in test_atomic64()
231 BUG_ON(v.counter != r); in test_atomic64()
[all …]
A Dlru_cache.c29 BUG_ON(!lc); \
30 BUG_ON(!lc->nr_elements); \
43 BUG_ON(i >= lc_->nr_elements); \
255 BUG_ON(!lc); in __lc_find()
256 BUG_ON(!lc->nr_elements); in __lc_find()
314 BUG_ON(e->refcnt); in lc_del()
431 BUG_ON(!e); in __lc_get()
434 BUG_ON(++e->refcnt != 1); in __lc_get()
564 BUG_ON(e->refcnt == 0); in lc_put()
582 BUG_ON(i >= lc->nr_elements); in lc_element_by_index()
[all …]
A Dplist.c151 BUG_ON(plist_head_empty(head)); in plist_requeue()
152 BUG_ON(plist_node_empty(node)); in plist_requeue()
188 BUG_ON(nr_expect != 0); in plist_test_check()
199 BUG_ON(!list_empty(&node_pos->prio_list)); in plist_test_check()
203 BUG_ON(prio_pos->prio > node_pos->prio); in plist_test_check()
204 BUG_ON(prio_pos->prio_list.next != &node_pos->prio_list); in plist_test_check()
208 BUG_ON(nr_expect != 0); in plist_test_check()
209 BUG_ON(prio_pos->prio_list.next != &first->prio_list); in plist_test_check()
217 BUG_ON(node->prio == plist_next(node)->prio); in plist_test_requeue()
/linux/net/mac802154/
A Dmib.c29 BUG_ON(dev->type != ARPHRD_IEEE802154); in mac802154_dev_set_page_channel()
46 BUG_ON(dev->type != ARPHRD_IEEE802154); in mac802154_get_params()
62 BUG_ON(dev->type != ARPHRD_IEEE802154); in mac802154_set_params()
78 BUG_ON(dev->type != ARPHRD_IEEE802154); in mac802154_add_key()
93 BUG_ON(dev->type != ARPHRD_IEEE802154); in mac802154_del_key()
108 BUG_ON(dev->type != ARPHRD_IEEE802154); in mac802154_add_dev()
122 BUG_ON(dev->type != ARPHRD_IEEE802154); in mac802154_del_dev()
138 BUG_ON(dev->type != ARPHRD_IEEE802154); in mac802154_add_devkey()
154 BUG_ON(dev->type != ARPHRD_IEEE802154); in mac802154_del_devkey()
169 BUG_ON(dev->type != ARPHRD_IEEE802154); in mac802154_add_seclevel()
[all …]
/linux/net/ceph/
A Dmessenger.c439 BUG_ON(con->sock); in ceph_tcp_connect()
916 BUG_ON(!pagelist); in ceph_msg_data_pagelist_cursor_init()
940 BUG_ON(!pagelist); in ceph_msg_data_pagelist_next()
964 BUG_ON(!pagelist); in ceph_msg_data_pagelist_advance()
1027 BUG_ON(!length); in ceph_msg_data_cursor_init()
1069 BUG_ON(!page); in ceph_msg_data_next()
1071 BUG_ON(!*length); in ceph_msg_data_next()
1841 BUG_ON(!pages); in ceph_msg_data_add_pages()
1842 BUG_ON(!length); in ceph_msg_data_add_pages()
1860 BUG_ON(!pagelist); in ceph_msg_data_add_pagelist()
[all …]
/linux/tools/testing/radix-tree/
A Didr-test.c175 BUG_ON(id < 0); in idr_u32_cb()
176 BUG_ON(ptr != DUMMY_PTR); in idr_u32_cb()
188 BUG_ON(id != handle); in idr_u32_test1()
190 BUG_ON(id != handle); in idr_u32_test1()
195 BUG_ON(ptr != NULL); in idr_u32_test1()
196 BUG_ON(sid != 0); in idr_u32_test1()
198 BUG_ON(ptr != DUMMY_PTR); in idr_u32_test1()
199 BUG_ON(sid != id); in idr_u32_test1()
207 BUG_ON(!idr_is_empty(idr)); in idr_u32_test1()
259 BUG_ON(!idr_is_empty(idr)); in idr_align_test()
[all …]
/linux/fs/ntfs/
A Daops.c130 BUG_ON(!recs); in ntfs_end_buffer_async_read()
199 BUG_ON(!bh); in ntfs_read_block()
428 BUG_ON(ni->name_len); in ntfs_readpage()
577 BUG_ON(!bh); in ntfs_write_block()
936 BUG_ON(!max_bhs); in ntfs_write_mst_block()
944 BUG_ON(!bh); in ntfs_write_mst_block()
949 BUG_ON(!bhs_per_rec); in ntfs_write_mst_block()
1268 BUG_ON(!base_tni); in ntfs_write_mst_block()
1381 BUG_ON(ni->name_len); in ntfs_writepage()
1478 BUG_ON(err); in ntfs_writepage()
[all …]
A Dfile.c498 BUG_ON(!nr_pages); in __ntfs_grab_cache_pages()
597 BUG_ON(!nr_pages); in ntfs_prepare_pages_for_non_resident_write()
598 BUG_ON(!pages); in ntfs_prepare_pages_for_non_resident_write()
599 BUG_ON(!*pages); in ntfs_prepare_pages_for_non_resident_write()
612 BUG_ON(!page); in ntfs_prepare_pages_for_non_resident_write()
707 BUG_ON(lcn < 0); in ntfs_prepare_pages_for_non_resident_write()
962 BUG_ON(!rl); in ntfs_prepare_pages_for_non_resident_write()
1042 BUG_ON(!rl2); in ntfs_prepare_pages_for_non_resident_write()
1361 BUG_ON(!nr_pages); in ntfs_flush_dcache_pages()
1554 BUG_ON(!pages); in ntfs_commit_pages_after_write()
[all …]
A Dbitmap.c44 BUG_ON(!vi); in __ntfs_bitmap_set_bits_in_run()
49 BUG_ON(start_bit < 0); in __ntfs_bitmap_set_bits_in_run()
50 BUG_ON(cnt < 0); in __ntfs_bitmap_set_bits_in_run()
51 BUG_ON(value > 1); in __ntfs_bitmap_set_bits_in_run()
107 BUG_ON(cnt <= 0); in __ntfs_bitmap_set_bits_in_run()
133 BUG_ON(cnt > 7); in __ntfs_bitmap_set_bits_in_run()
A Dcollate.c39 BUG_ON(data1_len != data2_len); in ntfs_collate_ntofs_ulong()
40 BUG_ON(data1_len != 4); in ntfs_collate_ntofs_ulong()
97 BUG_ON(cr != COLLATION_BINARY && cr != COLLATION_NTOFS_ULONG); in ntfs_collate()
99 BUG_ON(i < 0); in ntfs_collate()
103 BUG_ON(i < 0x10); in ntfs_collate()
A Drunlist.c117 BUG_ON(!new_rl); in ntfs_rl_realloc_nofail()
144 BUG_ON(!dst); in ntfs_are_rl_mergeable()
145 BUG_ON(!src); in ntfs_are_rl_mergeable()
210 BUG_ON(!dst); in ntfs_rl_append()
211 BUG_ON(!src); in ntfs_rl_append()
278 BUG_ON(!dst); in ntfs_rl_insert()
279 BUG_ON(!src); in ntfs_rl_insert()
376 BUG_ON(!dst); in ntfs_rl_replace()
377 BUG_ON(!src); in ntfs_rl_replace()
459 BUG_ON(!dst); in ntfs_rl_split()
[all …]
/linux/drivers/net/wireless/ti/wlcore/
A Dhw_ops.h18 BUG_ON(1); in wlcore_hw_calc_tx_blocks()
28 BUG_ON(1); in wlcore_hw_set_tx_desc_blocks()
39 BUG_ON(1); in wlcore_hw_set_tx_desc_data_len()
49 BUG_ON(1); in wlcore_hw_get_rx_buf_align()
67 BUG_ON(1); in wlcore_hw_get_rx_packet_len()
108 BUG_ON(1); in wlcore_hw_sta_get_ap_rate_mask()
127 BUG_ON(1); in wlcore_hw_set_tx_desc_csum()
173 BUG_ON(1); in wlcore_hw_get_spare_blocks()
185 BUG_ON(1); in wlcore_hw_set_key()
248 BUG_ON(1); in wlcore_hw_convert_hwaddr()
[all …]
/linux/mm/
A Duserfaultfd.c386 BUG_ON(!page); in __mcopy_atomic_hugetlb()
401 BUG_ON(page); in __mcopy_atomic_hugetlb()
420 BUG_ON(copied < 0); in __mcopy_atomic_hugetlb()
421 BUG_ON(err > 0); in __mcopy_atomic_hugetlb()
422 BUG_ON(!copied && !err); in __mcopy_atomic_hugetlb()
500 BUG_ON(len & ~PAGE_MASK); in __mcopy_atomic()
612 BUG_ON(!page); in __mcopy_atomic()
625 BUG_ON(page); in __mcopy_atomic()
644 BUG_ON(copied < 0); in __mcopy_atomic()
645 BUG_ON(err > 0); in __mcopy_atomic()
[all …]
/linux/tools/perf/bench/
A Dnuma.c275 BUG_ON(ret); in bind_to_cpu()
290 BUG_ON(ret); in bind_to_cpu()
302 BUG_ON(ret); in bind_to_node()
323 BUG_ON(ret); in bind_to_node()
333 BUG_ON(ret); in bind_to_cpumask()
342 BUG_ON(ret); in mempol_restore()
363 BUG_ON(ret); in bind_to_memnode()
451 BUG_ON(ret); in free_data()
526 BUG_ON(!str); in parse_setup_cpu_list()
663 BUG_ON(!str); in parse_setup_node_list()
[all …]
A Dsched-pipe.c63 BUG_ON(ret != sizeof(int)); in worker_thread()
65 BUG_ON(ret != sizeof(int)); in worker_thread()
68 BUG_ON(ret != sizeof(int)); in worker_thread()
70 BUG_ON(ret != sizeof(int)); in worker_thread()
96 BUG_ON(pipe(pipe_1)); in bench_sched_pipe()
97 BUG_ON(pipe(pipe_2)); in bench_sched_pipe()
122 BUG_ON(ret); in bench_sched_pipe()
129 BUG_ON(ret); in bench_sched_pipe()
/linux/arch/sparc/include/asm/
A Dvga.h25 BUG_ON((long) addr >= 0); in scr_writew()
32 BUG_ON((long) addr >= 0); in scr_readw()
39 BUG_ON((long) p >= 0); in scr_memsetw()
46 BUG_ON((long) d >= 0); in scr_memcpyw()
53 BUG_ON((long) d >= 0); in scr_memmovew()
/linux/arch/x86/xen/
A Dmulticalls.c64 BUG_ON(preemptible()); in xen_mc_flush()
80 BUG_ON(b->argidx != 0); in xen_mc_flush()
146 BUG_ON(preemptible()); in __xen_mc_entry()
147 BUG_ON(b->argidx >= MC_ARGS); in __xen_mc_entry()
165 BUG_ON(b->argidx >= MC_ARGS); in __xen_mc_entry()
174 BUG_ON(preemptible()); in xen_mc_extend_args()
175 BUG_ON(b->argidx >= MC_ARGS); in xen_mc_extend_args()
192 BUG_ON(b->argidx >= MC_ARGS); in xen_mc_extend_args()
/linux/scripts/coccinelle/misc/
A Dbugon.cocci2 /// Use BUG_ON instead of a if condition followed by BUG.
6 //# with a BUG_ON having the conditional expression of the if statement
38 +BUG_ON(e);
55 coccilib.org.print_todo(p[0], "WARNING use BUG_ON")
61 …="WARNING: Use BUG_ON instead of if condition followed by BUG.\nPlease make sure the condition has…
/linux/fs/ocfs2/
A Duptodate.c58 BUG_ON(!ci || !ci->ci_ops); in ocfs2_metadata_cache_owner()
65 BUG_ON(!ci || !ci->ci_ops); in ocfs2_metadata_cache_get_super()
72 BUG_ON(!ci || !ci->ci_ops); in ocfs2_metadata_cache_lock()
79 BUG_ON(!ci || !ci->ci_ops); in ocfs2_metadata_cache_unlock()
86 BUG_ON(!ci || !ci->ci_ops); in ocfs2_metadata_cache_io_lock()
93 BUG_ON(!ci || !ci->ci_ops); in ocfs2_metadata_cache_io_unlock()
114 BUG_ON(!ops); in ocfs2_metadata_cache_init()
160 BUG_ON(!ci || !ci->ci_ops); in ocfs2_metadata_cache_purge()
509 BUG_ON(ocfs2_buffer_cached(ci, bh)); in ocfs2_set_new_buffer_uptodate()
526 BUG_ON(index >= ci->ci_num_cached); in ocfs2_remove_metadata_array()
[all …]
A Dstackglue.c151 BUG_ON(active_stack == NULL); in ocfs2_stack_driver_put()
192 BUG_ON(p != plugin); in ocfs2_stack_glue_unregister()
193 BUG_ON(plugin == active_stack); in ocfs2_stack_glue_unregister()
194 BUG_ON(plugin->sp_count != 0); in ocfs2_stack_glue_unregister()
241 BUG_ON(lksb->lksb_conn != conn); in ocfs2_dlm_lock()
251 BUG_ON(lksb->lksb_conn == NULL); in ocfs2_dlm_unlock()
315 BUG_ON(group == NULL); in ocfs2_cluster_connect()
316 BUG_ON(conn == NULL); in ocfs2_cluster_connect()
397 BUG_ON(conn == NULL); in ocfs2_cluster_disconnect()
450 BUG_ON(group == NULL); in ocfs2_cluster_hangup()
[all …]
/linux/block/partitions/
A Dldm.c71 BUG_ON(!data || !ph); in ldm_parse_privhead()
128 BUG_ON (!data || !toc); in ldm_parse_tocblock()
174 BUG_ON (!data || !vm); in ldm_parse_vmdb()
215 BUG_ON (!ph1 || !ph2); in ldm_compare_privheads()
500 BUG_ON(!state); in ldm_validate_partition_table()
542 BUG_ON (!ldb); in ldm_get_disk_objid()
579 BUG_ON (!pp || !ldb); in ldm_create_data_partitions()
662 BUG_ON (!block); in ldm_get_vnum()
1301 BUG_ON (!list); in ldm_frag_free()
1416 BUG_ON (!lh); in ldm_free_vblks()
[all …]
/linux/fs/ocfs2/dlm/
A Ddlmast.c78 BUG_ON(!dlm); in __dlm_queue_ast()
79 BUG_ON(!lock); in __dlm_queue_ast()
131 BUG_ON(!dlm); in dlm_queue_ast()
132 BUG_ON(!lock); in dlm_queue_ast()
144 BUG_ON(!dlm); in __dlm_queue_bast()
145 BUG_ON(!lock); in __dlm_queue_bast()
151 BUG_ON(!list_empty(&lock->bast_list)); in __dlm_queue_bast()
170 BUG_ON(!lksb); in dlm_update_lvb()
207 BUG_ON(lock->ml.node != dlm->node_num); in dlm_do_local_ast()
227 BUG_ON(lock->ml.node == dlm->node_num); in dlm_do_remote_ast()
[all …]
/linux/arch/powerpc/platforms/ps3/
A Dsystem-bus.c102 BUG_ON(result); in ps3_close_hv_device_sb()
147 BUG_ON(result); in ps3_close_hv_device_gpu()
156 BUG_ON(!dev); in ps3_open_hv_device()
194 BUG_ON(!dev); in ps3_close_hv_device()
368 BUG_ON(!dev); in ps3_system_bus_probe()
372 BUG_ON(!drv); in ps3_system_bus_probe()
389 BUG_ON(!dev); in ps3_system_bus_remove()
393 BUG_ON(!drv); in ps3_system_bus_remove()
409 BUG_ON(!dev); in ps3_system_bus_shutdown()
422 BUG_ON(!drv); in ps3_system_bus_shutdown()
[all …]

Completed in 63 milliseconds

12345678910>>...84