/openbmc/linux/mm/ |
H A D | swap_slots.c | 3 * Manage cache of swap slots to be used for and returned from 10 * We allocate the swap slots from the global pool and put 17 * lock. We do not reuse the returned slots directly but 19 * allows the slots to coalesce and reduce fragmentation. 25 * The swap slots cache is protected by a mutex instead of 26 * a spin lock as when we search for slots with scan_swap_map, 43 /* Serialize swap slots cache enable/disable operations */ 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() [all …]
|
H A D | z3fold.c | 83 * be enough slots to hold all possible variants 99 * @slots: pointer to the structure holding buddy slots 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 [all …]
|
/openbmc/linux/drivers/input/ |
H A D | input-mt.c | 25 * input_mt_init_slots() - initialize MT input slots 27 * @num_slots: number of slots used by the device 37 * reinitialize with a different number of slots. 53 mt = kzalloc(struct_size(mt, slots, num_slots), GFP_KERNEL); in input_mt_init_slots() 92 /* Mark slots as 'inactive' */ in input_mt_init_slots() 94 input_mt_set_value(&mt->slots[i], ABS_MT_TRACKING_ID, -1); in input_mt_init_slots() 96 /* Mark slots as 'unused' */ in input_mt_init_slots() 108 * input_mt_destroy_slots() - frees the MT slots of the input device 109 * @dev: input device with allocated MT slots 112 * automatically free the MT slots when the device is destroyed. [all …]
|
/openbmc/linux/tools/perf/pmu-events/arch/arm64/ |
H A D | sbsa.json | 3 "MetricExpr": "100 * (stall_slot_frontend / (#slots * cpu_cycles))", 4 …"BriefDescription": "This metric is the percentage of total slots that were stalled due to resourc… 8 "ScaleUnit": "1percent of slots" 11 … "MetricExpr": "100 * ((1 - op_retired / op_spec) * (1 - stall_slot / (#slots * cpu_cycles)))", 12 …"BriefDescription": "This metric is the percentage of total slots that executed operations and did… 16 "ScaleUnit": "1percent of slots" 19 "MetricExpr": "100 * ((op_retired / op_spec) * (1 - stall_slot / (#slots * cpu_cycles)))", 20 …"BriefDescription": "This metric is the percentage of total slots that retired operations, which i… 24 "ScaleUnit": "1percent of slots" 27 "MetricExpr": "100 * (stall_slot_backend / (#slots * cpu_cycles))", [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/linux/tools/perf/pmu-events/arch/arm64/ampere/ampereone/ |
H A D | metrics.json | 162 "MetricExpr": "1 - (OP_RETIRED / (CPU_CYCLES * #slots))", 232 "MetricExpr": "100 * ((OP_SPEC - OP_RETIRED) / (CPU_CYCLES * #slots))", 233 "BriefDescription": "Fraction of slots lost due to misspeculation", 236 "ScaleUnit": "1percent of slots" 240 "MetricExpr": "100 * (OP_RETIRED / (CPU_CYCLES * #slots))", 241 "BriefDescription": "Fraction of slots retiring, useful work", 244 "ScaleUnit": "1percent of slots" 249 …"BriefDescription": "Fraction of slots the CPU was stalled due to backend non-memory subsystem iss… 256 …"BriefDescription": "Fraction of slots the CPU was stalled due to backend memory subsystem issues … 263 "BriefDescription": "Fraction of slots lost due to branch misprediciton", [all …]
|
/openbmc/linux/tools/perf/pmu-events/arch/arm64/arm/cortex-a75/ |
H A D | pipeline.json | 21 "PublicDescription": "Duration for which all slots in the Load-Store Unit (LSU) are busy", 24 "BriefDescription": "Duration for which all slots in the Load-Store Unit (LSU) are busy" 27 …tion": "Duration for which all slots in the load-store issue queue are busy. This event counts the… 30 …tion": "Duration for which all slots in the load-store issue queue are busy. This event counts the… 33 …on": "Duration for which all slots in the data processing issue queue are busy. This event counts … 36 …on": "Duration for which all slots in the data processing issue queue are busy. This event counts … 39 …"PublicDescription": "Duration for which all slots in the data engine issue queue are busy. This e… 42 …"BriefDescription": "Duration for which all slots in the data engine issue queue are busy. This ev…
|
/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/drivers/misc/mei/ |
H A D | dma-ring.c | 125 * @offset: offset in slots. 126 * @n: number of slots to copy. 145 * @offset: offset in slots. 146 * @n: number of slots to copy. 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() [all …]
|
/openbmc/linux/tools/perf/pmu-events/arch/x86/alderlaken/ |
H A D | adln-metrics.json | 88 …"BriefDescription": "Counts the number of issue slots that were not consumed by the backend due t… 96 …"BriefDescription": "Counts the total number of issue slots that were not consumed by the backend… 103 …"PublicDescription": "Counts the total number of issue slots that were not consumed by the backen… 107 …"BriefDescription": "Counts the total number of issue slots that were not consumed by the backend… 114 …slots that were not consumed by the backend due to backend stalls. Note that UOPS must be availa… 118 …"BriefDescription": "Counts the total number of issue slots that were not consumed by the backend … 125 …slots that were not consumed by the backend because allocation is stalled due to a mispredicted ju… 138 …"BriefDescription": "Counts the number of issue slots that were not delivered by the frontend due… 143 …"PublicDescription": "Counts the number of issue slots that were not delivered by the frontend du… 147 …"BriefDescription": "Counts the number of issue slots that were not consumed by the backend due t… [all …]
|
H A D | pipeline.json | 332 …"BriefDescription": "Counts the number of issue slots not consumed by the backend due to a micro-s… 335 …"PublicDescription": "Counts the number of issue slots not consumed by the backend due to a micro-… 340 …"BriefDescription": "Counts the total number of issue slots that were not consumed by the backend … 343 …slots that were not consumed by the backend because allocation is stalled due to a mispredicted ju… 347 …"BriefDescription": "Counts the number of issue slots every cycle that were not consumed by the ba… 354 …"BriefDescription": "Counts the total number of issue slots that were not consumed by the backend … 361 …"BriefDescription": "Counts the number of issue slots every cycle that were not consumed by the ba… 368 …"BriefDescription": "Counts the number of issue slots every cycle that were not consumed by the ba… 375 …"BriefDescription": "Counts the total number of issue slots every cycle that were not consumed by … 381 …"BriefDescription": "Counts the number of issue slots every cycle that were not consumed by the ba… [all …]
|
/openbmc/linux/sound/pci/ac97/ |
H A D | ac97_pcm.c | 295 * slots 7+8 in snd_ac97_set_rate() 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 [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() 156 "Guest memory cannot be evenly divided into %d slots.", in memstress_create_vm() 157 slots); in memstress_create_vm() 207 /* Add extra memory slots for testing */ 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 [all …]
|
/openbmc/linux/tools/perf/pmu-events/arch/arm64/arm/cortex-a73/ |
H A D | pipeline.json | 15 "PublicDescription": "Duration for which all slots in the Load-Store Unit are busy", 18 "BriefDescription": "Duration for which all slots in the Load-Store Unit are busy" 21 "PublicDescription": "Duration for which all slots in the load-store issue queue are busy", 24 "BriefDescription": "Duration for which all slots in the load-store issue queue are busy" 27 … "PublicDescription": "Duration for which all slots in the data processing issue queue are busy", 30 … "BriefDescription": "Duration for which all slots in the data processing issue queue are busy" 33 "PublicDescription": "Duration for which all slots in the Data Engine issue queue are busy", 36 "BriefDescription": "Duration for which all slots in the Data Engine issue queue are busy"
|
/openbmc/linux/tools/perf/pmu-events/arch/x86/amdzen4/ |
H A D | pipeline.json | 4 … "BriefDescription": "Total dispatch slots (upto 6 instructions can be dispatched in each cycle).", 9 …"BriefDescription": "Fraction of dispatch slots that remained unused because the frontend did not … 23 … "BriefDescription": "Fraction of dispatch slots that remained unused because of backend stalls.", 30 …"BriefDescription": "Fraction of dispatch slots that remained unused because the other thread was … 37 "BriefDescription": "Fraction of dispatch slots used by ops that retired.", 44 …"BriefDescription": "Fraction of dispatch slots that remained unused because of a latency bottlene… 51 …"BriefDescription": "Fraction of dispatch slots that remained unused because of a bandwidth bottle… 72 …"BriefDescription": "Fraction of dispatch slots that remained unused because of stalls due to the … 79 …"BriefDescription": "Fraction of dispatch slots that remained unused because of stalls not related… 86 "BriefDescription": "Fraction of dispatch slots used by fastpath ops that retired.", [all …]
|
/openbmc/qemu/docs/ |
H A D | memory-hotplug.txt | 13 hotpluggable memory slots to create and what is the maximum amount of 17 -m [size=]megs[,slots=n,maxmem=size] 22 - "slots" is the number of hotpluggable memory slots 27 qemu [...] -m 1G,slots=3,maxmem=4G 29 Creates a guest with 1GB of memory and three hotpluggable memory slots. 30 The hotpluggable memory slots are empty when the guest is booted, so all 33 hotplugged by using any combination of the available memory slots. 62 hotpluggable memory slots. This might seem counterintuitive at first, 67 2MB pages. Also, the guest has additional memory slots to hotplug more 70 qemu [...] -m 6GB,slots=4,maxmem=10G \
|
/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 …]
|
/openbmc/linux/tools/perf/pmu-events/arch/x86/elkhartlake/ |
H A D | pipeline.json | 257 …"BriefDescription": "Counts the total number of issue slots that were not consumed by the backend … 260 …slots that were not consumed by the backend because allocation is stalled due to a mispredicted ju… 265 …"BriefDescription": "Counts the number of issue slots every cycle that were not consumed by the ba… 272 …"BriefDescription": "Counts the total number of issue slots that were not consumed by the backend … 279 …"BriefDescription": "Counts the number of issue slots every cycle that were not consumed by the ba… 294 …"BriefDescription": "Counts the total number of issue slots every cycle that were not consumed by … 300 …"BriefDescription": "Counts the number of issue slots every cycle that were not consumed by the ba… 307 …"BriefDescription": "Counts the number of issue slots every cycle that were not consumed by the ba… 314 …"BriefDescription": "Counts the number of issue slots every cycle that were not consumed by the ba… 321 …"BriefDescription": "Counts the number of issue slots every cycle that were not consumed by the ba… [all …]
|
/openbmc/linux/tools/perf/pmu-events/arch/x86/snowridgex/ |
H A D | pipeline.json | 257 …"BriefDescription": "Counts the total number of issue slots that were not consumed by the backend … 260 …slots that were not consumed by the backend because allocation is stalled due to a mispredicted ju… 265 …"BriefDescription": "Counts the number of issue slots every cycle that were not consumed by the ba… 272 …"BriefDescription": "Counts the total number of issue slots that were not consumed by the backend … 279 …"BriefDescription": "Counts the number of issue slots every cycle that were not consumed by the ba… 294 …"BriefDescription": "Counts the total number of issue slots every cycle that were not consumed by … 300 …"BriefDescription": "Counts the number of issue slots every cycle that were not consumed by the ba… 307 …"BriefDescription": "Counts the number of issue slots every cycle that were not consumed by the ba… 314 …"BriefDescription": "Counts the number of issue slots every cycle that were not consumed by the ba… 321 …"BriefDescription": "Counts the number of issue slots every cycle that were not consumed by the ba… [all …]
|
/openbmc/linux/kernel/dma/ |
H A D | swiotlb.c | 72 * @pad_slots: Number of preceding padding slots. Valid only in the first 126 * contiguous slots tracking: free slots are treated contiguous no matter 145 * swiotlb_adjust_nareas() - adjust the number of areas and slots 170 * @nslots: Total number of slots in the memory pool. 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() [all …]
|
/openbmc/linux/drivers/firmware/efi/libstub/ |
H A D | randomalloc.c | 13 * Return the number of slots covered by this entry, i.e., the number of 77 /* count the suitable slots in each memory map entry */ in efi_random_alloc() 80 unsigned long slots; in efi_random_alloc() local 82 slots = get_entry_num_slots(md, size, ilog2(align), alloc_min, in efi_random_alloc() 84 MD_NUM_SLOTS(md) = slots; in efi_random_alloc() 85 total_slots += slots; in efi_random_alloc() 87 total_mirrored_slots += slots; in efi_random_alloc() 90 /* consider only mirrored slots for randomization if any exist */ in efi_random_alloc() 99 * it corresponds with exactly one of the suitable slots we recorded in efi_random_alloc() 103 * slots of each entry at each iteration, until we have found the entry in efi_random_alloc()
|
/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/tools/testing/selftests/hid/tests/ |
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 161 """Send 2 touches in the first 2 slots. 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 [all …]
|
/openbmc/linux/sound/soc/meson/ |
H A D | axg-card.c | 21 unsigned int slots; member 67 be->slots, be->slot_width); in axg_card_tdm_dai_init() 70 "setting tdm link slots failed\n"); in axg_card_tdm_dai_init() 76 be->slots, be->slot_width); in axg_card_tdm_dai_init() 78 dev_err(asoc_rtd_to_cpu(rtd, 0)->dev, "setting tdm link slots failed\n"); in axg_card_tdm_dai_init() 94 be->slots, be->slot_width); in axg_card_tdm_dai_lb_init() 96 dev_err(asoc_rtd_to_cpu(rtd, 0)->dev, "setting tdm link slots failed\n"); in axg_card_tdm_dai_lb_init() 178 /* Disable playback is the interface has no tx slots */ in axg_card_parse_cpu_tdm_slots() 188 /* Disable capture is the interface has no rx slots */ in axg_card_parse_cpu_tdm_slots() 194 dev_err(card->dev, "tdm link has no cpu slots\n"); in axg_card_parse_cpu_tdm_slots() [all …]
|