Searched refs:navpoint (Results 1 - 3 of 3) sorted by relevance
/linux-4.1.27/drivers/input/mouse/ |
H A D | navpoint.c | 18 #include <linux/input/navpoint.h> 34 struct navpoint { struct 82 static void navpoint_packet(struct navpoint *navpoint) navpoint_packet() argument 88 switch (navpoint->data[0]) { navpoint_packet() 94 finger = (navpoint->data[1] & 0x01); navpoint_packet() 95 gesture = (navpoint->data[1] & 0x02); navpoint_packet() 96 x = ((navpoint->data[2] & 0x1f) << 8) | navpoint->data[3]; navpoint_packet() 97 y = ((navpoint->data[4] & 0x1f) << 8) | navpoint->data[5]; navpoint_packet() 98 z = navpoint->data[6]; navpoint_packet() 99 input_report_key(navpoint->input, BTN_TOUCH, finger); navpoint_packet() 100 input_report_abs(navpoint->input, ABS_X, x); navpoint_packet() 101 input_report_abs(navpoint->input, ABS_Y, y); navpoint_packet() 102 input_report_abs(navpoint->input, ABS_PRESSURE, z); navpoint_packet() 103 input_report_key(navpoint->input, BTN_TOOL_FINGER, finger); navpoint_packet() 104 input_report_key(navpoint->input, BTN_LEFT, gesture); navpoint_packet() 105 input_sync(navpoint->input); navpoint_packet() 109 if ((navpoint->data[1] & 0xf0) == 0x10) navpoint_packet() 113 dev_warn(navpoint->dev, navpoint_packet() 115 navpoint->data[0], navpoint->data[1]); navpoint_packet() 122 struct navpoint *navpoint = dev_id; navpoint_irq() local 123 struct ssp_device *ssp = navpoint->ssp; navpoint_irq() 129 dev_warn(navpoint->dev, navpoint_irq() 139 navpoint->data[navpoint->index + 0] = (data >> 8); navpoint_irq() 140 navpoint->data[navpoint->index + 1] = data; navpoint_irq() 141 navpoint->index += 2; navpoint_irq() 142 if (HEADER_LENGTH(navpoint->data[0]) < navpoint->index) { navpoint_irq() 143 navpoint_packet(navpoint); navpoint_irq() 144 navpoint->index = 0; navpoint_irq() 153 static void navpoint_up(struct navpoint *navpoint) navpoint_up() argument 155 struct ssp_device *ssp = navpoint->ssp; navpoint_up() 173 dev_err(navpoint->dev, navpoint_up() 176 if (gpio_is_valid(navpoint->gpio)) navpoint_up() 177 gpio_set_value(navpoint->gpio, 1); navpoint_up() 180 static void navpoint_down(struct navpoint *navpoint) navpoint_down() argument 182 struct ssp_device *ssp = navpoint->ssp; navpoint_down() 184 if (gpio_is_valid(navpoint->gpio)) navpoint_down() 185 gpio_set_value(navpoint->gpio, 0); navpoint_down() 194 struct navpoint *navpoint = input_get_drvdata(input); navpoint_open() local 196 navpoint_up(navpoint); navpoint_open() 203 struct navpoint *navpoint = input_get_drvdata(input); navpoint_close() local 205 navpoint_down(navpoint); navpoint_close() 214 struct navpoint *navpoint; navpoint_probe() local 241 navpoint = kzalloc(sizeof(*navpoint), GFP_KERNEL); navpoint_probe() 243 if (!navpoint || !input) { navpoint_probe() 248 navpoint->ssp = ssp; navpoint_probe() 249 navpoint->input = input; navpoint_probe() 250 navpoint->dev = &pdev->dev; navpoint_probe() 251 navpoint->gpio = pdata->gpio; navpoint_probe() 273 input_set_drvdata(input, navpoint); navpoint_probe() 275 error = request_irq(ssp->irq, navpoint_irq, 0, pdev->name, navpoint); navpoint_probe() 283 platform_set_drvdata(pdev, navpoint); navpoint_probe() 289 free_irq(ssp->irq, navpoint); navpoint_probe() 292 kfree(navpoint); navpoint_probe() 305 struct navpoint *navpoint = platform_get_drvdata(pdev); navpoint_remove() local 306 struct ssp_device *ssp = navpoint->ssp; navpoint_remove() 308 free_irq(ssp->irq, navpoint); navpoint_remove() 310 input_unregister_device(navpoint->input); navpoint_remove() 311 kfree(navpoint); navpoint_remove() 324 struct navpoint *navpoint = platform_get_drvdata(pdev); navpoint_suspend() local 325 struct input_dev *input = navpoint->input; navpoint_suspend() 329 navpoint_down(navpoint); navpoint_suspend() 338 struct navpoint *navpoint = platform_get_drvdata(pdev); navpoint_resume() local 339 struct input_dev *input = navpoint->input; navpoint_resume() 343 navpoint_up(navpoint); navpoint_resume() 355 .name = "navpoint", 365 MODULE_ALIAS("platform:navpoint");
|
H A D | Makefile | 17 obj-$(CONFIG_MOUSE_NAVPOINT_PXA27x) += navpoint.o
|
/linux-4.1.27/arch/arm/mach-pxa/ |
H A D | hx4700.c | 25 #include <linux/input/navpoint.h> 211 static struct platform_device navpoint = { variable in typeref:struct:platform_device 212 .name = "navpoint", 835 &navpoint,
|
Completed in 116 milliseconds