Home
last modified time | relevance | path

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

12345678910>>...84

/linux-6.1.9/tools/testing/selftests/vm/
Dmremap_dontunmap.c33 #define BUG_ON(condition, description) \ macro
51 BUG_ON(source_mapping == MAP_FAILED, "mmap"); in kernel_support_for_mremap_dontunmap()
61 BUG_ON(munmap(dest_mapping, num_pages * page_size) == -1, in kernel_support_for_mremap_dontunmap()
65 BUG_ON(munmap(source_mapping, num_pages * page_size) == -1, in kernel_support_for_mremap_dontunmap()
74 BUG_ON(size & (page_size - 1), in check_region_contains_byte()
76 BUG_ON((unsigned long)addr & (page_size - 1), in check_region_contains_byte()
105 BUG_ON(source_mapping == MAP_FAILED, "mmap"); in mremap_dontunmap_simple()
113 BUG_ON(dest_mapping == MAP_FAILED, "mremap"); in mremap_dontunmap_simple()
117 BUG_ON(check_region_contains_byte in mremap_dontunmap_simple()
120 BUG_ON(check_region_contains_byte in mremap_dontunmap_simple()
[all …]
Dmap_populate.c24 #define BUG_ON(condition, description) \ macro
38 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()
48 BUG_ON(!WIFEXITED(status), "child in unexpected state"); in parent_f()
59 BUG_ON(smap == MAP_FAILED, "mmap()"); in child_f()
61 BUG_ON(*smap != 0xdeadbabe, "MAP_PRIVATE | MAP_POPULATE changed file"); in child_f()
64 BUG_ON(ret <= 0, "write(sock)"); in child_f()
67 BUG_ON(ret <= 0, "read(sock)"); in child_f()
69 BUG_ON(*smap == 0x22222BAD, "MAP_POPULATE didn't COW private page"); in child_f()
[all …]
/linux-6.1.9/lib/
Datomic64_test.c49 BUG_ON(atomic##bit##_##op(val, &v) != r); \
50 BUG_ON(atomic##bit##_read(&v) != r); \
58 BUG_ON(atomic##bit##_##op(val, &v) != v0); \
59 BUG_ON(atomic##bit##_read(&v) != r); \
75 BUG_ON(atomic##bit##_##op(&v, ##args) != ret); \
76 BUG_ON(atomic##bit##_read(&v) != expect); \
159 BUG_ON(v.counter != r); in test_atomic64()
163 BUG_ON(v.counter != r); in test_atomic64()
164 BUG_ON(atomic64_read(&v) != r); in test_atomic64()
193 BUG_ON(v.counter != r); in test_atomic64()
[all …]
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()
Dlru_cache.c29 BUG_ON(!lc); \
30 BUG_ON(!lc->nr_elements); \
31 BUG_ON(test_and_set_bit(__LC_PARANOIA, &lc->flags)); \
43 BUG_ON(i >= lc_->nr_elements); \
44 BUG_ON(lc_->lc_element[i] != e_); } while (0)
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()
[all …]
/linux-6.1.9/net/mac802154/
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-6.1.9/mm/
Dpage_table_check.c51 BUG_ON(!page_ext); in get_page_table_check()
78 BUG_ON(atomic_read(&ptc->file_map_count)); in page_table_check_clear()
79 BUG_ON(atomic_dec_return(&ptc->anon_map_count) < 0); in page_table_check_clear()
81 BUG_ON(atomic_read(&ptc->anon_map_count)); in page_table_check_clear()
82 BUG_ON(atomic_dec_return(&ptc->file_map_count) < 0); in page_table_check_clear()
114 BUG_ON(atomic_read(&ptc->file_map_count)); in page_table_check_set()
115 BUG_ON(atomic_inc_return(&ptc->anon_map_count) > 1 && rw); in page_table_check_set()
117 BUG_ON(atomic_read(&ptc->anon_map_count)); in page_table_check_set()
118 BUG_ON(atomic_inc_return(&ptc->file_map_count) < 0); in page_table_check_set()
135 BUG_ON(!page_ext); in __page_table_check_zero()
[all …]
Duserfaultfd.c396 BUG_ON(dst_addr >= dst_start + len); in __mcopy_atomic_hugetlb()
437 BUG_ON(!page); in __mcopy_atomic_hugetlb()
452 BUG_ON(page); in __mcopy_atomic_hugetlb()
471 BUG_ON(copied < 0); in __mcopy_atomic_hugetlb()
472 BUG_ON(err > 0); in __mcopy_atomic_hugetlb()
473 BUG_ON(!copied && !err); in __mcopy_atomic_hugetlb()
550 BUG_ON(dst_start & ~PAGE_MASK); in __mcopy_atomic()
551 BUG_ON(len & ~PAGE_MASK); in __mcopy_atomic()
554 BUG_ON(src_start + len <= src_start); in __mcopy_atomic()
555 BUG_ON(dst_start + len <= dst_start); in __mcopy_atomic()
[all …]
/linux-6.1.9/net/ceph/
Dmessenger.c101 BUG_ON(!con_flag_valid(con_flag)); in ceph_con_flag_clear()
108 BUG_ON(!con_flag_valid(con_flag)); in ceph_con_flag_set()
115 BUG_ON(!con_flag_valid(con_flag)); in ceph_con_flag_test()
123 BUG_ON(!con_flag_valid(con_flag)); in ceph_con_flag_test_and_clear()
131 BUG_ON(!con_flag_valid(con_flag)); in ceph_con_flag_test_and_set()
212 BUG_ON(ceph_msg_cache); in ceph_msgr_slab_init()
222 BUG_ON(!ceph_msg_cache); in ceph_msgr_slab_exit()
234 BUG_ON(!ceph_zero_page); in _ceph_msgr_exit()
246 BUG_ON(ceph_zero_page); in ceph_msgr_init()
266 BUG_ON(ceph_msgr_wq == NULL); in ceph_msgr_exit()
[all …]
/linux-6.1.9/tools/testing/radix-tree/
Didr-test.c175 BUG_ON(id < 0); in idr_u32_cb()
176 BUG_ON(ptr != DUMMY_PTR); in idr_u32_cb()
187 BUG_ON(idr_alloc_u32(idr, DUMMY_PTR, &id, id, GFP_KERNEL)); in idr_u32_test1()
188 BUG_ON(id != handle); in idr_u32_test1()
189 BUG_ON(idr_alloc_u32(idr, DUMMY_PTR, &id, id, GFP_KERNEL) != -ENOSPC); 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()
[all …]
/linux-6.1.9/tools/perf/bench/
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()
Dnuma.c256 BUG_ON(!cpumask); in node_has_cpus()
277 BUG_ON(!orig_mask); in bind_to_cpu()
313 BUG_ON(-1); in bind_to_cpu()
325 BUG_ON(!orig_mask); in bind_to_node()
367 BUG_ON(-1); in bind_to_node()
379 BUG_ON(ret); in bind_to_cpumask()
389 BUG_ON(ret); in mempol_restore()
401 BUG_ON(!node_mask); in bind_to_memnode()
410 BUG_ON(ret); in bind_to_memnode()
445 BUG_ON(buf == (void *)-1); in alloc_data()
[all …]
/linux-6.1.9/drivers/net/wireless/ti/wlcore/
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()
99 BUG_ON(!wl->ops->convert_fw_status); in wlcore_hw_convert_fw_status()
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()
[all …]
/linux-6.1.9/fs/ntfs/
Daops.c130 BUG_ON(!recs); in ntfs_end_buffer_async_read()
186 BUG_ON(!ni->runlist.rl && !ni->mft_no && !NInoAttr(ni)); in ntfs_read_block()
199 BUG_ON(!bh); in ntfs_read_block()
392 BUG_ON(!PageLocked(page)); in ntfs_read_folio()
422 BUG_ON(ni->type != AT_DATA); in ntfs_read_folio()
428 BUG_ON(ni->type != AT_DATA); in ntfs_read_folio()
429 BUG_ON(ni->name_len); in ntfs_read_folio()
556 BUG_ON(!NInoNonResident(ni)); in ntfs_write_block()
557 BUG_ON(NInoMstProtected(ni)); in ntfs_write_block()
561 BUG_ON(!PageUptodate(page)); in ntfs_write_block()
[all …]
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()
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()
Dfile.c116 BUG_ON(new_init_size > ni->allocated_size); in ntfs_attr_extend_initialized()
131 BUG_ON(old_init_size != old_i_size); in ntfs_attr_extend_initialized()
152 BUG_ON(a->non_resident); in ntfs_attr_extend_initialized()
155 BUG_ON(old_i_size != (loff_t)attr_len); in ntfs_attr_extend_initialized()
196 BUG_ON(!a->non_resident); in ntfs_attr_extend_initialized()
197 BUG_ON(old_i_size != (loff_t) in ntfs_attr_extend_initialized()
265 BUG_ON(ni->initialized_size != new_init_size); in ntfs_attr_extend_initialized()
288 BUG_ON(!a->non_resident); in ntfs_attr_extend_initialized()
337 BUG_ON(NInoMstProtected(ni)); in ntfs_prepare_file_for_write()
338 BUG_ON(ni->type != AT_DATA); in ntfs_prepare_file_for_write()
[all …]
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-6.1.9/arch/sparc/include/asm/
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-6.1.9/arch/x86/xen/
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-6.1.9/fs/ocfs2/
Dstackglue.c151 BUG_ON(active_stack == NULL); in ocfs2_stack_driver_put()
152 BUG_ON(active_stack->sp_count == 0); 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()
213 BUG_ON(locking_max_version.pv_major != 0); in ocfs2_stack_glue_set_max_proto_version()
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()
[all …]
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()
290 BUG_ON(ci->ci_num_cached >= OCFS2_CACHE_INFO_MAX_ARRAY); in ocfs2_append_cache_array()
509 BUG_ON(ocfs2_buffer_cached(ci, bh)); in ocfs2_set_new_buffer_uptodate()
[all …]
/linux-6.1.9/block/partitions/
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()
239 BUG_ON (!toc1 || !toc2); in ldm_compare_tocblocks()
276 BUG_ON (!state || !ph1); in ldm_validate_privheads()
364 BUG_ON(!state || !ldb); in ldm_validate_tocblocks()
436 BUG_ON (!state || !ldb); in ldm_validate_vmdb()
500 BUG_ON(!state); in ldm_validate_partition_table()
542 BUG_ON (!ldb); in ldm_get_disk_objid()
[all …]
/linux-6.1.9/fs/ocfs2/dlm/
Ddlmast.c54 BUG_ON(lock->ml.highest_blocked == LKM_NLMODE); in dlm_should_cancel_bast()
78 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()
[all …]
/linux-6.1.9/arch/powerpc/platforms/pasemi/
Ddma_lib.c133 BUG_ON(test_bit(chan, txch_free)); in pasemi_free_tx_chan()
152 BUG_ON(test_bit(chan, rxch_free)); in pasemi_free_rx_chan()
178 BUG_ON(total_size < sizeof(struct pasemi_dmachan)); in pasemi_dma_alloc_chan()
244 BUG_ON(chan->ring_virt); in pasemi_dma_alloc_ring()
266 BUG_ON(!chan->ring_virt); in pasemi_dma_free_ring()
398 BUG_ON(test_bit(flag, flags_free)); in pasemi_dma_free_flag()
399 BUG_ON(flag >= MAX_FLAGS); in pasemi_dma_free_flag()
412 BUG_ON(flag >= MAX_FLAGS); in pasemi_dma_set_flag()
427 BUG_ON(flag >= MAX_FLAGS); in pasemi_dma_clear_flag()
463 BUG_ON(test_bit(fun, fun_free)); in pasemi_dma_free_fun()
[all …]

12345678910>>...84