/third_party/libevdev/libevdev/ |
H A D | libevdev.c | 47 struct slot_change_state changes_out[dev->num_slots]); 55 if (unlikely(slot > dev->num_slots)) { in slot_value() 56 log_bug(dev, "Slot %d exceeds number of slots (%d)\n", slot, dev->num_slots); in slot_value() 210 dev->num_slots = -1; in libevdev_reset() 322 if (dev->num_slots == -1 || in reset_tracking_ids() 326 for (int slot = 0; slot < dev->num_slots; slot++) in reset_tracking_ids() 333 dev->num_slots = -1; in free_slots() 352 if (dev->num_slots != -1) { in init_slots() 361 dev->num_slots = abs_info->maximum + 1; in init_slots() 362 dev->mt_slot_vals = calloc(dev->num_slots * ABS_MT_CN in init_slots() [all...] |
/third_party/mesa3d/src/intel/compiler/ |
H A D | brw_vue_map.c | 208 vue_map->num_slots = slot; in brw_compute_vue_map() 278 vue_map->num_slots = slot; in brw_compute_tess_vue_map() 304 vue_map->num_slots, in brw_print_vue_map() 308 for (int i = 0; i < vue_map->num_slots; i++) { in brw_print_vue_map() 319 vue_map->num_slots, vue_map->separate ? "SSO" : "non-SSO"); in brw_print_vue_map() 320 for (int i = 0; i < vue_map->num_slots; i++) { in brw_print_vue_map()
|
H A D | gfx6_gs_visitor.cpp | 57 * For each emitted vertex, vertex_output will hold vue_map.num_slots in emit_prolog() 67 (prog_data->vue_map.num_slots + 1) * in emit_prolog() 144 for (int slot = 0; slot < prog_data->vue_map.num_slots; ++slot) { in gs_emit_vertex() 267 brw_imm_d(prog_data->vue_map.num_slots))); in emit_urb_write_header() 400 for (; slot < prog_data->vue_map.num_slots; ++slot) { in emit_thread_end() 433 complete = slot >= prog_data->vue_map.num_slots; in emit_thread_end() 699 return vertex * (prog_data->vue_map.num_slots + 1) + slot; in get_vertex_output_offset_for_varying()
|
H A D | brw_clip_util.c | 241 for (slot = 0; slot < c->vue_map.num_slots; slot++) { in brw_clip_interp_vertex() 300 if (c->vue_map.num_slots % 2) { in brw_clip_interp_vertex() 301 GLuint delta = brw_vue_slot_to_offset(c->vue_map.num_slots); in brw_clip_interp_vertex() 401 for (int i = 0; i < c->vue_map.num_slots; i++) { in brw_clip_copy_flatshaded_attributes()
|
H A D | brw_compile_sf.c | 192 for (i = 0; i < c->vue_map.num_slots; i++) { in copy_flatshaded_attributes() 206 for (i = 0; i < c->vue_map.num_slots; i++) in count_flatshaded_attributes() 827 c.vue_map.varying_to_slot[BRW_VARYING_SLOT_PNTC] = c.vue_map.num_slots; in brw_compile_sf() 828 c.vue_map.slot_to_varying[c.vue_map.num_slots++] = BRW_VARYING_SLOT_PNTC; in brw_compile_sf() 831 c.nr_attr_regs = (c.vue_map.num_slots + 1)/2 - c.urb_entry_read_offset; in brw_compile_sf()
|
H A D | brw_compile_clip.c | 53 c.nr_regs = (c.vue_map.num_slots + 1)/2; in brw_compile_clip()
|
H A D | brw_interpolation_map.c | 95 for (int i = 0; i < vue_map->num_slots; i++) { in brw_setup_vue_interpolation()
|
/third_party/mesa3d/src/compiler/nir/ |
H A D | nir_lower_mediump.c | 83 unsigned num_slots = sem.num_slots; in nir_recompute_io_bases() local 85 num_slots = (num_slots + sem.high_16bits + 1) / 2; in nir_recompute_io_bases() 88 for (unsigned i = 0; i < num_slots; i++) in nir_recompute_io_bases() 91 for (unsigned i = 0; i < num_slots; i++) in nir_recompute_io_bases() 108 unsigned num_slots = sem.num_slots; in nir_recompute_io_bases() local 110 num_slots = (num_slots in nir_recompute_io_bases() [all...] |
H A D | nir_lower_passthrough_edgeflags.c | 52 load_sem.num_slots = 1; in lower_impl() 64 semantics.num_slots = 1; in lower_impl()
|
H A D | nir_gather_info.c | 490 /* Convert num_slots from the units of half vectors to full vectors. */ in gather_intrinsic_info() 491 unsigned num_slots = (semantics.num_slots + semantics.high_16bits + 1) / 2; in gather_intrinsic_info() local 493 BITFIELD_RANGE(semantics.location - VARYING_SLOT_VAR0_16BIT, num_slots); in gather_intrinsic_info() 495 slot_mask = BITFIELD64_RANGE(semantics.location, semantics.num_slots); in gather_intrinsic_info() 496 assert(util_bitcount64(slot_mask) == semantics.num_slots); in gather_intrinsic_info()
|
H A D | nir_linking_helpers.c | 380 uint64_t slots_used_mask, unsigned num_slots) in mark_all_used_slots() 385 BITFIELD64_RANGE(var->data.location - loc_offset, num_slots); in mark_all_used_slots() 423 unsigned num_slots = glsl_count_attribute_slots(type, false); in remap_slots_and_components() local 435 BITFIELD64_RANGE(var->data.location - loc_offset, num_slots); in remap_slots_and_components() 455 mark_all_used_slots(var, slots_used_tmp, used, num_slots); in remap_slots_and_components() 459 num_slots); in remap_slots_and_components() 462 for (unsigned i = 0; i < num_slots; i++) { in remap_slots_and_components() 379 mark_all_used_slots(nir_variable *var, uint64_t *slots_used, uint64_t slots_used_mask, unsigned num_slots) mark_all_used_slots() argument
|
H A D | nir_lower_clip.c | 102 .num_slots = 1, in store_clipdist_output() 118 .num_slots = 1, in load_clipdist_input()
|
/third_party/node/deps/v8/src/wasm/ |
H A D | jump-table-assembler.h | 114 static void GenerateLazyCompileTable(Address base, uint32_t num_slots, in GenerateLazyCompileTable() argument 117 uint32_t lazy_compile_table_size = num_slots * kLazyCompileTableSlotSize; in GenerateLazyCompileTable() 120 for (uint32_t slot_index = 0; slot_index < num_slots; ++slot_index) { in GenerateLazyCompileTable()
|
H A D | wasm-linkage.h | 228 int num_slots = in NextStackSlot() local 230 int slot = slot_allocator_.Allocate(num_slots); in NextStackSlot()
|
/third_party/libinput/src/ |
H A D | evdev-totem.c | 804 int num_slots; in evdev_totem_create() local 814 num_slots = libevdev_get_num_slots(device->evdev); in evdev_totem_create() 815 if (num_slots <= 0) in evdev_totem_create() 819 slots = zalloc(num_slots * sizeof(*totem->slots)); in evdev_totem_create() 821 for (int slot = 0; slot < num_slots; ++slot) { in evdev_totem_create() 826 totem->nslots = num_slots; in evdev_totem_create()
|
H A D | evdev-mt-touchpad.c | 622 (tp->nfingers_down == tp->num_slots && nfake_touches == tp->num_slots)) in tp_restore_synaptics_touches() 634 for (i = 0; i < tp->num_slots; i++) { in tp_restore_synaptics_touches() 687 tp->nactive_slots < tp->num_slots) { in tp_process_fake_touches() 690 tp->num_slots, in tp_process_fake_touches() 698 tp->num_slots = tp->nactive_slots; in tp_process_fake_touches() 701 start = tp->has_mt ? tp->num_slots : 0; in tp_process_fake_touches() 1217 for (i = 0; i < (int)tp->num_slots; i++) { in tp_unhover_pressure() 1238 } else if (nfake_touches <= tp->num_slots || in tp_unhover_pressure() 1239 tp->num_slots in tp_unhover_pressure() [all...] |
H A D | evdev-fallback.c | 1529 int num_slots; in fallback_dispatch_init_slots() local 1548 num_slots = 10; in fallback_dispatch_init_slots() 1551 num_slots = libevdev_get_num_slots(device->evdev); in fallback_dispatch_init_slots() 1555 slots = zalloc(num_slots * sizeof(struct mt_slot)); in fallback_dispatch_init_slots() 1557 for (slot = 0; slot < num_slots; ++slot) { in fallback_dispatch_init_slots() 1571 dispatch->mt.slots_len = num_slots; in fallback_dispatch_init_slots()
|
H A D | evdev-mt-touchpad-gestures.c | 99 for (i = 0; i < tp->num_slots; i++) { in tp_get_touches_delta() 908 tp->gesture.finger_count > tp->num_slots) { in tp_gesture_detect_motion_gestures() 1007 if (tp->gesture.finger_count > tp->num_slots || in tp_gesture_detect_motion_gestures() 1104 for (i = 1; i < ntouches && i < tp->num_slots; i++) { in tp_gesture_handle_state_none() 1468 return (!tp->semi_mt && tp->num_slots > 1); in tp_gesture_are_gestures_enabled()
|
/third_party/libevdev/test/ |
H A D | test-libevdev-events.c | 661 const int num_slots = 15; in START_TEST() local 663 unsigned long terminated[NLONGS(num_slots)]; in START_TEST() 664 unsigned long restarted[NLONGS(num_slots)]; in START_TEST() 670 { .value = ABS_MT_SLOT, .maximum = num_slots }, in START_TEST() 694 for (i = num_slots; i >= 0; i--) { in START_TEST() 712 for (i = num_slots; i >= 0; i--) { in START_TEST() 717 EV_ABS, ABS_MT_TRACKING_ID, num_slots + i, in START_TEST() 767 ck_assert_int_eq(ev.value, num_slots + slot); in START_TEST() 792 for (i = 0; i < num_slots; i++) { in START_TEST() 816 const int num_slots in START_TEST() local 1625 int num_slots = 2; START_TEST() local [all...] |
/third_party/mesa3d/src/compiler/glsl/ |
H A D | gl_nir_link_uniforms.c | 156 const unsigned num_slots = var->num_state_slots; in update_array_sizes() local 157 if (num_slots > 0) { in update_array_sizes() 159 (max_array_size * (num_slots / glsl_array_size(var->type))); in update_array_sizes() 226 unsigned num_slots = glsl_get_component_slots(uniform->type); in nir_setup_uniform_remap_tables() local 235 data_pos += num_slots; in nir_setup_uniform_remap_tables() 289 unsigned num_slots = glsl_get_component_slots(uniform->type); in nir_setup_uniform_remap_tables() local 300 data_pos += num_slots; in nir_setup_uniform_remap_tables() 329 unsigned num_slots = glsl_get_component_slots(uniform->type); in nir_setup_uniform_remap_tables() local 345 data_pos += num_slots; in nir_setup_uniform_remap_tables() 366 unsigned num_slots in nir_setup_uniform_remap_tables() local 406 unsigned num_slots = glsl_get_component_slots(uniform->type); nir_setup_uniform_remap_tables() local [all...] |
/third_party/mesa3d/src/gallium/drivers/radeonsi/ |
H A D | si_shader_info.c | 286 unsigned num_slots = indirect ? nir_intrinsic_io_semantics(intr).num_slots : 1; in scan_io_usage() local 289 assert(driver_location + num_slots <= ARRAY_SIZE(info->input)); in scan_io_usage() 291 for (unsigned i = 0; i < num_slots; i++) { in scan_io_usage() 314 assert(driver_location + num_slots <= ARRAY_SIZE(info->output_usagemask)); in scan_io_usage() 316 for (unsigned i = 0; i < num_slots; i++) { in scan_io_usage()
|
H A D | si_shader_llvm_resources.c | 286 unsigned num_slots = image ? ctx->num_images : ctx->num_samplers; in si_nir_load_sampler_desc() local 289 if (const_index >= num_slots) in si_nir_load_sampler_desc() 307 index = si_llvm_bound_index(ctx, index, num_slots); in si_nir_load_sampler_desc()
|
/third_party/mesa3d/src/gallium/auxiliary/util/ |
H A D | u_threaded_context.c | 113 to_call_check(void *ptr, unsigned num_slots) in to_call_check() argument 117 tc_assert(call->num_slots == num_slots); in to_call_check() 125 #define call_size_with_slots(type, num_slots) size_to_slots( \ 126 sizeof(struct type) + sizeof(((struct type*)NULL)->slot[0]) * (num_slots)) 288 unsigned num_slots) in tc_add_sized_call() 291 assert(num_slots <= TC_SLOTS_PER_BATCH); in tc_add_sized_call() 294 if (unlikely(next->num_total_slots + num_slots > TC_SLOTS_PER_BATCH)) { in tc_add_sized_call() 303 next->num_total_slots += num_slots; in tc_add_sized_call() 309 call->num_slots in tc_add_sized_call() 287 tc_add_sized_call(struct threaded_context *tc, enum tc_call_id id, unsigned num_slots) tc_add_sized_call() argument [all...] |
/third_party/mesa3d/src/gallium/drivers/r600/sb/ |
H A D | sb_context.cpp | 60 num_slots = has_trans ? 5 : 4; in init()
|
/third_party/mesa3d/src/gallium/tools/trace/ |
H A D | dump_state.py | 434 def _update(self, array, start_slot, num_slots, states): 437 num_slots = 1 439 while len(array) < start_slot + num_slots: 441 for i in range(num_slots):
|