Lines Matching refs:tp_ctl
2959 static struct touchpad_control *tp_ctl; variable
2976 if (sony_call_snc_handle(tp_ctl->handle, in sony_nc_touchpad_store()
2988 if (sony_call_snc_handle(tp_ctl->handle, 0x000, &result)) in sony_nc_touchpad_show()
2999 tp_ctl = kzalloc(sizeof(struct touchpad_control), GFP_KERNEL); in sony_nc_touchpad_setup()
3000 if (!tp_ctl) in sony_nc_touchpad_setup()
3003 tp_ctl->handle = handle; in sony_nc_touchpad_setup()
3005 sysfs_attr_init(&tp_ctl->attr.attr); in sony_nc_touchpad_setup()
3006 tp_ctl->attr.attr.name = "touchpad"; in sony_nc_touchpad_setup()
3007 tp_ctl->attr.attr.mode = S_IRUGO | S_IWUSR; in sony_nc_touchpad_setup()
3008 tp_ctl->attr.show = sony_nc_touchpad_show; in sony_nc_touchpad_setup()
3009 tp_ctl->attr.store = sony_nc_touchpad_store; in sony_nc_touchpad_setup()
3011 ret = device_create_file(&pd->dev, &tp_ctl->attr); in sony_nc_touchpad_setup()
3013 kfree(tp_ctl); in sony_nc_touchpad_setup()
3014 tp_ctl = NULL; in sony_nc_touchpad_setup()
3022 if (tp_ctl) { in sony_nc_touchpad_cleanup()
3023 device_remove_file(&pd->dev, &tp_ctl->attr); in sony_nc_touchpad_cleanup()
3024 kfree(tp_ctl); in sony_nc_touchpad_cleanup()
3025 tp_ctl = NULL; in sony_nc_touchpad_cleanup()