/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, 1); in refill_swap_slots_cache() [all …]
|
A D | z3fold.c | 220 if (slots) { in alloc_slots() 227 return slots; in alloc_slots() 315 if (zhdr->slots != slots) in free_handle() 320 if (slots->slot[i]) { in free_handle() 330 if (zhdr->slots == slots) in free_handle() 331 zhdr->slots = NULL; in free_handle() 401 if (!slots) in init_z3fold_page() 408 zhdr->slots = slots; in init_z3fold_page() 458 slots->slot[idx] = h; in __encode_handle() 1403 memset(slots.slot, 0, sizeof(slots.slot)); in z3fold_reclaim_page() [all …]
|
/linux/tools/testing/selftests/kvm/ |
A D | dirty_log_perf_test.c | 93 int slots; member 100 for (i = 0; i < slots; i++) { in toggle_dirty_logging() 122 for (i = 0; i < slots; i++) { in get_dirty_log() 134 for (i = 0; i < slots; i++) { in clear_dirty_log() 149 for (i = 0; i < slots; i++) { in alloc_bitmaps() 161 for (i = 0; i < slots; i++) in free_bitmaps() 185 p->slots, p->backing_src, in run_test() 227 enable_dirty_logging(vm, p->slots); in run_test() 294 free_bitmaps(bitmaps, p->slots); in run_test() 335 .slots = 1, in main() [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 | 372 for (s = mt->slots; s != mt->slots + mt->num_slots; s++) { in input_mt_set_matrix() 393 slots[j] = -1; in input_mt_set_slots() 395 for (s = mt->slots; s != mt->slots + mt->num_slots; s++) { in input_mt_set_slots() 401 slots[j] = s - mt->slots; in input_mt_set_slots() 409 for (s = mt->slots; s != mt->slots + mt->num_slots; s++) { in input_mt_set_slots() 414 if (slots[j] < 0) { in input_mt_set_slots() 415 slots[j] = s - mt->slots; in input_mt_set_slots() 483 for (s = mt->slots; s != mt->slots + mt->num_slots; s++) in input_mt_get_slot_by_key() 485 return s - mt->slots; in input_mt_get_slot_by_key() 487 for (s = mt->slots; s != mt->slots + mt->num_slots; s++) in input_mt_get_slot_by_key() [all …]
|
/linux/kernel/dma/ |
A D | swiotlb.c | 197 mem->slots[i].alloc_size = 0; in swiotlb_init_io_tlb_mem() 216 if (!mem->slots) in swiotlb_init_with_tbl() 318 if (!mem->slots) in swiotlb_late_init_with_tbl() 521 mem->slots[i].list = 0; in swiotlb_find_slots() 522 mem->slots[i].alloc_size = in swiotlb_find_slots() 527 mem->slots[i].list; i--) in swiotlb_find_slots() 528 mem->slots[i].list = ++count; in swiotlb_find_slots() 616 mem->slots[i].list = ++count; in swiotlb_release_slots() 618 mem->slots[i].alloc_size = 0; in swiotlb_release_slots() 802 mem->slots = kzalloc(array_size(sizeof(*mem->slots), nslabs), in rmem_swiotlb_device_init() [all …]
|
/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 …]
|
/linux/fs/btrfs/ |
A D | file-item.c | 202 if (path->slots[0] == 0) in btrfs_lookup_csum() 204 path->slots[0]--; in btrfs_lookup_csum() 538 path->slots[0]--; in btrfs_lookup_csums_range() 565 path->slots[0]++; in btrfs_lookup_csums_range() 597 path->slots[0]++; in btrfs_lookup_csums_range() 819 if (path->slots[0] == 0) in btrfs_del_csums() 821 path->slots[0]--; in btrfs_del_csums() 866 path->slots[0] = slot; in btrfs_del_csums() 952 slot = path->slots[0]; in find_next_csum_offset() 1057 if (path->slots[0] == 0) in btrfs_csum_file_blocks() [all …]
|
A D | inode-item.c | 142 item_size = btrfs_item_size_nr(leaf, path->slots[0]); in btrfs_del_inode_extref() 156 item_start = btrfs_item_ptr_offset(leaf, path->slots[0]); in btrfs_del_inode_extref() 211 item_size = btrfs_item_size_nr(leaf, path->slots[0]); in btrfs_del_inode_ref() 222 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 item = btrfs_item_nr(path->slots[0]); in btrfs_insert_inode_extref() 337 ref = btrfs_item_ptr(path->nodes[0], path->slots[0], in btrfs_insert_inode_ref() 347 path->slots[0], in btrfs_insert_inode_ref() 355 ref = btrfs_item_ptr(path->nodes[0], path->slots[0], in btrfs_insert_inode_ref() 411 slot = path->slots[0] - 1; in btrfs_lookup_inode() [all …]
|
A D | ctree.c | 103 p->slots[i] = 0; in btrfs_release_path() 2086 p->slots[0]--; in btrfs_search_slot_for_read() 2100 --p->slots[0]; in btrfs_search_slot_for_read() 2877 path->slots[1]++; in push_leaf_right() 3222 if (path->slots[0] == 0 || path->slots[0] == nritems) in push_for_double_split() 3953 path->slots[0]++; in btrfs_duplicate_item() 4441 path->slots[0]++; in btrfs_next_old_leaf() 4578 path->slots[0]--; in btrfs_previous_item() 4585 path->slots[0]--; in btrfs_previous_item() 4619 path->slots[0]--; in btrfs_previous_extent_item() [all …]
|
A D | free-space-tree.c | 130 if (p->slots[0] == 0) { in btrfs_search_prev_slot() 134 p->slots[0]--; in btrfs_search_prev_slot() 225 path->slots[0]++; in convert_free_space_to_bitmaps() 249 path->slots[0]--; in convert_free_space_to_bitmaps() 362 path->slots[0]++; in convert_free_space_to_extents() 392 path->slots[0]--; in convert_free_space_to_extents() 565 p->slots[0]++; in free_space_next_bitmap() 1217 path->slots[0] = 0; in clear_free_space_tree() 1358 path->slots[0]++; in remove_block_group_free_space() 1367 path->slots[0]--; in remove_block_group_free_space() [all …]
|
/linux/drivers/misc/mei/ |
A D | dma-ring.c | 171 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 D | interrupt.c | 226 int slots; in mei_cl_irq_disconnect_rsp() local 231 if (slots < 0) in mei_cl_irq_disconnect_rsp() 258 int slots; in mei_cl_irq_read() local 266 if (slots < 0) in mei_cl_irq_read() 342 (*slots)--; in mei_irq_read_handler() 358 *slots); in mei_irq_read_handler() 371 (*slots)--; in mei_irq_read_handler() 395 (*slots)--; in mei_irq_read_handler() 408 (*slots)--; in mei_irq_read_handler() 485 s32 slots; in mei_irq_write_handler() local [all …]
|
/linux/arch/ia64/scripts/ |
A D | unwcheck.py | 27 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/arch/arm64/kernel/ |
A D | hw_breakpoint.c | 196 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/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/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/dcn31/ |
A D | dcn31_hpo_dp_link_encoder.c | 266 uint32_t *slots) in fill_stream_allocation_row_info() argument 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() 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() 328 &slots); in dcn31_hpo_dp_link_enc_update_stream_allocation_table() 331 slots = 0; in dcn31_hpo_dp_link_enc_update_stream_allocation_table() 342 &slots); in dcn31_hpo_dp_link_enc_update_stream_allocation_table() [all …]
|
/linux/drivers/dma/ioat/ |
A D | dca.c | 214 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/virt/kvm/ |
A D | kvm_main.c | 860 if (!slots) in kvm_alloc_memslots() 866 return slots; in kvm_alloc_memslots() 892 if (!slots) in kvm_free_memslots() 898 kvfree(slots); in kvm_free_memslots() 1067 if (!slots) in kvm_create_vm() 1529 return slots; in kvm_dup_memslots() 1558 if (!slots) { in kvm_set_memslot() 1576 slots = install_new_memslots(kvm, as_id, slots); in kvm_set_memslot() 1624 slots = install_new_memslots(kvm, as_id, slots); in kvm_set_memslot() 1632 kvfree(slots); in kvm_set_memslot() [all …]
|
/linux/sound/soc/fsl/ |
A D | imx-card.c | 94 unsigned int slots; member 229 if (link_data->slots > 2) in format_is_tdm() 302 slots = link_data->slots; in imx_aif_hw_params() 307 slots = 1; in imx_aif_hw_params() 312 slots = 2; in imx_aif_hw_params() 325 BIT(slots) - 1, in imx_aif_hw_params() 326 BIT(slots) - 1, in imx_aif_hw_params() 378 fs *= link_data->slots; in ak5558_hw_rule_rate() 660 &link_data->slots, in imx_card_parse_of() 663 if (!link_data->slots) in imx_card_parse_of() [all …]
|
/linux/kernel/events/ |
A D | hw_breakpoint.c | 133 fetch_bp_busy_slots(struct bp_busy_slots *slots, struct perf_event *bp, in fetch_bp_busy_slots() argument 149 if (nr > slots->pinned) in fetch_bp_busy_slots() 150 slots->pinned = nr; in fetch_bp_busy_slots() 153 if (nr > slots->flexible) in fetch_bp_busy_slots() 154 slots->flexible = nr; in fetch_bp_busy_slots() 164 fetch_this_slot(struct bp_busy_slots *slots, int weight) in fetch_this_slot() argument 166 slots->pinned += weight; in fetch_this_slot() 279 struct bp_busy_slots slots = {0}; in __reserve_bp_slot() local 296 fetch_bp_busy_slots(&slots, bp, type); in __reserve_bp_slot() 301 fetch_this_slot(&slots, weight); in __reserve_bp_slot() [all …]
|
/linux/Documentation/devicetree/bindings/net/ |
A D | litex,liteeth.yaml | 41 litex,rx-slots: 42 description: Number of slots in the receive buffer 47 litex,tx-slots: 48 description: Number of slots in the transmit buffer 81 litex,rx-slots = <2>; 82 litex,tx-slots = <2>;
|
/linux/arch/arm/kernel/ |
A D | hw_breakpoint.c | 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() 402 slot = &slots[i]; in arch_uninstall_hw_breakpoint() 732 struct perf_event *wp, **slots; in watchpoint_handler() local 744 wp = slots[i]; in watchpoint_handler() 809 wp = slots[closest_match]; in watchpoint_handler() 824 struct perf_event *wp, **slots; in watchpoint_single_step_handler() local 832 wp = slots[i]; in watchpoint_single_step_handler() 857 struct perf_event *bp, **slots; in breakpoint_handler() local [all …]
|
/linux/drivers/pci/hotplug/ |
A D | ibmphp_ebda.c | 66 struct ebda_hpc_slot *slots; in alloc_ebda_hpc() local 74 if (!slots) in alloc_ebda_hpc() 76 controller->slots = slots; in alloc_ebda_hpc() 85 kfree(controller->slots); in alloc_ebda_hpc() 94 kfree(controller->slots); in free_ebda_hpc() 730 slot_ptr = hpc_ptr->slots; in ebda_rsrc_controller() 838 hpc_ptr->starting_slot_num = hpc_ptr->slots[0].slot_num; in ebda_rsrc_controller() 851 tmp_slot->capabilities = hpc_ptr->slots[index].slot_cap; in ebda_rsrc_controller() 865 tmp_slot->bus = hpc_ptr->slots[index].slot_bus_num; in ebda_rsrc_controller() 876 tmp_slot->ctlr_index = hpc_ptr->slots[index].ctl_index; in ebda_rsrc_controller() [all …]
|