Lines Matching defs:tp_ctl
2979 static struct touchpad_control *tp_ctl;
2996 if (sony_call_snc_handle(tp_ctl->handle,
3008 if (sony_call_snc_handle(tp_ctl->handle, 0x000, &result))
3019 tp_ctl = kzalloc(sizeof(struct touchpad_control), GFP_KERNEL);
3020 if (!tp_ctl)
3023 tp_ctl->handle = handle;
3025 sysfs_attr_init(&tp_ctl->attr.attr);
3026 tp_ctl->attr.attr.name = "touchpad";
3027 tp_ctl->attr.attr.mode = S_IRUGO | S_IWUSR;
3028 tp_ctl->attr.show = sony_nc_touchpad_show;
3029 tp_ctl->attr.store = sony_nc_touchpad_store;
3031 ret = device_create_file(&pd->dev, &tp_ctl->attr);
3033 kfree(tp_ctl);
3034 tp_ctl = NULL;
3042 if (tp_ctl) {
3043 device_remove_file(&pd->dev, &tp_ctl->attr);
3044 kfree(tp_ctl);
3045 tp_ctl = NULL;