Home
last modified time | relevance | path

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

12345678910>>...21

/linux-6.3-rc2/mm/
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 …]
A Dz3fold.c207 if (slots) { in alloc_slots()
214 return slots; in alloc_slots()
304 if (zhdr->slots != slots) in free_handle()
319 if (zhdr->slots == slots) in free_handle()
320 zhdr->slots = NULL; in free_handle()
343 if (!slots) in init_z3fold_page()
350 zhdr->slots = slots; in init_z3fold_page()
399 slots->slot[idx] = h; in __encode_handle()
883 if (!zhdr->slots) in __z3fold_alloc()
1288 memset(slots.slot, 0, sizeof(slots.slot)); in z3fold_reclaim_page()
[all …]
/linux-6.3-rc2/sound/pci/ac97/
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 …]
/linux-6.3-rc2/tools/testing/selftests/kvm/
A Ddirty_log_perf_test.c133 int slots; member
143 for (i = 0; i < slots; i++) { in toggle_dirty_logging()
165 for (i = 0; i < slots; i++) { in get_dirty_log()
177 for (i = 0; i < slots; i++) { in clear_dirty_log()
192 for (i = 0; i < slots; i++) { in alloc_bitmaps()
204 for (i = 0; i < slots; i++) in free_bitmaps()
227 p->slots, p->backing_src, in run_test()
280 enable_dirty_logging(vm, p->slots); in run_test()
337 disable_dirty_logging(vm, p->slots); in run_test()
362 free_bitmaps(bitmaps, p->slots); in run_test()
[all …]
/linux-6.3-rc2/drivers/input/
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 …]
/linux-6.3-rc2/arch/ia64/scripts/
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)
/linux-6.3-rc2/drivers/misc/mei/
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 …]
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 …]
/linux-6.3-rc2/fs/btrfs/
A Dfile-item.c227 if (path->slots[0] == 0) in btrfs_lookup_csum()
229 path->slots[0]--; in btrfs_lookup_csum()
575 path->slots[0]--; in btrfs_lookup_csums_list()
604 path->slots[0]++; in btrfs_lookup_csums_list()
637 path->slots[0]++; in btrfs_lookup_csums_list()
709 path->slots[0]--; in btrfs_lookup_csums_bitmap()
738 path->slots[0]++; in btrfs_lookup_csums_bitmap()
765 path->slots[0]++; in btrfs_lookup_csums_bitmap()
969 path->slots[0]--; in btrfs_del_csums()
1100 slot = path->slots[0]; in find_next_csum_offset()
[all …]
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()
667 pending_del_slot = path->slots[0]; in btrfs_truncate_inode_items()
698 if (path->slots[0] == 0 || in btrfs_truncate_inode_items()
[all …]
A Dctree.c212 p->slots[i] = 0; in btrfs_release_path()
2430 p->slots[0]--; in btrfs_search_slot_for_read()
2444 --p->slots[0]; in btrfs_search_slot_for_read()
3238 path->slots[1]++; in push_leaf_right()
3556 if (path->slots[0] == 0 || path->slots[0] == nritems) in push_for_double_split()
4266 path->slots[0]++; in btrfs_duplicate_item()
4794 path->slots[0]++; in btrfs_next_old_leaf()
4933 path->slots[0]++; in btrfs_next_old_item()
4960 path->slots[0]--; in btrfs_previous_item()
4967 path->slots[0]--; in btrfs_previous_item()
[all …]
A Dfree-space-tree.c149 if (p->slots[0] == 0) { in btrfs_search_prev_slot()
153 p->slots[0]--; in btrfs_search_prev_slot()
244 path->slots[0]++; in convert_free_space_to_bitmaps()
268 path->slots[0]--; in convert_free_space_to_bitmaps()
381 path->slots[0]++; in convert_free_space_to_extents()
411 path->slots[0]--; in convert_free_space_to_extents()
584 p->slots[0]++; in free_space_next_bitmap()
1241 path->slots[0] = 0; in clear_free_space_tree()
1387 path->slots[0]++; in remove_block_group_free_space()
1396 path->slots[0]--; in remove_block_group_free_space()
[all …]
/linux-6.3-rc2/lib/
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 …]
A Dmaple_tree.c1013 void __rcu **slots; in mas_descend() local
1219 void **slots = NULL; in mas_alloc_nodes() local
1461 void __rcu **slots; in mas_leaf_max_gap() local
1472 if (slots[i]) { in mas_leaf_max_gap()
1745 void __rcu **slots; in mas_new_child() local
1914 void __rcu **slots; in mas_mab_cp() local
2310 void __rcu **slots; in mas_topiary_range() local
2903 void __rcu **slots; in mtree_range_walk() local
3631 void __rcu **slots; in mas_root_expand() local
5464 return slots; in mas_dead_walk()
[all …]
/linux-6.3-rc2/arch/arm64/kernel/
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 …]
/linux-6.3-rc2/kernel/dma/
A Dswiotlb.c280 mem->slots[i].alloc_size = 0; in swiotlb_init_io_tlb_mem()
366 if (!mem->slots) { in swiotlb_init_remap()
455 if (!mem->slots) in swiotlb_init_late()
684 mem->slots[i].list = 0; in swiotlb_do_find_slots()
690 mem->slots[i].list; i--) in swiotlb_do_find_slots()
691 mem->slots[i].list = ++count; in swiotlb_do_find_slots()
819 mem->slots[i].list = ++count; in swiotlb_release_slots()
821 mem->slots[i].alloc_size = 0; in swiotlb_release_slots()
1008 mem->slots = kcalloc(nslabs, sizeof(*mem->slots), GFP_KERNEL); in rmem_swiotlb_device_init()
1009 if (!mem->slots) { in rmem_swiotlb_device_init()
[all …]
/linux-6.3-rc2/arch/loongarch/kernel/
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()
411 struct perf_event **slots; in update_bp_registers() local
428 if (!slots[i]) in update_bp_registers()
468 struct perf_event *bp, **slots; in breakpoint_handler() local
470 slots = this_cpu_ptr(bp_on_reg); in breakpoint_handler()
473 bp = slots[i]; in breakpoint_handler()
485 struct perf_event *wp, **slots; in watchpoint_handler() local
[all …]
/linux-6.3-rc2/drivers/input/touchscreen/
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-6.3-rc2/tools/perf/arch/arm64/util/
A Dpmu.c52 unsigned long long slots = 0; in perf_pmu__cpu_slots_per_cycle() local
62 sysfs__read_ull(path, &slots); in perf_pmu__cpu_slots_per_cycle()
65 return slots ? (double)slots : NAN; in perf_pmu__cpu_slots_per_cycle()
/linux-6.3-rc2/sound/soc/bcm/
A 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()
275 dev->tdm_slots = slots; in bcm2835_i2s_set_dai_tdm_slot()
361 slots = dev->tdm_slots; in bcm2835_i2s_hw_params()
368 slots = 2; in bcm2835_i2s_hw_params()
444 if (slots & 1) in bcm2835_i2s_hw_params()
451 odd_slot_offset = slots >> 1; in bcm2835_i2s_hw_params()
461 if (slots & 1) in bcm2835_i2s_hw_params()
464 odd_slot_offset = slots >> 1; in bcm2835_i2s_hw_params()
[all …]
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/dcn31/
A Ddcn31_hpo_dp_link_encoder.c269 uint32_t *slots) in fill_stream_allocation_row_info() argument
278 *slots = 0; in fill_stream_allocation_row_info()
288 uint32_t slots = 0; in dcn31_hpo_dp_link_enc_update_stream_allocation_table() local
303 &slots); in dcn31_hpo_dp_link_enc_update_stream_allocation_table()
306 slots = 0; in dcn31_hpo_dp_link_enc_update_stream_allocation_table()
317 &slots); in dcn31_hpo_dp_link_enc_update_stream_allocation_table()
320 slots = 0; in dcn31_hpo_dp_link_enc_update_stream_allocation_table()
331 &slots); in dcn31_hpo_dp_link_enc_update_stream_allocation_table()
334 slots = 0; in dcn31_hpo_dp_link_enc_update_stream_allocation_table()
345 &slots); in dcn31_hpo_dp_link_enc_update_stream_allocation_table()
[all …]
/linux-6.3-rc2/sound/soc/fsl/
A Dimx-card.c97 unsigned int slots; member
232 if (link_data->slots > 2) in format_is_tdm()
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()
387 fs *= link_data->slots; in ak5558_hw_rule_rate()
684 &link_data->slots, in imx_card_parse_of()
687 if (!link_data->slots) in imx_card_parse_of()
[all …]
/linux-6.3-rc2/drivers/dma/ioat/
A 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-6.3-rc2/drivers/firmware/efi/libstub/
A Drandomalloc.c77 unsigned long slots; in efi_random_alloc() local
79 slots = get_entry_num_slots(md, size, ilog2(align)); in efi_random_alloc()
80 MD_NUM_SLOTS(md) = slots; in efi_random_alloc()
81 total_slots += slots; in efi_random_alloc()
83 total_mirrored_slots += slots; in efi_random_alloc()
/linux-6.3-rc2/tools/perf/arch/x86/util/
A 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()

Completed in 78 milliseconds

12345678910>>...21