/openbmc/linux/mm/ |
H A D | swap_slots.c | 116 swp_entry_t *slots, *slots_ret; in alloc_swap_slot_cache() local 123 slots = kvcalloc(SWAP_SLOTS_CACHE_SIZE, sizeof(swp_entry_t), in alloc_swap_slot_cache() 125 if (!slots) in alloc_swap_slot_cache() 131 kvfree(slots); in alloc_swap_slot_cache() 137 if (cache->slots || cache->slots_ret) { in alloc_swap_slot_cache() 141 kvfree(slots); in alloc_swap_slot_cache() 162 cache->slots = slots; in alloc_swap_slot_cache() 172 swp_entry_t *slots = NULL; in drain_slots_cache_cpu() local 175 if ((type & SLOTS_CACHE) && cache->slots) { in drain_slots_cache_cpu() 177 swapcache_free_entries(cache->slots + cache->cur, cache->nr); in drain_slots_cache_cpu() [all …]
|
H A D | z3fold.c | 113 struct z3fold_buddy_slots *slots; member 197 struct z3fold_buddy_slots *slots = kmem_cache_zalloc(pool->c_handle, in alloc_slots() local 200 if (slots) { in alloc_slots() 202 kmemleak_not_leak(slots); in alloc_slots() 203 slots->pool = (unsigned long)pool; in alloc_slots() 204 rwlock_init(&slots->lock); in alloc_slots() 207 return slots; in alloc_slots() 241 struct z3fold_buddy_slots *slots; in get_z3fold_header() local 246 slots = handle_to_slots(handle); in get_z3fold_header() 250 read_lock(&slots->lock); in get_z3fold_header() [all …]
|
/openbmc/qemu/hw/hyperv/ |
H A D | hv-balloon-our_range_memslots.c | 60 OurRangeMemslotsSlots *memslots = &our_range->slots; in our_range_memslots_init_slots() 65 memslots->slots = g_new0(MemoryRegion, memslots->count); in our_range_memslots_init_slots() 86 memory_region_init_alias(&memslots->slots[idx], memslot_owner, name, in our_range_memslots_init_slots() 93 memory_region_set_unmergeable(&memslots->slots[idx], true); in our_range_memslots_init_slots() 112 our_range->slots.size_each = memslot_size; in hvb_our_range_memslots_new() 113 our_range->slots.count = memslot_count; in hvb_our_range_memslots_new() 122 OurRangeMemslotsSlots *memslots = &our_range->slots; in our_range_memslots_free_memslots() 130 assert(memory_region_is_mapped(&memslots->slots[idx])); in our_range_memslots_free_memslots() 131 memory_region_del_subregion(our_range->mr, &memslots->slots[idx]); in our_range_memslots_free_memslots() 136 object_unparent(OBJECT(&memslots->slots[idx])); in our_range_memslots_free_memslots() [all …]
|
/openbmc/qemu/hw/sd/ |
H A D | aspeed_sdhci.c | 45 val = extract64(sdhci->slots[0].capareg, 0, 32); in aspeed_sdhci_read() 48 val = extract64(sdhci->slots[0].capareg, 32, 32); in aspeed_sdhci_read() 51 val = extract64(sdhci->slots[0].maxcurr, 0, 32); in aspeed_sdhci_read() 54 val = extract64(sdhci->slots[1].capareg, 0, 32); in aspeed_sdhci_read() 57 val = extract64(sdhci->slots[1].capareg, 32, 32); in aspeed_sdhci_read() 60 val = extract64(sdhci->slots[1].maxcurr, 0, 32); in aspeed_sdhci_read() 90 sdhci->slots[0].capareg = deposit64(sdhci->slots[0].capareg, in aspeed_sdhci_write() 94 sdhci->slots[0].capareg = deposit64(sdhci->slots[0].capareg, in aspeed_sdhci_write() 98 sdhci->slots[0].maxcurr = deposit64(sdhci->slots[0].maxcurr, in aspeed_sdhci_write() 102 sdhci->slots[1].capareg = deposit64(sdhci->slots[1].capareg, in aspeed_sdhci_write() [all …]
|
/openbmc/linux/sound/pci/ac97/ |
H A D | ac97_pcm.c | 312 unsigned short slots = 0; in get_pslots() local 326 slots |= (1<<AC97_SLOT_PCM_LEFT)|(1<<AC97_SLOT_PCM_RIGHT); in get_pslots() 328 slots |= (1<<AC97_SLOT_PCM_SLEFT)|(1<<AC97_SLOT_PCM_SRIGHT); in get_pslots() 330 slots |= (1<<AC97_SLOT_PCM_CENTER)|(1<<AC97_SLOT_LFE); in get_pslots() 343 slots |= (1<<AC97_SLOT_PCM_SLEFT)|(1<<AC97_SLOT_PCM_SRIGHT); in get_pslots() 345 slots |= (1<<AC97_SLOT_PCM_CENTER)|(1<<AC97_SLOT_LFE); in get_pslots() 355 slots |= (1<<AC97_SLOT_PCM_CENTER)|(1<<AC97_SLOT_LFE); in get_pslots() 361 return slots; in get_pslots() 363 unsigned short slots; in get_pslots() local 364 slots = (1<<AC97_SLOT_PCM_LEFT)|(1<<AC97_SLOT_PCM_RIGHT); in get_pslots() [all …]
|
/openbmc/linux/drivers/input/ |
H A D | input-mt.c | 53 mt = kzalloc(struct_size(mt, slots, num_slots), GFP_KERNEL); in input_mt_init_slots() 94 input_mt_set_value(&mt->slots[i], ABS_MT_TRACKING_ID, -1); in input_mt_init_slots() 148 slot = &mt->slots[mt->slot]; in input_mt_report_slot_state() 213 struct input_mt_slot *ps = &mt->slots[i]; in input_mt_report_pointer_emulation() 269 if (input_mt_is_active(&mt->slots[i]) && in __input_mt_drop_unused() 270 !input_mt_is_used(mt, &mt->slots[i])) { in __input_mt_drop_unused() 415 for (s = mt->slots; s != mt->slots + mt->num_slots; s++) { in input_mt_set_matrix() 430 int *slots, int num_pos) in input_mt_set_slots() argument 436 slots[j] = -1; in input_mt_set_slots() 438 for (s = mt->slots; s != mt->slots + mt->num_slots; s++) { in input_mt_set_slots() [all …]
|
/openbmc/linux/tools/testing/selftests/kvm/lib/ |
H A D | memstress.c | 126 uint64_t vcpu_memory_bytes, int slots, in memstress_create_vm() argument 155 TEST_ASSERT(guest_num_pages % slots == 0, in memstress_create_vm() 157 slots); in memstress_create_vm() 208 for (i = 0; i < slots; i++) { in memstress_create_vm() 209 uint64_t region_pages = guest_num_pages / slots; in memstress_create_vm() 328 static void toggle_dirty_logging(struct kvm_vm *vm, int slots, bool enable) in toggle_dirty_logging() argument 332 for (i = 0; i < slots; i++) { in toggle_dirty_logging() 340 void memstress_enable_dirty_logging(struct kvm_vm *vm, int slots) in memstress_enable_dirty_logging() argument 342 toggle_dirty_logging(vm, slots, true); in memstress_enable_dirty_logging() 345 void memstress_disable_dirty_logging(struct kvm_vm *vm, int slots) in memstress_disable_dirty_logging() argument [all …]
|
/openbmc/linux/fs/btrfs/ |
H A D | file-item.c | 184 item = btrfs_item_ptr(leaf, path->slots[0], in btrfs_insert_hole_extent() 228 if (path->slots[0] == 0) in btrfs_lookup_csum() 230 path->slots[0]--; in btrfs_lookup_csum() 231 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_lookup_csum() 237 csums_in_item = btrfs_item_size(leaf, path->slots[0]); in btrfs_lookup_csum() 247 item = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_csum_item); in btrfs_lookup_csum() 301 item = btrfs_item_ptr(path->nodes[0], path->slots[0], in search_csum_tree() 303 btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]); in search_csum_tree() 304 itemsize = btrfs_item_size(path->nodes[0], path->slots[0]); in search_csum_tree() 321 btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]); in search_csum_tree() [all …]
|
H A D | inode-item.c | 102 return btrfs_find_name_in_ext_backref(path->nodes[0], path->slots[0], in btrfs_lookup_inode_extref() 142 extref = btrfs_find_name_in_ext_backref(path->nodes[0], path->slots[0], in btrfs_del_inode_extref() 151 item_size = btrfs_item_size(leaf, path->slots[0]); in btrfs_del_inode_extref() 165 item_start = btrfs_item_ptr_offset(leaf, path->slots[0]); in btrfs_del_inode_extref() 211 ref = btrfs_find_name_in_backref(path->nodes[0], path->slots[0], name); in btrfs_del_inode_ref() 218 item_size = btrfs_item_size(leaf, path->slots[0]); in btrfs_del_inode_ref() 229 item_start = btrfs_item_ptr_offset(leaf, path->slots[0]); in btrfs_del_inode_ref() 280 path->slots[0], in btrfs_insert_inode_extref() 292 ptr = (unsigned long)btrfs_item_ptr(leaf, path->slots[0], char); in btrfs_insert_inode_extref() 293 ptr += btrfs_item_size(leaf, path->slots[0]) - ins_len; in btrfs_insert_inode_extref() [all …]
|
H A D | ctree.c | 216 p->slots[i] = 0; in btrfs_release_path() 1070 int orig_slot = path->slots[level]; in balance_level() 1084 pslot = path->slots[level + 1]; in balance_level() 1296 path->slots[level + 1] -= 1; in balance_level() 1297 path->slots[level] = orig_slot; in balance_level() 1304 path->slots[level] = orig_slot; in balance_level() 1309 btrfs_node_blockptr(path->nodes[level], path->slots[level])) in balance_level() 1340 int orig_slot = path->slots[level]; in push_nodes_for_insert() 1350 pslot = path->slots[level + 1]; in push_nodes_for_insert() 1397 path->slots[level + 1] -= 1; in push_nodes_for_insert() [all …]
|
/openbmc/linux/tools/testing/selftests/hid/tests/ |
H A D | test_multitouch.py | 153 def event(self, slots, global_data=None, contact_count=None, incr_scantime=True): argument 158 slots = slots[: self.max_contacts] 163 global_data.contactcount = len(slots) 168 while len(slots): 170 application=self.cur_application, data=slots, global_data=global_data 261 slots=None, argument 282 if slots is None: 283 slots = [Data()] 285 return super().event(slots, global_data, contact_count, incr_scantime) 550 assert evdev.slots[0][libevdev.EV_ABS.ABS_MT_TRACKING_ID] == -1 [all …]
|
H A D | test_sony.py | 149 assert evdev.slots[0][libevdev.EV_ABS.ABS_MT_TRACKING_ID] == 0 150 assert evdev.slots[0][libevdev.EV_ABS.ABS_MT_POSITION_X] == 50 151 assert evdev.slots[0][libevdev.EV_ABS.ABS_MT_POSITION_Y] == 100 158 assert evdev.slots[0][libevdev.EV_ABS.ABS_MT_TRACKING_ID] == -1 178 assert evdev.slots[0][libevdev.EV_ABS.ABS_MT_TRACKING_ID] == 0 179 assert evdev.slots[0][libevdev.EV_ABS.ABS_MT_POSITION_X] == 50 180 assert evdev.slots[0][libevdev.EV_ABS.ABS_MT_POSITION_Y] == 100 181 assert evdev.slots[1][libevdev.EV_ABS.ABS_MT_TRACKING_ID] == -1 194 assert evdev.slots[0][libevdev.EV_ABS.ABS_MT_TRACKING_ID] == 0 195 assert evdev.slots[0][libevdev.EV_ABS.ABS_MT_POSITION_X] == 50 [all …]
|
/openbmc/linux/drivers/misc/mei/ |
H A D | dma-ring.c | 171 u32 rd_idx, rem, slots; in mei_dma_ring_read() local 183 slots = mei_data2slots(len); in mei_dma_ring_read() 189 if (rd_idx + slots > dbuf_depth) { in mei_dma_ring_read() 191 rem = slots - (dbuf_depth - rd_idx); in mei_dma_ring_read() 194 rem = slots; in mei_dma_ring_read() 199 WRITE_ONCE(ctrl->dbuf_rd_idx, ctrl->dbuf_rd_idx + slots); in mei_dma_ring_read() 248 u32 wr_idx, rem, slots; in mei_dma_ring_write() local 256 slots = mei_data2slots(len); in mei_dma_ring_write() 258 if (wr_idx + slots > hbuf_depth) { in mei_dma_ring_write() 260 rem = slots - (hbuf_depth - wr_idx); in mei_dma_ring_write() [all …]
|
H A D | interrupt.c | 259 int slots; in mei_cl_irq_disconnect_rsp() local 263 slots = mei_hbuf_empty_slots(dev); in mei_cl_irq_disconnect_rsp() 264 if (slots < 0) in mei_cl_irq_disconnect_rsp() 267 if ((u32)slots < msg_slots) in mei_cl_irq_disconnect_rsp() 291 int slots; in mei_cl_irq_read() local 298 slots = mei_hbuf_empty_slots(dev); in mei_cl_irq_read() 299 if (slots < 0) in mei_cl_irq_read() 302 if ((u32)slots < msg_slots) in mei_cl_irq_read() 361 struct list_head *cmpl_list, s32 *slots) in mei_irq_read_handler() argument 375 (*slots)--; in mei_irq_read_handler() [all …]
|
/openbmc/linux/arch/ia64/scripts/ |
H A D | unwcheck.py | 27 def check_func (func, slots, rlen_sum): argument 28 if slots != rlen_sum: 32 print("ERROR: %s: %lu slots, total region length = %lu" % (func, slots, rlen_sum)) 38 slots = 0 variable 43 check_func(func, slots, rlen_sum) 48 slots = 3 * (end - start) / 16 variable 55 check_func(func, slots, rlen_sum)
|
/openbmc/linux/lib/ |
H A D | assoc_array.c | 52 ptr = READ_ONCE(node->slots[slot]); /* Address dependency. */ in assoc_array_subtree_iterate() 81 ptr = READ_ONCE(node->slots[slot]); /* Address dependency. */ in assoc_array_subtree_iterate() 209 ptr = READ_ONCE(node->slots[slot]); /* Address dependency. */ in assoc_array_walk() 324 ptr = READ_ONCE(node->slots[slot]); /* Address dependency. */ in assoc_array_find() 382 struct assoc_array_ptr *ptr = node->slots[slot]; in assoc_array_destroy_subtree() 462 edit->leaf_p = &new_n0->slots[0]; in assoc_array_insert_in_empty_tree() 505 ptr = node->slots[i]; in assoc_array_insert_into_terminal_node() 514 edit->leaf_p = &node->slots[i]; in assoc_array_insert_into_terminal_node() 515 edit->dead_leaf = node->slots[i]; in assoc_array_insert_into_terminal_node() 526 edit->leaf_p = &node->slots[free_slot]; in assoc_array_insert_into_terminal_node() [all …]
|
H A D | maple_tree.c | 810 void __rcu **slots, unsigned char offset) in mt_slot() argument 812 return rcu_dereference_check(slots[offset], mt_locked(mt)); in mt_slot() 815 static inline void *mt_slot_locked(struct maple_tree *mt, void __rcu **slots, in mt_slot_locked() argument 818 return rcu_dereference_protected(slots[offset], mt_write_locked(mt)); in mt_slot_locked() 828 static inline void *mas_slot_locked(struct ma_state *mas, void __rcu **slots, in mas_slot_locked() argument 831 return mt_slot_locked(mas->tree, slots, offset); in mas_slot_locked() 842 static inline void *mas_slot(struct ma_state *mas, void __rcu **slots, in mas_slot() argument 845 return mt_slot(mas->tree, slots, offset); in mas_slot() 915 void __rcu **slots; in mt_clear_meta() local 922 slots = mn->mr64.slot; in mt_clear_meta() [all …]
|
/openbmc/linux/tools/testing/selftests/kvm/include/ |
H A D | memstress.h | 59 uint64_t vcpu_memory_bytes, int slots, 75 void memstress_enable_dirty_logging(struct kvm_vm *vm, int slots); 76 void memstress_disable_dirty_logging(struct kvm_vm *vm, int slots); 77 void memstress_get_dirty_log(struct kvm_vm *vm, unsigned long *bitmaps[], int slots); 79 int slots, uint64_t pages_per_slot); 80 unsigned long **memstress_alloc_bitmaps(int slots, uint64_t pages_per_slot); 81 void memstress_free_bitmaps(unsigned long *bitmaps[], int slots);
|
/openbmc/openbmc-tools/dbus-vis/ |
H A D | boost_handler_timeline_vis.js | 13 function FindFirstEntrySlot(slots) { argument 15 for (; i < slots.length; i++) { 16 if (slots[i] == undefined) break; 18 if (i >= slots.length) slots.push(undefined); 42 let slots = []; // In-flight handlers 58 const level = FindFirstEntrySlot(slots); 65 slots[level] = entry; 71 let entry = slots[level]; 78 let entry = slots[level]; 80 slots[level] = undefined; [all …]
|
/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 196 slot = &slots[i]; in hw_breakpoint_slot_setup() 226 struct perf_event **slots; in hw_breakpoint_control() local 236 slots = this_cpu_ptr(bp_on_reg); in hw_breakpoint_control() 243 slots = this_cpu_ptr(wp_on_reg); in hw_breakpoint_control() 248 i = hw_breakpoint_slot_setup(slots, max_slots, bp, ops); in hw_breakpoint_control() 584 struct perf_event **slots; in toggle_bp_registers() local 588 slots = this_cpu_ptr(bp_on_reg); in toggle_bp_registers() 592 slots = this_cpu_ptr(wp_on_reg); in toggle_bp_registers() 600 if (!slots[i]) in toggle_bp_registers() [all …]
|
/openbmc/u-boot/fs/btrfs/ |
H A D | ctree.c | 91 p->slots[i] = 0; in clear_path() 185 p->slots[lvl] = slot; in btrfs_search_tree() 214 slot = p.slots[level]; in jump_leaf() 225 p.slots[level] = slot + dir; in jump_leaf() 232 slot = p.slots[level + 1]; in jump_leaf() 242 p.slots[level] = 0; in jump_leaf() 244 p.slots[level] = p.nodes[level]->header.nritems - 1; in jump_leaf() 264 if (!p->slots[0]) in btrfs_prev_slot() 267 p->slots[0]--; in btrfs_prev_slot() 275 if (p->slots[0] + 1 >= leaf->header.nritems) in btrfs_next_slot() [all …]
|
/openbmc/linux/kernel/dma/ |
H A D | swiotlb.c | 289 mem->slots[i].list = min(IO_TLB_SEGSIZE - io_tlb_offset(i), in swiotlb_init_io_tlb_pool() 291 mem->slots[i].orig_addr = INVALID_PHYS_ADDR; in swiotlb_init_io_tlb_pool() 292 mem->slots[i].alloc_size = 0; in swiotlb_init_io_tlb_pool() 293 mem->slots[i].pad_slots = 0; in swiotlb_init_io_tlb_pool() 398 alloc_size = PAGE_ALIGN(array_size(sizeof(*mem->slots), nslabs)); in swiotlb_init_remap() 399 mem->slots = memblock_alloc(alloc_size, PAGE_SIZE); in swiotlb_init_remap() 400 if (!mem->slots) { in swiotlb_init_remap() 504 mem->slots = (void *)__get_free_pages(GFP_KERNEL | __GFP_ZERO, in swiotlb_init_late() 505 get_order(array_size(sizeof(*mem->slots), nslabs))); in swiotlb_init_late() 506 if (!mem->slots) in swiotlb_init_late() [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 134 slot = &slots[i]; in hw_breakpoint_slot_setup() 192 struct perf_event **slots; in hw_breakpoint_control() local 206 slots = this_cpu_ptr(bp_on_reg); in hw_breakpoint_control() 210 slots = this_cpu_ptr(wp_on_reg); in hw_breakpoint_control() 214 i = hw_breakpoint_slot_setup(slots, max_slots, bp, ops); in hw_breakpoint_control() 432 struct perf_event **slots; in update_bp_registers() local 437 slots = this_cpu_ptr(bp_on_reg); in update_bp_registers() 441 slots = this_cpu_ptr(wp_on_reg); in update_bp_registers() 449 if (!slots[i]) in update_bp_registers() [all …]
|
/openbmc/linux/drivers/input/touchscreen/ |
H A D | penmount.c | 58 struct mt_slot slots[PM_MAX_MTSLOT]; member 73 pm->slots[i].active); in pm_mtevent() 74 if (pm->slots[i].active) { in pm_mtevent() 75 input_event(input, EV_ABS, ABS_MT_POSITION_X, pm->slots[i].x); in pm_mtevent() 76 input_event(input, EV_ABS, ABS_MT_POSITION_Y, pm->slots[i].y); in pm_mtevent() 136 pm->slots[slotnum].active = pm->data[0] & 0x30; in pm_parse_3000() 137 pm->slots[slotnum].x = pm->data[2] * 256 + pm->data[1]; in pm_parse_3000() 138 pm->slots[slotnum].y = pm->data[4] * 256 + pm->data[3]; in pm_parse_3000() 152 pm->slots[slotnum].active = pm->data[0] & 0x40; in pm_parse_6250() 153 pm->slots[slotnum].x = pm->data[2] * 256 + pm->data[1]; in pm_parse_6250() [all …]
|
/openbmc/linux/tools/perf/arch/arm64/util/ |
H A D | pmu.c | 34 unsigned long long slots = 0; in perf_pmu__cpu_slots_per_cycle() local 45 filename__read_ull(path, &slots); in perf_pmu__cpu_slots_per_cycle() 48 return slots ? (double)slots : NAN; in perf_pmu__cpu_slots_per_cycle()
|