Home
last modified time | relevance | path

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

12345678910>>...22

/linux-6.6.21/mm/
Dswap_slots.c116 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 …]
Dz3fold.c113 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 …]
/linux-6.6.21/sound/pci/ac97/
Dac97_pcm.c312 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 …]
/linux-6.6.21/drivers/input/
Dinput-mt.c50 mt = kzalloc(struct_size(mt, slots, num_slots), GFP_KERNEL); in input_mt_init_slots()
91 input_mt_set_value(&mt->slots[i], ABS_MT_TRACKING_ID, -1); in input_mt_init_slots()
145 slot = &mt->slots[mt->slot]; in input_mt_report_slot_state()
210 struct input_mt_slot *ps = &mt->slots[i]; in input_mt_report_pointer_emulation()
266 if (input_mt_is_active(&mt->slots[i]) && in __input_mt_drop_unused()
267 !input_mt_is_used(mt, &mt->slots[i])) { in __input_mt_drop_unused()
412 for (s = mt->slots; s != mt->slots + mt->num_slots; s++) { in input_mt_set_matrix()
427 int *slots, int num_pos) in input_mt_set_slots() argument
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()
[all …]
/linux-6.6.21/tools/testing/selftests/kvm/lib/
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()
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 …]
/linux-6.6.21/fs/btrfs/
Dfile-item.c184 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 …]
Dinode-item.c102 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 …]
Dctree.c216 p->slots[i] = 0; in btrfs_release_path()
1053 int orig_slot = path->slots[level]; in balance_level()
1067 pslot = path->slots[level + 1]; in balance_level()
1267 path->slots[level + 1] -= 1; in balance_level()
1268 path->slots[level] = orig_slot; in balance_level()
1275 path->slots[level] = orig_slot; in balance_level()
1280 btrfs_node_blockptr(path->nodes[level], path->slots[level])) in balance_level()
1311 int orig_slot = path->slots[level]; in push_nodes_for_insert()
1321 pslot = path->slots[level + 1]; in push_nodes_for_insert()
1368 path->slots[level + 1] -= 1; in push_nodes_for_insert()
[all …]
/linux-6.6.21/tools/testing/selftests/hid/tests/
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 …]
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
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 …]
/linux-6.6.21/arch/ia64/scripts/
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)
/linux-6.6.21/drivers/misc/mei/
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 …]
Dinterrupt.c259 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 …]
/linux-6.6.21/tools/testing/selftests/kvm/include/
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);
/linux-6.6.21/lib/
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 …]
Dmaple_tree.c810 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 …]
/linux-6.6.21/arch/arm64/kernel/
Dhw_breakpoint.c188 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 …]
/linux-6.6.21/arch/loongarch/kernel/
Dhw_breakpoint.c115 static int hw_breakpoint_slot_setup(struct perf_event **slots, int max_slots, in hw_breakpoint_slot_setup() argument
122 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()
192 i = hw_breakpoint_slot_setup(slots, max_slots, bp, ops); in hw_breakpoint_control()
412 struct perf_event **slots; in update_bp_registers() local
417 slots = this_cpu_ptr(bp_on_reg); in update_bp_registers()
421 slots = this_cpu_ptr(wp_on_reg); in update_bp_registers()
429 if (!slots[i]) in update_bp_registers()
[all …]
/linux-6.6.21/drivers/input/touchscreen/
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-6.6.21/kernel/dma/
Dswiotlb.c286 mem->slots[i].list = min(IO_TLB_SEGSIZE - io_tlb_offset(i), in swiotlb_init_io_tlb_pool()
288 mem->slots[i].orig_addr = INVALID_PHYS_ADDR; in swiotlb_init_io_tlb_pool()
289 mem->slots[i].alloc_size = 0; in swiotlb_init_io_tlb_pool()
394 alloc_size = PAGE_ALIGN(array_size(sizeof(*mem->slots), nslabs)); in swiotlb_init_remap()
395 mem->slots = memblock_alloc(alloc_size, PAGE_SIZE); in swiotlb_init_remap()
396 if (!mem->slots) { in swiotlb_init_remap()
500 mem->slots = (void *)__get_free_pages(GFP_KERNEL | __GFP_ZERO, in swiotlb_init_late()
501 get_order(array_size(sizeof(*mem->slots), nslabs))); in swiotlb_init_late()
502 if (!mem->slots) in swiotlb_init_late()
537 slots_size = PAGE_ALIGN(array_size(sizeof(*mem->slots), mem->nslabs)); in swiotlb_exit()
[all …]
/linux-6.6.21/tools/perf/arch/arm64/util/
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()
/linux-6.6.21/tools/testing/selftests/kvm/
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 …]
/linux-6.6.21/sound/soc/bcm/
Dbcm2835-i2s.c251 int slots, int width) in bcm2835_i2s_set_dai_tdm_slot() argument
255 if (slots) { in bcm2835_i2s_set_dai_tdm_slot()
256 if (slots < 0 || width < 0) in bcm2835_i2s_set_dai_tdm_slot()
260 rx_mask &= GENMASK(slots - 1, 0); in bcm2835_i2s_set_dai_tdm_slot()
261 tx_mask &= GENMASK(slots - 1, 0); in bcm2835_i2s_set_dai_tdm_slot()
271 if (slots * width > BCM2835_I2S_MAX_FRAME_LENGTH) in bcm2835_i2s_set_dai_tdm_slot()
275 dev->tdm_slots = slots; in bcm2835_i2s_set_dai_tdm_slot()
280 dev->frame_length = slots * width; in bcm2835_i2s_set_dai_tdm_slot()
335 unsigned int slots, slot_width, odd_slot_offset; in bcm2835_i2s_hw_params() local
361 slots = dev->tdm_slots; in bcm2835_i2s_hw_params()
[all …]
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/dcn31/
Ddcn31_hpo_dp_link_encoder.c268 uint32_t *slots) in fill_stream_allocation_row_info() argument
274 *slots = stream_allocation->slot_count; in fill_stream_allocation_row_info()
277 *slots = 0; in fill_stream_allocation_row_info()
287 uint32_t slots = 0; in dcn31_hpo_dp_link_enc_update_stream_allocation_table() local
302 &slots); in dcn31_hpo_dp_link_enc_update_stream_allocation_table()
305 slots = 0; in dcn31_hpo_dp_link_enc_update_stream_allocation_table()
310 SAT_SLOT_COUNT, slots); in dcn31_hpo_dp_link_enc_update_stream_allocation_table()
316 &slots); in dcn31_hpo_dp_link_enc_update_stream_allocation_table()
319 slots = 0; in dcn31_hpo_dp_link_enc_update_stream_allocation_table()
324 SAT_SLOT_COUNT, slots); in dcn31_hpo_dp_link_enc_update_stream_allocation_table()
[all …]
/linux-6.6.21/sound/soc/fsl/
Dimx-card.c97 unsigned int slots; member
232 if (link_data->slots > 2) in format_is_tdm()
254 int slots, int slot_width) in akcodec_get_mclk_rate() argument
260 unsigned int width = slots * slot_width; in akcodec_get_mclk_rate()
303 unsigned int slots, slot_width; in imx_aif_hw_params() local
306 slots = link_data->slots; in imx_aif_hw_params()
311 slots = 1; in imx_aif_hw_params()
316 slots = 2; in imx_aif_hw_params()
329 BIT(slots) - 1, in imx_aif_hw_params()
330 BIT(slots) - 1, in imx_aif_hw_params()
[all …]

12345678910>>...22