| /linux/mm/ |
| A D | swap_slots.c | 125 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, 0); in refill_swap_slots_cache() [all …]
|
| A D | z3fold.c | 200 if (slots) { in alloc_slots() 207 return slots; in alloc_slots() 297 if (zhdr->slots != slots) in free_handle() 302 if (slots->slot[i]) { in free_handle() 312 if (zhdr->slots == slots) in free_handle() 313 zhdr->slots = NULL; in free_handle() 335 if (!slots) in init_z3fold_page() 342 zhdr->slots = slots; in init_z3fold_page() 392 slots->slot[idx] = h; in __encode_handle() 408 read_lock(&slots->lock); in handle_to_chunks() [all …]
|
| /linux/sound/pci/ac97/ |
| 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/drivers/input/ |
| A D | input-mt.c | 415 for (s = mt->slots; s != mt->slots + mt->num_slots; s++) { in input_mt_set_matrix() 436 slots[j] = -1; in input_mt_set_slots() 438 for (s = mt->slots; s != mt->slots + mt->num_slots; s++) { in input_mt_set_slots() 444 slots[j] = s - mt->slots; in input_mt_set_slots() 452 for (s = mt->slots; s != mt->slots + mt->num_slots; s++) { in input_mt_set_slots() 457 if (slots[j] < 0) { in input_mt_set_slots() 458 slots[j] = s - mt->slots; in input_mt_set_slots() 526 for (s = mt->slots; s != mt->slots + mt->num_slots; s++) in input_mt_get_slot_by_key() 528 return s - mt->slots; in input_mt_get_slot_by_key() 530 for (s = mt->slots; s != mt->slots + mt->num_slots; s++) in input_mt_get_slot_by_key() [all …]
|
| /linux/tools/testing/selftests/kvm/lib/ |
| 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/fs/btrfs/ |
| A D | file-item.c | 225 if (path->slots[0] == 0) in btrfs_lookup_csum() 227 path->slots[0]--; in btrfs_lookup_csum() 518 path->slots[0]--; in btrfs_lookup_csums_list() 547 path->slots[0]++; in btrfs_lookup_csums_list() 584 path->slots[0]++; in btrfs_lookup_csums_list() 674 path->slots[0]--; in btrfs_lookup_csums_bitmap() 704 path->slots[0]++; in btrfs_lookup_csums_bitmap() 731 path->slots[0]++; in btrfs_lookup_csums_bitmap() 905 path->slots[0]--; in btrfs_del_csums() 1036 slot = path->slots[0]; in find_next_csum_offset() [all …]
|
| A D | inode-item.c | 279 path->slots[0], in btrfs_insert_inode_extref() 351 path->slots[0], in btrfs_insert_inode_ref() 414 slot = path->slots[0] - 1; in btrfs_lookup_inode() 419 path->slots[0]--; in btrfs_lookup_inode() 522 if (path->slots[0] == 0) in btrfs_truncate_inode_items() 524 path->slots[0]--; in btrfs_truncate_inode_items() 555 path->slots[0]); in btrfs_truncate_inode_items() 660 pending_del_slot = path->slots[0]; in btrfs_truncate_inode_items() 665 pending_del_slot = path->slots[0]; in btrfs_truncate_inode_items() 697 if (path->slots[0] == 0 || in btrfs_truncate_inode_items() [all …]
|
| A D | ctree.c | 216 p->slots[i] = 0; in btrfs_release_path() 2491 p->slots[0]--; in btrfs_search_slot_for_read() 2505 --p->slots[0]; in btrfs_search_slot_for_read() 3317 path->slots[1]++; in push_leaf_right() 3637 if (path->slots[0] == 0 || path->slots[0] == nritems) in push_for_double_split() 4378 path->slots[0]++; in btrfs_duplicate_item() 4877 path->slots[0]++; in btrfs_next_old_leaf() 5016 path->slots[0]++; in btrfs_next_old_item() 5043 path->slots[0]--; in btrfs_previous_item() 5050 path->slots[0]--; in btrfs_previous_item() [all …]
|
| 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 …]
|
| /linux/tools/testing/selftests/hid/tests/ |
| 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 …]
|
| 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/drivers/misc/mei/ |
| 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 …]
|
| 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/tools/testing/selftests/kvm/include/ |
| 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/lib/ |
| 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 …]
|
| A D | maple_tree.c | 890 void __rcu **slots; in mt_clear_meta() local 1010 void __rcu **slots; in mas_descend() local 1474 void __rcu **slots; in mas_leaf_max_gap() local 1485 if (slots[i]) { in mas_leaf_max_gap() 1711 void __rcu **slots; in mas_put_in_tree() local 1757 void __rcu **slots; in mas_find_child() local 1927 void __rcu **slots; in mas_mab_cp() local 3875 void __rcu **slots = wr_mas->slots; in mas_wr_slot_store() local 4001 slots = wr_mas->slots; in mas_wr_append() 5250 return slots; in mte_dead_walk() [all …]
|
| /linux/arch/arm64/kernel/ |
| 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/drivers/input/touchscreen/ |
| 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/arch/loongarch/kernel/ |
| A D | hw_breakpoint.c | 122 slot = &slots[i]; in hw_breakpoint_slot_setup() 180 struct perf_event **slots; in hw_breakpoint_control() local 194 slots = this_cpu_ptr(bp_on_reg); in hw_breakpoint_control() 198 slots = this_cpu_ptr(wp_on_reg); in hw_breakpoint_control() 420 struct perf_event **slots; in update_bp_registers() local 437 if (!slots[i]) in update_bp_registers() 477 struct perf_event *bp, **slots; in breakpoint_handler() local 479 slots = this_cpu_ptr(bp_on_reg); in breakpoint_handler() 483 bp = slots[i]; in breakpoint_handler() 497 struct perf_event *wp, **slots; in watchpoint_handler() local [all …]
|
| /linux/kernel/dma/ |
| 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/tools/perf/arch/arm64/util/ |
| A D | pmu.c | 30 unsigned long long slots = 0; in perf_pmu__cpu_slots_per_cycle() local 41 filename__read_ull(path, &slots); in perf_pmu__cpu_slots_per_cycle() 44 return slots ? (double)slots : NAN; in perf_pmu__cpu_slots_per_cycle()
|
| /linux/tools/testing/selftests/kvm/ |
| 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/sound/soc/bcm/ |
| 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/drivers/gpu/drm/amd/display/dc/hpo/dcn31/ |
| A D | dcn31_hpo_dp_link_encoder.c | 268 uint32_t *slots) in fill_stream_allocation_row_info() argument 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() 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/sound/soc/fsl/ |
| A D | imx-card.c | 96 unsigned int slots; member 231 if (link_data->slots > 2) in format_is_tdm() 305 slots = link_data->slots; in imx_aif_hw_params() 310 slots = 1; in imx_aif_hw_params() 315 slots = 2; in imx_aif_hw_params() 328 BIT(slots) - 1, in imx_aif_hw_params() 329 BIT(slots) - 1, in imx_aif_hw_params() 386 fs *= link_data->slots; in ak5558_hw_rule_rate() 663 &link_data->slots, in imx_card_parse_of() 666 if (!link_data->slots) in imx_card_parse_of() [all …]
|