Lines Matching refs:gfxs_ctl
2446 static struct snc_gfx_switch_control *gfxs_ctl; variable
2453 if (sony_call_snc_handle(gfxs_ctl->handle, in __sony_nc_gfx_switch_status_get()
2454 gfxs_ctl->handle == 0x015B ? 0x0000 : 0x0100, in __sony_nc_gfx_switch_status_get()
2458 switch (gfxs_ctl->handle) { in __sony_nc_gfx_switch_status_get()
2501 gfxs_ctl = kzalloc(sizeof(struct snc_gfx_switch_control), GFP_KERNEL); in sony_nc_gfx_switch_setup()
2502 if (!gfxs_ctl) in sony_nc_gfx_switch_setup()
2505 gfxs_ctl->handle = handle; in sony_nc_gfx_switch_setup()
2507 sysfs_attr_init(&gfxs_ctl->attr.attr); in sony_nc_gfx_switch_setup()
2508 gfxs_ctl->attr.attr.name = "gfx_switch_status"; in sony_nc_gfx_switch_setup()
2509 gfxs_ctl->attr.attr.mode = S_IRUGO; in sony_nc_gfx_switch_setup()
2510 gfxs_ctl->attr.show = sony_nc_gfx_switch_status_show; in sony_nc_gfx_switch_setup()
2512 result = device_create_file(&pd->dev, &gfxs_ctl->attr); in sony_nc_gfx_switch_setup()
2519 kfree(gfxs_ctl); in sony_nc_gfx_switch_setup()
2520 gfxs_ctl = NULL; in sony_nc_gfx_switch_setup()
2527 if (gfxs_ctl) { in sony_nc_gfx_switch_cleanup()
2528 device_remove_file(&pd->dev, &gfxs_ctl->attr); in sony_nc_gfx_switch_cleanup()
2530 kfree(gfxs_ctl); in sony_nc_gfx_switch_cleanup()
2531 gfxs_ctl = NULL; in sony_nc_gfx_switch_cleanup()