/linux-6.1.9/fs/xfs/libxfs/ |
D | xfs_iext_tree.c | 454 int *nr_entries) in xfs_iext_split_node() argument 466 *nr_entries = 0; in xfs_iext_split_node() 482 *nr_entries = nr_move; in xfs_iext_split_node() 484 *nr_entries = nr_keep; in xfs_iext_split_node() 500 int i, pos, nr_entries; in xfs_iext_insert_node() local 509 nr_entries = xfs_iext_node_nr_entries(node, pos); in xfs_iext_insert_node() 511 ASSERT(pos >= nr_entries || xfs_iext_key_cmp(node, pos, offset) != 0); in xfs_iext_insert_node() 512 ASSERT(nr_entries <= KEYS_PER_NODE); in xfs_iext_insert_node() 514 if (nr_entries == KEYS_PER_NODE) in xfs_iext_insert_node() 515 new = xfs_iext_split_node(&node, &pos, &nr_entries); in xfs_iext_insert_node() [all …]
|
/linux-6.1.9/drivers/dma/dw-edma/ |
D | dw-edma-v0-debugfs.c | 97 int nr_entries, struct dentry *dir) in dw_edma_debugfs_create_x32() argument 101 for (i = 0; i < nr_entries; i++) { in dw_edma_debugfs_create_x32() 111 int nr_entries; in dw_edma_debugfs_regs_ch() local 124 nr_entries = ARRAY_SIZE(debugfs_regs); in dw_edma_debugfs_regs_ch() 125 dw_edma_debugfs_create_x32(debugfs_regs, nr_entries, dir); in dw_edma_debugfs_regs_ch() 166 int nr_entries, i; in dw_edma_debugfs_regs_wr() local 173 nr_entries = ARRAY_SIZE(debugfs_regs); in dw_edma_debugfs_regs_wr() 174 dw_edma_debugfs_create_x32(debugfs_regs, nr_entries, regs_dir); in dw_edma_debugfs_regs_wr() 177 nr_entries = ARRAY_SIZE(debugfs_unroll_regs); in dw_edma_debugfs_regs_wr() 178 dw_edma_debugfs_create_x32(debugfs_unroll_regs, nr_entries, in dw_edma_debugfs_regs_wr() [all …]
|
/linux-6.1.9/lib/ |
D | stackdepot.c | 329 unsigned int nr_entries; in stack_depot_snprint() local 331 nr_entries = stack_depot_fetch(handle, &entries); in stack_depot_snprint() 332 return nr_entries ? stack_trace_snprint(buf, size, entries, nr_entries, in stack_depot_snprint() 347 unsigned int nr_entries; in stack_depot_print() local 349 nr_entries = stack_depot_fetch(stack, &entries); in stack_depot_print() 350 if (nr_entries > 0) in stack_depot_print() 351 stack_trace_print(entries, nr_entries, 0); in stack_depot_print() 420 unsigned int nr_entries, in __stack_depot_save() argument 439 nr_entries = filter_irq_stacks(entries, nr_entries); in __stack_depot_save() 441 if (unlikely(nr_entries == 0) || stack_depot_disable) in __stack_depot_save() [all …]
|
D | ref_tracker.c | 73 unsigned int nr_entries; in ref_tracker_alloc() local 91 nr_entries = stack_trace_save(entries, ARRAY_SIZE(entries), 1); in ref_tracker_alloc() 92 tracker->alloc_stack_handle = stack_depot_save(entries, nr_entries, gfp); in ref_tracker_alloc() 107 unsigned int nr_entries; in ref_tracker_free() local 121 nr_entries = stack_trace_save(entries, ARRAY_SIZE(entries), 1); in ref_tracker_free() 122 stack_handle = stack_depot_save(entries, nr_entries, GFP_ATOMIC); in ref_tracker_free()
|
/linux-6.1.9/kernel/ |
D | stacktrace.c | 24 void stack_trace_print(const unsigned long *entries, unsigned int nr_entries, in stack_trace_print() argument 32 for (i = 0; i < nr_entries; i++) in stack_trace_print() 48 unsigned int nr_entries, int spaces) in stack_trace_snprint() argument 55 for (i = 0; i < nr_entries && size; i++) { in stack_trace_snprint() 277 return trace.nr_entries; in stack_trace_save() 302 return trace.nr_entries; in stack_trace_save_tsk() 324 return trace.nr_entries; in stack_trace_save_regs() 349 return ret ? ret : trace.nr_entries; in stack_trace_save_tsk_reliable() 369 return trace.nr_entries; in stack_trace_save_user() 390 unsigned int filter_irq_stacks(unsigned long *entries, unsigned int nr_entries) in filter_irq_stacks() argument [all …]
|
D | backtracetest.c | 48 unsigned int nr_entries; in backtrace_test_saved() local 53 nr_entries = stack_trace_save(entries, ARRAY_SIZE(entries), 0); in backtrace_test_saved() 54 stack_trace_print(entries, nr_entries, 0); in backtrace_test_saved()
|
/linux-6.1.9/drivers/md/persistent-data/ |
D | dm-btree-remove.c | 61 uint32_t nr_entries = le32_to_cpu(n->header.nr_entries); in node_shift() local 66 BUG_ON(shift > nr_entries); in node_shift() 70 (nr_entries - shift) * sizeof(__le64)); in node_shift() 73 (nr_entries - shift) * value_size); in node_shift() 75 BUG_ON(nr_entries + shift > le32_to_cpu(n->header.max_entries)); in node_shift() 78 nr_entries * sizeof(__le64)); in node_shift() 81 nr_entries * value_size); in node_shift() 87 uint32_t nr_left = le32_to_cpu(left->header.nr_entries); in node_copy() 129 unsigned nr_entries = le32_to_cpu(n->header.nr_entries); in delete_at() local 130 unsigned nr_to_copy = nr_entries - (index + 1); in delete_at() [all …]
|
D | dm-btree.c | 43 int lo = -1, hi = le32_to_cpu(n->header.nr_entries); in bsearch() 74 uint32_t nr_entries = le32_to_cpu(n->header.nr_entries); in inc_children() local 77 dm_tm_with_runs(tm, value_ptr(n, 0), nr_entries, dm_tm_inc_range); in inc_children() 80 vt->inc(vt->context, value_ptr(n, 0), nr_entries); in inc_children() 87 uint32_t nr_entries = le32_to_cpu(node->header.nr_entries); in insert_at() local 91 if (index > nr_entries || in insert_at() 93 nr_entries >= max_entries) { in insert_at() 101 array_insert(node->keys, sizeof(*node->keys), nr_entries, index, &key_le); in insert_at() 102 array_insert(value_base(node), value_size, nr_entries, index, value); in insert_at() 103 node->header.nr_entries = cpu_to_le32(nr_entries + 1); in insert_at() [all …]
|
D | dm-array.c | 26 __le32 nr_entries; member 113 unsigned nr_entries = le32_to_cpu(ab->nr_entries); in on_entries() local 114 fn(info->value_type.context, element_at(info, ab, 0), nr_entries); in on_entries() 162 (*ab)->nr_entries = cpu_to_le32(0); in alloc_ablock() 176 uint32_t nr_entries, delta, i; in fill_ablock() local 180 BUG_ON(new_nr < le32_to_cpu(ab->nr_entries)); in fill_ablock() 182 nr_entries = le32_to_cpu(ab->nr_entries); in fill_ablock() 183 delta = new_nr - nr_entries; in fill_ablock() 186 for (i = nr_entries; i < new_nr; i++) in fill_ablock() 188 ab->nr_entries = cpu_to_le32(new_nr); in fill_ablock() [all …]
|
/linux-6.1.9/arch/x86/kernel/ |
D | e820.c | 82 for (i = 0; i < table->nr_entries; i++) { in _e820__mapped_any() 117 for (i = 0; i < e820_table->nr_entries; i++) { in __e820__mapped_all() 168 int x = table->nr_entries; in __e820__range_add() 179 table->nr_entries++; in __e820__range_add() 207 for (i = 0; i < e820_table->nr_entries; i++) { in e820__print_table() 332 if (table->nr_entries < 2) in e820__update_table() 335 BUG_ON(table->nr_entries > max_nr_entries); in e820__update_table() 338 for (i = 0; i < table->nr_entries; i++) { in e820__update_table() 344 for (i = 0; i < 2 * table->nr_entries; i++) in e820__update_table() 352 for (i = 0; i < table->nr_entries; i++) { in e820__update_table() [all …]
|
D | ldt.c | 81 set_ldt(ldt_slot_va(ldt->slot), ldt->nr_entries); in load_mm_ldt() 83 set_ldt(ldt->entries, ldt->nr_entries); in load_mm_ldt() 183 new_ldt->nr_entries = num_entries; in alloc_ldt_struct() 309 nr_pages = DIV_ROUND_UP(ldt->nr_entries * LDT_ENTRY_SIZE, PAGE_SIZE); in map_ldt_struct() 361 nr_pages = DIV_ROUND_UP(ldt->nr_entries * LDT_ENTRY_SIZE, PAGE_SIZE); in unmap_ldt_struct() 416 paravirt_alloc_ldt(ldt->entries, ldt->nr_entries); in finalize_ldt_struct() 437 paravirt_free_ldt(ldt->entries, ldt->nr_entries); in free_ldt_struct() 438 if (ldt->nr_entries * LDT_ENTRY_SIZE > PAGE_SIZE) in free_ldt_struct() 461 new_ldt = alloc_ldt_struct(old_mm->context.ldt->nr_entries); in ldt_dup_context() 468 new_ldt->nr_entries * LDT_ENTRY_SIZE); in ldt_dup_context() [all …]
|
/linux-6.1.9/mm/kmsan/ |
D | report.c | 87 unsigned int nr_entries, chained_nr_entries, skipnr; in kmsan_print_origin() local 98 nr_entries = stack_depot_fetch(origin, &entries); in kmsan_print_origin() 100 magic = nr_entries ? entries[0] : 0; in kmsan_print_origin() 101 if ((nr_entries == 4) && (magic == KMSAN_ALLOCA_MAGIC_ORIGIN)) { in kmsan_print_origin() 113 if ((nr_entries == 3) && (magic == KMSAN_CHAIN_MAGIC_ORIGIN)) { in kmsan_print_origin() 137 if (nr_entries) { in kmsan_print_origin() 138 skipnr = get_stack_skipnr(entries, nr_entries); in kmsan_print_origin() 139 stack_trace_print(entries + skipnr, nr_entries - skipnr, in kmsan_print_origin()
|
/linux-6.1.9/tools/perf/util/ |
D | syscalltbl.c | 65 int nr_entries = 0, i, j; in syscalltbl__init_native() local 70 ++nr_entries; in syscalltbl__init_native() 72 entries = tbl->syscalls.entries = malloc(sizeof(struct syscall) * nr_entries); in syscalltbl__init_native() 84 qsort(tbl->syscalls.entries, nr_entries, sizeof(struct syscall), syscallcmp); in syscalltbl__init_native() 85 tbl->syscalls.nr_entries = nr_entries; in syscalltbl__init_native() 116 tbl->syscalls.nr_entries, sizeof(*sc), in syscalltbl__id() 127 for (i = *idx + 1; i < tbl->syscalls.nr_entries; ++i) { in syscalltbl__strglobmatch_next()
|
D | rblist.h | 24 unsigned int nr_entries; member 42 return rblist->nr_entries == 0; in rblist__empty() 47 return rblist->nr_entries; in rblist__nr_entries()
|
/linux-6.1.9/tools/perf/ui/ |
D | browser.c | 108 if (browser->nr_entries == 0) in ui_browser__list_head_seek() 316 if (browser->nr_entries > 1) { in ui_browser__scrollbar_set() 318 (browser->nr_entries - 1)); in ui_browser__scrollbar_set() 348 if (browser->nr_entries == 0 && browser->no_samples_msg) in __ui_browser__refresh() 368 void ui_browser__update_nr_entries(struct ui_browser *browser, u32 nr_entries) in ui_browser__update_nr_entries() argument 370 off_t offset = nr_entries - browser->nr_entries; in ui_browser__update_nr_entries() 372 browser->nr_entries = nr_entries; in ui_browser__update_nr_entries() 424 if (browser->index == browser->nr_entries - 1) in ui_browser__run() 455 if (browser->top_idx + browser->rows > browser->nr_entries - 1) in ui_browser__run() 459 if (browser->index + offset > browser->nr_entries - 1) in ui_browser__run() [all …]
|
/linux-6.1.9/arch/mips/kernel/ |
D | stacktrace.c | 30 trace->entries[trace->nr_entries++] = addr; in save_raw_context_stack() 31 if (trace->nr_entries >= trace->max_entries) in save_raw_context_stack() 58 trace->entries[trace->nr_entries++] = pc; in save_context_stack() 59 if (trace->nr_entries >= trace->max_entries) in save_context_stack() 83 WARN_ON(trace->nr_entries || !trace->max_entries); in save_stack_trace_tsk()
|
/linux-6.1.9/tools/perf/trace/beauty/ |
D | ioctl.c | 41 if (nr < strarray__ioctl_tty_cmd.nr_entries && strarray__ioctl_tty_cmd.entries[nr] != NULL) in ioctl__scnprintf_tty_cmd() 52 if (nr < strarray__drm_ioctl_cmds.nr_entries && strarray__drm_ioctl_cmds.entries[nr] != NULL) in ioctl__scnprintf_drm_cmd() 63 …if (nr < strarray__sndrv_pcm_ioctl_cmds.nr_entries && strarray__sndrv_pcm_ioctl_cmds.entries[nr] !… in ioctl__scnprintf_sndrv_pcm_cmd() 74 …if (nr < strarray__sndrv_ctl_ioctl_cmds.nr_entries && strarray__sndrv_ctl_ioctl_cmds.entries[nr] !… in ioctl__scnprintf_sndrv_ctl_cmd() 85 if (nr < strarray__kvm_ioctl_cmds.nr_entries && strarray__kvm_ioctl_cmds.entries[nr] != NULL) in ioctl__scnprintf_kvm_cmd() 98 if (nr < s->nr_entries && s->entries[nr] != NULL) in ioctl__scnprintf_vhost_virtio_cmd() 109 if (nr < strarray__perf_ioctl_cmds.nr_entries && strarray__perf_ioctl_cmds.entries[nr] != NULL) in ioctl__scnprintf_perf_cmd() 120 …if (nr < strarray__usbdevfs_ioctl_cmds.nr_entries && strarray__usbdevfs_ioctl_cmds.entries[nr] != … in ioctl__scnprintf_usbdevfs_cmd()
|
/linux-6.1.9/arch/sh/kernel/ |
D | stacktrace.c | 33 if (trace->nr_entries < trace->max_entries) in save_stack_address() 34 trace->entries[trace->nr_entries++] = addr; in save_stack_address() 65 if (trace->nr_entries < trace->max_entries) in save_stack_address_nosched() 66 trace->entries[trace->nr_entries++] = addr; in save_stack_address_nosched()
|
/linux-6.1.9/drivers/md/ |
D | dm-cache-policy-internal.h | 115 static inline size_t bitset_size_in_bytes(unsigned nr_entries) in bitset_size_in_bytes() argument 117 return sizeof(unsigned long) * dm_div_up(nr_entries, BITS_PER_LONG); in bitset_size_in_bytes() 120 static inline unsigned long *alloc_bitset(unsigned nr_entries) in alloc_bitset() argument 122 size_t s = bitset_size_in_bytes(nr_entries); in alloc_bitset() 126 static inline void clear_bitset(void *bitset, unsigned nr_entries) in clear_bitset() argument 128 size_t s = bitset_size_in_bytes(nr_entries); in clear_bitset()
|
/linux-6.1.9/include/linux/ |
D | stacktrace.h | 66 void stack_trace_print(const unsigned long *trace, unsigned int nr_entries, 69 unsigned int nr_entries, int spaces); 78 unsigned int filter_irq_stacks(unsigned long *entries, unsigned int nr_entries); 83 unsigned int nr_entries, max_entries; member
|
/linux-6.1.9/arch/openrisc/kernel/ |
D | stacktrace.c | 38 if (trace->nr_entries < trace->max_entries) in save_stack_address() 39 trace->entries[trace->nr_entries++] = addr; in save_stack_address() 64 if (trace->nr_entries < trace->max_entries) in save_stack_address_nosched() 65 trace->entries[trace->nr_entries++] = addr; in save_stack_address_nosched()
|
/linux-6.1.9/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum1_kvdl.c | 122 unsigned int entry_index, nr_entries; in mlxsw_sp1_kvdl_part_alloc() local 124 nr_entries = (info->end_index - info->start_index + 1) / in mlxsw_sp1_kvdl_part_alloc() 126 entry_index = find_first_zero_bit(part->usage, nr_entries); in mlxsw_sp1_kvdl_part_alloc() 127 if (entry_index == nr_entries) in mlxsw_sp1_kvdl_part_alloc() 215 unsigned int nr_entries; in mlxsw_sp1_kvdl_part_init() local 226 nr_entries = div_u64(resource_size, info->alloc_size); in mlxsw_sp1_kvdl_part_init() 227 part = kzalloc(struct_size(part, usage, BITS_TO_LONGS(nr_entries)), in mlxsw_sp1_kvdl_part_init() 280 unsigned int nr_entries; in mlxsw_sp1_kvdl_part_occ() local 284 nr_entries = (info->end_index - in mlxsw_sp1_kvdl_part_occ() 287 while ((bit = find_next_bit(part->usage, nr_entries, bit + 1)) in mlxsw_sp1_kvdl_part_occ() [all …]
|
/linux-6.1.9/arch/sparc/kernel/ |
D | stacktrace.c | 58 trace->entries[trace->nr_entries++] = pc; in __save_stack_trace() 66 if (trace->nr_entries < in __save_stack_trace() 68 trace->entries[trace->nr_entries++] = pc; in __save_stack_trace() 74 } while (trace->nr_entries < trace->max_entries); in __save_stack_trace()
|
/linux-6.1.9/arch/ia64/kernel/ |
D | stacktrace.c | 19 trace->nr_entries = 0; in ia64_do_save_stack() 25 trace->entries[trace->nr_entries++] = ip; in ia64_do_save_stack() 26 if (trace->nr_entries == trace->max_entries) in ia64_do_save_stack()
|
/linux-6.1.9/drivers/pci/pcie/ |
D | portdrv_core.c | 103 int nr_entries, nvec, pcie_irq; in pcie_port_enable_irq_vec() local 107 nr_entries = pci_alloc_irq_vectors(dev, 1, PCIE_PORT_MAX_MSI_ENTRIES, in pcie_port_enable_irq_vec() 109 if (nr_entries < 0) in pcie_port_enable_irq_vec() 110 return nr_entries; in pcie_port_enable_irq_vec() 114 if (nvec > nr_entries) { in pcie_port_enable_irq_vec() 130 if (nvec != nr_entries) { in pcie_port_enable_irq_vec() 133 nr_entries = pci_alloc_irq_vectors(dev, nvec, nvec, in pcie_port_enable_irq_vec() 135 if (nr_entries < 0) in pcie_port_enable_irq_vec() 136 return nr_entries; in pcie_port_enable_irq_vec()
|