Lines Matching refs:accel

207 	struct cmpc_accel *accel;
211 accel = dev_get_drvdata(&inputdev->dev);
213 return sprintf(buf, "%d\n", accel->sensitivity);
222 struct cmpc_accel *accel;
228 accel = dev_get_drvdata(&inputdev->dev);
238 accel->sensitivity = sensitivity;
256 struct cmpc_accel *accel;
260 accel = dev_get_drvdata(&inputdev->dev);
262 return sprintf(buf, "%d\n", accel->g_select);
271 struct cmpc_accel *accel;
277 accel = dev_get_drvdata(&inputdev->dev);
287 accel->g_select = g_select;
302 struct cmpc_accel *accel;
305 accel = dev_get_drvdata(&input->dev);
307 cmpc_accel_set_sensitivity_v4(acpi->handle, accel->sensitivity);
308 cmpc_accel_set_g_select_v4(acpi->handle, accel->g_select);
311 accel->inputdev_state = CMPC_ACCEL_DEV_STATE_OPEN;
320 struct cmpc_accel *accel;
323 accel = dev_get_drvdata(&input->dev);
326 accel->inputdev_state = CMPC_ACCEL_DEV_STATE_CLOSED;
343 struct cmpc_accel *accel;
346 accel = dev_get_drvdata(&inputdev->dev);
348 if (accel->inputdev_state == CMPC_ACCEL_DEV_STATE_OPEN)
357 struct cmpc_accel *accel;
360 accel = dev_get_drvdata(&inputdev->dev);
362 if (accel->inputdev_state == CMPC_ACCEL_DEV_STATE_OPEN) {
364 accel->sensitivity);
366 accel->g_select);
380 struct cmpc_accel *accel;
382 accel = kmalloc(sizeof(*accel), GFP_KERNEL);
383 if (!accel)
386 accel->inputdev_state = CMPC_ACCEL_DEV_STATE_CLOSED;
388 accel->sensitivity = CMPC_ACCEL_SENSITIVITY_DEFAULT;
389 cmpc_accel_set_sensitivity_v4(acpi->handle, accel->sensitivity);
395 accel->g_select = CMPC_ACCEL_G_SELECT_DEFAULT;
396 cmpc_accel_set_g_select_v4(acpi->handle, accel->g_select);
408 dev_set_drvdata(&inputdev->dev, accel);
417 kfree(accel);
550 struct cmpc_accel *accel;
554 accel = dev_get_drvdata(&inputdev->dev);
556 return sprintf(buf, "%d\n", accel->sensitivity);
565 struct cmpc_accel *accel;
571 accel = dev_get_drvdata(&inputdev->dev);
577 accel->sensitivity = sensitivity;
621 struct cmpc_accel *accel;
623 accel = kmalloc(sizeof(*accel), GFP_KERNEL);
624 if (!accel)
627 accel->sensitivity = CMPC_ACCEL_SENSITIVITY_DEFAULT;
628 cmpc_accel_set_sensitivity(acpi->handle, accel->sensitivity);
640 dev_set_drvdata(&inputdev->dev, accel);
647 kfree(accel);