Lines Matching refs:gfxs_ctl
2438 static struct snc_gfx_switch_control *gfxs_ctl; variable
2445 if (sony_call_snc_handle(gfxs_ctl->handle, in __sony_nc_gfx_switch_status_get()
2446 gfxs_ctl->handle == 0x015B ? 0x0000 : 0x0100, in __sony_nc_gfx_switch_status_get()
2450 switch (gfxs_ctl->handle) { in __sony_nc_gfx_switch_status_get()
2496 gfxs_ctl = kzalloc(sizeof(struct snc_gfx_switch_control), GFP_KERNEL); in sony_nc_gfx_switch_setup()
2497 if (!gfxs_ctl) in sony_nc_gfx_switch_setup()
2500 gfxs_ctl->handle = handle; in sony_nc_gfx_switch_setup()
2502 sysfs_attr_init(&gfxs_ctl->attr.attr); in sony_nc_gfx_switch_setup()
2503 gfxs_ctl->attr.attr.name = "gfx_switch_status"; in sony_nc_gfx_switch_setup()
2504 gfxs_ctl->attr.attr.mode = S_IRUGO; in sony_nc_gfx_switch_setup()
2505 gfxs_ctl->attr.show = sony_nc_gfx_switch_status_show; in sony_nc_gfx_switch_setup()
2507 result = device_create_file(&pd->dev, &gfxs_ctl->attr); in sony_nc_gfx_switch_setup()
2514 kfree(gfxs_ctl); in sony_nc_gfx_switch_setup()
2515 gfxs_ctl = NULL; in sony_nc_gfx_switch_setup()
2522 if (gfxs_ctl) { in sony_nc_gfx_switch_cleanup()
2523 device_remove_file(&pd->dev, &gfxs_ctl->attr); in sony_nc_gfx_switch_cleanup()
2525 kfree(gfxs_ctl); in sony_nc_gfx_switch_cleanup()
2526 gfxs_ctl = NULL; in sony_nc_gfx_switch_cleanup()