Lines Matching refs:pd

141 static int sony_nc_kbd_backlight_setup(struct platform_device *pd,
143 static void sony_nc_kbd_backlight_cleanup(struct platform_device *pd,
146 static int sony_nc_battery_care_setup(struct platform_device *pd,
148 static void sony_nc_battery_care_cleanup(struct platform_device *pd);
150 static int sony_nc_thermal_setup(struct platform_device *pd);
151 static void sony_nc_thermal_cleanup(struct platform_device *pd);
153 static int sony_nc_lid_resume_setup(struct platform_device *pd,
155 static void sony_nc_lid_resume_cleanup(struct platform_device *pd);
157 static int sony_nc_gfx_switch_setup(struct platform_device *pd,
159 static void sony_nc_gfx_switch_cleanup(struct platform_device *pd);
162 static int sony_nc_highspeed_charging_setup(struct platform_device *pd);
163 static void sony_nc_highspeed_charging_cleanup(struct platform_device *pd);
165 static int sony_nc_lowbatt_setup(struct platform_device *pd);
166 static void sony_nc_lowbatt_cleanup(struct platform_device *pd);
168 static int sony_nc_fanspeed_setup(struct platform_device *pd);
169 static void sony_nc_fanspeed_cleanup(struct platform_device *pd);
171 static int sony_nc_usb_charge_setup(struct platform_device *pd);
172 static void sony_nc_usb_charge_cleanup(struct platform_device *pd);
174 static int sony_nc_panelid_setup(struct platform_device *pd);
175 static void sony_nc_panelid_cleanup(struct platform_device *pd);
177 static int sony_nc_smart_conn_setup(struct platform_device *pd);
178 static void sony_nc_smart_conn_cleanup(struct platform_device *pd);
180 static int sony_nc_touchpad_setup(struct platform_device *pd,
182 static void sony_nc_touchpad_cleanup(struct platform_device *pd);
851 static int sony_nc_handles_setup(struct platform_device *pd) in sony_nc_handles_setup() argument
877 if (device_create_file(&pd->dev, &handles->devattr)) { in sony_nc_handles_setup()
887 static int sony_nc_handles_cleanup(struct platform_device *pd) in sony_nc_handles_cleanup() argument
891 device_remove_file(&pd->dev, &handles->devattr); in sony_nc_handles_cleanup()
1442 static void sony_nc_function_cleanup(struct platform_device *pd) in sony_nc_function_cleanup() argument
1461 sony_nc_touchpad_cleanup(pd); in sony_nc_function_cleanup()
1466 sony_nc_battery_care_cleanup(pd); in sony_nc_function_cleanup()
1470 sony_nc_lid_resume_cleanup(pd); in sony_nc_function_cleanup()
1473 sony_nc_thermal_cleanup(pd); in sony_nc_function_cleanup()
1478 sony_nc_gfx_switch_cleanup(pd); in sony_nc_function_cleanup()
1481 sony_nc_highspeed_charging_cleanup(pd); in sony_nc_function_cleanup()
1492 sony_nc_kbd_backlight_cleanup(pd, handle); in sony_nc_function_cleanup()
1495 sony_nc_lowbatt_cleanup(pd); in sony_nc_function_cleanup()
1498 sony_nc_fanspeed_cleanup(pd); in sony_nc_function_cleanup()
1501 sony_nc_usb_charge_cleanup(pd); in sony_nc_function_cleanup()
1504 sony_nc_panelid_cleanup(pd); in sony_nc_function_cleanup()
1507 sony_nc_smart_conn_cleanup(pd); in sony_nc_function_cleanup()
1515 sony_nc_handles_cleanup(pd); in sony_nc_function_cleanup()
1874 static int sony_nc_kbd_backlight_setup(struct platform_device *pd, in sony_nc_kbd_backlight_setup() argument
1924 ret = device_create_file(&pd->dev, &kbdbl_ctl->mode_attr); in sony_nc_kbd_backlight_setup()
1928 ret = device_create_file(&pd->dev, &kbdbl_ctl->timeout_attr); in sony_nc_kbd_backlight_setup()
1938 device_remove_file(&pd->dev, &kbdbl_ctl->mode_attr); in sony_nc_kbd_backlight_setup()
1945 static void sony_nc_kbd_backlight_cleanup(struct platform_device *pd, in sony_nc_kbd_backlight_cleanup() argument
1949 device_remove_file(&pd->dev, &kbdbl_ctl->mode_attr); in sony_nc_kbd_backlight_cleanup()
1950 device_remove_file(&pd->dev, &kbdbl_ctl->timeout_attr); in sony_nc_kbd_backlight_cleanup()
2060 static int sony_nc_battery_care_setup(struct platform_device *pd, in sony_nc_battery_care_setup() argument
2077 ret = device_create_file(&pd->dev, &bcare_ctl->attrs[0]); in sony_nc_battery_care_setup()
2090 ret = device_create_file(&pd->dev, &bcare_ctl->attrs[1]); in sony_nc_battery_care_setup()
2097 device_remove_file(&pd->dev, &bcare_ctl->attrs[0]); in sony_nc_battery_care_setup()
2106 static void sony_nc_battery_care_cleanup(struct platform_device *pd) in sony_nc_battery_care_cleanup() argument
2109 device_remove_file(&pd->dev, &bcare_ctl->attrs[0]); in sony_nc_battery_care_cleanup()
2111 device_remove_file(&pd->dev, &bcare_ctl->attrs[1]); in sony_nc_battery_care_cleanup()
2218 static int sony_nc_thermal_setup(struct platform_device *pd) in sony_nc_thermal_setup() argument
2249 ret = device_create_file(&pd->dev, &th_handle->profiles_attr); in sony_nc_thermal_setup()
2253 ret = device_create_file(&pd->dev, &th_handle->mode_attr); in sony_nc_thermal_setup()
2260 device_remove_file(&pd->dev, &th_handle->profiles_attr); in sony_nc_thermal_setup()
2267 static void sony_nc_thermal_cleanup(struct platform_device *pd) in sony_nc_thermal_cleanup() argument
2270 device_remove_file(&pd->dev, &th_handle->profiles_attr); in sony_nc_thermal_cleanup()
2271 device_remove_file(&pd->dev, &th_handle->mode_attr); in sony_nc_thermal_cleanup()
2355 static int sony_nc_lid_resume_setup(struct platform_device *pd, in sony_nc_lid_resume_setup() argument
2392 result = device_create_file(&pd->dev, &lid_ctl->attrs[i]); in sony_nc_lid_resume_setup()
2401 device_remove_file(&pd->dev, &lid_ctl->attrs[i]); in sony_nc_lid_resume_setup()
2409 static void sony_nc_lid_resume_cleanup(struct platform_device *pd) in sony_nc_lid_resume_cleanup() argument
2418 device_remove_file(&pd->dev, &lid_ctl->attrs[i]); in sony_nc_lid_resume_cleanup()
2489 static int sony_nc_gfx_switch_setup(struct platform_device *pd, in sony_nc_gfx_switch_setup() argument
2505 result = device_create_file(&pd->dev, &gfxs_ctl->attr); in sony_nc_gfx_switch_setup()
2518 static void sony_nc_gfx_switch_cleanup(struct platform_device *pd) in sony_nc_gfx_switch_cleanup() argument
2521 device_remove_file(&pd->dev, &gfxs_ctl->attr); in sony_nc_gfx_switch_cleanup()
2561 static int sony_nc_highspeed_charging_setup(struct platform_device *pd) in sony_nc_highspeed_charging_setup() argument
2583 result = device_create_file(&pd->dev, hsc_handle); in sony_nc_highspeed_charging_setup()
2593 static void sony_nc_highspeed_charging_cleanup(struct platform_device *pd) in sony_nc_highspeed_charging_cleanup() argument
2596 device_remove_file(&pd->dev, hsc_handle); in sony_nc_highspeed_charging_cleanup()
2635 static int sony_nc_lowbatt_setup(struct platform_device *pd) in sony_nc_lowbatt_setup() argument
2649 result = device_create_file(&pd->dev, lowbatt_handle); in sony_nc_lowbatt_setup()
2659 static void sony_nc_lowbatt_cleanup(struct platform_device *pd) in sony_nc_lowbatt_cleanup() argument
2662 device_remove_file(&pd->dev, lowbatt_handle); in sony_nc_lowbatt_cleanup()
2712 static int sony_nc_fanspeed_setup(struct platform_device *pd) in sony_nc_fanspeed_setup() argument
2738 result = device_create_file(&pd->dev, fan_handle); in sony_nc_fanspeed_setup()
2742 result = device_create_file(&pd->dev, hsf_handle); in sony_nc_fanspeed_setup()
2749 device_remove_file(&pd->dev, fan_handle); in sony_nc_fanspeed_setup()
2761 static void sony_nc_fanspeed_cleanup(struct platform_device *pd) in sony_nc_fanspeed_cleanup() argument
2764 device_remove_file(&pd->dev, fan_handle); in sony_nc_fanspeed_cleanup()
2769 device_remove_file(&pd->dev, hsf_handle); in sony_nc_fanspeed_cleanup()
2808 static int sony_nc_usb_charge_setup(struct platform_device *pd) in sony_nc_usb_charge_setup() argument
2830 result = device_create_file(&pd->dev, uc_handle); in sony_nc_usb_charge_setup()
2840 static void sony_nc_usb_charge_cleanup(struct platform_device *pd) in sony_nc_usb_charge_cleanup() argument
2843 device_remove_file(&pd->dev, uc_handle); in sony_nc_usb_charge_cleanup()
2863 static int sony_nc_panelid_setup(struct platform_device *pd) in sony_nc_panelid_setup() argument
2877 result = device_create_file(&pd->dev, panel_handle); in sony_nc_panelid_setup()
2887 static void sony_nc_panelid_cleanup(struct platform_device *pd) in sony_nc_panelid_cleanup() argument
2890 device_remove_file(&pd->dev, panel_handle); in sony_nc_panelid_cleanup()
2918 static int sony_nc_smart_conn_setup(struct platform_device *pd) in sony_nc_smart_conn_setup() argument
2932 result = device_create_file(&pd->dev, sc_handle); in sony_nc_smart_conn_setup()
2942 static void sony_nc_smart_conn_cleanup(struct platform_device *pd) in sony_nc_smart_conn_cleanup() argument
2945 device_remove_file(&pd->dev, sc_handle); in sony_nc_smart_conn_cleanup()
2991 static int sony_nc_touchpad_setup(struct platform_device *pd, in sony_nc_touchpad_setup() argument
3008 ret = device_create_file(&pd->dev, &tp_ctl->attr); in sony_nc_touchpad_setup()
3017 static void sony_nc_touchpad_cleanup(struct platform_device *pd) in sony_nc_touchpad_cleanup() argument
3020 device_remove_file(&pd->dev, &tp_ctl->attr); in sony_nc_touchpad_cleanup()