Home
last modified time | relevance | path

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

12345678910>>...21

/Linux-v6.1/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.c116 struct z3fold_buddy_slots *slots; member
210 struct z3fold_buddy_slots *slots = kmem_cache_zalloc(pool->c_handle, in alloc_slots() local
213 if (slots) { in alloc_slots()
215 kmemleak_not_leak(slots); in alloc_slots()
216 slots->pool = (unsigned long)pool; in alloc_slots()
217 rwlock_init(&slots->lock); in alloc_slots()
220 return slots; in alloc_slots()
254 struct z3fold_buddy_slots *slots; in get_z3fold_header() local
259 slots = handle_to_slots(handle); in get_z3fold_header()
263 read_lock(&slots->lock); in get_z3fold_header()
[all …]
/Linux-v6.1/tools/testing/selftests/kvm/
Ddirty_log_perf_test.c134 int slots; member
137 static void toggle_dirty_logging(struct kvm_vm *vm, int slots, bool enable) in toggle_dirty_logging() argument
141 for (i = 0; i < slots; i++) { in toggle_dirty_logging()
149 static inline void enable_dirty_logging(struct kvm_vm *vm, int slots) in enable_dirty_logging() argument
151 toggle_dirty_logging(vm, slots, true); in enable_dirty_logging()
154 static inline void disable_dirty_logging(struct kvm_vm *vm, int slots) in disable_dirty_logging() argument
156 toggle_dirty_logging(vm, slots, false); in disable_dirty_logging()
159 static void get_dirty_log(struct kvm_vm *vm, unsigned long *bitmaps[], int slots) in get_dirty_log() argument
163 for (i = 0; i < slots; i++) { in get_dirty_log()
171 int slots, uint64_t pages_per_slot) in clear_dirty_log() argument
[all …]
/Linux-v6.1/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-v6.1/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-v6.1/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.c226 int slots; in mei_cl_irq_disconnect_rsp() local
230 slots = mei_hbuf_empty_slots(dev); in mei_cl_irq_disconnect_rsp()
231 if (slots < 0) in mei_cl_irq_disconnect_rsp()
234 if ((u32)slots < msg_slots) in mei_cl_irq_disconnect_rsp()
258 int slots; in mei_cl_irq_read() local
265 slots = mei_hbuf_empty_slots(dev); in mei_cl_irq_read()
266 if (slots < 0) in mei_cl_irq_read()
269 if ((u32)slots < msg_slots) in mei_cl_irq_read()
328 struct list_head *cmpl_list, s32 *slots) in mei_irq_read_handler() argument
342 (*slots)--; in mei_irq_read_handler()
[all …]
/Linux-v6.1/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-v6.1/fs/btrfs/
Dinode-item.c94 return btrfs_find_name_in_ext_backref(path->nodes[0], path->slots[0], in btrfs_lookup_inode_extref()
134 extref = btrfs_find_name_in_ext_backref(path->nodes[0], path->slots[0], in btrfs_del_inode_extref()
143 item_size = btrfs_item_size(leaf, path->slots[0]); in btrfs_del_inode_extref()
157 item_start = btrfs_item_ptr_offset(leaf, path->slots[0]); in btrfs_del_inode_extref()
204 ref = btrfs_find_name_in_backref(path->nodes[0], path->slots[0], name, in btrfs_del_inode_ref()
212 item_size = btrfs_item_size(leaf, path->slots[0]); in btrfs_del_inode_ref()
223 item_start = btrfs_item_ptr_offset(leaf, path->slots[0]); in btrfs_del_inode_ref()
273 path->slots[0], in btrfs_insert_inode_extref()
285 ptr = (unsigned long)btrfs_item_ptr(leaf, path->slots[0], char); in btrfs_insert_inode_extref()
286 ptr += btrfs_item_size(leaf, path->slots[0]) - ins_len; in btrfs_insert_inode_extref()
[all …]
Dfile-item.c166 item = btrfs_item_ptr(leaf, path->slots[0], in btrfs_insert_hole_extent()
210 if (path->slots[0] == 0) in btrfs_lookup_csum()
212 path->slots[0]--; in btrfs_lookup_csum()
213 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_lookup_csum()
219 csums_in_item = btrfs_item_size(leaf, path->slots[0]); in btrfs_lookup_csum()
229 item = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_csum_item); in btrfs_lookup_csum()
283 item = btrfs_item_ptr(path->nodes[0], path->slots[0], in search_csum_tree()
285 btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]); in search_csum_tree()
286 itemsize = btrfs_item_size(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()
[all …]
Dctree.c104 p->slots[i] = 0; in btrfs_release_path()
893 int orig_slot = path->slots[level]; in balance_level()
907 pslot = path->slots[level + 1]; in balance_level()
1077 path->slots[level + 1] -= 1; in balance_level()
1078 path->slots[level] = orig_slot; in balance_level()
1085 path->slots[level] = orig_slot; in balance_level()
1090 btrfs_node_blockptr(path->nodes[level], path->slots[level])) in balance_level()
1121 int orig_slot = path->slots[level]; in push_nodes_for_insert()
1131 pslot = path->slots[level + 1]; in push_nodes_for_insert()
1173 path->slots[level + 1] -= 1; in push_nodes_for_insert()
[all …]
Dfree-space-tree.c83 info = btrfs_item_ptr(leaf, path->slots[0], in add_new_free_space_info()
120 return btrfs_item_ptr(path->nodes[0], path->slots[0], in search_free_space_info()
144 if (p->slots[0] == 0) { in btrfs_search_prev_slot()
148 p->slots[0]--; in btrfs_search_prev_slot()
239 path->slots[0]++; in convert_free_space_to_bitmaps()
240 while (path->slots[0] > 0) { in convert_free_space_to_bitmaps()
241 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0] - 1); in convert_free_space_to_bitmaps()
263 path->slots[0]--; in convert_free_space_to_bitmaps()
269 ret = btrfs_del_items(trans, root, path, path->slots[0], nr); in convert_free_space_to_bitmaps()
319 ptr = btrfs_item_ptr_offset(leaf, path->slots[0]); in convert_free_space_to_bitmaps()
[all …]
/Linux-v6.1/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.c805 void __rcu **slots, unsigned char offset) in mt_slot() argument
807 return rcu_dereference_check(slots[offset], mt_locked(mt)); in mt_slot()
818 static inline void *mas_slot_locked(struct ma_state *mas, void __rcu **slots, in mas_slot_locked() argument
821 return rcu_dereference_protected(slots[offset], mt_locked(mas->tree)); in mas_slot_locked()
832 static inline void *mas_slot(struct ma_state *mas, void __rcu **slots, in mas_slot() argument
835 return mt_slot(mas->tree, slots, offset); in mas_slot()
1003 void __rcu **slots; in mas_descend() local
1008 slots = ma_slots(node, type); in mas_descend()
1013 mas->node = mas_slot(mas, slots, mas->offset); in mas_descend()
1212 void **slots = NULL; in mas_alloc_nodes() local
[all …]
/Linux-v6.1/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-v6.1/kernel/dma/
Dswiotlb.c286 mem->slots[i].list = IO_TLB_SEGSIZE - io_tlb_offset(i); in swiotlb_init_io_tlb_mem()
287 mem->slots[i].orig_addr = INVALID_PHYS_ADDR; in swiotlb_init_io_tlb_mem()
288 mem->slots[i].alloc_size = 0; in swiotlb_init_io_tlb_mem()
356 alloc_size = PAGE_ALIGN(array_size(sizeof(*mem->slots), nslabs)); in swiotlb_init_remap()
357 mem->slots = memblock_alloc(alloc_size, PAGE_SIZE); in swiotlb_init_remap()
358 if (!mem->slots) { in swiotlb_init_remap()
445 mem->slots = (void *)__get_free_pages(GFP_KERNEL | __GFP_ZERO, in swiotlb_init_late()
446 get_order(array_size(sizeof(*mem->slots), nslabs))); in swiotlb_init_late()
447 if (!mem->slots) in swiotlb_init_late()
481 slots_size = PAGE_ALIGN(array_size(sizeof(*mem->slots), mem->nslabs)); in swiotlb_exit()
[all …]
/Linux-v6.1/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-v6.1/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-v6.1/drivers/gpu/drm/amd/display/dc/dcn31/
Ddcn31_hpo_dp_link_encoder.c266 uint32_t *slots) in fill_stream_allocation_row_info() argument
272 *slots = stream_allocation->slot_count; in fill_stream_allocation_row_info()
275 *slots = 0; in fill_stream_allocation_row_info()
285 uint32_t slots = 0; in dcn31_hpo_dp_link_enc_update_stream_allocation_table() local
300 &slots); in dcn31_hpo_dp_link_enc_update_stream_allocation_table()
303 slots = 0; in dcn31_hpo_dp_link_enc_update_stream_allocation_table()
308 SAT_SLOT_COUNT, slots); in dcn31_hpo_dp_link_enc_update_stream_allocation_table()
314 &slots); in dcn31_hpo_dp_link_enc_update_stream_allocation_table()
317 slots = 0; in dcn31_hpo_dp_link_enc_update_stream_allocation_table()
322 SAT_SLOT_COUNT, slots); in dcn31_hpo_dp_link_enc_update_stream_allocation_table()
[all …]
/Linux-v6.1/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 …]
/Linux-v6.1/drivers/dma/ioat/
Ddca.c214 int slots = 0; in ioat_dca_count_dca_slots() local
223 req = readl(iobase + global_req_table + (slots * sizeof(u32))); in ioat_dca_count_dca_slots()
224 slots++; in ioat_dca_count_dca_slots()
227 return slots; in ioat_dca_count_dca_slots()
251 int slots; in ioat_dca_init() local
274 slots = ioat_dca_count_dca_slots(iobase, dca_offset); in ioat_dca_init()
275 if (slots == 0) in ioat_dca_init()
279 struct_size(ioatdca, req_slots, slots)); in ioat_dca_init()
286 ioatdca->max_requesters = slots; in ioat_dca_init()
/Linux-v6.1/tools/perf/arch/x86/util/
Devlist.c70 struct evsel *evsel, *first, *slots = NULL; in arch_evlist__leader() local
82 slots = evsel; in arch_evlist__leader()
83 if (slots == first) in arch_evlist__leader()
88 if (slots && has_topdown) in arch_evlist__leader()
89 return slots; in arch_evlist__leader()
/Linux-v6.1/drivers/firmware/efi/libstub/
Drandomalloc.c76 unsigned long slots; in efi_random_alloc() local
78 slots = get_entry_num_slots(md, size, ilog2(align)); in efi_random_alloc()
79 MD_NUM_SLOTS(md) = slots; in efi_random_alloc()
80 total_slots += slots; in efi_random_alloc()
82 total_mirrored_slots += slots; in efi_random_alloc()
/Linux-v6.1/block/
Dblk-crypto-profile.c88 profile->slots = kvcalloc(num_slots, sizeof(profile->slots[0]), in blk_crypto_profile_init()
90 if (!profile->slots) in blk_crypto_profile_init()
99 profile->slots[slot].profile = profile; in blk_crypto_profile_init()
100 list_add_tail(&profile->slots[slot].idle_slot_node, in blk_crypto_profile_init()
220 return slot - slot->profile->slots; in blk_crypto_keyslot_index()
430 const struct blk_crypto_key *key = profile->slots[slot].key; in blk_crypto_reprogram_all_keys()
448 kvfree_sensitive(profile->slots, in blk_crypto_profile_destroy()
449 sizeof(profile->slots[0]) * profile->num_slots); in blk_crypto_profile_destroy()
/Linux-v6.1/arch/arm/kernel/
Dhw_breakpoint.c328 struct perf_event **slot, **slots; in arch_install_hw_breakpoint() local
339 slots = this_cpu_ptr(bp_on_reg); in arch_install_hw_breakpoint()
345 slots = this_cpu_ptr(wp_on_reg); in arch_install_hw_breakpoint()
350 slot = &slots[i]; in arch_install_hw_breakpoint()
385 struct perf_event **slot, **slots; in arch_uninstall_hw_breakpoint() local
391 slots = this_cpu_ptr(bp_on_reg); in arch_uninstall_hw_breakpoint()
396 slots = this_cpu_ptr(wp_on_reg); in arch_uninstall_hw_breakpoint()
402 slot = &slots[i]; in arch_uninstall_hw_breakpoint()
732 struct perf_event *wp, **slots; in watchpoint_handler() local
736 slots = this_cpu_ptr(wp_on_reg); in watchpoint_handler()
[all …]

12345678910>>...21