Lines Matching refs:toshiba
1828 struct toshiba_acpi_dev *toshiba = dev_get_drvdata(dev); in fan_store() local
1839 ret = set_fan_status(toshiba, state); in fan_store()
1849 struct toshiba_acpi_dev *toshiba = dev_get_drvdata(dev); in fan_show() local
1853 ret = get_fan_status(toshiba, &value); in fan_show()
1865 struct toshiba_acpi_dev *toshiba = dev_get_drvdata(dev); in kbd_backlight_mode_store() local
1875 if (toshiba->kbd_type == 1) { in kbd_backlight_mode_store()
1879 } else if (toshiba->kbd_type == 2) { in kbd_backlight_mode_store()
1895 if (toshiba->kbd_mode != mode) { in kbd_backlight_mode_store()
1897 int time = toshiba->kbd_time << HCI_MISC_SHIFT; in kbd_backlight_mode_store()
1900 if (toshiba->kbd_type == 1) { in kbd_backlight_mode_store()
1902 time |= toshiba->kbd_mode; in kbd_backlight_mode_store()
1903 } else if (toshiba->kbd_type == 2) { in kbd_backlight_mode_store()
1908 ret = toshiba_kbd_illum_status_set(toshiba, time); in kbd_backlight_mode_store()
1912 toshiba->kbd_mode = mode; in kbd_backlight_mode_store()
1929 if (toshiba->kbd_type == 2 && in kbd_backlight_mode_store()
1930 !toshiba->kbd_event_generated) in kbd_backlight_mode_store()
1941 struct toshiba_acpi_dev *toshiba = dev_get_drvdata(dev); in kbd_backlight_mode_show() local
1944 if (toshiba_kbd_illum_status_get(toshiba, &time) < 0) in kbd_backlight_mode_show()
1954 struct toshiba_acpi_dev *toshiba = dev_get_drvdata(dev); in kbd_type_show() local
1956 return sprintf(buf, "%d\n", toshiba->kbd_type); in kbd_type_show()
1964 struct toshiba_acpi_dev *toshiba = dev_get_drvdata(dev); in available_kbd_modes_show() local
1966 if (toshiba->kbd_type == 1) in available_kbd_modes_show()
1979 struct toshiba_acpi_dev *toshiba = dev_get_drvdata(dev); in kbd_backlight_timeout_store() local
1988 if (toshiba->kbd_type == 1) { in kbd_backlight_timeout_store()
1991 } else if (toshiba->kbd_type == 2) { in kbd_backlight_timeout_store()
1999 if (toshiba->kbd_time != time) { in kbd_backlight_timeout_store()
2003 if (toshiba->kbd_type == 1) in kbd_backlight_timeout_store()
2005 else if (toshiba->kbd_type == 2) in kbd_backlight_timeout_store()
2008 ret = toshiba_kbd_illum_status_set(toshiba, time); in kbd_backlight_timeout_store()
2012 toshiba->kbd_time = time >> HCI_MISC_SHIFT; in kbd_backlight_timeout_store()
2022 struct toshiba_acpi_dev *toshiba = dev_get_drvdata(dev); in kbd_backlight_timeout_show() local
2025 if (toshiba_kbd_illum_status_get(toshiba, &time) < 0) in kbd_backlight_timeout_show()
2036 struct toshiba_acpi_dev *toshiba = dev_get_drvdata(dev); in touchpad_store() local
2047 ret = toshiba_touchpad_set(toshiba, state); in touchpad_store()
2057 struct toshiba_acpi_dev *toshiba = dev_get_drvdata(dev); in touchpad_show() local
2061 ret = toshiba_touchpad_get(toshiba, &state); in touchpad_show()
2072 struct toshiba_acpi_dev *toshiba = dev_get_drvdata(dev); in usb_sleep_charge_show() local
2076 ret = toshiba_usb_sleep_charge_get(toshiba, &mode); in usb_sleep_charge_show()
2087 struct toshiba_acpi_dev *toshiba = dev_get_drvdata(dev); in usb_sleep_charge_store() local
2106 mode = toshiba->usbsc_mode_base; in usb_sleep_charge_store()
2116 ret = toshiba_usb_sleep_charge_set(toshiba, mode); in usb_sleep_charge_store()
2128 struct toshiba_acpi_dev *toshiba = dev_get_drvdata(dev); in sleep_functions_on_battery_show() local
2134 ret = toshiba_sleep_functions_status_get(toshiba, &state); in sleep_functions_on_battery_show()
2151 struct toshiba_acpi_dev *toshiba = dev_get_drvdata(dev); in sleep_functions_on_battery_store() local
2170 tmp = toshiba->usbsc_bat_level << HCI_MISC_SHIFT; in sleep_functions_on_battery_store()
2176 ret = toshiba_sleep_functions_status_set(toshiba, status); in sleep_functions_on_battery_store()
2180 toshiba->usbsc_bat_level = status >> HCI_MISC_SHIFT; in sleep_functions_on_battery_store()
2189 struct toshiba_acpi_dev *toshiba = dev_get_drvdata(dev); in usb_rapid_charge_show() local
2193 ret = toshiba_usb_rapid_charge_get(toshiba, &state); in usb_rapid_charge_show()
2204 struct toshiba_acpi_dev *toshiba = dev_get_drvdata(dev); in usb_rapid_charge_store() local
2214 ret = toshiba_usb_rapid_charge_set(toshiba, state); in usb_rapid_charge_store()
2225 struct toshiba_acpi_dev *toshiba = dev_get_drvdata(dev); in usb_sleep_music_show() local
2229 ret = toshiba_usb_sleep_music_get(toshiba, &state); in usb_sleep_music_show()
2240 struct toshiba_acpi_dev *toshiba = dev_get_drvdata(dev); in usb_sleep_music_store() local
2250 ret = toshiba_usb_sleep_music_set(toshiba, state); in usb_sleep_music_store()
2261 struct toshiba_acpi_dev *toshiba = dev_get_drvdata(dev); in kbd_function_keys_show() local
2265 ret = toshiba_function_keys_get(toshiba, &mode); in kbd_function_keys_show()
2276 struct toshiba_acpi_dev *toshiba = dev_get_drvdata(dev); in kbd_function_keys_store() local
2291 ret = toshiba_function_keys_set(toshiba, mode); in kbd_function_keys_store()
2304 struct toshiba_acpi_dev *toshiba = dev_get_drvdata(dev); in panel_power_on_show() local
2308 ret = toshiba_panel_power_on_get(toshiba, &state); in panel_power_on_show()
2319 struct toshiba_acpi_dev *toshiba = dev_get_drvdata(dev); in panel_power_on_store() local
2329 ret = toshiba_panel_power_on_set(toshiba, state); in panel_power_on_store()
2342 struct toshiba_acpi_dev *toshiba = dev_get_drvdata(dev); in usb_three_show() local
2346 ret = toshiba_usb_three_get(toshiba, &state); in usb_three_show()
2357 struct toshiba_acpi_dev *toshiba = dev_get_drvdata(dev); in usb_three_store() local
2372 ret = toshiba_usb_three_set(toshiba, state); in usb_three_store()
2385 struct toshiba_acpi_dev *toshiba = dev_get_drvdata(dev); in cooling_method_show() local
2389 ret = toshiba_cooling_method_get(toshiba, &state); in cooling_method_show()
2393 return sprintf(buf, "%d %d\n", state, toshiba->max_cooling_method); in cooling_method_show()
2400 struct toshiba_acpi_dev *toshiba = dev_get_drvdata(dev); in cooling_method_store() local
2419 if (state < 0 || state > toshiba->max_cooling_method) in cooling_method_store()
2422 ret = toshiba_cooling_method_set(toshiba, state); in cooling_method_store()