Home
last modified time | relevance | path

Searched refs:slots (Results 1 – 25 of 409) sorted by relevance

12345678910>>...17

/linux/sound/pci/ac97/
H A Dac97_pcm.c311 unsigned short slots = 0; in get_pslots() local
325 slots |= (1<<AC97_SLOT_PCM_LEFT)|(1<<AC97_SLOT_PCM_RIGHT); in get_pslots()
327 slots |= (1<<AC97_SLOT_PCM_SLEFT)|(1<<AC97_SLOT_PCM_SRIGHT); in get_pslots()
329 slots |= (1<<AC97_SLOT_PCM_CENTER)|(1<<AC97_SLOT_LFE); in get_pslots()
342 slots |= (1<<AC97_SLOT_PCM_SLEFT)|(1<<AC97_SLOT_PCM_SRIGHT); in get_pslots()
344 slots |= (1<<AC97_SLOT_PCM_CENTER)|(1<<AC97_SLOT_LFE); in get_pslots()
354 slots |= (1<<AC97_SLOT_PCM_CENTER)|(1<<AC97_SLOT_LFE); in get_pslots()
360 return slots; in get_pslots()
362 unsigned short slots; in get_pslots() local
363 slots = (1<<AC97_SLOT_PCM_LEFT)|(1<<AC97_SLOT_PCM_RIGHT); in get_pslots()
[all …]
/linux/drivers/input/
H A Dinput-mt.c53 kzalloc_flex(*mt, slots, num_slots); in input_mt_init_slots()
94 input_mt_set_value(&mt->slots[i], ABS_MT_TRACKING_ID, -1); in input_mt_init_slots()
145 slot = &mt->slots[mt->slot]; in input_mt_report_slot_state()
211 struct input_mt_slot *ps = &mt->slots[i]; in input_mt_report_pointer_emulation()
272 if (input_mt_is_active(&mt->slots[i]) && in __input_mt_drop_unused()
273 !input_mt_is_used(mt, &mt->slots[i])) { in __input_mt_drop_unused()
411 for (s = mt->slots; s != mt->slots + mt->num_slots; s++) { in input_mt_set_matrix()
426 int *slots, int num_pos) in input_mt_set_slots() argument
432 slots[j] = -1; in input_mt_set_slots()
434 for (s = mt->slots; s != mt->slots + mt->num_slots; s++) { in input_mt_set_slots()
[all …]
/linux/tools/testing/selftests/kvm/lib/
H A Dmemstress.c125 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()
209 uint64_t region_pages = guest_num_pages / slots; in memstress_create_vm()
322 static void toggle_dirty_logging(struct kvm_vm *vm, int slots, bool enable) in toggle_dirty_logging() argument
326 for (i = 0; i < slots; i++) { in toggle_dirty_logging()
334 void memstress_enable_dirty_logging(struct kvm_vm *vm, int slots) in memstress_enable_dirty_logging() argument
336 toggle_dirty_logging(vm, slots, true); in memstress_enable_dirty_logging()
339 void memstress_disable_dirty_logging(struct kvm_vm *vm, int slots) in memstress_disable_dirty_logging() argument
[all …]
/linux/fs/btrfs/
H A Dfile-item.c182 item = btrfs_item_ptr(leaf, path->slots[0], in btrfs_insert_hole_extent()
223 if (path->slots[0] == 0) in btrfs_lookup_csum()
225 path->slots[0]--; in btrfs_lookup_csum()
226 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_lookup_csum()
232 csums_in_item = btrfs_item_size(leaf, path->slots[0]); in btrfs_lookup_csum()
242 item = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_csum_item); in btrfs_lookup_csum()
296 item = btrfs_item_ptr(path->nodes[0], path->slots[0], in search_csum_tree()
298 btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]); in search_csum_tree()
299 itemsize = btrfs_item_size(path->nodes[0], path->slots[0]); in search_csum_tree()
316 btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]); in search_csum_tree()
[all …]
H A Dfiemap.c313 path->slots[0]++; in fiemap_next_leaf_item()
314 if (path->slots[0] < btrfs_header_nritems(path->nodes[0])) in fiemap_next_leaf_item()
333 btrfs_item_key_to_cpu(path->nodes[0], &key, 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()
388 btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0] - 1); in fiemap_search_slot()
390 path->slots[0]--; in fiemap_search_slot()
393 if (path->slots[0] >= btrfs_header_nritems(path->nodes[0])) { in fiemap_search_slot()
398 btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]); in fiemap_search_slot()
[all …]
H A Dverity.c139 if (path->slots[0] == 0) in drop_verity_items()
141 path->slots[0]--; in drop_verity_items()
147 btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]); in drop_verity_items()
159 ret = btrfs_del_items(trans, root, path, path->slots[0], 1); in drop_verity_items()
252 data = btrfs_item_ptr(leaf, path->slots[0], void); in write_key_bytes()
321 if (path->slots[0] == 0) in read_key_bytes()
323 path->slots[0]--; in read_key_bytes()
328 btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); in read_key_bytes()
333 item_end = btrfs_item_size(leaf, path->slots[0]) + key.offset; in read_key_bytes()
369 data = btrfs_item_ptr(leaf, path->slots[0], void); in read_key_bytes()
[all …]
/linux/tools/testing/selftests/hid/tests/
H A Dtest_multitouch.py154 def event(self, slots, global_data=None, contact_count=None, incr_scantime=True): argument
159 slots = slots[: self.max_contacts]
164 global_data.contactcount = len(slots)
169 while len(slots):
171 application=self.cur_application, data=slots, global_data=global_data
265 slots=None, argument
286 if slots is None:
287 slots = [Data()]
289 return super().event(slots, global_data, contact_count, incr_scantime)
554 assert evdev.slots[0][libevdev.EV_ABS.ABS_MT_TRACKING_ID] == -1
[all …]
H A Dtest_sony.py150 assert evdev.slots[0][libevdev.EV_ABS.ABS_MT_TRACKING_ID] == 0
151 assert evdev.slots[0][libevdev.EV_ABS.ABS_MT_POSITION_X] == 50
152 assert evdev.slots[0][libevdev.EV_ABS.ABS_MT_POSITION_Y] == 100
159 assert evdev.slots[0][libevdev.EV_ABS.ABS_MT_TRACKING_ID] == -1
179 assert evdev.slots[0][libevdev.EV_ABS.ABS_MT_TRACKING_ID] == 0
180 assert evdev.slots[0][libevdev.EV_ABS.ABS_MT_POSITION_X] == 50
181 assert evdev.slots[0][libevdev.EV_ABS.ABS_MT_POSITION_Y] == 100
182 assert evdev.slots[1][libevdev.EV_ABS.ABS_MT_TRACKING_ID] == -1
195 assert evdev.slots[0][libevdev.EV_ABS.ABS_MT_TRACKING_ID] == 0
196 assert evdev.slots[0][libevdev.EV_ABS.ABS_MT_POSITION_X] == 50
[all …]
/linux/lib/
H A Dassoc_array.c52 ptr = READ_ONCE(node->slots[slot]); /* Address dependency. */ in assoc_array_subtree_iterate()
81 ptr = READ_ONCE(node->slots[slot]); /* Address dependency. */ in assoc_array_subtree_iterate()
209 ptr = READ_ONCE(node->slots[slot]); /* Address dependency. */ in assoc_array_walk()
324 ptr = READ_ONCE(node->slots[slot]); /* Address dependency. */ in assoc_array_find()
382 struct assoc_array_ptr *ptr = node->slots[slot]; in assoc_array_destroy_subtree()
462 edit->leaf_p = &new_n0->slots[0]; in assoc_array_insert_in_empty_tree()
505 ptr = node->slots[i]; in assoc_array_insert_into_terminal_node()
514 edit->leaf_p = &node->slots[i]; in assoc_array_insert_into_terminal_node()
515 edit->dead_leaf = node->slots[i]; in assoc_array_insert_into_terminal_node()
526 edit->leaf_p = &node->slots[free_slot]; in assoc_array_insert_into_terminal_node()
[all …]
H A Dmaple_tree.c734 void __rcu **slots, unsigned char offset) in mt_slot() argument
736 return rcu_dereference_check(slots[offset], mt_locked(mt)); in mt_slot()
740 void __rcu **slots, unsigned char offset) in mt_slot_locked() argument
742 return rcu_dereference_protected(slots[offset], mt_write_locked(mt)); in mt_slot_locked()
753 void __rcu **slots, unsigned char offset) in mas_slot_locked() argument
755 return mt_slot_locked(mas->tree, slots, offset); in mas_slot_locked()
766 static __always_inline void *mas_slot(struct ma_state *mas, void __rcu **slots, in mas_slot() argument
769 return mt_slot(mas->tree, slots, offset); in mas_slot()
837 void __rcu **slots; in mt_clear_meta() local
844 slots = mn->mr64.slot; in mt_clear_meta()
[all …]
/linux/tools/testing/selftests/futex/functional/
H A Dfutex_priv_hash.c32 static int futex_hash_slots_set(unsigned int slots) in futex_hash_slots_set() argument
34 return prctl(PR_FUTEX_HASH, PR_FUTEX_HASH_SET_SLOTS, slots, 0); in futex_hash_slots_set()
42 static void futex_hash_slots_set_verify(int slots) in futex_hash_slots_set_verify() argument
46 ret = futex_hash_slots_set(slots); in futex_hash_slots_set_verify()
48 ksft_test_result_fail("Failed to set slots to %d: %m\n", slots); in futex_hash_slots_set_verify()
52 if (ret != slots) { in futex_hash_slots_set_verify()
54 slots, ret); in futex_hash_slots_set_verify()
57 ksft_test_result_pass("SET and GET slots %d passed\n", slots); in futex_hash_slots_set_verify()
60 static void futex_hash_slots_set_must_fail(int slots) in futex_hash_slots_set_must_fail() argument
64 ret = futex_hash_slots_set(slots); in futex_hash_slots_set_must_fail()
[all …]
/linux/tools/testing/selftests/kvm/include/
H A Dmemstress.h59 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/drivers/misc/mei/
H A Dinterrupt.c258 int slots; in mei_cl_irq_disconnect_rsp() local
262 slots = mei_hbuf_empty_slots(dev); in mei_cl_irq_disconnect_rsp()
263 if (slots < 0) in mei_cl_irq_disconnect_rsp()
266 if ((u32)slots < msg_slots) in mei_cl_irq_disconnect_rsp()
290 int slots; in mei_cl_irq_read() local
297 slots = mei_hbuf_empty_slots(dev); in mei_cl_irq_read()
298 if (slots < 0) in mei_cl_irq_read()
301 if ((u32)slots < msg_slots) in mei_cl_irq_read()
359 struct list_head *cmpl_list, s32 *slots) in mei_irq_read_handler() argument
373 (*slots)--; in mei_irq_read_handler()
[all …]
/linux/arch/arm64/kernel/
H A Dhw_breakpoint.c190 static int hw_breakpoint_slot_setup(struct perf_event **slots, int max_slots, in hw_breakpoint_slot_setup() argument
198 slot = &slots[i]; in hw_breakpoint_slot_setup()
228 struct perf_event **slots; in hw_breakpoint_control() local
238 slots = this_cpu_ptr(bp_on_reg); in hw_breakpoint_control()
245 slots = this_cpu_ptr(wp_on_reg); in hw_breakpoint_control()
250 i = hw_breakpoint_slot_setup(slots, max_slots, bp, ops); in hw_breakpoint_control()
586 struct perf_event **slots; in toggle_bp_registers() local
590 slots = this_cpu_ptr(bp_on_reg); in toggle_bp_registers()
594 slots = this_cpu_ptr(wp_on_reg); in toggle_bp_registers()
602 if (!slots[i]) in toggle_bp_registers()
[all …]
/linux/kernel/dma/
H A Dswiotlb.c287 mem->slots[i].list = min(IO_TLB_SEGSIZE - io_tlb_offset(i), in swiotlb_init_io_tlb_pool()
289 mem->slots[i].orig_addr = INVALID_PHYS_ADDR; in swiotlb_init_io_tlb_pool()
290 mem->slots[i].alloc_size = 0; in swiotlb_init_io_tlb_pool()
291 mem->slots[i].pad_slots = 0; in swiotlb_init_io_tlb_pool()
396 alloc_size = PAGE_ALIGN(array_size(sizeof(*mem->slots), nslabs)); in swiotlb_init_remap()
397 mem->slots = memblock_alloc(alloc_size, PAGE_SIZE); in swiotlb_init_remap()
398 if (!mem->slots) { in swiotlb_init_remap()
502 mem->slots = (void *)__get_free_pages(GFP_KERNEL | __GFP_ZERO, in swiotlb_init_late()
503 get_order(array_size(sizeof(*mem->slots), nslabs))); in swiotlb_init_late()
504 if (!mem->slots) in swiotlb_init_late()
[all …]
/linux/drivers/input/touchscreen/
H A Dpenmount.c58 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/drivers/md/dm-vdo/indexer/
H A Dopen-chapter.c96 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()
/linux/sound/soc/fsl/
H A Dimx-card.c98 unsigned int slots; member
262 if (link_data->slots > 2) in format_is_tdm()
286 int slots, int slot_width) in akcodec_get_mclk_rate() argument
292 unsigned int width = slots * slot_width; in akcodec_get_mclk_rate()
335 unsigned int slots, slot_width; in imx_aif_hw_params() local
338 slots = link_data->slots; in imx_aif_hw_params()
343 slots = 1; in imx_aif_hw_params()
348 slots = 2; in imx_aif_hw_params()
360 BIT(slots) - 1, in imx_aif_hw_params()
361 BIT(slots) - 1, in imx_aif_hw_params()
[all …]
/linux/drivers/media/platform/amphion/
H A Dvdec.c58 struct vdec_frame_store_t *slots; member
309 if (addr == vdec->slots[i].addr) { in vdec_attach_frame_store()
310 if (vdec->slots[i].curr && vdec->slots[i].curr != vpu_buf) { in vdec_attach_frame_store()
312 vdec->slots[i].pend = vpu_buf; in vdec_attach_frame_store()
314 vpu_set_buffer_state(vbuf, vdec->slots[i].state); in vdec_attach_frame_store()
322 if (!vdec->slots[i].addr) { in vdec_attach_frame_store()
323 vdec->slots[i].addr = addr; in vdec_attach_frame_store()
329 new_slots = krealloc_array(vdec->slots, vdec->slot_count * 2, in vdec_attach_frame_store()
330 sizeof(*vdec->slots), in vdec_attach_frame_store()
337 vdec->slots = new_slots; in vdec_attach_frame_store()
[all …]
/linux/arch/arm/kernel/
H A Dhw_breakpoint.c329 struct perf_event **slot, **slots; in arch_install_hw_breakpoint() local
340 slots = this_cpu_ptr(bp_on_reg); in arch_install_hw_breakpoint()
346 slots = this_cpu_ptr(wp_on_reg); in arch_install_hw_breakpoint()
351 slot = &slots[i]; in arch_install_hw_breakpoint()
386 struct perf_event **slot, **slots; in arch_uninstall_hw_breakpoint() local
392 slots = this_cpu_ptr(bp_on_reg); in arch_uninstall_hw_breakpoint()
397 slots = this_cpu_ptr(wp_on_reg); in arch_uninstall_hw_breakpoint()
403 slot = &slots[i]; in arch_uninstall_hw_breakpoint()
733 struct perf_event *wp, **slots; in watchpoint_handler() local
737 slots = this_cpu_ptr(wp_on_reg); in watchpoint_handler()
[all …]
/linux/drivers/firmware/efi/libstub/
H A Drandomalloc.c87 unsigned long slots; in efi_random_alloc() local
89 slots = get_entry_num_slots(md, size, ilog2(align), alloc_min, in efi_random_alloc()
91 MD_NUM_SLOTS(md) = slots; in efi_random_alloc()
92 total_slots += slots; in efi_random_alloc()
94 total_mirrored_slots += slots; in efi_random_alloc()
/linux/sound/soc/codecs/
H A Drtq9124.c176 unsigned int rx_mask, int slots, int slot_width) in rtq9124_dai_set_tdm_slot() argument
183 dev_dbg(dev, "(slots, slot_width) = (%d, %d), (txmask, rxmask) = 0x%x, 0x%x\n", slots, in rtq9124_dai_set_tdm_slot()
186 if (slots <= 0 || slots > 16 || slot_width <= 0 || slots % 2 || slot_width % 8) { in rtq9124_dai_set_tdm_slot()
187 dev_err(dev, "Invalid slot parameter (%d, %d)\n", slots, slot_width); in rtq9124_dai_set_tdm_slot()
191 if (tx_mask && (hweight_long(tx_mask) > 2 || fls(tx_mask) > slots)) { in rtq9124_dai_set_tdm_slot()
192 dev_err(dev, "Invalid tx_mask 0x%08x, slots = %d\n", tx_mask, slots); in rtq9124_dai_set_tdm_slot()
196 if (!rx_mask || hweight_long(rx_mask) > 1 || fls(rx_mask) > slots) { in rtq9124_dai_set_tdm_slot()
197 dev_err(dev, "Invalid rx_mask 0x%08x, slots = %d\n", rx_mask, slots); in rtq9124_dai_set_tdm_slot()
211 rtq9124->tdm_slots = slots; in rtq9124_dai_set_tdm_slot()
H A Drt9123.c203 unsigned int rx_mask, int slots, int slot_width) in rt9123_dai_set_tdm_slot() argument
210 dev_dbg(dev, "(slots, slot_width) = (%d, %d), (txmask, rxmask) = 0x%x, 0x%x\n", slots, in rt9123_dai_set_tdm_slot()
213 if (slots <= 0 || slot_width <= 0 || slots % 2 || slot_width % 8 || in rt9123_dai_set_tdm_slot()
214 slots * slot_width > 256) { in rt9123_dai_set_tdm_slot()
215 dev_err(dev, "Invalid slot parameter (%d, %d)\n", slots, slot_width); in rt9123_dai_set_tdm_slot()
219 if (!rx_mask || hweight_long(rx_mask) > 1 || ffs(rx_mask) > slots) { in rt9123_dai_set_tdm_slot()
220 dev_err(dev, "Invalid rx_mask 0x%08x, slots = %d\n", rx_mask, slots); in rt9123_dai_set_tdm_slot()
[all...]
/linux/drivers/pci/hotplug/
H A Dibmphp_ebda.c66 struct ebda_hpc_slot *slots; in alloc_ebda_hpc() local
73 slots = kzalloc_objs(struct ebda_hpc_slot, slot_count); 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/net/sched/
H A Dsch_sfq.c120 struct sfq_slot *slots; /* Flows table ('maxflows' entries) */ member
146 return &q->slots[val].dep; in sfq_dep_head()
199 struct sfq_slot *slot = &q->slots[x]; in sfq_link()
214 n = q->slots[x].dep.next; \
215 p = q->slots[x].dep.prev; \
228 d = q->slots[x].qlen--; in sfq_dec()
241 d = ++q->slots[x].qlen; in sfq_inc()
297 slot = &q->slots[x]; in sfq_drop()
312 slot = &q->slots[x]; in sfq_drop()
362 slot = &q->slots[x]; in sfq_enqueue()
[all …]

12345678910>>...17