Home
last modified time | relevance | path

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

12345678910>>...16

/linux/tools/testing/selftests/kvm/lib/
H A Dmemstress.c125 uint64_t vcpu_memory_bytes, int slots, in memstress_create_vm() argument
154 TEST_ASSERT(guest_num_pages % slots == 0, in memstress_create_vm()
156 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()
322 static void toggle_dirty_logging(struct kvm_vm *vm, int slots, bool enable) in toggle_dirty_logging() argument
326 for (i = 0; i < slots; i++) { in toggle_dirty_logging()
334 void memstress_enable_dirty_logging(struct kvm_vm *vm, int slots) in memstress_enable_dirty_logging() argument
336 toggle_dirty_logging(vm, slots, true); in memstress_enable_dirty_logging()
339 void memstress_disable_dirty_logging(struct kvm_vm *vm, int slots) in memstress_disable_dirty_logging() argument
[all …]
/linux/tools/testing/selftests/hid/tests/
H A Dtest_multitouch.py153 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 Dtest_sony.py150 assert evdev.slots[0][libevdev.EV_ABS.ABS_MT_TRACKING_ID] == 0
151 assert evdev.slots[0][libevdev.EV_ABS.ABS_MT_POSITION_X] == 50
152 assert evdev.slots[0][libevdev.EV_ABS.ABS_MT_POSITION_Y] == 100
159 assert evdev.slots[0][libevdev.EV_ABS.ABS_MT_TRACKING_ID] == -1
179 assert evdev.slots[0][libevdev.EV_ABS.ABS_MT_TRACKING_ID] == 0
180 assert evdev.slots[0][libevdev.EV_ABS.ABS_MT_POSITION_X] == 50
181 assert evdev.slots[0][libevdev.EV_ABS.ABS_MT_POSITION_Y] == 100
182 assert evdev.slots[1][libevdev.EV_ABS.ABS_MT_TRACKING_ID] == -1
195 assert evdev.slots[0][libevdev.EV_ABS.ABS_MT_TRACKING_ID] == 0
196 assert evdev.slots[0][libevdev.EV_ABS.ABS_MT_POSITION_X] == 50
[all …]
/linux/lib/
H A Dassoc_array.c52 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 Dmaple_tree.c734 void __rcu **slots, unsigned char offset) in mt_slot() argument
736 return rcu_dereference_check(slots[offset], mt_locked(mt)); in mt_slot()
740 void __rcu **slots, unsigned char offset) in mt_slot_locked() argument
742 return rcu_dereference_protected(slots[offset], mt_write_locked(mt)); in mt_slot_locked()
753 void __rcu **slots, unsigned char offset) in mas_slot_locked() argument
755 return mt_slot_locked(mas->tree, slots, offset); in mas_slot_locked()
766 static __always_inline void *mas_slot(struct ma_state *mas, void __rcu **slots, in mas_slot() argument
769 return mt_slot(mas->tree, slots, offset); in mas_slot()
837 void __rcu **slots; in mt_clear_meta() local
844 slots = mn->mr64.slot; in mt_clear_meta()
[all …]
/linux/tools/testing/selftests/futex/functional/
H A Dfutex_priv_hash.c32 static int futex_hash_slots_set(unsigned int slots) in futex_hash_slots_set() argument
34 return prctl(PR_FUTEX_HASH, PR_FUTEX_HASH_SET_SLOTS, slots, 0); in futex_hash_slots_set()
42 static void futex_hash_slots_set_verify(int slots) in futex_hash_slots_set_verify() argument
46 ret = futex_hash_slots_set(slots); in futex_hash_slots_set_verify()
48 ksft_test_result_fail("Failed to set slots to %d: %m\n", slots); in futex_hash_slots_set_verify()
52 if (ret != slots) { in futex_hash_slots_set_verify()
54 slots, ret); in futex_hash_slots_set_verify()
57 ksft_test_result_pass("SET and GET slots %d passed\n", slots); in futex_hash_slots_set_verify()
60 static void futex_hash_slots_set_must_fail(int slots) in futex_hash_slots_set_must_fail() argument
64 ret = futex_hash_slots_set(slots); in futex_hash_slots_set_must_fail()
[all …]
/linux/tools/testing/selftests/kvm/include/
H A Dmemstress.h59 uint64_t vcpu_memory_bytes, int slots,
74 void memstress_enable_dirty_logging(struct kvm_vm *vm, int slots);
75 void memstress_disable_dirty_logging(struct kvm_vm *vm, int slots);
76 void memstress_get_dirty_log(struct kvm_vm *vm, unsigned long *bitmaps[], int slots);
78 int slots, uint64_t pages_per_slot);
79 unsigned long **memstress_alloc_bitmaps(int slots, uint64_t pages_per_slot);
80 void memstress_free_bitmaps(unsigned long *bitmaps[], int slots);
/linux/drivers/misc/mei/
H A Dinterrupt.c258 int slots; in mei_cl_irq_disconnect_rsp() local
262 slots = mei_hbuf_empty_slots(dev); in mei_cl_irq_disconnect_rsp()
263 if (slots < 0) in mei_cl_irq_disconnect_rsp()
266 if ((u32)slots < msg_slots) in mei_cl_irq_disconnect_rsp()
290 int slots; in mei_cl_irq_read() local
297 slots = mei_hbuf_empty_slots(dev); in mei_cl_irq_read()
298 if (slots < 0) in mei_cl_irq_read()
301 if ((u32)slots < msg_slots) in mei_cl_irq_read()
359 struct list_head *cmpl_list, s32 *slots) in mei_irq_read_handler() argument
373 (*slots)--; in mei_irq_read_handler()
[all …]
/linux/arch/arm64/kernel/
H A Dhw_breakpoint.c190 static int hw_breakpoint_slot_setup(struct perf_event **slots, int max_slots, in hw_breakpoint_slot_setup() argument
198 slot = &slots[i]; in hw_breakpoint_slot_setup()
228 struct perf_event **slots; in hw_breakpoint_control() local
238 slots = this_cpu_ptr(bp_on_reg); in hw_breakpoint_control()
245 slots = this_cpu_ptr(wp_on_reg); in hw_breakpoint_control()
250 i = hw_breakpoint_slot_setup(slots, max_slots, bp, ops); in hw_breakpoint_control()
586 struct perf_event **slots; in toggle_bp_registers() local
590 slots = this_cpu_ptr(bp_on_reg); in toggle_bp_registers()
594 slots = this_cpu_ptr(wp_on_reg); in toggle_bp_registers()
602 if (!slots[i]) in toggle_bp_registers()
[all …]
/linux/kernel/dma/
H A Dswiotlb.c287 mem->slots[i].list = min(IO_TLB_SEGSIZE - io_tlb_offset(i), in swiotlb_init_io_tlb_pool()
289 mem->slots[i].orig_addr = INVALID_PHYS_ADDR; in swiotlb_init_io_tlb_pool()
290 mem->slots[i].alloc_size = 0; in swiotlb_init_io_tlb_pool()
291 mem->slots[i].pad_slots = 0; in swiotlb_init_io_tlb_pool()
396 alloc_size = PAGE_ALIGN(array_size(sizeof(*mem->slots), nslabs)); in swiotlb_init_remap()
397 mem->slots = memblock_alloc(alloc_size, PAGE_SIZE); in swiotlb_init_remap()
398 if (!mem->slots) { in swiotlb_init_remap()
502 mem->slots = (void *)__get_free_pages(GFP_KERNEL | __GFP_ZERO, in swiotlb_init_late()
503 get_order(array_size(sizeof(*mem->slots), nslabs))); in swiotlb_init_late()
504 if (!mem->slots) in swiotlb_init_late()
[all …]
/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 …]
/linux/fs/btrfs/
H A Dfiemap.c313 path->slots[0]++; in fiemap_next_leaf_item()
314 if (path->slots[0] < btrfs_header_nritems(path->nodes[0])) in fiemap_next_leaf_item()
333 btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]); in fiemap_next_leaf_item()
353 slot = path->slots[0]; in fiemap_next_leaf_item()
356 path->slots[0] = slot; in fiemap_next_leaf_item()
387 if (ret > 0 && path->slots[0] > 0) { in fiemap_search_slot()
388 btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0] - 1); in fiemap_search_slot()
390 path->slots[0]--; in fiemap_search_slot()
393 if (path->slots[0] >= btrfs_header_nritems(path->nodes[0])) { in fiemap_search_slot()
398 btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]); in fiemap_search_slot()
[all …]
H A Dfree-space-tree.c88 info = btrfs_item_ptr(leaf, path->slots[0], in add_new_free_space_info()
121 return btrfs_item_ptr(path->nodes[0], path->slots[0], in btrfs_search_free_space_info()
145 if (unlikely(p->slots[0] == 0)) { in btrfs_search_prev_slot()
149 p->slots[0]--; in btrfs_search_prev_slot()
238 path->slots[0]++; in btrfs_convert_free_space_to_bitmaps()
239 while (path->slots[0] > 0) { in btrfs_convert_free_space_to_bitmaps()
240 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0] - 1); in btrfs_convert_free_space_to_bitmaps()
262 path->slots[0]--; in btrfs_convert_free_space_to_bitmaps()
268 ret = btrfs_del_items(trans, root, path, path->slots[0], nr); in btrfs_convert_free_space_to_bitmaps()
324 ptr = btrfs_item_ptr_offset(leaf, path->slots[0]); in btrfs_convert_free_space_to_bitmaps()
[all …]
H A Dverity.c139 if (path->slots[0] == 0) in drop_verity_items()
141 path->slots[0]--; in drop_verity_items()
147 btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]); in drop_verity_items()
159 ret = btrfs_del_items(trans, root, path, path->slots[0], 1); in drop_verity_items()
252 data = btrfs_item_ptr(leaf, path->slots[0], void); in write_key_bytes()
321 if (path->slots[0] == 0) in read_key_bytes()
323 path->slots[0]--; in read_key_bytes()
328 btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); in read_key_bytes()
333 item_end = btrfs_item_size(leaf, path->slots[0]) + key.offset; in read_key_bytes()
369 data = btrfs_item_ptr(leaf, path->slots[0], void); in read_key_bytes()
[all …]
/linux/drivers/md/dm-vdo/indexer/
H A Dopen-chapter.c96 memset(open_chapter->slots, 0, slots_size(open_chapter->slot_count)); in uds_reset_open_chapter()
109 record_number = open_chapter->slots[slot].record_number; in probe_chapter_slots()
124 !open_chapter->slots[record_number].deleted) in probe_chapter_slots()
143 record_number = open_chapter->slots[slot].record_number; in uds_search_open_chapter()
165 record_number = open_chapter->slots[slot].record_number; in uds_put_open_chapter()
169 open_chapter->slots[slot].record_number = record_number; in uds_put_open_chapter()
186 record_number = open_chapter->slots[slot].record_number; in uds_remove_from_open_chapter()
189 open_chapter->slots[record_number].deleted = true; in uds_remove_from_open_chapter()
247 open_chapter->slots[record_index].deleted) { in fill_delta_chapter_index()
330 if (open_chapter->slots[record_index].deleted) in uds_save_open_chapter()
/linux/sound/soc/fsl/
H A Dimx-card.c98 unsigned int slots; member
262 if (link_data->slots > 2) in format_is_tdm()
286 int slots, int slot_width) in akcodec_get_mclk_rate() argument
292 unsigned int width = slots * slot_width; in akcodec_get_mclk_rate()
335 unsigned int slots, slot_width; in imx_aif_hw_params() local
338 slots = link_data->slots; in imx_aif_hw_params()
343 slots = 1; in imx_aif_hw_params()
348 slots = 2; in imx_aif_hw_params()
361 BIT(slots) - 1, in imx_aif_hw_params()
362 BIT(slots) - 1, in imx_aif_hw_params()
[all …]
/linux/arch/arm/kernel/
H A Dhw_breakpoint.c329 struct perf_event **slot, **slots; in arch_install_hw_breakpoint() local
340 slots = this_cpu_ptr(bp_on_reg); in arch_install_hw_breakpoint()
346 slots = this_cpu_ptr(wp_on_reg); in arch_install_hw_breakpoint()
351 slot = &slots[i]; in arch_install_hw_breakpoint()
386 struct perf_event **slot, **slots; in arch_uninstall_hw_breakpoint() local
392 slots = this_cpu_ptr(bp_on_reg); in arch_uninstall_hw_breakpoint()
397 slots = this_cpu_ptr(wp_on_reg); in arch_uninstall_hw_breakpoint()
403 slot = &slots[i]; in arch_uninstall_hw_breakpoint()
733 struct perf_event *wp, **slots; in watchpoint_handler() local
737 slots = this_cpu_ptr(wp_on_reg); in watchpoint_handler()
[all …]
/linux/drivers/firmware/efi/libstub/
H A Drandomalloc.c87 unsigned long slots; in efi_random_alloc() local
89 slots = get_entry_num_slots(md, size, ilog2(align), alloc_min, in efi_random_alloc()
91 MD_NUM_SLOTS(md) = slots; in efi_random_alloc()
92 total_slots += slots; in efi_random_alloc()
94 total_mirrored_slots += slots; in efi_random_alloc()
/linux/sound/soc/codecs/
H A Drtq9124.c176 unsigned int rx_mask, int slots, int slot_width) in rtq9124_dai_set_tdm_slot() argument
183 dev_dbg(dev, "(slots, slot_width) = (%d, %d), (txmask, rxmask) = 0x%x, 0x%x\n", slots, in rtq9124_dai_set_tdm_slot()
186 if (slots <= 0 || slots > 16 || slot_width <= 0 || slots % 2 || slot_width % 8) { in rtq9124_dai_set_tdm_slot()
187 dev_err(dev, "Invalid slot parameter (%d, %d)\n", slots, slot_width); in rtq9124_dai_set_tdm_slot()
191 if (tx_mask && (hweight_long(tx_mask) > 2 || fls(tx_mask) > slots)) { in rtq9124_dai_set_tdm_slot()
192 dev_err(dev, "Invalid tx_mask 0x%08x, slots = %d\n", tx_mask, slots); in rtq9124_dai_set_tdm_slot()
196 if (!rx_mask || hweight_long(rx_mask) > 1 || fls(rx_mask) > slots) { in rtq9124_dai_set_tdm_slot()
197 dev_err(dev, "Invalid rx_mask 0x%08x, slots = %d\n", rx_mask, slots); in rtq9124_dai_set_tdm_slot()
211 rtq9124->tdm_slots = slots; in rtq9124_dai_set_tdm_slot()
H A Drt9123.c203 unsigned int rx_mask, int slots, int slot_width) in rt9123_dai_set_tdm_slot() argument
210 dev_dbg(dev, "(slots, slot_width) = (%d, %d), (txmask, rxmask) = 0x%x, 0x%x\n", slots, in rt9123_dai_set_tdm_slot()
213 if (slots <= 0 || slot_width <= 0 || slots % 2 || slot_width % 8 || in rt9123_dai_set_tdm_slot()
214 slots * slot_width > 256) { in rt9123_dai_set_tdm_slot()
215 dev_err(dev, "Invalid slot parameter (%d, %d)\n", slots, slot_width); in rt9123_dai_set_tdm_slot()
219 if (!rx_mask || hweight_long(rx_mask) > 1 || ffs(rx_mask) > slots) { in rt9123_dai_set_tdm_slot()
220 dev_err(dev, "Invalid rx_mask 0x%08x, slots = %d\n", rx_mask, slots); in rt9123_dai_set_tdm_slot()
[all...]
/linux/drivers/pci/hotplug/
H A Dibmphp_ebda.c66 struct ebda_hpc_slot *slots; in alloc_ebda_hpc() local
73 slots = kcalloc(slot_count, sizeof(struct ebda_hpc_slot), GFP_KERNEL); in alloc_ebda_hpc()
74 if (!slots) in alloc_ebda_hpc()
76 controller->slots = slots; in alloc_ebda_hpc()
85 kfree(controller->slots); in alloc_ebda_hpc()
94 kfree(controller->slots); in free_ebda_hpc()
198 debug("%s - physical slot#: %x\n", __func__, hpc_ptr->slots[index].slot_num); in print_ebda_hpc()
199 debug("%s - pci bus# of the slot: %x\n", __func__, hpc_ptr->slots[index].slot_bus_num); in print_ebda_hpc()
200 debug("%s - index into ctlr addr: %x\n", __func__, hpc_ptr->slots[index].ctl_index); in print_ebda_hpc()
201 debug("%s - cap of the slot: %x\n", __func__, hpc_ptr->slots[index].slot_cap); in print_ebda_hpc()
[all …]
/linux/net/sched/
H A Dsch_sfq.c120 struct sfq_slot *slots; /* Flows table ('maxflows' entries) */ member
146 return &q->slots[val].dep; in sfq_dep_head()
199 struct sfq_slot *slot = &q->slots[x]; in sfq_link()
214 n = q->slots[x].dep.next; \
215 p = q->slots[x].dep.prev; \
228 d = q->slots[x].qlen--; in sfq_dec()
241 d = ++q->slots[x].qlen; in sfq_inc()
297 slot = &q->slots[x]; in sfq_drop()
312 slot = &q->slots[x]; in sfq_drop()
362 slot = &q->slots[x]; in sfq_enqueue()
[all …]
/linux/arch/arm/mach-omap1/
H A Ddevices.c81 if (mmc_controller->slots[0].wires == 4) { in omap1_mmc_mux()
84 if (!mmc_controller->slots[0].nomux) in omap1_mmc_mux()
92 if (!mmc_controller->slots[1].nomux) { in omap1_mmc_mux()
97 if (mmc_controller->slots[1].wires == 4) { in omap1_mmc_mux()
148 data->slots[0].features = MMC_OMAP15XX; in omap_mmc_add()
150 data->slots[0].features = MMC_OMAP16XX; in omap_mmc_add()
/linux/sound/soc/meson/
H A Daxg-card.c21 unsigned int slots; member
67 be->slots, be->slot_width); in axg_card_tdm_dai_init()
76 be->slots, be->slot_width); in axg_card_tdm_dai_init()
94 be->slots, be->slot_width); in axg_card_tdm_dai_lb_init()
198 of_property_read_u32(node, "dai-tdm-slot-num", &be->slots); in axg_card_parse_cpu_tdm_slots()
199 if (!be->slots) { in axg_card_parse_cpu_tdm_slots()
204 be->slots = fls(max(tx, rx)); in axg_card_parse_cpu_tdm_slots()
205 } else if (be->slots < fls(max(tx, rx)) || be->slots > 32) { in axg_card_parse_cpu_tdm_slots()
/linux/sound/soc/amd/acp/
H A Dacp-i2s.c94 int slots, int slot_width) in acp_i2s_set_tdm_slot() argument
123 switch (slots) { in acp_i2s_set_tdm_slot()
125 no_of_slots = slots; in acp_i2s_set_tdm_slot()
131 dev_err(dev, "Unsupported slots %d\n", slots); in acp_i2s_set_tdm_slot()
139 switch (slots) { in acp_i2s_set_tdm_slot()
141 no_of_slots = slots; in acp_i2s_set_tdm_slot()
147 dev_err(dev, "Unsupported slots %d\n", slots); in acp_i2s_set_tdm_slot()
156 slots = no_of_slots; in acp_i2s_set_tdm_slot()
167 FRM_LEN | (slots << 15) | (slot_len << 18); in acp_i2s_set_tdm_slot()
170 FRM_LEN | (slots << 15) | (slot_len << 18); in acp_i2s_set_tdm_slot()
[all …]

12345678910>>...16