Home
last modified time | relevance | path

Searched full:pen (Results 1 – 25 of 97) sorted by relevance

1234

/linux/tools/testing/selftests/hid/tests/
H A Dtest_tablet.py30 PEN = libevdev.EV_KEY.BTN_TOOL_PEN variable in ToolType
43 """Pen states according to Microsoft reference:
44 https://docs.microsoft.com/en-us/windows-hardware/design/component-guidelines/windows-pen-states
50 PEN_IS_IN_RANGE = BtnTouch.UP, ToolType.PEN, False
51 PEN_IS_IN_RANGE_WITH_BUTTON = BtnTouch.UP, ToolType.PEN, True
52 PEN_IS_IN_CONTACT = BtnTouch.DOWN, ToolType.PEN, False
53 PEN_IS_IN_CONTACT_WITH_BUTTON = BtnTouch.DOWN, ToolType.PEN, True
273 """This is the first half of the Windows Pen Implementation state machine:
275 https://docs.microsoft.com/en-us/windows-hardware/design/component-guidelines/windows-pen-states
299 """This is the second half of the Windows Pen Implementatio
451 class Pen(object): global() class
543 move_to(self, pen, state, button) global() argument
614 event(self, pen, button) global() argument
655 post(self, uhdev, pen, test_button) global() argument
662 validate_transitions( self, from_state, pen, evdev, events, allow_intermediate_states, button ) global() argument
873 event(self, pen, test_button) global() argument
922 move_to(self, pen, state, button) global() argument
986 event(self, pen, test_button) global() argument
1024 move_to(self, pen, state, button, debug=True) global() argument
1075 send_intermediate_state(self, pen, state, button) global() argument
1080 event(self, pen, button) global() argument
1161 move_to(self, pen, state, button, debug=True) global() argument
1242 send_intermediate_state(self, pen, state, test_button) global() argument
1247 event(self, pen, button) global() argument
[all...]
/linux/drivers/hid/
H A Dhid-uclogic-params.c26 * uclogic_params_pen_inrange_to_str() - Convert a pen in-range reporting type
50 * uclogic_params_pen_hid_dbg() - Dump tablet interface pen parameters
51 * @hdev: The HID device the pen parameters describe.
52 * @pen: The pen parameters to dump.
54 * Dump tablet interface pen parameters with hid_dbg(). The dump is indented
58 const struct uclogic_params_pen *pen) in uclogic_params_pen_hid_dbg() argument
63 str_true_false(pen->usage_invalid)); in uclogic_params_pen_hid_dbg()
64 hid_dbg(hdev, "\t.desc_ptr = %p\n", pen->desc_ptr); in uclogic_params_pen_hid_dbg()
65 hid_dbg(hdev, "\t.desc_size = %u\n", pen->desc_size); in uclogic_params_pen_hid_dbg()
66 hid_dbg(hdev, "\t.id = %u\n", pen->id); in uclogic_params_pen_hid_dbg()
[all …]
H A Dhid-ntrig.c450 * - dual pen/finger single touch
451 * - finger multitouch, pen not working
460 /* No special mappings needed for the pen and single touch */ in ntrig_input_mapping()
549 /* No special mappings needed for the pen and single touch */ in ntrig_input_mapped()
583 /* No special handling needed for the pen */ in ntrig_event()
652 /* Pen activity signal. */ in ntrig_event()
655 * When the pen deactivates touch, we see a in ntrig_event()
767 * Pen termination of touch in ntrig_event()
869 input->name = "N-Trig Pen"; in ntrig_input_configured()
/linux/include/linux/
H A Dwm97xx.h67 #define WM97XX_RPR 0x2000 /* wake up on pen down */
68 #define WM97XX_PEN_DOWN 0x8000 /* pen is down */
72 #define WM9712_PDEN 0x0800 /* measure only when pen down */
78 #define WM9712_RPU(i) (i&0x3f) /* internal pull up on pen detect (64k / rpu) */
86 #define WM9705_PDEN 0x1000 /* measure only when pen is down */
87 #define WM9705_PINV 0x0800 /* inverts sense of pen down output */
96 #define WM9705_PDD(i) (i & 0x000f) /* pen detect comparator threshold */
100 #define WM9713_PDPOL 0x0400 /* Pen down polarity */
108 #define WM9713_PDEN 0x0800 /* measure only when pen down */
152 /* The pen is up (the first RC_VALID without RC_PENUP means pen is down) */
[all …]
/linux/arch/arm/mach-versatile/
H A Dheadsmp.S12 * This provides a "holding pen" into which all secondary cores are held
23 pen: ldr r7, [r6] label
25 bne pen
28 * we've been released from the holding pen: secondary_stack
H A Dplatsmp.c25 * pen in headsmp.S, which exists because we are not always able to
55 * pen, then head off into the C entry point in versatile_secondary_init()
78 * CPUs in the holding pen until we're ready for them. However, in versatile_boot_secondary()
/linux/arch/arm/mach-exynos/
H A Dheadsmp.S15 * a "holding pen" into which all secondary cores are held until we're
26 pen: ldr r7, [r6] label
28 bne pen
31 * we've been released from the holding pen: secondary_stack
/linux/arch/arm/mach-spear/
H A Dheadsmp.S17 * a "holding pen" into which all secondary cores are held until we're
27 pen: ldr r7, [r6] label
29 bne pen
36 * we've been released from the holding pen: secondary_stack
H A Dplatsmp.c45 * pen, then head off into the C entry point in spear13xx_secondary_init()
68 * the holding pen - release it, then wait for it to flag in spear13xx_boot_secondary()
/linux/arch/mips/cavium-octeon/
H A Docteon-irq.c307 unsigned long *pen; in octeon_irq_ciu_enable() local
316 pen = &per_cpu(octeon_irq_ciu0_en_mirror, cpu); in octeon_irq_ciu_enable()
317 __set_bit(cd->bit, pen); in octeon_irq_ciu_enable()
323 cvmx_write_csr(CVMX_CIU_INTX_EN0(coreid * 2), *pen); in octeon_irq_ciu_enable()
325 pen = &per_cpu(octeon_irq_ciu1_en_mirror, cpu); in octeon_irq_ciu_enable()
326 __set_bit(cd->bit, pen); in octeon_irq_ciu_enable()
332 cvmx_write_csr(CVMX_CIU_INTX_EN1(coreid * 2 + 1), *pen); in octeon_irq_ciu_enable()
339 unsigned long *pen; in octeon_irq_ciu_enable_local() local
348 pen = this_cpu_ptr(&octeon_irq_ciu0_en_mirror); in octeon_irq_ciu_enable_local()
349 __set_bit(cd->bit, pen); in octeon_irq_ciu_enable_local()
[all …]
/linux/drivers/input/touchscreen/
H A Dsurface3_spi.c122 struct surface3_ts_data_pen *pen) in surface3_spi_report_pen() argument
125 int st = pen->status; in surface3_spi_report_pen()
148 get_unaligned_le16(&pen->x)); in surface3_spi_report_pen()
151 get_unaligned_le16(&pen->y)); in surface3_spi_report_pen()
154 get_unaligned_le16(&pen->pressure)); in surface3_spi_report_pen()
160 struct surface3_ts_data_pen *pen; in surface3_spi_process_pen() local
162 pen = (struct surface3_ts_data_pen *)&data[15]; in surface3_spi_process_pen()
164 surface3_spi_report_pen(ts_data, pen); in surface3_spi_process_pen()
303 input->name = "Surface3 SPI Pen Input"; in surface3_spi_create_pen_input()
H A Dda9052_tsi.c109 /* Pen is still DOWN (or read error) */ in da9052_ts_pen_work()
114 /* Pen UP */ in da9052_ts_pen_work()
117 /* Report Pen UP */ in da9052_ts_pen_work()
124 * pen down and pen up events occurs in da9052_ts_pen_work()
194 /* Enable Pen Detect Circuit */ in da9052_ts_input_open()
220 /* Disable Pen Detect Circuit */ in da9052_ts_input_close()
265 /* Disable Pen Detect Circuit */ in da9052_ts_probe()
H A Dwm831x-ts.c109 * We get a pen down reading on every reading, report pen up if any in wm831x_ts_data_irq()
123 /* Switch from data to pen down */ in wm831x_ts_data_irq()
179 /* Switch from pen down to data */ in wm831x_ts_pen_down_irq()
221 /* If we ended up with the pen down then make sure we revert back in wm831x_ts_input_close()
222 * to pen detection state for the next time we start up. in wm831x_ts_input_close()
336 "Touchscreen pen down", wm831x_ts); in wm831x_ts_probe()
338 dev_err(&pdev->dev, "Failed to request pen down IRQ %d: %d\n", in wm831x_ts_probe()
H A Dmainstone-wm97xx.c64 * Pen sampling frequency (Hz) in continuous mode.
71 * Pen down detection.
73 * This driver can either poll or use an interrupt to indicate a pen down
78 MODULE_PARM_DESC(pen_int, "Pen down detection (1 = interrupt, 0 = polling)");
83 * Set to 1 to read back pen down pressure
220 "pen down irq not supported on this device\n"); in wm97xx_acc_startup()
H A Dtsc2007_core.c92 * NOTE: We can't rely on the pressure to determine the pen down in tsc2007_is_pen_down()
95 * lifting the pen and in some cases may not even settle at the in tsc2007_is_pen_down()
98 * The only safe way to check for the pen up condition is in the in tsc2007_is_pen_down()
99 * work function by reading the pen signal state (it's a GPIO in tsc2007_is_pen_down()
101 * in that case we assume that the pen is down and expect caller in tsc2007_is_pen_down()
120 /* pen is down, continue with the measurement */ in tsc2007_soft_irq()
133 * assume that pen was lifted up. in tsc2007_soft_irq()
259 dev_dbg(dev, "Pen down GPIO is not specified in properties\n"); in tsc2007_probe_properties()
H A D88pm860x-ts.c78 dev_dbg(chip->dev, "pen down at [%d, %d].\n", x, y); in pm860x_touch_handler()
82 dev_dbg(chip->dev, "pen release\n"); in pm860x_touch_handler()
153 /* set prebias & prechg time of pen detect */ in pm860x_touch_dt_init()
155 if (!of_property_read_u32(np, "marvell,88pm860x-pen-prebias", &n)) in pm860x_touch_dt_init()
157 if (!of_property_read_u32(np, "marvell,88pm860x-pen-prechg", &n)) in pm860x_touch_dt_init()
211 /* set prebias & prechg time of pen detect */ in pm860x_touch_probe()
H A Dsilead.c179 data->pen_input->name = SILEAD_TS_NAME " pen"; in silead_ts_request_pen_input_dev()
180 data->pen_input->phys = "input/pen"; in silead_ts_request_pen_input_dev()
185 dev_err(dev, "Failed to register pen input device: %d\n", error); in silead_ts_request_pen_input_dev()
265 goto sync; /* Pen is down, release all previous touches */ in silead_ts_read_data()
441 /* The EFI (platform) embedded fw does not have pen support */ in silead_ts_load_fw()
445 dev_warn(dev, "Warning pen support is known to be broken in the EFI embedded fw version\n"); in silead_ts_load_fw()
599 data->pen_supported = device_property_read_bool(dev, "silead,pen-supported"); in silead_ts_read_props()
600 device_property_read_u32(dev, "silead,pen-resolution-x", &data->pen_x_res); in silead_ts_read_props()
601 device_property_read_u32(dev, "silead,pen-resolution-y", &data->pen_y_res); in silead_ts_read_props()
/linux/drivers/hid/bpf/progs/
H A DXPPen__Artist24.bpf.c22 * - the pen doesn't have a rubber tail, so basically we are removing any
27 0x09, 0x02, // Usage (Pen) 2
109 * sequences, all related to the second button (the pen doesn't
117 * - if the pen is in range, an extra out-of-range is sent
119 * // Pen is in range
135 * - if the pen is in contact, 2 extra events are added when
139 * // Pen is in contact
172 * Illegal transition: pen is in range with the tip pressed, and in SEC()
/linux/Documentation/devicetree/bindings/input/touchscreen/
H A Dti,am3359-tsc.yaml49 cycles. Charge delay value should be large in order to avoid false pen-up
51 kept as low as possible, while avoiding false pen-up event. Start from a
52 lower value, say 0x400, and increase value until false pen-up events are
53 avoided. The pen-up detection happens immediately after the charge step,
/linux/drivers/input/tablet/
H A DKconfig34 Aiptek 8000U or Genius G-PEN 560 tablet. Make sure to say Y to
66 tristate "Pegasus Mobile Notetaker Pen input tablet support"
73 Staedtler Digital ballpoint pen 990 01,
/linux/include/linux/mfd/wm831x/
H A Dpdata.h74 int isel; /** Current for pen down (uA) */
75 int rpu; /** Pen down sensitivity resistor divider */
80 int pd_irqf; /** IRQ flags for pen down IRQ */
/linux/Documentation/translations/sp_SP/process/
H A Dmanagement-style.rst164 (1) No llames a la gente pen*ejos (al menos no en público)
168 “eres un pen*ejo” de millones de manera diferentes [#f2]_, a veces sin
173 puedes llamar a casi **cualquiera** un pen*ejo, y a menudo **tendrás**
189 un pen*ejo” no escanea tan bien. Pero estoy seguro de que lo pensó.
254 Hay una cosa que la gente odia incluso más que ser llamado “pen*ejo”,
255 y que es ser llamado “pen*ejo” en una voz mojigata. Por lo primero,
/linux/Documentation/devicetree/bindings/mfd/
H A D88pm860x.txt62 marvell,88pm860x-pen-prebias = <16>;
63 marvell,88pm860x-pen-prechg = <2>;
/linux/drivers/acpi/pmic/
H A Dintel_pmic_bytcrc.c244 int pen; in intel_crc_pmic_get_policy() local
246 if (regmap_read(regmap, reg, &pen)) in intel_crc_pmic_get_policy()
248 *value = pen >> 7; in intel_crc_pmic_get_policy()
/linux/arch/arm64/boot/dts/rockchip/
H A Drk3399-gru-scarlet.dtsi185 switch-pen-insert {
186 label = "Pen Insert";
829 pen_int_odl: pen-int-odl {
833 pen_reset_l: pen-reset-l {
858 pen {
859 pen_eject_odl: pen-eject-odl {

1234