Home
last modified time | relevance | path

Searched refs:slots (Results 1 – 25 of 671) sorted by relevance

12345678910>>...27

/openbmc/linux/mm/
H A Dswap_slots.c125 if (!slots) in alloc_swap_slot_cache()
131 kvfree(slots); 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
181 kvfree(cache->slots); in drain_slots_cache_cpu()
182 cache->slots = NULL; in drain_slots_cache_cpu()
191 slots = cache->slots_ret; in drain_slots_cache_cpu()
195 kvfree(slots); in drain_slots_cache_cpu()
267 cache->slots, 1); in refill_swap_slots_cache()
[all …]
H A Dz3fold.c200 if (slots) { in alloc_slots()
207 return slots; in alloc_slots()
297 if (zhdr->slots != slots) in free_handle()
302 if (slots->slot[i]) { in free_handle()
312 if (zhdr->slots == slots) in free_handle()
313 zhdr->slots = NULL; in free_handle()
335 if (!slots) in init_z3fold_page()
342 zhdr->slots = slots; in init_z3fold_page()
391 slots->slot[idx] = h; in __encode_handle()
407 read_lock(&slots->lock); in handle_to_chunks()
[all …]
/openbmc/qemu/hw/hyperv/
H A Dhv-balloon-our_range_memslots.c59 OurRangeMemslotsSlots *memslots = &our_range->slots; in our_range_memslots_init_slots()
111 our_range->slots.size_each = memslot_size; in hvb_our_range_memslots_new()
112 our_range->slots.count = memslot_count; in hvb_our_range_memslots_new()
121 OurRangeMemslotsSlots *memslots = &our_range->slots; in our_range_memslots_free_memslots()
135 object_unparent(OBJECT(&memslots->slots[idx])); in our_range_memslots_free_memslots()
138 g_clear_pointer(&our_range->slots.slots, g_free); in our_range_memslots_free_memslots()
143 OurRangeMemslotsSlots *memslots = &our_range->slots; in hvb_our_range_memslots_free()
147 assert(our_range->slots.count > 0); in hvb_our_range_memslots_free()
148 assert(our_range->slots.slots); in hvb_our_range_memslots_free()
150 hostmem_mr = memslots->slots[0].alias; in hvb_our_range_memslots_free()
[all …]
/openbmc/linux/sound/pci/ac97/
H A Dac97_pcm.c361 return slots; in get_pslots()
363 unsigned short slots; in get_pslots() local
378 return slots; in get_pslots()
384 unsigned short slots; in get_cslots() local
390 return slots; in get_cslots()
400 if (!(slots & (1 << i))) in get_rates()
479 slots = pcm->r[0].slots; in snd_ac97_pcm_assign()
490 tmp &= slots; in snd_ac97_pcm_assign()
510 slots &= ~tmp; in snd_ac97_pcm_assign()
627 pcm->aslots = slots; in snd_ac97_pcm_open()
[all …]
/openbmc/linux/drivers/input/
H A Dinput-mt.c412 for (s = mt->slots; s != mt->slots + mt->num_slots; s++) { in input_mt_set_matrix()
433 slots[j] = -1; in input_mt_set_slots()
435 for (s = mt->slots; s != mt->slots + mt->num_slots; s++) { in input_mt_set_slots()
441 slots[j] = s - mt->slots; in input_mt_set_slots()
449 for (s = mt->slots; s != mt->slots + mt->num_slots; s++) { in input_mt_set_slots()
454 if (slots[j] < 0) { in input_mt_set_slots()
455 slots[j] = s - mt->slots; in input_mt_set_slots()
523 for (s = mt->slots; s != mt->slots + mt->num_slots; s++) in input_mt_get_slot_by_key()
525 return s - mt->slots; in input_mt_get_slot_by_key()
527 for (s = mt->slots; s != mt->slots + mt->num_slots; s++) in input_mt_get_slot_by_key()
[all …]
/openbmc/linux/tools/testing/selftests/kvm/lib/
H A Dmemstress.c126 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()
332 for (i = 0; i < slots; i++) { in toggle_dirty_logging()
342 toggle_dirty_logging(vm, slots, true); in memstress_enable_dirty_logging()
347 toggle_dirty_logging(vm, slots, false); in memstress_disable_dirty_logging()
354 for (i = 0; i < slots; i++) { in memstress_get_dirty_log()
366 for (i = 0; i < slots; i++) { in memstress_clear_dirty_log()
381 for (i = 0; i < slots; i++) { in memstress_alloc_bitmaps()
[all …]
/openbmc/linux/fs/btrfs/
H A Dfile-item.c228 if (path->slots[0] == 0) in btrfs_lookup_csum()
230 path->slots[0]--; in btrfs_lookup_csum()
514 path->slots[0]--; in btrfs_lookup_csums_list()
543 path->slots[0]++; in btrfs_lookup_csums_list()
576 path->slots[0]++; in btrfs_lookup_csums_list()
663 path->slots[0]--; in btrfs_lookup_csums_bitmap()
693 path->slots[0]++; in btrfs_lookup_csums_bitmap()
720 path->slots[0]++; in btrfs_lookup_csums_bitmap()
894 path->slots[0]--; in btrfs_del_csums()
1025 slot = path->slots[0]; in find_next_csum_offset()
[all …]
H A Dinode-item.c280 path->slots[0], in btrfs_insert_inode_extref()
352 path->slots[0], in btrfs_insert_inode_ref()
415 slot = path->slots[0] - 1; in btrfs_lookup_inode()
420 path->slots[0]--; in btrfs_lookup_inode()
523 if (path->slots[0] == 0) in btrfs_truncate_inode_items()
525 path->slots[0]--; in btrfs_truncate_inode_items()
556 path->slots[0]); in btrfs_truncate_inode_items()
661 pending_del_slot = path->slots[0]; in btrfs_truncate_inode_items()
666 pending_del_slot = path->slots[0]; in btrfs_truncate_inode_items()
695 if (path->slots[0] == 0 || in btrfs_truncate_inode_items()
[all …]
H A Dctree.c216 p->slots[i] = 0; in btrfs_release_path()
2606 p->slots[0]--; in btrfs_search_slot_for_read()
2620 --p->slots[0]; in btrfs_search_slot_for_read()
3429 path->slots[1]++; in push_leaf_right()
3749 if (path->slots[0] == 0 || path->slots[0] == nritems) in push_for_double_split()
4486 path->slots[0]++; in btrfs_duplicate_item()
4982 path->slots[0]++; in btrfs_next_old_leaf()
5121 path->slots[0]++; in btrfs_next_old_item()
5148 path->slots[0]--; in btrfs_previous_item()
5155 path->slots[0]--; in btrfs_previous_item()
[all …]
/openbmc/linux/arch/ia64/scripts/
H A Dunwcheck.py27 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/drivers/misc/mei/
H A Ddma-ring.c171 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 Dinterrupt.c259 int slots; in mei_cl_irq_disconnect_rsp() local
264 if (slots < 0) in mei_cl_irq_disconnect_rsp()
291 int slots; in mei_cl_irq_read() local
299 if (slots < 0) in mei_cl_irq_read()
375 (*slots)--; in mei_irq_read_handler()
391 *slots); in mei_irq_read_handler()
404 (*slots)--; in mei_irq_read_handler()
428 (*slots)--; in mei_irq_read_handler()
441 (*slots)--; in mei_irq_read_handler()
513 s32 slots; in mei_irq_write_handler() local
[all …]
/openbmc/linux/tools/testing/selftests/hid/tests/
H A Dtest_multitouch.py158 slots = slots[: self.max_contacts]
163 global_data.contactcount = len(slots)
168 while len(slots):
261 slots=None, argument
282 if slots is None:
283 slots = [Data()]
845 assert evdev.slots[0][libevdev.EV_ABS.ABS_MT_TOOL_X] == 50
847 assert evdev.slots[0][libevdev.EV_ABS.ABS_MT_TOOL_Y] == 100
875 assert evdev.slots[0][libevdev.EV_ABS.ABS_MT_DISTANCE] > 0
886 assert evdev.slots[0][libevdev.EV_ABS.ABS_MT_DISTANCE] == 0
[all …]
H A Dtest_sony.py149 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
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
197 assert evdev.slots[1][libevdev.EV_ABS.ABS_MT_TRACKING_ID] == 1
[all …]
/openbmc/linux/tools/testing/selftests/kvm/include/
H A Dmemstress.h59 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/qemu/hw/sd/
H A Daspeed_sdhci.c43 val = (uint32_t)sdhci->slots[0].capareg; in aspeed_sdhci_read()
46 val = (uint32_t)sdhci->slots[0].maxcurr; in aspeed_sdhci_read()
49 val = (uint32_t)sdhci->slots[1].capareg; in aspeed_sdhci_read()
52 val = (uint32_t)sdhci->slots[1].maxcurr; in aspeed_sdhci_read()
82 sdhci->slots[0].capareg = (uint64_t)(uint32_t)val; in aspeed_sdhci_write()
85 sdhci->slots[0].maxcurr = (uint64_t)(uint32_t)val; in aspeed_sdhci_write()
88 sdhci->slots[1].capareg = (uint64_t)(uint32_t)val; in aspeed_sdhci_write()
91 sdhci->slots[1].maxcurr = (uint64_t)(uint32_t)val; in aspeed_sdhci_write()
142 Object *sdhci_slot = OBJECT(&sdhci->slots[i]); in aspeed_sdhci_realize()
143 SysBusDevice *sbd_slot = SYS_BUS_DEVICE(&sdhci->slots[i]); in aspeed_sdhci_realize()
[all …]
/openbmc/linux/lib/
H A Dassoc_array.c505 ptr = node->slots[i]; in assoc_array_insert_into_terminal_node()
552 ptr = node->slots[i]; in assoc_array_insert_into_terminal_node()
649 new_n0->slots[i] = node->slots[i]; in assoc_array_insert_into_terminal_node()
651 new_n0->slots[i] = NULL; in assoc_array_insert_into_terminal_node()
662 new_n1->slots[next_slot++] = node->slots[i]; in assoc_array_insert_into_terminal_node()
668 new_n0->slots[free_slot] = node->slots[i]; in assoc_array_insert_into_terminal_node()
690 ptr = node->slots[i]; in assoc_array_insert_into_terminal_node()
776 ptr = node->slots[i]; in assoc_array_insert_into_terminal_node()
1108 ptr = node->slots[slot]; in assoc_array_delete()
1167 ptr = node->slots[i]; in assoc_array_delete()
[all …]
/openbmc/openbmc-tools/dbus-vis/
H A Dboost_handler_timeline_vis.js13 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 Dhw_breakpoint.c196 slot = &slots[i]; in hw_breakpoint_slot_setup()
226 struct perf_event **slots; in hw_breakpoint_control() local
584 struct perf_event **slots; in toggle_bp_registers() local
600 if (!slots[i]) in toggle_bp_registers()
626 struct perf_event *bp, **slots; in breakpoint_handler() local
637 bp = slots[i]; in breakpoint_handler()
761 struct perf_event *wp, **slots; in watchpoint_handler() local
774 wp = slots[i]; in watchpoint_handler()
944 struct perf_event **slots; in hw_breakpoint_reset() local
956 if (slots[i]) { in hw_breakpoint_reset()
[all …]
/openbmc/u-boot/fs/btrfs/
H A Dctree.c91 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/arch/loongarch/kernel/
H A Dhw_breakpoint.c122 slot = &slots[i]; in hw_breakpoint_slot_setup()
179 struct perf_event **slots; in hw_breakpoint_control() local
184 slots = this_cpu_ptr(bp_on_reg); in hw_breakpoint_control()
188 slots = this_cpu_ptr(wp_on_reg); in hw_breakpoint_control()
412 struct perf_event **slots; in update_bp_registers() local
429 if (!slots[i]) in update_bp_registers()
469 struct perf_event *bp, **slots; in breakpoint_handler() local
471 slots = this_cpu_ptr(bp_on_reg); in breakpoint_handler()
474 bp = slots[i]; in breakpoint_handler()
486 struct perf_event *wp, **slots; in watchpoint_handler() local
[all …]
/openbmc/linux/tools/perf/arch/arm64/util/
H A Dpmu.c34 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()
/openbmc/linux/drivers/input/touchscreen/
H A Dpenmount.c58 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/qemu/docs/
H A Dmemory-hotplug.txt13 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/tools/testing/selftests/kvm/
H A Ddirty_log_perf_test.c133 int slots; member
156 p->slots, p->backing_src, in run_test()
166 pages_per_slot = host_num_pages / p->slots; in run_test()
168 bitmaps = memstress_alloc_bitmaps(p->slots, pages_per_slot); in run_test()
209 memstress_enable_dirty_logging(vm, p->slots); in run_test()
238 memstress_get_dirty_log(vm, bitmaps, p->slots); in run_test()
247 memstress_clear_dirty_log(vm, bitmaps, p->slots, in run_test()
267 memstress_disable_dirty_logging(vm, p->slots); in run_test()
292 memstress_free_bitmaps(bitmaps, p->slots); in run_test()
348 .slots = 1, in main()
[all …]

12345678910>>...27