/linux-master/tools/perf/arch/arm64/util/ |
H A D | pmu.c | 30 unsigned long long slots = 0; local 35 pmu->name, "caps/slots"); 37 * The value of slots is not greater than 32 bits, but 41 filename__read_ull(path, &slots); 44 return slots ? (double)slots : NAN;
|
/linux-master/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-master/mm/ |
H A D | swap_slots.c | 3 * Manage cache of swap slots to be used for and returned from 10 * We allocate the swap slots from the global pool and put 17 * lock. We do not reuse the returned slots directly but 19 * allows the slots to coalesce and reduce fragmentation. 25 * The swap slots cache is protected by a mutex instead of 26 * a spin lock as when we search for slots with scan_swap_map, 43 /* Serialize swap slots cache enable/disable operations */ 116 swp_entry_t *slots, *slots_ret; local 123 slots = kvcalloc(SWAP_SLOTS_CACHE_SIZE, sizeof(swp_entry_t), 125 if (!slots) 172 swp_entry_t *slots = NULL; local [all...] |
H A D | z3fold.c | 83 * be enough slots to hold all possible variants 99 * @slots: pointer to the structure holding buddy slots 113 struct z3fold_buddy_slots *slots; member in struct:z3fold_header 197 struct z3fold_buddy_slots *slots = kmem_cache_zalloc(pool->c_handle, local 200 if (slots) { 202 kmemleak_not_leak(slots); 203 slots->pool = (unsigned long)pool; 204 rwlock_init(&slots->lock); 207 return slots; 241 struct z3fold_buddy_slots *slots; local 281 struct z3fold_buddy_slots *slots; local 323 struct z3fold_buddy_slots *slots; local 371 __encode_handle(struct z3fold_header *zhdr, struct z3fold_buddy_slots *slots, enum buddy bud) argument 405 struct z3fold_buddy_slots *slots = handle_to_slots(handle); local 422 struct z3fold_buddy_slots *slots = handle_to_slots(handle); local [all...] |
/linux-master/tools/testing/selftests/kvm/lib/ |
H A D | memstress.c | 125 uint64_t vcpu_memory_bytes, int slots, 154 TEST_ASSERT(guest_num_pages % slots == 0, 155 "Guest memory cannot be evenly divided into %d slots.", 156 slots); 207 /* Add extra memory slots for testing */ 208 for (i = 0; i < slots; i++) { 209 uint64_t region_pages = guest_num_pages / slots; 322 static void toggle_dirty_logging(struct kvm_vm *vm, int slots, bool enable) argument 326 for (i = 0; i < slots; i++) { 334 void memstress_enable_dirty_logging(struct kvm_vm *vm, int slots) argument 124 memstress_create_vm(enum vm_guest_mode mode, int nr_vcpus, uint64_t vcpu_memory_bytes, int slots, enum vm_mem_backing_src_type backing_src, bool partition_vcpu_memory_access) argument 339 memstress_disable_dirty_logging(struct kvm_vm *vm, int slots) argument 344 memstress_get_dirty_log(struct kvm_vm *vm, unsigned long *bitmaps[], int slots) argument 355 memstress_clear_dirty_log(struct kvm_vm *vm, unsigned long *bitmaps[], int slots, uint64_t pages_per_slot) argument 367 memstress_alloc_bitmaps(int slots, uint64_t pages_per_slot) argument 383 memstress_free_bitmaps(unsigned long *bitmaps[], int slots) argument [all...] |
/linux-master/drivers/input/ |
H A D | input-mt.c | 25 * input_mt_init_slots() - initialize MT input slots 27 * @num_slots: number of slots used by the device 37 * reinitialize with a different number of slots. 50 mt = kzalloc(struct_size(mt, slots, num_slots), GFP_KERNEL); 89 /* Mark slots as 'inactive' */ 91 input_mt_set_value(&mt->slots[i], ABS_MT_TRACKING_ID, -1); 93 /* Mark slots as 'unused' */ 105 * input_mt_destroy_slots() - frees the MT slots of the input device 106 * @dev: input device with allocated MT slots 109 * automatically free the MT slots whe 426 input_mt_set_slots(struct input_mt *mt, int *slots, int num_pos) argument 480 input_mt_assign_slots(struct input_dev *dev, int *slots, const struct input_mt_pos *pos, int num_pos, int dmax) argument [all...] |
/linux-master/sound/pci/ac97/ |
H A D | ac97_pcm.c | 295 * slots 7+8 312 unsigned short slots = 0; local 326 slots |= (1<<AC97_SLOT_PCM_LEFT)|(1<<AC97_SLOT_PCM_RIGHT); 328 slots |= (1<<AC97_SLOT_PCM_SLEFT)|(1<<AC97_SLOT_PCM_SRIGHT); 330 slots |= (1<<AC97_SLOT_PCM_CENTER)|(1<<AC97_SLOT_LFE); 343 slots |= (1<<AC97_SLOT_PCM_SLEFT)|(1<<AC97_SLOT_PCM_SRIGHT); 345 slots |= (1<<AC97_SLOT_PCM_CENTER)|(1<<AC97_SLOT_LFE); 355 slots |= (1<<AC97_SLOT_PCM_CENTER)|(1<<AC97_SLOT_LFE); 361 return slots; 363 unsigned short slots; local 384 unsigned short slots; local 393 get_rates(struct ac97_pcm *pcm, unsigned int cidx, unsigned short slots, int dbl) argument 440 unsigned short tmp, slots; local 555 snd_ac97_pcm_open(struct ac97_pcm *pcm, unsigned int rate, enum ac97_pcm_cfg cfg, unsigned short slots) argument 649 unsigned short slots = pcm->aslots; local [all...] |
/linux-master/include/linux/ |
H A D | swap_slots.h | 15 struct mutex alloc_lock; /* protects slots, nr, cur */ 16 swp_entry_t *slots; member in struct:swap_slots_cache
|
/linux-master/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_mes_ctx.h | 68 struct amdgpu_wb_slot slots[AMDGPU_MES_CTX_MAX_OFFS]; member in struct:amdgpu_mes_ctx_meta_data::__anon37 82 struct amdgpu_wb_slot slots[AMDGPU_MES_CTX_MAX_OFFS]; member in struct:amdgpu_mes_ctx_meta_data::__anon38 97 struct amdgpu_wb_slot slots[AMDGPU_MES_CTX_MAX_OFFS]; member in struct:amdgpu_mes_ctx_meta_data::__anon39
|
/linux-master/drivers/misc/mei/ |
H A D | dma-ring.c | 125 * @offset: offset in slots. 126 * @n: number of slots to copy. 147 * @offset: offset in slots. 148 * @n: number of slots to copy. 175 u32 rd_idx, rem, slots; local 187 slots = mei_data2slots(len); 193 if (rd_idx + slots > dbuf_depth) { 195 rem = slots - (dbuf_depth - rd_idx); 198 rem = slots; 203 WRITE_ONCE(ctrl->dbuf_rd_idx, ctrl->dbuf_rd_idx + slots); 252 u32 wr_idx, rem, slots; local [all...] |
H A D | interrupt.c | 259 int slots; local 263 slots = mei_hbuf_empty_slots(dev); 264 if (slots < 0) 267 if ((u32)slots < msg_slots) 291 int slots; local 298 slots = mei_hbuf_empty_slots(dev); 299 if (slots < 0) 302 if ((u32)slots < msg_slots) 356 * @slots: slots t 360 mei_irq_read_handler(struct mei_device *dev, struct list_head *cmpl_list, s32 *slots) argument 513 s32 slots; local [all...] |
/linux-master/fs/btrfs/ |
H A D | inode-item.c | 101 return btrfs_find_name_in_ext_backref(path->nodes[0], path->slots[0], 141 extref = btrfs_find_name_in_ext_backref(path->nodes[0], path->slots[0], 150 item_size = btrfs_item_size(leaf, path->slots[0]); 164 item_start = btrfs_item_ptr_offset(leaf, path->slots[0]); 210 ref = btrfs_find_name_in_backref(path->nodes[0], path->slots[0], name); 217 item_size = btrfs_item_size(leaf, path->slots[0]); 228 item_start = btrfs_item_ptr_offset(leaf, path->slots[0]); 279 path->slots[0], 291 ptr = (unsigned long)btrfs_item_ptr(leaf, path->slots[0], char); 292 ptr += btrfs_item_size(leaf, path->slots[ [all...] |
H A D | file-item.c | 180 item = btrfs_item_ptr(leaf, path->slots[0], 224 if (path->slots[0] == 0) 226 path->slots[0]--; 227 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); 233 csums_in_item = btrfs_item_size(leaf, path->slots[0]); 243 item = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_csum_item); 297 item = btrfs_item_ptr(path->nodes[0], path->slots[0], 299 btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]); 300 itemsize = btrfs_item_size(path->nodes[0], path->slots[0]); 317 btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[ [all...] |
/linux-master/drivers/firmware/efi/libstub/ |
H A D | randomalloc.c | 13 * Return the number of slots covered by this entry, i.e., the number of 77 /* count the suitable slots in each memory map entry */ 80 unsigned long slots; local 82 slots = get_entry_num_slots(md, size, ilog2(align), alloc_min, 84 MD_NUM_SLOTS(md) = slots; 85 total_slots += slots; 87 total_mirrored_slots += slots; 90 /* consider only mirrored slots for randomization if any exist */ 99 * it corresponds with exactly one of the suitable slots we recorded 103 * slots o [all...] |
/linux-master/tools/testing/selftests/hid/tests/ |
H A D | test_multitouch.py | 153 def event(self, slots, global_data=None, contact_count=None, incr_scantime=True): 157 # make sure we have only the required number of available slots 158 slots = slots[: self.max_contacts] 163 global_data.contactcount = len(slots) 168 while len(slots): 170 application=self.cur_application, data=slots, global_data=global_data 261 slots=None, 282 if slots is None: 283 slots [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 161 """Send 2 touches in the first 2 slots. 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 181 assert evdev.slots[1][libevdev.EV_ABS.ABS_MT_TRACKING_ID] == -1 194 assert evdev.slots[ [all...] |
/linux-master/lib/ |
H A D | assoc_array.c | 52 ptr = READ_ONCE(node->slots[slot]); /* Address dependency. */ 81 ptr = READ_ONCE(node->slots[slot]); /* Address dependency. */ 209 ptr = READ_ONCE(node->slots[slot]); /* Address dependency. */ 324 ptr = READ_ONCE(node->slots[slot]); /* Address dependency. */ 382 struct assoc_array_ptr *ptr = node->slots[slot]; 462 edit->leaf_p = &new_n0->slots[0]; 505 ptr = node->slots[i]; 514 edit->leaf_p = &node->slots[i]; 515 edit->dead_leaf = node->slots[i]; 526 edit->leaf_p = &node->slots[free_slo [all...] |
/linux-master/arch/arm64/kernel/ |
H A D | hw_breakpoint.c | 179 * @slots: pointer to array of slots 180 * @max_slots: max number of slots 189 static int hw_breakpoint_slot_setup(struct perf_event **slots, int max_slots, argument 197 slot = &slots[i]; 227 struct perf_event **slots; local 237 slots = this_cpu_ptr(bp_on_reg); 244 slots = this_cpu_ptr(wp_on_reg); 249 i = hw_breakpoint_slot_setup(slots, max_slots, bp, ops); 585 struct perf_event **slots; local 627 struct perf_event *bp, **slots; local 762 struct perf_event *wp, **slots; local 945 struct perf_event **slots; local [all...] |
/linux-master/arch/loongarch/kernel/ |
H A D | hw_breakpoint.c | 104 * @slots: pointer to array of slots 105 * @max_slots: max number of slots 115 static int hw_breakpoint_slot_setup(struct perf_event **slots, int max_slots, argument 122 slot = &slots[i]; 179 struct perf_event **slots; local 184 slots = this_cpu_ptr(bp_on_reg); 188 slots = this_cpu_ptr(wp_on_reg); 192 i = hw_breakpoint_slot_setup(slots, max_slots, bp, ops); 412 struct perf_event **slots; local 469 struct perf_event *bp, **slots; local 486 struct perf_event *wp, **slots; local [all...] |
/linux-master/arch/mips/sni/ |
H A D | eisa.c | 27 .slots = EISA_MAX_SLOTS,
|
/linux-master/sound/soc/ux500/ |
H A D | ux500_msp_dai.h | 52 int slots; member in struct:ux500_msp_i2s_drvdata
|
/linux-master/arch/arm/mach-omap1/ |
H A D | board-sx1-mmc.c | 41 .slots[0] = {
|
/linux-master/drivers/dma/ioat/ |
H A D | dca.c | 214 int slots = 0; local 223 req = readl(iobase + global_req_table + (slots * sizeof(u32))); 224 slots++; 227 return slots; 251 int slots; local 274 slots = ioat_dca_count_dca_slots(iobase, dca_offset); 275 if (slots == 0) 279 struct_size(ioatdca, req_slots, slots)); 286 ioatdca->max_requesters = slots;
|
/linux-master/drivers/input/touchscreen/ |
H A D | penmount.c | 58 struct mt_slot slots[PM_MAX_MTSLOT]; member in struct:pm 73 pm->slots[i].active); 74 if (pm->slots[i].active) { 75 input_event(input, EV_ABS, ABS_MT_POSITION_X, pm->slots[i].x); 76 input_event(input, EV_ABS, ABS_MT_POSITION_Y, pm->slots[i].y); 136 pm->slots[slotnum].active = pm->data[0] & 0x30; 137 pm->slots[slotnum].x = pm->data[2] * 256 + pm->data[1]; 138 pm->slots[slotnum].y = pm->data[4] * 256 + pm->data[3]; 152 pm->slots[slotnum].active = pm->data[0] & 0x40; 153 pm->slots[slotnu [all...] |
/linux-master/tools/testing/selftests/kvm/ |
H A D | dirty_log_perf_test.c | 131 int slots; member in struct:test_params 153 p->slots, p->backing_src, 161 pages_per_slot = host_num_pages / p->slots; 163 bitmaps = memstress_alloc_bitmaps(p->slots, pages_per_slot); 204 memstress_enable_dirty_logging(vm, p->slots); 233 memstress_get_dirty_log(vm, bitmaps, p->slots); 242 memstress_clear_dirty_log(vm, bitmaps, p->slots, 262 memstress_disable_dirty_logging(vm, p->slots); 287 memstress_free_bitmaps(bitmaps, p->slots); 343 .slots [all...] |