/openbmc/linux/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()
|
/openbmc/qemu/hw/mem/ |
H A D | pc-dimm.c | 35 static int pc_dimm_get_free_slot(const int *hint, int max_slots, Error **errp); 116 static int pc_dimm_get_free_slot(const int *hint, int max_slots, Error **errp) in pc_dimm_get_free_slot() argument 121 if (max_slots <= 0) { in pc_dimm_get_free_slot() 127 bitmap = bitmap_new(max_slots); in pc_dimm_get_free_slot() 132 if (*hint >= max_slots) { in pc_dimm_get_free_slot() 134 *hint, max_slots); in pc_dimm_get_free_slot() 144 slot = find_first_zero_bit(bitmap, max_slots); in pc_dimm_get_free_slot() 145 if (slot == max_slots) { in pc_dimm_get_free_slot()
|
/openbmc/linux/fs/f2fs/ |
H A D | dir.c | 169 int *max_slots, in find_in_block() argument 178 return f2fs_find_target_dentry(&d, fname, max_slots, use_hash); in find_in_block() 255 const struct f2fs_filename *fname, int *max_slots, in f2fs_find_target_dentry() argument 263 if (max_slots) in f2fs_find_target_dentry() 264 *max_slots = 0; in f2fs_find_target_dentry() 289 if (max_slots && max_len > *max_slots) in f2fs_find_target_dentry() 290 *max_slots = max_len; in f2fs_find_target_dentry() 298 if (max_slots && max_len > *max_slots) in f2fs_find_target_dentry() 299 *max_slots = max_len; in f2fs_find_target_dentry() 316 int max_slots; in find_in_level() local [all …]
|
/openbmc/linux/arch/loongarch/kernel/ |
H A D | hw_breakpoint.c | 127 static int hw_breakpoint_slot_setup(struct perf_event **slots, int max_slots, in hw_breakpoint_slot_setup() argument 133 for (i = 0; i < max_slots; ++i) { in hw_breakpoint_slot_setup() 190 int i, max_slots, enable; in hw_breakpoint_control() local 207 max_slots = boot_cpu_data.watch_ireg_count; in hw_breakpoint_control() 211 max_slots = boot_cpu_data.watch_dreg_count; in hw_breakpoint_control() 214 i = hw_breakpoint_slot_setup(slots, max_slots, bp, ops); in hw_breakpoint_control() 431 int i, max_slots; in update_bp_registers() local 438 max_slots = boot_cpu_data.watch_ireg_count; in update_bp_registers() 442 max_slots = boot_cpu_data.watch_dreg_count; in update_bp_registers() 448 for (i = 0; i < max_slots; ++i) { in update_bp_registers()
|
/openbmc/linux/arch/arm64/kernel/ |
H A D | hw_breakpoint.c | 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 = core_num_wrps; in toggle_bp_registers() 599 for (i = 0; i < max_slots; ++i) { in toggle_bp_registers()
|
/openbmc/linux/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()
|
/openbmc/linux/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() 265 if (max_reqs <= tbl->max_slots) in nfs4_grow_slot_table() 303 max_reqs, tbl->max_slots); in nfs4_realloc_slot_table() 317 tbl, tbl->slots, tbl->max_slots); in nfs4_realloc_slot_table()
|
H A D | nfs4session.h | 46 u32 max_slots; /* # slots in table */ member
|
/openbmc/linux/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()
|
/openbmc/linux/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() 1468 rm_quota = kcalloc(osb->max_slots, sizeof(int), GFP_NOFS); in __ocfs2_recovery_thread() 1618 BUG_ON(slot_num >= osb->max_slots); in ocfs2_read_journal_inode() 1902 for (i = 0; i < osb->max_slots; i++) { in ocfs2_mark_dead_nodes() 2028 for (i = 0; i < osb->max_slots; i++) in ocfs2_queue_orphan_scan() 2424 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()
|
H A D | super.c | 328 for (i = 0; i < osb->max_slots; ++i) { in ocfs2_osb_dump() 533 for (i = 0; i < NUM_LOCAL_SYSTEM_INODES * osb->max_slots; i++) { in ocfs2_release_system_inodes() 2071 osb->max_slots = le16_to_cpu(di->id2.i_super.s_max_slots); in ocfs2_initialize_super() 2072 if (osb->max_slots > OCFS2_MAX_SLOTS || osb->max_slots == 0) { in ocfs2_initialize_super() 2074 osb->max_slots); in ocfs2_initialize_super() 2113 kcalloc(osb->max_slots, sizeof(*osb->slot_recovery_generations), in ocfs2_initialize_super() 2122 osb->osb_orphan_wipes = kcalloc(osb->max_slots, in ocfs2_initialize_super()
|
H A D | ioctl.c | 189 oim.im_max_slots = osb->max_slots; in ocfs2_info_handle_maxslots() 348 oifi->ifi_slotnum = osb->max_slots; in ocfs2_info_handle_freeinode()
|
/openbmc/linux/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() 274 num, max_slots); in dlm_slots_assign()
|
/openbmc/linux/drivers/net/fddi/skfp/h/ |
H A D | targethw.h | 71 short max_slots ; /* maximum number of slots */ member
|
/openbmc/linux/sound/pci/hda/ |
H A D | hda_controller.c | 1193 int azx_probe_codecs(struct azx *chip, unsigned int max_slots) in azx_probe_codecs() argument 1199 if (!max_slots) in azx_probe_codecs() 1200 max_slots = AZX_DEFAULT_CODECS; in azx_probe_codecs() 1203 for (c = 0; c < max_slots; c++) { in azx_probe_codecs() 1226 for (c = 0; c < max_slots; c++) { in azx_probe_codecs()
|
H A D | hda_controller.h | 209 int azx_probe_codecs(struct azx *chip, unsigned int max_slots);
|
/openbmc/linux/tools/testing/selftests/hid/tests/ |
H A D | test_multitouch.py | 289 def __init__(self, max_slots): argument 290 self.max_slots = max_slots 358 self.max_slots = 10 419 def __init__(self, max_slots): argument 420 self.max_slots = max_slots
|
/openbmc/linux/fs/ocfs2/cluster/ |
H A D | heartbeat.c | 504 unsigned int max_slots, blk_opf_t opf) in o2hb_setup_one_bio() argument 531 while(cs < max_slots) { in o2hb_setup_one_bio() 536 (max_slots-cs) * (PAGE_SIZE/spp) ); in o2hb_setup_one_bio() 555 unsigned int max_slots) in o2hb_read_slots() argument 564 while(current_slot < max_slots) { in o2hb_read_slots() 565 bio = o2hb_setup_one_bio(reg, &wc, ¤t_slot, max_slots, in o2hb_read_slots()
|
/openbmc/linux/sound/soc/intel/skylake/ |
H A D | skl.c | 756 int c, max_slots; in skl_codec_create() local 758 max_slots = HDA_MAX_CODECS; in skl_codec_create() 761 for (c = 0; c < max_slots; c++) { in skl_codec_create()
|
/openbmc/linux/drivers/pci/hotplug/ |
H A D | ibmphp_core.c | 46 static int max_slots; variable 466 if ((number > max_slots) || (number < 0)) in validate() 1219 max_slots = get_max_slots(); in ibmphp_init()
|
/openbmc/linux/drivers/input/ |
H A D | evdev.c | 925 int max_slots; in evdev_handle_mt_request() local 933 max_slots = (size - sizeof(__u32)) / sizeof(__s32); in evdev_handle_mt_request() 934 for (i = 0; i < mt->num_slots && i < max_slots; i++) { in evdev_handle_mt_request()
|
/openbmc/linux/drivers/staging/vc04_services/interface/vchiq_arm/ |
H A D | vchiq_core.h | 326 int max_slots; member
|
/openbmc/linux/include/linux/sunrpc/ |
H A D | xprt.h | 299 max_slots; /* max rpc_slots used */ member
|