/Linux-v4.19/mm/ |
D | swap_slots.c | 118 swp_entry_t *slots, *slots_ret; in alloc_swap_slot_cache() local 125 slots = kvcalloc(SWAP_SLOTS_CACHE_SIZE, sizeof(swp_entry_t), in alloc_swap_slot_cache() 127 if (!slots) in alloc_swap_slot_cache() 133 kvfree(slots); in alloc_swap_slot_cache() 139 if (cache->slots || cache->slots_ret) in alloc_swap_slot_cache() 157 cache->slots = slots; in alloc_swap_slot_cache() 158 slots = NULL; in alloc_swap_slot_cache() 163 if (slots) in alloc_swap_slot_cache() 164 kvfree(slots); in alloc_swap_slot_cache() 174 swp_entry_t *slots = NULL; in drain_slots_cache_cpu() local [all …]
|
/Linux-v4.19/sound/pci/ac97/ |
D | ac97_pcm.c | 327 unsigned short slots = 0; in get_pslots() local 341 slots |= (1<<AC97_SLOT_PCM_LEFT)|(1<<AC97_SLOT_PCM_RIGHT); 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() 358 slots |= (1<<AC97_SLOT_PCM_SLEFT)|(1<<AC97_SLOT_PCM_SRIGHT); in get_pslots() 360 slots |= (1<<AC97_SLOT_PCM_CENTER)|(1<<AC97_SLOT_LFE); in get_pslots() 370 slots |= (1<<AC97_SLOT_PCM_CENTER)|(1<<AC97_SLOT_LFE); in get_pslots() 376 return slots; in get_pslots() 378 unsigned short slots; in get_pslots() local 379 slots = (1<<AC97_SLOT_PCM_LEFT)|(1<<AC97_SLOT_PCM_RIGHT); in get_pslots() [all …]
|
/Linux-v4.19/drivers/input/ |
D | input-mt.c | 52 mt = kzalloc(struct_size(mt, slots, num_slots), GFP_KERNEL); in input_mt_init_slots() 93 input_mt_set_value(&mt->slots[i], ABS_MT_TRACKING_ID, -1); in input_mt_init_slots() 147 slot = &mt->slots[mt->slot]; in input_mt_report_slot_state() 212 struct input_mt_slot *ps = &mt->slots[i]; in input_mt_report_pointer_emulation() 266 if (!input_mt_is_used(mt, &mt->slots[i])) { in __input_mt_drop_unused() 372 for (s = mt->slots; s != mt->slots + mt->num_slots; s++) { in input_mt_set_matrix() 387 int *slots, int num_pos) in input_mt_set_slots() argument 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() [all …]
|
/Linux-v4.19/arch/ia64/scripts/ |
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-v4.19/drivers/misc/mei/ |
D | interrupt.c | 173 int slots; in mei_cl_irq_disconnect_rsp() local 177 slots = mei_hbuf_empty_slots(dev); in mei_cl_irq_disconnect_rsp() 178 if (slots < 0) in mei_cl_irq_disconnect_rsp() 181 if ((u32)slots < msg_slots) in mei_cl_irq_disconnect_rsp() 205 int slots; in mei_cl_irq_read() local 212 slots = mei_hbuf_empty_slots(dev); in mei_cl_irq_read() 213 if (slots < 0) in mei_cl_irq_read() 216 if ((u32)slots < msg_slots) in mei_cl_irq_read() 264 struct list_head *cmpl_list, s32 *slots) in mei_irq_read_handler() argument 272 (*slots)--; in mei_irq_read_handler() [all …]
|
/Linux-v4.19/fs/btrfs/ |
D | file-item.c | 55 item = btrfs_item_ptr(leaf, path->slots[0], in btrfs_insert_file_extent() 99 if (path->slots[0] == 0) in btrfs_lookup_csum() 101 path->slots[0]--; in btrfs_lookup_csum() 102 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_lookup_csum() 108 csums_in_item = btrfs_item_size_nr(leaf, path->slots[0]); in btrfs_lookup_csum() 118 item = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_csum_item); in btrfs_lookup_csum() 251 path->slots[0]); in __btrfs_lookup_bio_sums() 255 path->slots[0]); in __btrfs_lookup_bio_sums() 259 item = btrfs_item_ptr(path->nodes[0], path->slots[0], in __btrfs_lookup_bio_sums() 338 if (ret > 0 && path->slots[0] > 0) { in btrfs_lookup_csums_range() [all …]
|
D | inode-item.c | 101 if (!btrfs_find_name_in_ext_backref(path->nodes[0], path->slots[0], in btrfs_lookup_inode_extref() 145 if (!btrfs_find_name_in_ext_backref(path->nodes[0], path->slots[0], in btrfs_del_inode_extref() 154 item_size = btrfs_item_size_nr(leaf, path->slots[0]); in btrfs_del_inode_extref() 168 item_start = btrfs_item_ptr_offset(leaf, path->slots[0]); in btrfs_del_inode_extref() 216 if (!btrfs_find_name_in_backref(path->nodes[0], path->slots[0], in btrfs_del_inode_ref() 223 item_size = btrfs_item_size_nr(leaf, path->slots[0]); in btrfs_del_inode_ref() 234 item_start = btrfs_item_ptr_offset(leaf, path->slots[0]); in btrfs_del_inode_ref() 286 path->slots[0], in btrfs_insert_inode_extref() 298 item = btrfs_item_nr(path->slots[0]); in btrfs_insert_inode_extref() 299 ptr = (unsigned long)btrfs_item_ptr(leaf, path->slots[0], char); in btrfs_insert_inode_extref() [all …]
|
D | ctree.c | 111 p->slots[i] = 0; in btrfs_release_path() 1815 int orig_slot = path->slots[level]; in balance_level() 1831 pslot = path->slots[level + 1]; in balance_level() 2000 path->slots[level + 1] -= 1; in balance_level() 2001 path->slots[level] = orig_slot; in balance_level() 2008 path->slots[level] = orig_slot; in balance_level() 2013 btrfs_node_blockptr(path->nodes[level], path->slots[level])) in balance_level() 2044 int orig_slot = path->slots[level]; in push_nodes_for_insert() 2054 pslot = path->slots[level + 1]; in push_nodes_for_insert() 2097 path->slots[level + 1] -= 1; in push_nodes_for_insert() [all …]
|
D | free-space-tree.c | 65 info = btrfs_item_ptr(leaf, path->slots[0], in add_new_free_space_info() 101 return btrfs_item_ptr(path->nodes[0], path->slots[0], in search_free_space_info() 125 if (p->slots[0] == 0) { in btrfs_search_prev_slot() 129 p->slots[0]--; in btrfs_search_prev_slot() 219 path->slots[0]++; in convert_free_space_to_bitmaps() 220 while (path->slots[0] > 0) { in convert_free_space_to_bitmaps() 221 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0] - 1); in convert_free_space_to_bitmaps() 243 path->slots[0]--; in convert_free_space_to_bitmaps() 249 ret = btrfs_del_items(trans, root, path, path->slots[0], nr); in convert_free_space_to_bitmaps() 300 ptr = btrfs_item_ptr_offset(leaf, path->slots[0]); in convert_free_space_to_bitmaps() [all …]
|
D | tree-log.c | 356 path->slots[0]); in overwrite_item() 375 dst_ptr = btrfs_item_ptr_offset(path->nodes[0], path->slots[0]); in overwrite_item() 402 item = btrfs_item_ptr(path->nodes[0], path->slots[0], in overwrite_item() 450 path->slots[0]); in overwrite_item() 460 path->slots[0]); in overwrite_item() 628 existing = btrfs_item_ptr(leaf, path->slots[0], in replay_one_extent() 667 path->slots[0]); in replay_one_extent() 945 ptr = btrfs_item_ptr_offset(path->nodes[0], path->slots[0]); in backref_in_log() 949 path->slots[0], in backref_in_log() 957 item_size = btrfs_item_size_nr(path->nodes[0], path->slots[0]); in backref_in_log() [all …]
|
D | dir-item.c | 44 item = btrfs_item_nr(path->slots[0]); in insert_with_overflow() 45 ptr = btrfs_item_ptr(leaf, path->slots[0], char); in insert_with_overflow() 250 slot = path->slots[0]; in btrfs_check_dir_item_collision() 318 if (path->slots[0] >= nritems) { in btrfs_search_dir_index_item() 329 btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); in btrfs_search_dir_index_item() 338 path->slots[0]++; in btrfs_search_dir_index_item() 383 dir_item = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_dir_item); in btrfs_match_dir_item_name() 385 total_len = btrfs_item_size_nr(leaf, path->slots[0]); in btrfs_match_dir_item_name() 421 item_len = btrfs_item_size_nr(leaf, path->slots[0]); in btrfs_delete_one_dir_name() 429 start = btrfs_item_ptr_offset(leaf, path->slots[0]); in btrfs_delete_one_dir_name()
|
D | root-tree.c | 82 if (path->slots[0] == 0) in btrfs_find_root() 84 path->slots[0]--; in btrfs_find_root() 89 slot = path->slots[0]; in btrfs_find_root() 148 slot = path->slots[0]; in btrfs_update_root() 179 slot = path->slots[0]; in btrfs_update_root() 236 if (path->slots[0] >= btrfs_header_nritems(leaf)) { in btrfs_find_orphan_roots() 245 btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); in btrfs_find_orphan_roots() 370 ref = btrfs_item_ptr(leaf, path->slots[0], in btrfs_del_root_ref() 444 ref = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_root_ref); in btrfs_add_root_ref()
|
/Linux-v4.19/lib/ |
D | assoc_array.c | 56 ptr = READ_ONCE(node->slots[slot]); /* Address dependency. */ in assoc_array_subtree_iterate() 85 ptr = READ_ONCE(node->slots[slot]); /* Address dependency. */ in assoc_array_subtree_iterate() 213 ptr = READ_ONCE(node->slots[slot]); /* Address dependency. */ in assoc_array_walk() 328 ptr = READ_ONCE(node->slots[slot]); /* Address dependency. */ in assoc_array_find() 386 struct assoc_array_ptr *ptr = node->slots[slot]; in assoc_array_destroy_subtree() 466 edit->leaf_p = &new_n0->slots[0]; in assoc_array_insert_in_empty_tree() 509 ptr = node->slots[i]; in assoc_array_insert_into_terminal_node() 518 edit->leaf_p = &node->slots[i]; in assoc_array_insert_into_terminal_node() 519 edit->dead_leaf = node->slots[i]; in assoc_array_insert_into_terminal_node() 530 edit->leaf_p = &node->slots[free_slot]; in assoc_array_insert_into_terminal_node() [all …]
|
D | radix-tree.c | 109 return (parent->slots <= ptr) && in is_sibling_entry() 110 (ptr < parent->slots + RADIX_TREE_MAP_SIZE); in is_sibling_entry() 123 return parent ? slot - parent->slots : 0; in get_slot_offset() 130 void __rcu **entry = rcu_dereference_raw(parent->slots[offset]); in radix_tree_descend() 294 void *entry = node->slots[i]; in dump_node() 341 dump_ida_node(node->slots[i], in dump_ida_node() 445 memset(node->slots, 0, sizeof(node->slots)); in radix_tree_node_rcu_free() 667 node->slots[0] = (void __rcu *)entry; in radix_tree_extend() 700 child = rcu_dereference_raw(node->slots[0]); in radix_tree_shrink() 740 node->slots[0] = (void __rcu *)RADIX_TREE_RETRY; in radix_tree_shrink() [all …]
|
/Linux-v4.19/arch/arm64/kernel/ |
D | hw_breakpoint.c | 199 static int hw_breakpoint_slot_setup(struct perf_event **slots, int max_slots, in hw_breakpoint_slot_setup() argument 207 slot = &slots[i]; in hw_breakpoint_slot_setup() 237 struct perf_event **slots; in hw_breakpoint_control() local 247 slots = this_cpu_ptr(bp_on_reg); in hw_breakpoint_control() 254 slots = this_cpu_ptr(wp_on_reg); in hw_breakpoint_control() 259 i = hw_breakpoint_slot_setup(slots, max_slots, bp, ops); in hw_breakpoint_control() 590 struct perf_event **slots; in toggle_bp_registers() local 594 slots = this_cpu_ptr(bp_on_reg); in toggle_bp_registers() 598 slots = this_cpu_ptr(wp_on_reg); in toggle_bp_registers() 606 if (!slots[i]) in toggle_bp_registers() [all …]
|
/Linux-v4.19/drivers/input/touchscreen/ |
D | penmount.c | 62 struct mt_slot slots[PM_MAX_MTSLOT]; member 77 pm->slots[i].active); in pm_mtevent() 78 if (pm->slots[i].active) { in pm_mtevent() 79 input_event(input, EV_ABS, ABS_MT_POSITION_X, pm->slots[i].x); in pm_mtevent() 80 input_event(input, EV_ABS, ABS_MT_POSITION_Y, pm->slots[i].y); in pm_mtevent() 140 pm->slots[slotnum].active = pm->data[0] & 0x30; in pm_parse_3000() 141 pm->slots[slotnum].x = pm->data[2] * 256 + pm->data[1]; in pm_parse_3000() 142 pm->slots[slotnum].y = pm->data[4] * 256 + pm->data[3]; in pm_parse_3000() 156 pm->slots[slotnum].active = pm->data[0] & 0x40; in pm_parse_6250() 157 pm->slots[slotnum].x = pm->data[2] * 256 + pm->data[1]; in pm_parse_6250() [all …]
|
/Linux-v4.19/sound/soc/bcm/ |
D | bcm2835-i2s.c | 259 int slots, int width) in bcm2835_i2s_set_dai_tdm_slot() argument 263 if (slots) { in bcm2835_i2s_set_dai_tdm_slot() 264 if (slots < 0 || width < 0) in bcm2835_i2s_set_dai_tdm_slot() 268 rx_mask &= GENMASK(slots - 1, 0); in bcm2835_i2s_set_dai_tdm_slot() 269 tx_mask &= GENMASK(slots - 1, 0); in bcm2835_i2s_set_dai_tdm_slot() 279 if (slots * width > BCM2835_I2S_MAX_FRAME_LENGTH) in bcm2835_i2s_set_dai_tdm_slot() 283 dev->tdm_slots = slots; in bcm2835_i2s_set_dai_tdm_slot() 288 dev->frame_length = slots * width; in bcm2835_i2s_set_dai_tdm_slot() 343 unsigned int slots, slot_width, odd_slot_offset; in bcm2835_i2s_hw_params() local 369 slots = dev->tdm_slots; in bcm2835_i2s_hw_params() [all …]
|
/Linux-v4.19/drivers/dma/ioat/ |
D | dca.c | 236 int slots = 0; in ioat_dca_count_dca_slots() local 245 req = readl(iobase + global_req_table + (slots * sizeof(u32))); in ioat_dca_count_dca_slots() 246 slots++; in ioat_dca_count_dca_slots() 249 return slots; in ioat_dca_count_dca_slots() 273 int slots; in ioat_dca_init() local 296 slots = ioat_dca_count_dca_slots(iobase, dca_offset); in ioat_dca_init() 297 if (slots == 0) in ioat_dca_init() 302 + (sizeof(struct ioat_dca_slot) * slots)); in ioat_dca_init() 309 ioatdca->max_requesters = slots; in ioat_dca_init()
|
/Linux-v4.19/kernel/events/ |
D | hw_breakpoint.c | 146 fetch_bp_busy_slots(struct bp_busy_slots *slots, struct perf_event *bp, in fetch_bp_busy_slots() argument 162 if (nr > slots->pinned) in fetch_bp_busy_slots() 163 slots->pinned = nr; in fetch_bp_busy_slots() 166 if (nr > slots->flexible) in fetch_bp_busy_slots() 167 slots->flexible = nr; in fetch_bp_busy_slots() 177 fetch_this_slot(struct bp_busy_slots *slots, int weight) in fetch_this_slot() argument 179 slots->pinned += weight; in fetch_this_slot() 283 struct bp_busy_slots slots = {0}; in __reserve_bp_slot() local 299 fetch_bp_busy_slots(&slots, bp, type); in __reserve_bp_slot() 304 fetch_this_slot(&slots, weight); in __reserve_bp_slot() [all …]
|
/Linux-v4.19/arch/arm/kernel/ |
D | hw_breakpoint.c | 336 struct perf_event **slot, **slots; in arch_install_hw_breakpoint() local 347 slots = this_cpu_ptr(bp_on_reg); in arch_install_hw_breakpoint() 353 slots = this_cpu_ptr(wp_on_reg); in arch_install_hw_breakpoint() 358 slot = &slots[i]; in arch_install_hw_breakpoint() 393 struct perf_event **slot, **slots; in arch_uninstall_hw_breakpoint() local 399 slots = this_cpu_ptr(bp_on_reg); in arch_uninstall_hw_breakpoint() 404 slots = this_cpu_ptr(wp_on_reg); in arch_uninstall_hw_breakpoint() 410 slot = &slots[i]; in arch_uninstall_hw_breakpoint() 696 struct perf_event *wp, **slots; in watchpoint_handler() local 700 slots = this_cpu_ptr(wp_on_reg); in watchpoint_handler() [all …]
|
/Linux-v4.19/arch/ia64/include/uapi/asm/ |
D | rse.h | 48 unsigned long slots = (bsp - bspstore); in ia64_rse_num_regs() local 50 return slots - (ia64_rse_slot_num(bspstore) + slots)/0x40; in ia64_rse_num_regs()
|
/Linux-v4.19/net/sched/ |
D | sch_sfq.c | 131 struct sfq_slot *slots; /* Flows table ('maxflows' entries) */ member 157 return &q->slots[val].dep; in sfq_dep_head() 210 struct sfq_slot *slot = &q->slots[x]; in sfq_link() 225 n = q->slots[x].dep.next; \ 226 p = q->slots[x].dep.prev; \ 239 d = q->slots[x].qlen--; in sfq_dec() 252 d = ++q->slots[x].qlen; in sfq_inc() 308 slot = &q->slots[x]; in sfq_drop() 323 slot = &q->slots[x]; in sfq_drop() 370 slot = &q->slots[x]; in sfq_enqueue() [all …]
|
/Linux-v4.19/arch/arm/mach-omap1/ |
D | devices.c | 96 if (mmc_controller->slots[0].wires == 4 && !cpu_is_omap7xx()) { in omap1_mmc_mux() 99 if (!mmc_controller->slots[0].nomux) in omap1_mmc_mux() 107 if (!mmc_controller->slots[1].nomux) { in omap1_mmc_mux() 112 if (mmc_controller->slots[1].wires == 4) { in omap1_mmc_mux() 163 data->slots[0].features = MMC_OMAP7XX; in omap_mmc_add() 165 data->slots[0].features = MMC_OMAP15XX; in omap_mmc_add() 167 data->slots[0].features = MMC_OMAP16XX; in omap_mmc_add()
|
/Linux-v4.19/drivers/pci/hotplug/ |
D | ibmphp_ebda.c | 66 struct ebda_hpc_slot *slots; in alloc_ebda_hpc() local 73 slots = kcalloc(slot_count, sizeof(struct ebda_hpc_slot), GFP_KERNEL); in alloc_ebda_hpc() 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() 198 debug("%s - physical slot#: %x\n", __func__, hpc_ptr->slots[index].slot_num); in print_ebda_hpc() 199 debug("%s - pci bus# of the slot: %x\n", __func__, hpc_ptr->slots[index].slot_bus_num); in print_ebda_hpc() 200 debug("%s - index into ctlr addr: %x\n", __func__, hpc_ptr->slots[index].ctl_index); in print_ebda_hpc() 201 debug("%s - cap of the slot: %x\n", __func__, hpc_ptr->slots[index].slot_cap); in print_ebda_hpc() [all …]
|
/Linux-v4.19/sound/soc/meson/ |
D | axg-tdm-interface.c | 22 unsigned int slots = 0; in axg_tdm_slots_total() local 30 slots += hweight32(mask[i]); in axg_tdm_slots_total() 32 return slots; in axg_tdm_slots_total() 36 u32 *rx_mask, unsigned int slots, in axg_tdm_set_tdm_slots() argument 69 iface->slots = slots; in axg_tdm_set_tdm_slots() 251 srate = iface->slots * iface->slot_width * params_rate(params); in axg_tdm_iface_set_sclk() 294 if (iface->slots > 2) { in axg_tdm_iface_hw_params() 296 iface->slots); in axg_tdm_iface_hw_params()
|