Lines Matching refs:ipd

449 static void pega_accel_poll(struct input_polled_dev *ipd)  in pega_accel_poll()  argument
451 struct device *parent = ipd->input->dev.parent; in pega_accel_poll()
460 input_report_abs(ipd->input, ABS_X, 0); in pega_accel_poll()
461 input_report_abs(ipd->input, ABS_Y, 0); in pega_accel_poll()
462 input_report_abs(ipd->input, ABS_Z, 0); in pega_accel_poll()
463 input_sync(ipd->input); in pega_accel_poll()
474 input_report_abs(ipd->input, ABS_X, -asus->pega_acc_x); in pega_accel_poll()
475 input_report_abs(ipd->input, ABS_Y, -asus->pega_acc_y); in pega_accel_poll()
476 input_report_abs(ipd->input, ABS_Z, asus->pega_acc_z); in pega_accel_poll()
477 input_sync(ipd->input); in pega_accel_poll()
492 struct input_polled_dev *ipd; in pega_accel_init() local
502 ipd = input_allocate_polled_device(); in pega_accel_init()
503 if (!ipd) in pega_accel_init()
506 ipd->poll = pega_accel_poll; in pega_accel_init()
507 ipd->poll_interval = 125; in pega_accel_init()
508 ipd->poll_interval_min = 50; in pega_accel_init()
509 ipd->poll_interval_max = 2000; in pega_accel_init()
511 ipd->input->name = PEGA_ACCEL_DESC; in pega_accel_init()
512 ipd->input->phys = PEGA_ACCEL_NAME "/input0"; in pega_accel_init()
513 ipd->input->dev.parent = &asus->platform_device->dev; in pega_accel_init()
514 ipd->input->id.bustype = BUS_HOST; in pega_accel_init()
516 set_bit(EV_ABS, ipd->input->evbit); in pega_accel_init()
517 input_set_abs_params(ipd->input, ABS_X, in pega_accel_init()
519 input_set_abs_params(ipd->input, ABS_Y, in pega_accel_init()
521 input_set_abs_params(ipd->input, ABS_Z, in pega_accel_init()
524 err = input_register_polled_device(ipd); in pega_accel_init()
528 asus->pega_accel_poll = ipd; in pega_accel_init()
532 input_free_polled_device(ipd); in pega_accel_init()