/third_party/libinput/src/ |
H A D | evdev-tablet.c | 364 * threshold is 0 pressure. in normalize_pressure() 366 int base = tool->pressure.threshold.lower; in normalize_pressure() 538 tablet->axes.pressure = normalize_pressure(absinfo, tool); in tablet_update_pressure() 730 axes.pressure = tablet->axes.pressure; in tablet_check_notify_axes() 1085 const struct input_absinfo *pressure, *distance; in tool_set_pressure_thresholds() local 1091 tool->pressure.offset = 0; in tool_set_pressure_thresholds() 1092 tool->pressure.has_offset = false; in tool_set_pressure_thresholds() 1094 pressure = libevdev_get_abs_info(device->evdev, ABS_PRESSURE); in tool_set_pressure_thresholds() 1095 if (!pressure) in tool_set_pressure_thresholds() 1258 *pressure; sanitize_pressure_distance() local 1340 const struct input_absinfo *pressure = update_pressure_offset() local 1369 const struct input_absinfo *pressure, *distance; detect_pressure_offset() local 1444 int pressure; detect_tool_contact() local [all...] |
H A D | evdev-totem.c | 91 tool->pressure.offset = 0; in totem_new_tool() 92 tool->pressure.has_offset = false; in totem_new_tool() 93 tool->pressure.threshold.lower = 0; in totem_new_tool() 94 tool->pressure.threshold.upper = 1; in totem_new_tool()
|
H A D | evdev-mt-touchpad.c | 386 * attributes of the touch (size, pressure). In some cases we need to 556 t->pressure = e->value; in tp_process_absolute() 603 t->pressure = e->value; in tp_process_absolute_st() 1110 if (t->pressure > tp->palm.pressure_threshold) in tp_palm_detect_pressure_triggered() 1158 * in case pressure triggers on a non-palm touch. And again after in tp_palm_detect() 1160 * pressure trigger now. in tp_palm_detect() 1185 palm_state = "pressure"; in tp_palm_detect() 1225 if (t->pressure >= tp->pressure.high) { in tp_unhover_pressure() 1227 "pressure in tp_unhover_pressure() [all...] |
H A D | evdev-mt-touchpad.h | 192 int pressure; member 318 /* if pressure goes above high -> touch down, 319 if pressure then goes below low -> touch up */ 324 } pressure; member
|
H A D | libinput-private.h | 436 double pressure; member 468 } pressure; member
|
/third_party/node/test/fixtures/wpt/resources/ |
H A D | testdriver-actions.js | 314 width, height, pressure, tangentialPressure, 317 source.pointerDown(this, button, width, height, pressure, tangentialPressure, 350 width, height, pressure, tangentialPressure, 353 source.pointerMove(this, x, y, duration, origin, width, height, pressure, 463 function setPointerProperties(action, width, height, pressure, tangentialPressure, 471 if (pressure) { 472 action.pressure = pressure; 512 pointerDown: function(actions, button, width, height, pressure, tangentialPressure, 519 pressure, tangentialPressur [all...] |
/third_party/libinput/tools/ |
H A D | libinput-measure-touchpad-pressure.py | 103 def __init__(self, pressure=None): 104 self.pressure = pressure 129 self.prange.update(touch.pressure) 131 if touch.pressure < self.device.up: 133 elif touch.pressure > self.device.down: 137 self.is_palm = touch.pressure > self.device.palm 141 self.is_thumb = touch.pressure > self.device.thumb 150 """Average pressure value of this sequence""" 151 return int(sum([p.pressure fo [all...] |
H A D | libinput-debug-tablet.c | 63 double dist, pressure; member 72 int distance, pressure; member 220 print_bar("pressure:", ctx->pressure, ctx->pressure); in print_state() 235 print_bar("ABS_PRESSURE:", ctx->abs.pressure, normalize(ctx->evdev, ABS_PRESSURE, ctx->abs.pressure)); in print_state() 301 ctx->pressure = libinput_event_tablet_tool_get_pressure(t); in update_tablet_axes() 446 ctx->abs.pressure = event.value; in handle_libevdev_events()
|
H A D | libinput-debug-events.c | 392 double dist, pressure; in print_tablet_axes() local 417 pressure = libinput_event_tablet_tool_get_pressure(t); in print_tablet_axes() 423 pressure, changed_sym(t, pressure)); in print_tablet_axes()
|
H A D | libinput-debug-gui.c | 171 double pressure; member 781 /* pressure/distance bars */ in draw_tablet() 794 if (w->tool.pressure > 0) { in draw_tablet() 795 double pos = w->tool.pressure * 100; in draw_tablet() 821 if (w->tool.pressure) in draw_tablet() 833 if (w->tool.pressure) in draw_tablet() 836 1 + 10 * max(w->tool.pressure, w->tool.distance), in draw_tablet() 1669 w->tool.pressure = libinput_event_tablet_tool_get_pressure(t); in handle_event_tablet() 1687 w->tool.pressure = libinput_event_tablet_tool_get_pressure(t); in handle_event_tablet()
|
/third_party/mesa3d/src/gallium/drivers/d3d12/ |
H A D | d3d12_residency.cpp | 116 double pressure = double(mem_info->usage) / double(mem_info->budget); in get_eviction_grace_period() local 117 pressure = MIN2(pressure, 1.0); in get_eviction_grace_period() 119 if (pressure > trim_percentage_usage_threshold) { in get_eviction_grace_period() 120 /* Normalize pressure for the range [0, threshold] */ in get_eviction_grace_period() 121 pressure = (pressure - trim_percentage_usage_threshold) / (1.0 - trim_percentage_usage_threshold); in get_eviction_grace_period() 122 /* Linearly interpolate between min and max period based on pressure */ in get_eviction_grace_period() 124 (1.0 - pressure)) + eviction_grace_period_microseconds_min; in get_eviction_grace_period()
|
/third_party/mesa3d/src/panfrost/bifrost/ |
H A D | bi_pressure_schedule.c | 27 /* Bottom-up local scheduler to reduce register pressure */ 220 * Calculate the change in register pressure from scheduling a given 289 signed pressure = 0; in pressure_schedule_block() local 296 pressure += calculate_pressure_delta(I, s->live, s->max); in pressure_schedule_block() 297 orig_max_pressure = MAX2(pressure, orig_max_pressure); in pressure_schedule_block() 306 pressure = 0; in pressure_schedule_block() 313 pressure += calculate_pressure_delta(node->instr, s->live, s->max); in pressure_schedule_block() 314 max_pressure = MAX2(pressure, max_pressure); in pressure_schedule_block()
|
/third_party/mesa3d/src/gallium/drivers/lima/ir/pp/ |
H A D | scheduler.c | 72 int pressure = reg[i] + n - (i + 1); in ppir_schedule_calc_sched_info() local 73 if (pressure > instr->reg_pressure) in ppir_schedule_calc_sched_info() 74 instr->reg_pressure = pressure; in ppir_schedule_calc_sched_info() 79 * it's not fair for parent has the same reg pressure as child in ppir_schedule_calc_sched_info() 86 * should has less reg pressure than a two children (with single in ppir_schedule_calc_sched_info()
|
/third_party/alsa-lib/test/ |
H A D | playmidi1.c | 324 static void do_pressure(int chan, int pitch, int pressure) in do_pressure() argument 329 printf("%lu: KeyPress (%d) %d %d\n", Mf_currtime, chan, pitch, pressure); in do_pressure() 331 snd_seq_ev_set_keypress(&ev, chan, pitch, pressure); in do_pressure() 335 static void do_chanpressure(int chan, int pressure) in do_chanpressure() argument 340 printf("%lu: ChanPress (%d) %d\n", Mf_currtime, chan, pressure); in do_chanpressure() 342 snd_seq_ev_set_chanpress(&ev, chan, pressure); in do_chanpressure()
|
/third_party/jerryscript/jerry-core/jmem/ |
H A D | jmem-heap.c | 298 * Each failed allocation attempt tries to reclaim memory with an increasing pressure, 301 * can be used to limit the maximum pressure, and prevent the engine from terminating. 308 jmem_pressure_t max_pressure) /**< pressure limit */ in jmem_heap_gc_and_alloc_block() 315 jmem_pressure_t pressure = JMEM_PRESSURE_NONE; in jmem_heap_gc_and_alloc_block() local 321 pressure = JMEM_PRESSURE_LOW; in jmem_heap_gc_and_alloc_block() 322 ecma_free_unused_memory (pressure); in jmem_heap_gc_and_alloc_block() 328 while (JERRY_UNLIKELY (data_space_p == NULL) && JERRY_LIKELY (pressure < max_pressure)) in jmem_heap_gc_and_alloc_block() 330 pressure++; in jmem_heap_gc_and_alloc_block() 331 ecma_free_unused_memory (pressure); in jmem_heap_gc_and_alloc_block()
|
/third_party/mesa3d/src/gallium/drivers/lima/ir/gp/ |
H A D | reduce_scheduler.c | 81 float pressure = reg[i] + n - (i + 1); in schedule_calc_sched_info() local 82 if (pressure > node->rsched.reg_pressure) in schedule_calc_sched_info() 83 node->rsched.reg_pressure = pressure; in schedule_calc_sched_info() 88 * it's not fair for parent has the same reg pressure as child in schedule_calc_sched_info() 95 * should has less reg pressure than a two children (with single in schedule_calc_sched_info()
|
/third_party/mesa3d/src/compiler/nir/ |
H A D | nir_schedule.c | 31 * manage register pressure. 42 * texture/ubo results. The register pressure heuristic doesn't want to pick 44 * the only usage, so that instruction will increase pressure. 48 * user and expanding register pressure. The partially_evaluated_path flag 111 int pressure; member 586 /* Only the first def of a reg counts against register pressure. */ in nir_schedule_regs_freed_dest_cb() 610 * Chooses an instruction that will minimise the register pressure as much as 701 * Scheduling for Register pressure) heuristic. 841 int pressure) in nir_schedule_mark_use() 846 scoreboard->pressure in nir_schedule_mark_use() 838 nir_schedule_mark_use(nir_schedule_scoreboard *scoreboard, void *reg_or_def, nir_instr *reg_or_def_parent, int pressure) nir_schedule_mark_use() argument [all...] |
/third_party/mesa3d/src/broadcom/compiler/ |
H A D | vir_dump.c | 368 int pressure = 0; in vir_dump() local 376 pressure++; in vir_dump() 379 fprintf(stderr, "P%4d ", pressure); in vir_dump() 417 pressure--; in vir_dump()
|
H A D | vir.c | 1063 uint32_t *pressure = rzalloc_array(NULL, uint32_t, max_ip); in vir_get_max_temps() local 1070 pressure[i]++; in vir_get_max_temps() 1076 max_temps = MAX2(max_temps, pressure[i]); in vir_get_max_temps() 1078 ralloc_free(pressure); in vir_get_max_temps() 1423 * pressure. 1687 * the highest register pressure but is expected to produce most 1689 * optimizations that are known to contribute to register pressure 2012 * This can impact register pressure and end up leading to worse code, so we 2187 * in general. Increasing Vc also increases VPM memory pressure which in compute_vpm_config_gs() 2199 * at the expense of more VPM memory pressure (whic in compute_vpm_config_gs() [all...] |
/third_party/jerryscript/jerry-core/ecma/base/ |
H A D | ecma-gc.h | 34 void ecma_free_unused_memory (jmem_pressure_t pressure);
|
H A D | ecma-gc.c | 1507 * Try to free some memory (depending on memory pressure). 1512 ecma_free_unused_memory (jmem_pressure_t pressure) /**< current pressure */ in ecma_free_unused_memory() argument 1525 if (JERRY_LIKELY (pressure == JMEM_PRESSURE_LOW)) in ecma_free_unused_memory() 1547 else if (pressure == JMEM_PRESSURE_HIGH) in ecma_free_unused_memory() 1603 else if (JERRY_UNLIKELY (pressure == JMEM_PRESSURE_FULL)) in ecma_free_unused_memory() 1609 JERRY_ASSERT (pressure == JMEM_PRESSURE_NONE); in ecma_free_unused_memory()
|
/third_party/mesa3d/src/gallium/drivers/vc4/ |
H A D | vc4_qir.c | 500 int pressure = 0; in qir_dump() local 508 fprintf(stderr, "%3d ", pressure); in qir_dump() 520 pressure++; in qir_dump() 542 pressure--; in qir_dump()
|
/third_party/mesa3d/src/panfrost/midgard/ |
H A D | mir_promote_uniforms.c | 32 * both instructions and work register pressure, but it reduces the work 215 /* Otherwise, estimate the register pressure */ in mir_work_heuristic() 217 unsigned pressure = mir_estimate_pressure(ctx); in mir_work_heuristic() local 220 * pressure estimate and the actual register pressure is a little in mir_work_heuristic() 225 if (pressure > 6) in mir_work_heuristic()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/ |
H A D | SIMachineScheduler.cpp | 54 // . The less the register pressure, the best load latencies are hidden 58 // behaviours. For example when register pressure becomes high, it can either 59 // manage to prevent register pressure from going too high, or it can 60 // increase register pressure even more than if it hadn't taken register 61 // pressure into account. 267 std::vector<unsigned> pressure; in pickNode() local 271 TopRPTracker.getDownwardPressure(SU->getInstr(), pressure, MaxPressure); in pickNode() 272 TryCand.SGPRUsage = pressure[DAG->getSGPRSetID()]; in pickNode() 273 TryCand.VGPRUsage = pressure[DAG->getVGPRSetID()]; in pickNode()
|
/third_party/mesa3d/src/freedreno/ir3/ |
H A D | ir3_ra.c | 119 * in mergedregs mode, and count as 4 half-units of register pressure in interval_insert() 1248 unreachable("reg pressure calculation was wrong!"); in compress_regs_left() 2321 calc_target_full_pressure(struct ir3_shader_variant *v, unsigned pressure) in calc_target_full_pressure() argument 2326 unsigned reg_count = DIV_ROUND_UP(pressure, 2 * 4); in calc_target_full_pressure() 2348 add_pressure(struct ir3_pressure *pressure, struct ir3_register *reg, in add_pressure() argument 2353 pressure->half += size; in add_pressure() 2355 pressure->full += size; in add_pressure() 2374 /* Calculate the minimum possible limit on register pressure so that spilling 2411 /* pre-colored inputs may have holes, which increases the pressure. */ in calc_min_limit_pressure() 2535 * after the first register pressure pas in calc_limit_pressure_for_cs_with_barrier() [all...] |