| /linux-6.15/sound/pci/ac97/ |
| H A D | ac97_pcm.c | 361 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.15/drivers/input/ |
| H A D | input-mt.c | 405 for (s = mt->slots; s != mt->slots + mt->num_slots; s++) { in input_mt_set_matrix() 426 slots[j] = -1; in input_mt_set_slots() 428 for (s = mt->slots; s != mt->slots + mt->num_slots; s++) { in input_mt_set_slots() 434 slots[j] = s - mt->slots; in input_mt_set_slots() 442 for (s = mt->slots; s != mt->slots + mt->num_slots; s++) { in input_mt_set_slots() 447 if (slots[j] < 0) { in input_mt_set_slots() 448 slots[j] = s - mt->slots; in input_mt_set_slots() 516 for (s = mt->slots; s != mt->slots + mt->num_slots; s++) in input_mt_get_slot_by_key() 518 return s - mt->slots; in input_mt_get_slot_by_key() 520 for (s = mt->slots; s != mt->slots + mt->num_slots; s++) in input_mt_get_slot_by_key() [all …]
|
| /linux-6.15/tools/testing/selftests/kvm/lib/ |
| H A D | memstress.c | 125 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() 326 for (i = 0; i < slots; i++) { in toggle_dirty_logging() 336 toggle_dirty_logging(vm, slots, true); in memstress_enable_dirty_logging() 341 toggle_dirty_logging(vm, slots, false); in memstress_disable_dirty_logging() 348 for (i = 0; i < slots; i++) { in memstress_get_dirty_log() 360 for (i = 0; i < slots; i++) { in memstress_clear_dirty_log() 375 for (i = 0; i < slots; i++) { in memstress_alloc_bitmaps() [all …]
|
| /linux-6.15/fs/btrfs/ |
| H A D | file-item.c | 223 if (path->slots[0] == 0) in btrfs_lookup_csum() 225 path->slots[0]--; in btrfs_lookup_csum() 513 path->slots[0]--; in btrfs_lookup_csums_list() 542 path->slots[0]++; in btrfs_lookup_csums_list() 579 path->slots[0]++; in btrfs_lookup_csums_list() 669 path->slots[0]--; in btrfs_lookup_csums_bitmap() 699 path->slots[0]++; in btrfs_lookup_csums_bitmap() 726 path->slots[0]++; in btrfs_lookup_csums_bitmap() 900 path->slots[0]--; in btrfs_del_csums() 1030 slot = path->slots[0]; in find_next_csum_offset() [all …]
|
| H A D | inode-item.c | 279 path->slots[0], in btrfs_insert_inode_extref() 349 path->slots[0], in btrfs_insert_inode_ref() 410 slot = path->slots[0] - 1; in btrfs_lookup_inode() 415 path->slots[0]--; in btrfs_lookup_inode() 518 if (path->slots[0] == 0) in btrfs_truncate_inode_items() 520 path->slots[0]--; in btrfs_truncate_inode_items() 551 path->slots[0]); in btrfs_truncate_inode_items() 655 pending_del_slot = path->slots[0]; in btrfs_truncate_inode_items() 660 pending_del_slot = path->slots[0]; in btrfs_truncate_inode_items() 692 if (path->slots[0] == 0 || in btrfs_truncate_inode_items() [all …]
|
| H A D | ctree.c | 165 p->slots[i] = 0; in btrfs_release_path() 2463 p->slots[0]--; in btrfs_search_slot_for_read() 2477 --p->slots[0]; in btrfs_search_slot_for_read() 3289 path->slots[1]++; in push_leaf_right() 3609 if (path->slots[0] == 0 || path->slots[0] == nritems) in push_for_double_split() 4350 path->slots[0]++; in btrfs_duplicate_item() 4846 path->slots[0]++; in btrfs_next_old_leaf() 4983 path->slots[0]++; in btrfs_next_old_item() 5010 path->slots[0]--; in btrfs_previous_item() 5017 path->slots[0]--; in btrfs_previous_item() [all …]
|
| H A D | fiemap.c | 313 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() 390 path->slots[0]--; in fiemap_search_slot() 423 slot = path->slots[0]; in fiemap_search_slot() 426 path->slots[0] = slot; in fiemap_search_slot() 582 ASSERT(path->slots[0] > 0); in fiemap_find_last_extent_offset() 583 path->slots[0]--; in fiemap_find_last_extent_offset() 621 ei = btrfs_item_ptr(leaf, path->slots[0], in fiemap_find_last_extent_offset() [all …]
|
| H A D | raid-stripe-tree.c | 37 slot = path->slots[0]; in btrfs_partially_delete_raid_extent() 109 path->slots[0]--; in btrfs_delete_raid_extent() 112 slot = path->slots[0]; in btrfs_delete_raid_extent() 138 path->slots[0]--; in btrfs_delete_raid_extent() 142 slot = path->slots[0]; in btrfs_delete_raid_extent() 187 extent = btrfs_item_ptr(leaf, path->slots[0], in btrfs_delete_raid_extent() 200 path->slots[0]--; in btrfs_delete_raid_extent() 287 slot = path->slots[0]; in update_raid_extent_item() 404 if (path->slots[0] != 0) in btrfs_get_raid_extent_offset() 405 path->slots[0]--; in btrfs_get_raid_extent_offset() [all …]
|
| H A D | free-space-tree.c | 148 if (p->slots[0] == 0) { in btrfs_search_prev_slot() 152 p->slots[0]--; in btrfs_search_prev_slot() 243 path->slots[0]++; in convert_free_space_to_bitmaps() 267 path->slots[0]--; in convert_free_space_to_bitmaps() 378 path->slots[0]++; in convert_free_space_to_extents() 408 path->slots[0]--; in convert_free_space_to_extents() 580 p->slots[0]++; in free_space_next_bitmap() 1240 path->slots[0] = 0; in clear_free_space_tree() 1447 path->slots[0]++; in remove_block_group_free_space() 1456 path->slots[0]--; in remove_block_group_free_space() [all …]
|
| /linux-6.15/tools/testing/selftests/hid/tests/ |
| H A D | test_multitouch.py | 158 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 D | test_sony.py | 149 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 …]
|
| /linux-6.15/drivers/misc/mei/ |
| H A D | dma-ring.c | 175 u32 rd_idx, rem, slots; in mei_dma_ring_read() local 187 slots = mei_data2slots(len); in mei_dma_ring_read() 193 if (rd_idx + slots > dbuf_depth) { in mei_dma_ring_read() 195 rem = slots - (dbuf_depth - rd_idx); in mei_dma_ring_read() 198 rem = slots; in mei_dma_ring_read() 203 WRITE_ONCE(ctrl->dbuf_rd_idx, ctrl->dbuf_rd_idx + slots); in mei_dma_ring_read() 252 u32 wr_idx, rem, slots; in mei_dma_ring_write() local 260 slots = mei_data2slots(len); in mei_dma_ring_write() 262 if (wr_idx + slots > hbuf_depth) { in mei_dma_ring_write() 264 rem = slots - (hbuf_depth - wr_idx); in mei_dma_ring_write() [all …]
|
| H A D | interrupt.c | 259 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.15/tools/testing/selftests/kvm/include/ |
| H A D | memstress.h | 59 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-6.15/lib/ |
| H A D | assoc_array.c | 505 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 …]
|
| H A D | maple_tree.c | 901 void __rcu **slots; in mt_clear_meta() local 1021 void __rcu **slots; in mas_descend() local 1484 void __rcu **slots; in mas_leaf_max_gap() local 1495 if (slots[i]) { in mas_leaf_max_gap() 1721 void __rcu **slots; in mas_put_in_tree() local 1767 void __rcu **slots; in mas_find_child() local 1926 void __rcu **slots; in mas_mab_cp() local 3881 void __rcu **slots = wr_mas->slots; in mas_wr_slot_store() local 4006 slots = wr_mas->slots; in mas_wr_append() 5204 return slots; in mte_dead_walk() [all …]
|
| /linux-6.15/arch/arm64/kernel/ |
| H A D | hw_breakpoint.c | 197 slot = &slots[i]; in hw_breakpoint_slot_setup() 227 struct perf_event **slots; in hw_breakpoint_control() local 585 struct perf_event **slots; in toggle_bp_registers() local 601 if (!slots[i]) in toggle_bp_registers() 627 struct perf_event *bp, **slots; in breakpoint_handler() local 638 bp = slots[i]; in breakpoint_handler() 762 struct perf_event *wp, **slots; in watchpoint_handler() local 775 wp = slots[i]; in watchpoint_handler() 945 struct perf_event **slots; in hw_breakpoint_reset() local 957 if (slots[i]) { in hw_breakpoint_reset() [all …]
|
| /linux-6.15/drivers/input/touchscreen/ |
| H A D | penmount.c | 58 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.15/arch/loongarch/kernel/ |
| H A D | hw_breakpoint.c | 134 slot = &slots[i]; in hw_breakpoint_slot_setup() 192 struct perf_event **slots; in hw_breakpoint_control() local 206 slots = this_cpu_ptr(bp_on_reg); in hw_breakpoint_control() 210 slots = this_cpu_ptr(wp_on_reg); in hw_breakpoint_control() 432 struct perf_event **slots; in update_bp_registers() local 449 if (!slots[i]) in update_bp_registers() 489 struct perf_event *bp, **slots; in breakpoint_handler() local 491 slots = this_cpu_ptr(bp_on_reg); in breakpoint_handler() 495 bp = slots[i]; in breakpoint_handler() 509 struct perf_event *wp, **slots; in watchpoint_handler() local [all …]
|
| /linux-6.15/kernel/dma/ |
| H A D | swiotlb.c | 292 mem->slots[i].alloc_size = 0; in swiotlb_init_io_tlb_pool() 293 mem->slots[i].pad_slots = 0; in swiotlb_init_io_tlb_pool() 400 if (!mem->slots) { in swiotlb_init_remap() 506 if (!mem->slots) in swiotlb_init_late() 716 if (!pool->slots) in swiotlb_alloc_pool() 1103 pool->slots[i].list = 0; in swiotlb_search_pool_area() 1109 pool->slots[i].list; i--) in swiotlb_search_pool_area() 1480 mem->slots[i].pad_slots = 0; in swiotlb_release_slots() 1819 pool->slots = kcalloc(nslabs, sizeof(*pool->slots), GFP_KERNEL); in rmem_swiotlb_device_init() 1820 if (!pool->slots) { in rmem_swiotlb_device_init() [all …]
|
| /linux-6.15/tools/testing/selftests/kvm/ |
| H A D | dirty_log_perf_test.c | 131 int slots; member 153 p->slots, p->backing_src, in run_test() 161 pages_per_slot = host_num_pages / p->slots; in run_test() 163 bitmaps = memstress_alloc_bitmaps(p->slots, pages_per_slot); in run_test() 204 memstress_enable_dirty_logging(vm, p->slots); in run_test() 233 memstress_get_dirty_log(vm, bitmaps, p->slots); in run_test() 242 memstress_clear_dirty_log(vm, bitmaps, p->slots, in run_test() 262 memstress_disable_dirty_logging(vm, p->slots); in run_test() 287 memstress_free_bitmaps(bitmaps, p->slots); in run_test() 343 .slots = 1, in main() [all …]
|
| /linux-6.15/sound/soc/bcm/ |
| H A D | bcm2835-i2s.c | 251 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.15/drivers/gpu/drm/amd/display/dc/hpo/dcn31/ |
| H A D | dcn31_hpo_dp_link_encoder.c | 268 uint32_t *slots) in dcn31_fill_stream_allocation_row_info() argument 277 *slots = 0; in dcn31_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() 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() 330 &slots); in dcn31_hpo_dp_link_enc_update_stream_allocation_table() 333 slots = 0; in dcn31_hpo_dp_link_enc_update_stream_allocation_table() 344 &slots); in dcn31_hpo_dp_link_enc_update_stream_allocation_table() [all …]
|
| /linux-6.15/drivers/dma/ioat/ |
| H A D | dca.c | 216 int slots = 0; in ioat_dca_count_dca_slots() local 225 req = readl(iobase + global_req_table + (slots * sizeof(u32))); in ioat_dca_count_dca_slots() 226 slots++; in ioat_dca_count_dca_slots() 229 return slots; in ioat_dca_count_dca_slots() 253 int slots; in ioat_dca_init() local 276 slots = ioat_dca_count_dca_slots(iobase, dca_offset); in ioat_dca_init() 277 if (slots == 0) in ioat_dca_init() 281 struct_size(ioatdca, req_slots, slots)); in ioat_dca_init() 288 ioatdca->max_requesters = slots; in ioat_dca_init()
|
| /linux-6.15/drivers/md/dm-vdo/indexer/ |
| H A D | open-chapter.c | 96 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()
|