Lines Matching defs:tp_ctl
2964 static struct touchpad_control *tp_ctl;
2981 if (sony_call_snc_handle(tp_ctl->handle,
2993 if (sony_call_snc_handle(tp_ctl->handle, 0x000, &result))
3004 tp_ctl = kzalloc(sizeof(struct touchpad_control), GFP_KERNEL);
3005 if (!tp_ctl)
3008 tp_ctl->handle = handle;
3010 sysfs_attr_init(&tp_ctl->attr.attr);
3011 tp_ctl->attr.attr.name = "touchpad";
3012 tp_ctl->attr.attr.mode = S_IRUGO | S_IWUSR;
3013 tp_ctl->attr.show = sony_nc_touchpad_show;
3014 tp_ctl->attr.store = sony_nc_touchpad_store;
3016 ret = device_create_file(&pd->dev, &tp_ctl->attr);
3018 kfree(tp_ctl);
3019 tp_ctl = NULL;
3027 if (tp_ctl) {
3028 device_remove_file(&pd->dev, &tp_ctl->attr);
3029 kfree(tp_ctl);
3030 tp_ctl = NULL;