Lines Matching refs:toshiba
1830 struct toshiba_acpi_dev *toshiba = dev_get_drvdata(dev); in fan_store() local
1841 ret = set_fan_status(toshiba, state); in fan_store()
1851 struct toshiba_acpi_dev *toshiba = dev_get_drvdata(dev); in fan_show() local
1855 ret = get_fan_status(toshiba, &value); in fan_show()
1867 struct toshiba_acpi_dev *toshiba = dev_get_drvdata(dev); in kbd_backlight_mode_store() local
1877 if (toshiba->kbd_type == 1) { in kbd_backlight_mode_store()
1881 } else if (toshiba->kbd_type == 2) { in kbd_backlight_mode_store()
1897 if (toshiba->kbd_mode != mode) { in kbd_backlight_mode_store()
1899 int time = toshiba->kbd_time << HCI_MISC_SHIFT; in kbd_backlight_mode_store()
1902 if (toshiba->kbd_type == 1) { in kbd_backlight_mode_store()
1904 time |= toshiba->kbd_mode; in kbd_backlight_mode_store()
1905 } else if (toshiba->kbd_type == 2) { in kbd_backlight_mode_store()
1910 ret = toshiba_kbd_illum_status_set(toshiba, time); in kbd_backlight_mode_store()
1914 toshiba->kbd_mode = mode; in kbd_backlight_mode_store()
1931 if (toshiba->kbd_type == 2 && in kbd_backlight_mode_store()
1932 !toshiba->kbd_event_generated) in kbd_backlight_mode_store()
1943 struct toshiba_acpi_dev *toshiba = dev_get_drvdata(dev); in kbd_backlight_mode_show() local
1946 if (toshiba_kbd_illum_status_get(toshiba, &time) < 0) in kbd_backlight_mode_show()
1956 struct toshiba_acpi_dev *toshiba = dev_get_drvdata(dev); in kbd_type_show() local
1958 return sprintf(buf, "%d\n", toshiba->kbd_type); in kbd_type_show()
1966 struct toshiba_acpi_dev *toshiba = dev_get_drvdata(dev); in available_kbd_modes_show() local
1968 if (toshiba->kbd_type == 1) in available_kbd_modes_show()
1981 struct toshiba_acpi_dev *toshiba = dev_get_drvdata(dev); in kbd_backlight_timeout_store() local
1990 if (toshiba->kbd_type == 1) { in kbd_backlight_timeout_store()
1993 } else if (toshiba->kbd_type == 2) { in kbd_backlight_timeout_store()
2001 if (toshiba->kbd_time != time) { in kbd_backlight_timeout_store()
2005 if (toshiba->kbd_type == 1) in kbd_backlight_timeout_store()
2007 else if (toshiba->kbd_type == 2) in kbd_backlight_timeout_store()
2010 ret = toshiba_kbd_illum_status_set(toshiba, time); in kbd_backlight_timeout_store()
2014 toshiba->kbd_time = time >> HCI_MISC_SHIFT; in kbd_backlight_timeout_store()
2024 struct toshiba_acpi_dev *toshiba = dev_get_drvdata(dev); in kbd_backlight_timeout_show() local
2027 if (toshiba_kbd_illum_status_get(toshiba, &time) < 0) in kbd_backlight_timeout_show()
2038 struct toshiba_acpi_dev *toshiba = dev_get_drvdata(dev); in touchpad_store() local
2049 ret = toshiba_touchpad_set(toshiba, state); in touchpad_store()
2059 struct toshiba_acpi_dev *toshiba = dev_get_drvdata(dev); in touchpad_show() local
2063 ret = toshiba_touchpad_get(toshiba, &state); in touchpad_show()
2074 struct toshiba_acpi_dev *toshiba = dev_get_drvdata(dev); in usb_sleep_charge_show() local
2078 ret = toshiba_usb_sleep_charge_get(toshiba, &mode); in usb_sleep_charge_show()
2089 struct toshiba_acpi_dev *toshiba = dev_get_drvdata(dev); in usb_sleep_charge_store() local
2108 mode = toshiba->usbsc_mode_base; in usb_sleep_charge_store()
2118 ret = toshiba_usb_sleep_charge_set(toshiba, mode); in usb_sleep_charge_store()
2130 struct toshiba_acpi_dev *toshiba = dev_get_drvdata(dev); in sleep_functions_on_battery_show() local
2136 ret = toshiba_sleep_functions_status_get(toshiba, &state); in sleep_functions_on_battery_show()
2153 struct toshiba_acpi_dev *toshiba = dev_get_drvdata(dev); in sleep_functions_on_battery_store() local
2172 tmp = toshiba->usbsc_bat_level << HCI_MISC_SHIFT; in sleep_functions_on_battery_store()
2178 ret = toshiba_sleep_functions_status_set(toshiba, status); in sleep_functions_on_battery_store()
2182 toshiba->usbsc_bat_level = status >> HCI_MISC_SHIFT; in sleep_functions_on_battery_store()
2191 struct toshiba_acpi_dev *toshiba = dev_get_drvdata(dev); in usb_rapid_charge_show() local
2195 ret = toshiba_usb_rapid_charge_get(toshiba, &state); in usb_rapid_charge_show()
2206 struct toshiba_acpi_dev *toshiba = dev_get_drvdata(dev); in usb_rapid_charge_store() local
2216 ret = toshiba_usb_rapid_charge_set(toshiba, state); in usb_rapid_charge_store()
2227 struct toshiba_acpi_dev *toshiba = dev_get_drvdata(dev); in usb_sleep_music_show() local
2231 ret = toshiba_usb_sleep_music_get(toshiba, &state); in usb_sleep_music_show()
2242 struct toshiba_acpi_dev *toshiba = dev_get_drvdata(dev); in usb_sleep_music_store() local
2252 ret = toshiba_usb_sleep_music_set(toshiba, state); in usb_sleep_music_store()
2263 struct toshiba_acpi_dev *toshiba = dev_get_drvdata(dev); in kbd_function_keys_show() local
2267 ret = toshiba_function_keys_get(toshiba, &mode); in kbd_function_keys_show()
2278 struct toshiba_acpi_dev *toshiba = dev_get_drvdata(dev); in kbd_function_keys_store() local
2293 ret = toshiba_function_keys_set(toshiba, mode); in kbd_function_keys_store()
2306 struct toshiba_acpi_dev *toshiba = dev_get_drvdata(dev); in panel_power_on_show() local
2310 ret = toshiba_panel_power_on_get(toshiba, &state); in panel_power_on_show()
2321 struct toshiba_acpi_dev *toshiba = dev_get_drvdata(dev); in panel_power_on_store() local
2331 ret = toshiba_panel_power_on_set(toshiba, state); in panel_power_on_store()
2344 struct toshiba_acpi_dev *toshiba = dev_get_drvdata(dev); in usb_three_show() local
2348 ret = toshiba_usb_three_get(toshiba, &state); in usb_three_show()
2359 struct toshiba_acpi_dev *toshiba = dev_get_drvdata(dev); in usb_three_store() local
2374 ret = toshiba_usb_three_set(toshiba, state); in usb_three_store()
2387 struct toshiba_acpi_dev *toshiba = dev_get_drvdata(dev); in cooling_method_show() local
2391 ret = toshiba_cooling_method_get(toshiba, &state); in cooling_method_show()
2395 return sprintf(buf, "%d %d\n", state, toshiba->max_cooling_method); in cooling_method_show()
2402 struct toshiba_acpi_dev *toshiba = dev_get_drvdata(dev); in cooling_method_store() local
2421 if (state < 0 || state > toshiba->max_cooling_method) in cooling_method_store()
2424 ret = toshiba_cooling_method_set(toshiba, state); in cooling_method_store()