Lines Matching refs:gfxs_ctl
2447 static struct snc_gfx_switch_control *gfxs_ctl;
2454 if (sony_call_snc_handle(gfxs_ctl->handle,
2455 gfxs_ctl->handle == 0x015B ? 0x0000 : 0x0100,
2459 switch (gfxs_ctl->handle) {
2502 gfxs_ctl = kzalloc(sizeof(struct snc_gfx_switch_control), GFP_KERNEL);
2503 if (!gfxs_ctl)
2506 gfxs_ctl->handle = handle;
2508 sysfs_attr_init(&gfxs_ctl->attr.attr);
2509 gfxs_ctl->attr.attr.name = "gfx_switch_status";
2510 gfxs_ctl->attr.attr.mode = S_IRUGO;
2511 gfxs_ctl->attr.show = sony_nc_gfx_switch_status_show;
2513 result = device_create_file(&pd->dev, &gfxs_ctl->attr);
2520 kfree(gfxs_ctl);
2521 gfxs_ctl = NULL;
2528 if (gfxs_ctl) {
2529 device_remove_file(&pd->dev, &gfxs_ctl->attr);
2531 kfree(gfxs_ctl);
2532 gfxs_ctl = NULL;