Lines Matching refs:status

64 		u8  status[2];
82 static int ibm_set_attention_status(struct hotplug_slot *slot, u8 status);
83 static int ibm_get_attention_status(struct hotplug_slot *slot, u8 *status);
117 * has info about the aPCI slot id and attention status.
155 * @status: what to set the LED to (0 or 1)
158 * callback to do the device specific task of setting the LED status.
160 static int ibm_set_attention_status(struct hotplug_slot *slot, u8 status)
175 pr_debug("%s: set slot %d (%d) attention status to %d\n", __func__,
177 (status ? 1 : 0));
182 args[1].integer.value = (status) ? 1 : 0;
198 * ibm_get_attention_status - callback method to get attention LED status
200 * @status: returns what the LED is set to (0 or 1)
203 * callback to do the device specific task of getting the LED status.
205 * Because there is no direct method of getting the LED status directly
207 * slot descriptor to read the status from that.
209 static int ibm_get_attention_status(struct hotplug_slot *slot, u8 *status)
220 if (ibm_slot->slot.attn & 0xa0 || ibm_slot->slot.status[1] & 0x08)
221 *status = 1;
223 *status = 0;
225 pr_debug("%s: get slot %d (%d) attention status is %d\n", __func__,
227 *status);
286 acpi_status status;
290 status = acpi_evaluate_object(ibm_acpi_handle, "APCI", NULL, &buffer);
291 if (ACPI_FAILURE(status)) {
389 acpi_status status;
393 status = acpi_get_object_info(handle, &info);
394 if (ACPI_FAILURE(status)) {
395 pr_err("%s: Failed to get device information status=0x%x\n",
396 __func__, status);
422 acpi_status status;
448 status = acpi_install_notify_handler(ibm_acpi_handle,
451 if (ACPI_FAILURE(status)) {
471 acpi_status status;
479 status = acpi_remove_notify_handler(
483 if (ACPI_FAILURE(status))