Lines Matching refs:result
94 unsigned long long result; in memory_get_cur_bandwidth() local
104 &arg_list, &result); in memory_get_cur_bandwidth()
108 *value = result; in memory_get_cur_bandwidth()
156 int result = -ENODEV; in intel_menlow_memory_add() local
171 result = PTR_ERR(cdev); in intel_menlow_memory_add()
176 result = sysfs_create_link(&device->dev.kobj, in intel_menlow_memory_add()
178 if (result) in intel_menlow_memory_add()
181 result = sysfs_create_link(&cdev->device.kobj, in intel_menlow_memory_add()
183 if (result) { in intel_menlow_memory_add()
189 return result; in intel_menlow_memory_add()
193 return result; in intel_menlow_memory_add()
314 int result; in aux0_show() local
316 result = sensor_get_auxtrip(attr->handle, 0, &value); in aux0_show()
318 return result ? result : sprintf(buf, "%lu", DECI_KELVIN_TO_CELSIUS(value)); in aux0_show()
326 int result; in aux1_show() local
328 result = sensor_get_auxtrip(attr->handle, 1, &value); in aux1_show()
330 return result ? result : sprintf(buf, "%lu", DECI_KELVIN_TO_CELSIUS(value)); in aux1_show()
339 int result; in aux0_store() local
348 result = sensor_set_auxtrip(attr->handle, 0, CELSIUS_TO_DECI_KELVIN(value)); in aux0_store()
349 return result ? result : count; in aux0_store()
358 int result; in aux1_store() local
367 result = sensor_set_auxtrip(attr->handle, 1, CELSIUS_TO_DECI_KELVIN(value)); in aux1_store()
368 return result ? result : count; in aux1_store()
391 int result; in intel_menlow_add_one_attribute() local
405 result = device_create_file(dev, &attr->attr); in intel_menlow_add_one_attribute()
406 if (result) { in intel_menlow_add_one_attribute()
408 return result; in intel_menlow_add_one_attribute()
424 int result; in intel_menlow_register_sensor() local
426 result = acpi_bus_get_private_data(handle, (void **)&thermal); in intel_menlow_register_sensor()
427 if (result) in intel_menlow_register_sensor()
439 result = intel_menlow_add_one_attribute("aux0", 0644, in intel_menlow_register_sensor()
442 if (result) in intel_menlow_register_sensor()
453 result = intel_menlow_add_one_attribute("aux1", 0644, in intel_menlow_register_sensor()
456 if (result) { in intel_menlow_register_sensor()
466 result = intel_menlow_add_one_attribute("bios_enabled", 0444, in intel_menlow_register_sensor()
469 if (result) { in intel_menlow_register_sensor()
501 int result = -ENODEV; in intel_menlow_module_init() local
506 return result; in intel_menlow_module_init()
514 result = acpi_bus_register_driver(&intel_menlow_memory_driver); in intel_menlow_module_init()
515 if (result) in intel_menlow_module_init()
516 return result; in intel_menlow_module_init()