/kernel/linux/linux-5.10/tools/testing/radix-tree/ |
H A D | regression2.c | 80 int max_slots = RADIX_TREE_MAP_SIZE; in regression2_test() local 86 for (i = 0; i <= max_slots - 1; i++) { in regression2_test() 90 radix_tree_tag_set(&mt_tree, max_slots - 1, PAGECACHE_TAG_DIRTY); in regression2_test() 94 end = max_slots - 2; in regression2_test() 100 radix_tree_insert(&mt_tree, max_slots, p); in regression2_test() 103 radix_tree_tag_clear(&mt_tree, max_slots - 1, PAGECACHE_TAG_DIRTY); in regression2_test() 106 for (i = max_slots - 1; i >= 0; i--) in regression2_test() 113 end = max_slots - 2; in regression2_test() 118 free(radix_tree_delete(&mt_tree, max_slots)); in regression2_test()
|
/kernel/linux/linux-6.6/tools/testing/radix-tree/ |
H A D | regression2.c | 80 int max_slots = RADIX_TREE_MAP_SIZE; in regression2_test() local 86 for (i = 0; i <= max_slots - 1; i++) { in regression2_test() 90 radix_tree_tag_set(&mt_tree, max_slots - 1, PAGECACHE_TAG_DIRTY); in regression2_test() 94 end = max_slots - 2; in regression2_test() 100 radix_tree_insert(&mt_tree, max_slots, p); in regression2_test() 103 radix_tree_tag_clear(&mt_tree, max_slots - 1, PAGECACHE_TAG_DIRTY); in regression2_test() 106 for (i = max_slots - 1; i >= 0; i--) in regression2_test() 113 end = max_slots - 2; in regression2_test() 118 free(radix_tree_delete(&mt_tree, max_slots)); in regression2_test()
|
/kernel/linux/linux-6.6/arch/loongarch/kernel/ |
H A D | hw_breakpoint.c | 105 * @max_slots: max number of slots 115 static int hw_breakpoint_slot_setup(struct perf_event **slots, int max_slots, in hw_breakpoint_slot_setup() argument 121 for (i = 0; i < max_slots; ++i) { in hw_breakpoint_slot_setup() 178 int i, max_slots, enable; in hw_breakpoint_control() local 185 max_slots = boot_cpu_data.watch_ireg_count; in hw_breakpoint_control() 189 max_slots = boot_cpu_data.watch_dreg_count; in hw_breakpoint_control() 192 i = hw_breakpoint_slot_setup(slots, max_slots, bp, ops); in hw_breakpoint_control() 411 int i, max_slots; in update_bp_registers() local 418 max_slots = boot_cpu_data.watch_ireg_count; in update_bp_registers() 422 max_slots in update_bp_registers() [all...] |
/kernel/linux/linux-5.10/fs/f2fs/ |
H A D | dir.c | 194 int *max_slots) in find_in_block() 202 return f2fs_find_target_dentry(&d, fname, max_slots); in find_in_block() 254 const struct f2fs_filename *fname, int *max_slots) in f2fs_find_target_dentry() 260 if (max_slots) in f2fs_find_target_dentry() 261 *max_slots = 0; in f2fs_find_target_dentry() 281 if (max_slots && max_len > *max_slots) in f2fs_find_target_dentry() 282 *max_slots = max_len; in f2fs_find_target_dentry() 290 if (max_slots && max_len > *max_slots) in f2fs_find_target_dentry() 191 find_in_block(struct inode *dir, struct page *dentry_page, const struct f2fs_filename *fname, int *max_slots) find_in_block() argument 253 f2fs_find_target_dentry(const struct f2fs_dentry_ptr *d, const struct f2fs_filename *fname, int *max_slots) f2fs_find_target_dentry() argument 306 int max_slots; find_in_level() local 592 f2fs_room_for_filename(const void *bitmap, int slots, int max_slots) f2fs_room_for_filename() argument [all...] |
/kernel/linux/linux-6.6/fs/f2fs/ |
H A D | dir.c | 168 int *max_slots) in find_in_block() 176 return f2fs_find_target_dentry(&d, fname, max_slots); in find_in_block() 253 const struct f2fs_filename *fname, int *max_slots) in f2fs_find_target_dentry() 260 if (max_slots) in f2fs_find_target_dentry() 261 *max_slots = 0; in f2fs_find_target_dentry() 286 if (max_slots && max_len > *max_slots) in f2fs_find_target_dentry() 287 *max_slots = max_len; in f2fs_find_target_dentry() 295 if (max_slots && max_len > *max_slots) in f2fs_find_target_dentry() 165 find_in_block(struct inode *dir, struct page *dentry_page, const struct f2fs_filename *fname, int *max_slots) find_in_block() argument 252 f2fs_find_target_dentry(const struct f2fs_dentry_ptr *d, const struct f2fs_filename *fname, int *max_slots) f2fs_find_target_dentry() argument 312 int max_slots; find_in_level() local 622 f2fs_room_for_filename(const void *bitmap, int slots, int max_slots) f2fs_room_for_filename() argument [all...] |
/kernel/linux/linux-5.10/arch/arm64/kernel/ |
H A D | hw_breakpoint.c | 179 * @max_slots: max number of slots 188 static int hw_breakpoint_slot_setup(struct perf_event **slots, int max_slots, in hw_breakpoint_slot_setup() argument 195 for (i = 0; i < max_slots; ++i) { in hw_breakpoint_slot_setup() 228 int i, max_slots, ctrl_reg, val_reg, reg_enable; in hw_breakpoint_control() local 237 max_slots = core_num_brps; in hw_breakpoint_control() 244 max_slots = core_num_wrps; in hw_breakpoint_control() 248 i = hw_breakpoint_slot_setup(slots, max_slots, bp, ops); in hw_breakpoint_control() 582 int i, max_slots, privilege; in toggle_bp_registers() local 589 max_slots = core_num_brps; in toggle_bp_registers() 593 max_slots in toggle_bp_registers() [all...] |
/kernel/linux/linux-6.6/arch/arm64/kernel/ |
H A D | hw_breakpoint.c | 179 * @max_slots: max number of slots 188 static int hw_breakpoint_slot_setup(struct perf_event **slots, int max_slots, in hw_breakpoint_slot_setup() argument 195 for (i = 0; i < max_slots; ++i) { in hw_breakpoint_slot_setup() 228 int i, max_slots, ctrl_reg, val_reg, reg_enable; in hw_breakpoint_control() local 237 max_slots = core_num_brps; in hw_breakpoint_control() 244 max_slots = core_num_wrps; in hw_breakpoint_control() 248 i = hw_breakpoint_slot_setup(slots, max_slots, bp, ops); in hw_breakpoint_control() 582 int i, max_slots, privilege; in toggle_bp_registers() local 589 max_slots = core_num_brps; in toggle_bp_registers() 593 max_slots in toggle_bp_registers() [all...] |
/kernel/linux/linux-5.10/fs/nfs/ |
H A D | nfs4session.c | 42 if (newsize >= tbl->max_slots) in nfs4_shrink_slot_table() 53 tbl->max_slots--; in nfs4_shrink_slot_table() 128 *p = nfs4_new_slot(tbl, tbl->max_slots, in nfs4_find_or_create_slot() 132 tbl->max_slots++; in nfs4_find_or_create_slot() 247 dprintk("--> %s used_slots=%04lx highest_used=%u max_slots=%u\n", in nfs4_alloc_slot() 265 if (max_reqs <= tbl->max_slots) in nfs4_grow_slot_table() 302 dprintk("--> %s: max_reqs=%u, tbl->max_slots %u\n", __func__, in nfs4_realloc_slot_table() 303 max_reqs, tbl->max_slots); in nfs4_realloc_slot_table() 316 dprintk("%s: tbl=%p slots=%p max_slots=%u\n", __func__, in nfs4_realloc_slot_table() 317 tbl, tbl->slots, tbl->max_slots); in nfs4_realloc_slot_table() [all...] |
H A D | nfs4session.h | 45 u32 max_slots; /* # slots in table */ member
|
/kernel/linux/linux-6.6/fs/nfs/ |
H A D | nfs4session.c | 42 if (newsize >= tbl->max_slots) in nfs4_shrink_slot_table() 53 tbl->max_slots--; in nfs4_shrink_slot_table() 128 *p = nfs4_new_slot(tbl, tbl->max_slots, in nfs4_find_or_create_slot() 132 tbl->max_slots++; in nfs4_find_or_create_slot() 247 dprintk("--> %s used_slots=%04lx highest_used=%u max_slots=%u\n", in nfs4_alloc_slot() 265 if (max_reqs <= tbl->max_slots) in nfs4_grow_slot_table() 302 dprintk("--> %s: max_reqs=%u, tbl->max_slots %u\n", __func__, in nfs4_realloc_slot_table() 303 max_reqs, tbl->max_slots); in nfs4_realloc_slot_table() 316 dprintk("%s: tbl=%p slots=%p max_slots=%u\n", __func__, in nfs4_realloc_slot_table() 317 tbl, tbl->slots, tbl->max_slots); in nfs4_realloc_slot_table() [all...] |
H A D | nfs4session.h | 46 u32 max_slots; /* # slots in table */ member
|
/kernel/linux/linux-5.10/arch/arm/kernel/ |
H A D | hw_breakpoint.c | 329 int i, max_slots, ctrl_base, val_base; in arch_install_hw_breakpoint() local 340 max_slots = core_num_brps; in arch_install_hw_breakpoint() 346 max_slots = core_num_wrps; in arch_install_hw_breakpoint() 349 for (i = 0; i < max_slots; ++i) { in arch_install_hw_breakpoint() 358 if (i == max_slots) { in arch_install_hw_breakpoint() 386 int i, max_slots, base; in arch_uninstall_hw_breakpoint() local 392 max_slots = core_num_brps; in arch_uninstall_hw_breakpoint() 397 max_slots = core_num_wrps; in arch_uninstall_hw_breakpoint() 401 for (i = 0; i < max_slots; ++i) { in arch_uninstall_hw_breakpoint() 410 if (i == max_slots) { in arch_uninstall_hw_breakpoint() [all...] |
/kernel/linux/linux-6.6/arch/arm/kernel/ |
H A D | hw_breakpoint.c | 329 int i, max_slots, ctrl_base, val_base; in arch_install_hw_breakpoint() local 340 max_slots = core_num_brps; in arch_install_hw_breakpoint() 346 max_slots = core_num_wrps; in arch_install_hw_breakpoint() 349 for (i = 0; i < max_slots; ++i) { in arch_install_hw_breakpoint() 358 if (i == max_slots) { in arch_install_hw_breakpoint() 386 int i, max_slots, base; in arch_uninstall_hw_breakpoint() local 392 max_slots = core_num_brps; in arch_uninstall_hw_breakpoint() 397 max_slots = core_num_wrps; in arch_uninstall_hw_breakpoint() 401 for (i = 0; i < max_slots; ++i) { in arch_uninstall_hw_breakpoint() 410 if (i == max_slots) { in arch_uninstall_hw_breakpoint() [all...] |
/kernel/linux/linux-5.10/fs/ocfs2/ |
H A D | slot_map.c | 217 bytes_needed = osb->max_slots * in ocfs2_slot_map_physical_size() 220 bytes_needed = osb->max_slots * sizeof(__le16); in ocfs2_slot_map_physical_size() 293 BUG_ON(slot_num >= osb->max_slots); in ocfs2_slot_to_node_num_locked() 364 BUG_ON((osb->max_slots / si->si_slots_per_block) > blocks); in ocfs2_map_slot_buffers() 407 si = kzalloc(struct_size(si, si_slots, osb->max_slots), GFP_KERNEL); in ocfs2_init_slot_info() 415 si->si_num_slots = osb->max_slots; in ocfs2_init_slot_info()
|
H A D | journal.c | 119 (osb->max_slots * sizeof(char)), GFP_KERNEL); in ocfs2_compute_replay_slots() 128 replay_map->rm_slots = osb->max_slots; in ocfs2_compute_replay_slots() 183 osb->max_slots * sizeof(unsigned int), in ocfs2_recovery_init() 262 BUG_ON(rm->rm_used >= osb->max_slots); in ocfs2_recovery_map_set() 1390 rm_quota = kcalloc(osb->max_slots, sizeof(int), GFP_NOFS); in __ocfs2_recovery_thread() 1543 BUG_ON(slot_num >= osb->max_slots); in ocfs2_read_journal_inode() 1829 for (i = 0; i < osb->max_slots; i++) { in ocfs2_mark_dead_nodes() 1955 for (i = 0; i < osb->max_slots; i++) in ocfs2_queue_orphan_scan() 2351 for(slot = 0; slot < osb->max_slots; slot++) { in ocfs2_check_journals_nolocks()
|
H A D | sysfile.c | 61 osb->max_slots), in get_local_system_inode()
|
/kernel/linux/linux-6.6/fs/ocfs2/ |
H A D | slot_map.c | 215 bytes_needed = osb->max_slots * in ocfs2_slot_map_physical_size() 218 bytes_needed = osb->max_slots * sizeof(__le16); in ocfs2_slot_map_physical_size() 291 BUG_ON(slot_num >= osb->max_slots); in ocfs2_slot_to_node_num_locked() 362 BUG_ON((osb->max_slots / si->si_slots_per_block) > blocks); in ocfs2_map_slot_buffers() 405 si = kzalloc(struct_size(si, si_slots, osb->max_slots), GFP_KERNEL); in ocfs2_init_slot_info() 413 si->si_num_slots = osb->max_slots; in ocfs2_init_slot_info()
|
H A D | journal.c | 118 osb->max_slots), in ocfs2_compute_replay_slots() 127 replay_map->rm_slots = osb->max_slots; in ocfs2_compute_replay_slots() 181 rm = kzalloc(struct_size(rm, rm_entries, osb->max_slots), in ocfs2_recovery_init() 258 BUG_ON(rm->rm_used >= osb->max_slots); in ocfs2_recovery_map_set() 1428 rm_quota = kcalloc(osb->max_slots, sizeof(int), GFP_NOFS); in __ocfs2_recovery_thread() 1578 BUG_ON(slot_num >= osb->max_slots); in ocfs2_read_journal_inode() 1862 for (i = 0; i < osb->max_slots; i++) { in ocfs2_mark_dead_nodes() 1988 for (i = 0; i < osb->max_slots; i++) in ocfs2_queue_orphan_scan() 2384 for(slot = 0; slot < osb->max_slots; slot++) { in ocfs2_check_journals_nolocks()
|
H A D | sysfile.c | 59 osb->max_slots), in get_local_system_inode()
|
/kernel/linux/linux-6.6/tools/testing/selftests/kvm/ |
H A D | max_guest_memory_test.c | 171 int max_slots, slot, opt, fd; in main() local 185 max_slots = kvm_check_cap(KVM_CAP_NR_MEMSLOTS); in main() 186 TEST_ASSERT(max_slots > first_slot, "KVM is broken"); in main() 233 for (slot = first_slot; slot < max_slots; slot++) { in main()
|
/kernel/linux/linux-5.10/drivers/net/fddi/skfp/h/ |
H A D | targethw.h | 71 short max_slots ; /* maximum number of slots */ member
|
/kernel/linux/linux-6.6/drivers/net/fddi/skfp/h/ |
H A D | targethw.h | 71 short max_slots ; /* maximum number of slots */ member
|
/kernel/linux/linux-5.10/fs/dlm/ |
H A D | member.c | 170 int array_size, max_slots, i; in dlm_slots_assign() local 273 max_slots = (dlm_config.ci_buffer_size - sizeof(struct dlm_rcom) - in dlm_slots_assign() 276 if (num > max_slots) { in dlm_slots_assign() 277 log_error(ls, "num_slots %d exceeds max_slots %d", in dlm_slots_assign() 278 num, max_slots); in dlm_slots_assign()
|
/kernel/linux/linux-6.6/fs/dlm/ |
H A D | member.c | 166 int array_size, max_slots, i; in dlm_slots_assign() local 269 max_slots = (DLM_MAX_APP_BUFSIZE - sizeof(struct dlm_rcom) - in dlm_slots_assign() 272 if (num > max_slots) { in dlm_slots_assign() 273 log_error(ls, "num_slots %d exceeds max_slots %d", in dlm_slots_assign() 274 num, max_slots); in dlm_slots_assign()
|
/kernel/linux/linux-5.10/drivers/visorbus/ |
H A D | visorchannel.c | 222 sig_hdr.tail = (sig_hdr.tail + 1) % sig_hdr.max_slots; in signalremove_inner() 309 sig_hdr.head = (sig_hdr.head + 1) % sig_hdr.max_slots; in signalinsert_inner()
|