Lines Matching defs:gfxs_ctl
2459 static struct snc_gfx_switch_control *gfxs_ctl;
2466 if (sony_call_snc_handle(gfxs_ctl->handle,
2467 gfxs_ctl->handle == 0x015B ? 0x0000 : 0x0100,
2471 switch (gfxs_ctl->handle) {
2517 gfxs_ctl = kzalloc(sizeof(struct snc_gfx_switch_control), GFP_KERNEL);
2518 if (!gfxs_ctl)
2521 gfxs_ctl->handle = handle;
2523 sysfs_attr_init(&gfxs_ctl->attr.attr);
2524 gfxs_ctl->attr.attr.name = "gfx_switch_status";
2525 gfxs_ctl->attr.attr.mode = S_IRUGO;
2526 gfxs_ctl->attr.show = sony_nc_gfx_switch_status_show;
2528 result = device_create_file(&pd->dev, &gfxs_ctl->attr);
2535 kfree(gfxs_ctl);
2536 gfxs_ctl = NULL;
2543 if (gfxs_ctl) {
2544 device_remove_file(&pd->dev, &gfxs_ctl->attr);
2546 kfree(gfxs_ctl);
2547 gfxs_ctl = NULL;