Lines Matching refs:slot

289 static int pcie_write_cmd(struct slot *slot, u16 cmd)  in pcie_write_cmd()  argument
291 struct php_ctlr_state_s *php_ctlr = (struct php_ctlr_state_s *) slot->ctrl->hpc_ctlr_handle; in pcie_write_cmd()
298 if (!slot->ctrl->hpc_ctlr_handle) { in pcie_write_cmd()
361 static int hpc_get_attention_status(struct slot *slot, u8 *status) in hpc_get_attention_status() argument
363 struct php_ctlr_state_s *php_ctlr = (struct php_ctlr_state_s *) slot->ctrl->hpc_ctlr_handle; in hpc_get_attention_status()
370 if (!slot->ctrl->hpc_ctlr_handle) { in hpc_get_attention_status()
409 static int hpc_get_power_status(struct slot * slot, u8 *status) in hpc_get_power_status() argument
411 struct php_ctlr_state_s *php_ctlr = (struct php_ctlr_state_s *) slot->ctrl->hpc_ctlr_handle; in hpc_get_power_status()
418 if (!slot->ctrl->hpc_ctlr_handle) { in hpc_get_power_status()
450 static int hpc_get_latch_status(struct slot *slot, u8 *status) in hpc_get_latch_status() argument
452 struct php_ctlr_state_s *php_ctlr = (struct php_ctlr_state_s *) slot->ctrl->hpc_ctlr_handle; in hpc_get_latch_status()
458 if (!slot->ctrl->hpc_ctlr_handle) { in hpc_get_latch_status()
476 static int hpc_get_adapter_status(struct slot *slot, u8 *status) in hpc_get_adapter_status() argument
478 struct php_ctlr_state_s *php_ctlr = (struct php_ctlr_state_s *) slot->ctrl->hpc_ctlr_handle; in hpc_get_adapter_status()
485 if (!slot->ctrl->hpc_ctlr_handle) { in hpc_get_adapter_status()
504 static int hpc_query_power_fault(struct slot * slot) in hpc_query_power_fault() argument
506 struct php_ctlr_state_s *php_ctlr = (struct php_ctlr_state_s *) slot->ctrl->hpc_ctlr_handle; in hpc_query_power_fault()
514 if (!slot->ctrl->hpc_ctlr_handle) { in hpc_query_power_fault()
533 static int hpc_set_attention_status(struct slot *slot, u8 value) in hpc_set_attention_status() argument
535 struct php_ctlr_state_s *php_ctlr = (struct php_ctlr_state_s *) slot->ctrl->hpc_ctlr_handle; in hpc_set_attention_status()
541 if (!slot->ctrl->hpc_ctlr_handle) { in hpc_set_attention_status()
546 if (slot->hp_slot >= php_ctlr->num_slots) { in hpc_set_attention_status()
577 pcie_write_cmd(slot, slot_cmd); in hpc_set_attention_status()
585 static void hpc_set_green_led_on(struct slot *slot) in hpc_set_green_led_on() argument
587 struct php_ctlr_state_s *php_ctlr = (struct php_ctlr_state_s *) slot->ctrl->hpc_ctlr_handle; in hpc_set_green_led_on()
593 if (!slot->ctrl->hpc_ctlr_handle) { in hpc_set_green_led_on()
598 if (slot->hp_slot >= php_ctlr->num_slots) { in hpc_set_green_led_on()
616 pcie_write_cmd(slot, slot_cmd); in hpc_set_green_led_on()
623 static void hpc_set_green_led_off(struct slot *slot) in hpc_set_green_led_off() argument
625 struct php_ctlr_state_s *php_ctlr = (struct php_ctlr_state_s *) slot->ctrl->hpc_ctlr_handle; in hpc_set_green_led_off()
631 if (!slot->ctrl->hpc_ctlr_handle) { in hpc_set_green_led_off()
636 if (slot->hp_slot >= php_ctlr->num_slots) { in hpc_set_green_led_off()
654 pcie_write_cmd(slot, slot_cmd); in hpc_set_green_led_off()
661 static void hpc_set_green_led_blink(struct slot *slot) in hpc_set_green_led_blink() argument
663 struct php_ctlr_state_s *php_ctlr =(struct php_ctlr_state_s *) slot->ctrl->hpc_ctlr_handle; in hpc_set_green_led_blink()
669 if (!slot->ctrl->hpc_ctlr_handle) { in hpc_set_green_led_blink()
674 if (slot->hp_slot >= php_ctlr->num_slots) { in hpc_set_green_led_blink()
692 pcie_write_cmd(slot, slot_cmd); in hpc_set_green_led_blink()
779 static int hpc_power_on_slot(struct slot * slot) in hpc_power_on_slot() argument
781 struct php_ctlr_state_s *php_ctlr = (struct php_ctlr_state_s *) slot->ctrl->hpc_ctlr_handle; in hpc_power_on_slot()
790 if (!slot->ctrl->hpc_ctlr_handle) { in hpc_power_on_slot()
794 dbg("%s: slot->hp_slot %x\n", __FUNCTION__, slot->hp_slot); in hpc_power_on_slot()
795 if (slot->hp_slot >= php_ctlr->num_slots) { in hpc_power_on_slot()
814 retval = pcie_write_cmd(slot, slot_cmd); in hpc_power_on_slot()
828 static int hpc_power_off_slot(struct slot * slot) in hpc_power_off_slot() argument
830 struct php_ctlr_state_s *php_ctlr = (struct php_ctlr_state_s *) slot->ctrl->hpc_ctlr_handle; in hpc_power_off_slot()
839 if (!slot->ctrl->hpc_ctlr_handle) { in hpc_power_off_slot()
844 dbg("%s: slot->hp_slot %x\n", __FUNCTION__, slot->hp_slot); in hpc_power_off_slot()
845 slot->hp_slot = 0; in hpc_power_off_slot()
846 if (slot->hp_slot >= php_ctlr->num_slots) { in hpc_power_off_slot()
864 retval = pcie_write_cmd(slot, slot_cmd); in hpc_power_off_slot()
1018 static int hpc_get_max_lnk_speed (struct slot *slot, enum pcie_link_speed *value) in hpc_get_max_lnk_speed() argument
1020 struct php_ctlr_state_s *php_ctlr = (struct php_ctlr_state_s *) slot->ctrl->hpc_ctlr_handle; in hpc_get_max_lnk_speed()
1027 if (!slot->ctrl->hpc_ctlr_handle) { in hpc_get_max_lnk_speed()
1032 if (slot->hp_slot >= php_ctlr->num_slots) { in hpc_get_max_lnk_speed()
1059 static int hpc_get_max_lnk_width (struct slot *slot, enum pcie_link_width *value) in hpc_get_max_lnk_width() argument
1061 struct php_ctlr_state_s *php_ctlr = (struct php_ctlr_state_s *) slot->ctrl->hpc_ctlr_handle; in hpc_get_max_lnk_width()
1068 if (!slot->ctrl->hpc_ctlr_handle) { in hpc_get_max_lnk_width()
1073 if (slot->hp_slot >= php_ctlr->num_slots) { in hpc_get_max_lnk_width()
1121 static int hpc_get_cur_lnk_speed (struct slot *slot, enum pcie_link_speed *value) in hpc_get_cur_lnk_speed() argument
1123 struct php_ctlr_state_s *php_ctlr = (struct php_ctlr_state_s *) slot->ctrl->hpc_ctlr_handle; in hpc_get_cur_lnk_speed()
1130 if (!slot->ctrl->hpc_ctlr_handle) { in hpc_get_cur_lnk_speed()
1135 if (slot->hp_slot >= php_ctlr->num_slots) { in hpc_get_cur_lnk_speed()
1162 static int hpc_get_cur_lnk_width (struct slot *slot, enum pcie_link_width *value) in hpc_get_cur_lnk_width() argument
1164 struct php_ctlr_state_s *php_ctlr = (struct php_ctlr_state_s *) slot->ctrl->hpc_ctlr_handle; in hpc_get_cur_lnk_width()
1171 if (!slot->ctrl->hpc_ctlr_handle) { in hpc_get_cur_lnk_width()
1176 if (slot->hp_slot >= php_ctlr->num_slots) { in hpc_get_cur_lnk_width()