Home
last modified time | relevance | path

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

12345678910>>...68

/openbmc/linux/tools/testing/selftests/mm/
H A Dmremap_dontunmap.c71 BUG_ON(size & (page_size - 1), in check_region_contains_byte()
114 BUG_ON(check_region_contains_byte in mremap_dontunmap_simple()
117 BUG_ON(check_region_contains_byte in mremap_dontunmap_simple()
133 BUG_ON(mem_fd < 0, "memfd_create"); in mremap_dontunmap_simple_shmem()
143 BUG_ON(close(mem_fd) < 0, "close"); in mremap_dontunmap_simple_shmem()
162 BUG_ON(check_region_contains_byte in mremap_dontunmap_simple_shmem()
168 BUG_ON(check_region_contains_byte in mremap_dontunmap_simple_shmem()
204 BUG_ON(remapped_mapping != dest_mapping, in mremap_dontunmap_simple_fixed()
209 BUG_ON(check_region_contains_byte in mremap_dontunmap_simple_fixed()
214 BUG_ON(check_region_contains_byte in mremap_dontunmap_simple_fixed()
[all …]
H A Dmap_populate.c36 BUG_ON(ret <= 0, "read(sock)"); in parent_f()
40 BUG_ON(ret, "msync()"); in parent_f()
43 BUG_ON(ret <= 0, "write(sock)"); in parent_f()
65 BUG_ON(ret <= 0, "read(sock)"); in child_f()
80 BUG_ON(!ftmp, "tmpfile()"); in main()
83 BUG_ON(ret, "ftruncate()"); in main()
92 BUG_ON(ret, "msync()"); in main()
95 BUG_ON(ret, "socketpair()"); in main()
98 BUG_ON(child == -1, "fork()"); in main()
102 BUG_ON(ret, "close()"); in main()
[all …]
/openbmc/linux/lib/
H 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 …]
H 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()
H A Dlru_cache.c29 BUG_ON(!lc); \
30 BUG_ON(!lc->nr_elements); \
43 BUG_ON(i >= lc_->nr_elements); \
244 BUG_ON(!lc); in __lc_find()
245 BUG_ON(!lc->nr_elements); in __lc_find()
303 BUG_ON(e->refcnt); in lc_del()
420 BUG_ON(!e); in __lc_get()
423 BUG_ON(++e->refcnt != 1); in __lc_get()
553 BUG_ON(e->refcnt == 0); in lc_put()
571 BUG_ON(i >= lc->nr_elements); in lc_element_by_index()
[all …]
/openbmc/linux/net/mac802154/
H 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 …]
/openbmc/linux/mm/
H A Dpage_table_check.c55 BUG_ON(!page_ext); in get_page_table_check()
79 BUG_ON(PageSlab(page)); in page_table_check_clear()
86 BUG_ON(atomic_read(&ptc->file_map_count)); in page_table_check_clear()
87 BUG_ON(atomic_dec_return(&ptc->anon_map_count) < 0); in page_table_check_clear()
89 BUG_ON(atomic_read(&ptc->anon_map_count)); in page_table_check_clear()
119 BUG_ON(PageSlab(page)); in page_table_check_set()
126 BUG_ON(atomic_read(&ptc->file_map_count)); in page_table_check_set()
129 BUG_ON(atomic_read(&ptc->anon_map_count)); in page_table_check_set()
146 BUG_ON(PageSlab(page)); in __page_table_check_zero()
156 BUG_ON(atomic_read(&ptc->anon_map_count)); in __page_table_check_zero()
[all …]
H A Duserfaultfd.c502 BUG_ON(!folio); in mfill_atomic_hugetlb()
524 BUG_ON(folio); in mfill_atomic_hugetlb()
543 BUG_ON(copied < 0); in mfill_atomic_hugetlb()
544 BUG_ON(err > 0); in mfill_atomic_hugetlb()
545 BUG_ON(!copied && !err); in mfill_atomic_hugetlb()
620 BUG_ON(len & ~PAGE_MASK); in mfill_atomic()
735 BUG_ON(!folio); in mfill_atomic()
749 BUG_ON(folio); in mfill_atomic()
768 BUG_ON(copied < 0); in mfill_atomic()
769 BUG_ON(err > 0); in mfill_atomic()
[all …]
/openbmc/linux/tools/perf/bench/
H 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()
H A Dnuma.c313 BUG_ON(-1); in bind_to_cpu()
367 BUG_ON(-1); in bind_to_node()
379 BUG_ON(ret); in bind_to_cpumask()
389 BUG_ON(ret); in mempol_restore()
410 BUG_ON(ret); in bind_to_memnode()
499 BUG_ON(ret); in free_data()
550 BUG_ON(!str); in parse_setup_cpu_list()
698 BUG_ON(!str); in parse_setup_node_list()
1041 BUG_ON(!nodes); in calc_convergence()
1394 BUG_ON(ret); in worker_process()
[all …]
/openbmc/linux/tools/testing/radix-tree/
H 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 …]
/openbmc/linux/net/ceph/
H A Dmessenger.c443 BUG_ON(con->sock); in ceph_tcp_connect()
906 BUG_ON(!pagelist); in ceph_msg_data_pagelist_cursor_init()
929 BUG_ON(!pagelist); in ceph_msg_data_pagelist_next()
949 BUG_ON(!pagelist); in ceph_msg_data_pagelist_advance()
994 BUG_ON(len < 0); in ceph_msg_data_iter_next()
1069 BUG_ON(!length); in ceph_msg_data_cursor_init()
1114 BUG_ON(!page); in ceph_msg_data_next()
1116 BUG_ON(!*length); in ceph_msg_data_next()
1888 BUG_ON(!pages); in ceph_msg_data_add_pages()
1889 BUG_ON(!length); in ceph_msg_data_add_pages()
[all …]
/openbmc/linux/drivers/net/wireless/ti/wlcore/
H 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 …]
/openbmc/linux/arch/sparc/include/asm/
H 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()
/openbmc/linux/fs/ntfs/
H A Daops.c130 BUG_ON(!recs); in ntfs_end_buffer_async_read()
199 BUG_ON(!bh); in ntfs_read_block()
429 BUG_ON(ni->name_len); in ntfs_read_folio()
578 BUG_ON(!bh); in ntfs_write_block()
938 BUG_ON(!max_bhs); in ntfs_write_mst_block()
946 BUG_ON(!bh); in ntfs_write_mst_block()
951 BUG_ON(!bhs_per_rec); in ntfs_write_mst_block()
1270 BUG_ON(!base_tni); in ntfs_write_mst_block()
1384 BUG_ON(ni->name_len); in ntfs_writepage()
1481 BUG_ON(err); in ntfs_writepage()
[all …]
H 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()
H 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()
H A Dfile.c493 BUG_ON(!nr_pages); in __ntfs_grab_cache_pages()
592 BUG_ON(!nr_pages); in ntfs_prepare_pages_for_non_resident_write()
593 BUG_ON(!pages); in ntfs_prepare_pages_for_non_resident_write()
594 BUG_ON(!*pages); in ntfs_prepare_pages_for_non_resident_write()
607 BUG_ON(!page); in ntfs_prepare_pages_for_non_resident_write()
702 BUG_ON(lcn < 0); in ntfs_prepare_pages_for_non_resident_write()
957 BUG_ON(!rl); in ntfs_prepare_pages_for_non_resident_write()
1037 BUG_ON(!rl2); in ntfs_prepare_pages_for_non_resident_write()
1356 BUG_ON(!nr_pages); in ntfs_flush_dcache_pages()
1549 BUG_ON(!pages); in ntfs_commit_pages_after_write()
[all …]
/openbmc/linux/arch/x86/xen/
H 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()
/openbmc/u-boot/drivers/net/fsl-mc/dpio/
H A Dqbman_private.h28 do {if (!(loopvar--)) BUG_ON(NULL == "DBG_POLL_CHECK"); } while (0)
61 BUG_ON(width > (sizeof(t) * 8)); \
66 BUG_ON(width > (sizeof(t) * 8)); \
72 BUG_ON(width > (sizeof(t) * 8)); \
78 BUG_ON(width > (sizeof(t) * 8)); \
148 BUG_ON((unsigned long)ptr & 63); in dcbz()
/openbmc/linux/fs/ocfs2/
H 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 …]
H 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 …]
/openbmc/linux/block/partitions/
H 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()
1292 BUG_ON (!list); in ldm_frag_free()
1407 BUG_ON (!lh); in ldm_free_vblks()
[all …]
/openbmc/linux/fs/ocfs2/dlm/
H 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 …]
/openbmc/linux/drivers/scsi/isci/
H A Dremote_node_table.c118 BUG_ON(group_table_index >= SCU_STP_REMOTE_NODE_COUNT); in sci_remote_node_table_clear_group_index()
119 BUG_ON(group_index >= (u32)(remote_node_table->group_array_size * 32)); in sci_remote_node_table_clear_group_index()
148 BUG_ON(group_table_index >= SCU_STP_REMOTE_NODE_COUNT); in sci_remote_node_table_set_group_index()
149 BUG_ON(group_index >= (u32)(remote_node_table->group_array_size * 32)); in sci_remote_node_table_set_group_index()
177 BUG_ON( in sci_remote_node_table_set_node_index()
210 BUG_ON( in sci_remote_node_table_clear_node_index()
240 BUG_ON( in sci_remote_node_table_clear_group()
266 BUG_ON( in sci_remote_node_table_set_group()
526 BUG_ON(group_value == SCIC_SDS_REMOTE_NODE_TABLE_FULL_SLOT_VALUE); in sci_remote_node_table_release_single_remote_node()

12345678910>>...68