Lines Matching refs:pd
142 static int sony_nc_kbd_backlight_setup(struct platform_device *pd,
144 static void sony_nc_kbd_backlight_cleanup(struct platform_device *pd,
147 static int sony_nc_battery_care_setup(struct platform_device *pd,
149 static void sony_nc_battery_care_cleanup(struct platform_device *pd);
151 static int sony_nc_thermal_setup(struct platform_device *pd);
152 static void sony_nc_thermal_cleanup(struct platform_device *pd);
154 static int sony_nc_lid_resume_setup(struct platform_device *pd,
156 static void sony_nc_lid_resume_cleanup(struct platform_device *pd);
158 static int sony_nc_gfx_switch_setup(struct platform_device *pd,
160 static void sony_nc_gfx_switch_cleanup(struct platform_device *pd);
163 static int sony_nc_highspeed_charging_setup(struct platform_device *pd);
164 static void sony_nc_highspeed_charging_cleanup(struct platform_device *pd);
166 static int sony_nc_lowbatt_setup(struct platform_device *pd);
167 static void sony_nc_lowbatt_cleanup(struct platform_device *pd);
169 static int sony_nc_fanspeed_setup(struct platform_device *pd);
170 static void sony_nc_fanspeed_cleanup(struct platform_device *pd);
172 static int sony_nc_usb_charge_setup(struct platform_device *pd);
173 static void sony_nc_usb_charge_cleanup(struct platform_device *pd);
175 static int sony_nc_panelid_setup(struct platform_device *pd);
176 static void sony_nc_panelid_cleanup(struct platform_device *pd);
178 static int sony_nc_smart_conn_setup(struct platform_device *pd);
179 static void sony_nc_smart_conn_cleanup(struct platform_device *pd);
181 static int sony_nc_touchpad_setup(struct platform_device *pd,
183 static void sony_nc_touchpad_cleanup(struct platform_device *pd);
852 static int sony_nc_handles_setup(struct platform_device *pd) in sony_nc_handles_setup() argument
878 if (device_create_file(&pd->dev, &handles->devattr)) { in sony_nc_handles_setup()
888 static int sony_nc_handles_cleanup(struct platform_device *pd) in sony_nc_handles_cleanup() argument
892 device_remove_file(&pd->dev, &handles->devattr); in sony_nc_handles_cleanup()
1444 static void sony_nc_function_cleanup(struct platform_device *pd) in sony_nc_function_cleanup() argument
1463 sony_nc_touchpad_cleanup(pd); in sony_nc_function_cleanup()
1468 sony_nc_battery_care_cleanup(pd); in sony_nc_function_cleanup()
1472 sony_nc_lid_resume_cleanup(pd); in sony_nc_function_cleanup()
1475 sony_nc_thermal_cleanup(pd); in sony_nc_function_cleanup()
1480 sony_nc_gfx_switch_cleanup(pd); in sony_nc_function_cleanup()
1483 sony_nc_highspeed_charging_cleanup(pd); in sony_nc_function_cleanup()
1494 sony_nc_kbd_backlight_cleanup(pd, handle); in sony_nc_function_cleanup()
1497 sony_nc_lowbatt_cleanup(pd); in sony_nc_function_cleanup()
1500 sony_nc_fanspeed_cleanup(pd); in sony_nc_function_cleanup()
1503 sony_nc_usb_charge_cleanup(pd); in sony_nc_function_cleanup()
1506 sony_nc_panelid_cleanup(pd); in sony_nc_function_cleanup()
1509 sony_nc_smart_conn_cleanup(pd); in sony_nc_function_cleanup()
1517 sony_nc_handles_cleanup(pd); in sony_nc_function_cleanup()
1876 static int sony_nc_kbd_backlight_setup(struct platform_device *pd, in sony_nc_kbd_backlight_setup() argument
1926 ret = device_create_file(&pd->dev, &kbdbl_ctl->mode_attr); in sony_nc_kbd_backlight_setup()
1930 ret = device_create_file(&pd->dev, &kbdbl_ctl->timeout_attr); in sony_nc_kbd_backlight_setup()
1940 device_remove_file(&pd->dev, &kbdbl_ctl->mode_attr); in sony_nc_kbd_backlight_setup()
1947 static void sony_nc_kbd_backlight_cleanup(struct platform_device *pd, in sony_nc_kbd_backlight_cleanup() argument
1951 device_remove_file(&pd->dev, &kbdbl_ctl->mode_attr); in sony_nc_kbd_backlight_cleanup()
1952 device_remove_file(&pd->dev, &kbdbl_ctl->timeout_attr); in sony_nc_kbd_backlight_cleanup()
2062 static int sony_nc_battery_care_setup(struct platform_device *pd, in sony_nc_battery_care_setup() argument
2079 ret = device_create_file(&pd->dev, &bcare_ctl->attrs[0]); in sony_nc_battery_care_setup()
2092 ret = device_create_file(&pd->dev, &bcare_ctl->attrs[1]); in sony_nc_battery_care_setup()
2099 device_remove_file(&pd->dev, &bcare_ctl->attrs[0]); in sony_nc_battery_care_setup()
2108 static void sony_nc_battery_care_cleanup(struct platform_device *pd) in sony_nc_battery_care_cleanup() argument
2111 device_remove_file(&pd->dev, &bcare_ctl->attrs[0]); in sony_nc_battery_care_cleanup()
2113 device_remove_file(&pd->dev, &bcare_ctl->attrs[1]); in sony_nc_battery_care_cleanup()
2220 static int sony_nc_thermal_setup(struct platform_device *pd) in sony_nc_thermal_setup() argument
2251 ret = device_create_file(&pd->dev, &th_handle->profiles_attr); in sony_nc_thermal_setup()
2255 ret = device_create_file(&pd->dev, &th_handle->mode_attr); in sony_nc_thermal_setup()
2262 device_remove_file(&pd->dev, &th_handle->profiles_attr); in sony_nc_thermal_setup()
2269 static void sony_nc_thermal_cleanup(struct platform_device *pd) in sony_nc_thermal_cleanup() argument
2272 device_remove_file(&pd->dev, &th_handle->profiles_attr); in sony_nc_thermal_cleanup()
2273 device_remove_file(&pd->dev, &th_handle->mode_attr); in sony_nc_thermal_cleanup()
2357 static int sony_nc_lid_resume_setup(struct platform_device *pd, in sony_nc_lid_resume_setup() argument
2394 result = device_create_file(&pd->dev, &lid_ctl->attrs[i]); in sony_nc_lid_resume_setup()
2403 device_remove_file(&pd->dev, &lid_ctl->attrs[i]); in sony_nc_lid_resume_setup()
2411 static void sony_nc_lid_resume_cleanup(struct platform_device *pd) in sony_nc_lid_resume_cleanup() argument
2420 device_remove_file(&pd->dev, &lid_ctl->attrs[i]); in sony_nc_lid_resume_cleanup()
2491 static int sony_nc_gfx_switch_setup(struct platform_device *pd, in sony_nc_gfx_switch_setup() argument
2507 result = device_create_file(&pd->dev, &gfxs_ctl->attr); in sony_nc_gfx_switch_setup()
2520 static void sony_nc_gfx_switch_cleanup(struct platform_device *pd) in sony_nc_gfx_switch_cleanup() argument
2523 device_remove_file(&pd->dev, &gfxs_ctl->attr); in sony_nc_gfx_switch_cleanup()
2563 static int sony_nc_highspeed_charging_setup(struct platform_device *pd) in sony_nc_highspeed_charging_setup() argument
2585 result = device_create_file(&pd->dev, hsc_handle); in sony_nc_highspeed_charging_setup()
2595 static void sony_nc_highspeed_charging_cleanup(struct platform_device *pd) in sony_nc_highspeed_charging_cleanup() argument
2598 device_remove_file(&pd->dev, hsc_handle); in sony_nc_highspeed_charging_cleanup()
2637 static int sony_nc_lowbatt_setup(struct platform_device *pd) in sony_nc_lowbatt_setup() argument
2651 result = device_create_file(&pd->dev, lowbatt_handle); in sony_nc_lowbatt_setup()
2661 static void sony_nc_lowbatt_cleanup(struct platform_device *pd) in sony_nc_lowbatt_cleanup() argument
2664 device_remove_file(&pd->dev, lowbatt_handle); in sony_nc_lowbatt_cleanup()
2714 static int sony_nc_fanspeed_setup(struct platform_device *pd) in sony_nc_fanspeed_setup() argument
2740 result = device_create_file(&pd->dev, fan_handle); in sony_nc_fanspeed_setup()
2744 result = device_create_file(&pd->dev, hsf_handle); in sony_nc_fanspeed_setup()
2751 device_remove_file(&pd->dev, fan_handle); in sony_nc_fanspeed_setup()
2763 static void sony_nc_fanspeed_cleanup(struct platform_device *pd) in sony_nc_fanspeed_cleanup() argument
2766 device_remove_file(&pd->dev, fan_handle); in sony_nc_fanspeed_cleanup()
2771 device_remove_file(&pd->dev, hsf_handle); in sony_nc_fanspeed_cleanup()
2810 static int sony_nc_usb_charge_setup(struct platform_device *pd) in sony_nc_usb_charge_setup() argument
2832 result = device_create_file(&pd->dev, uc_handle); in sony_nc_usb_charge_setup()
2842 static void sony_nc_usb_charge_cleanup(struct platform_device *pd) in sony_nc_usb_charge_cleanup() argument
2845 device_remove_file(&pd->dev, uc_handle); in sony_nc_usb_charge_cleanup()
2865 static int sony_nc_panelid_setup(struct platform_device *pd) in sony_nc_panelid_setup() argument
2879 result = device_create_file(&pd->dev, panel_handle); in sony_nc_panelid_setup()
2889 static void sony_nc_panelid_cleanup(struct platform_device *pd) in sony_nc_panelid_cleanup() argument
2892 device_remove_file(&pd->dev, panel_handle); in sony_nc_panelid_cleanup()
2920 static int sony_nc_smart_conn_setup(struct platform_device *pd) in sony_nc_smart_conn_setup() argument
2934 result = device_create_file(&pd->dev, sc_handle); in sony_nc_smart_conn_setup()
2944 static void sony_nc_smart_conn_cleanup(struct platform_device *pd) in sony_nc_smart_conn_cleanup() argument
2947 device_remove_file(&pd->dev, sc_handle); in sony_nc_smart_conn_cleanup()
2993 static int sony_nc_touchpad_setup(struct platform_device *pd, in sony_nc_touchpad_setup() argument
3010 ret = device_create_file(&pd->dev, &tp_ctl->attr); in sony_nc_touchpad_setup()
3019 static void sony_nc_touchpad_cleanup(struct platform_device *pd) in sony_nc_touchpad_cleanup() argument
3022 device_remove_file(&pd->dev, &tp_ctl->attr); in sony_nc_touchpad_cleanup()