Lines Matching refs:slot

287 static int shpc_write_cmd(struct slot *slot, u8 t_slot, u8 cmd)  in shpc_write_cmd()  argument
289 struct controller *ctrl = slot->ctrl; in shpc_write_cmd()
294 mutex_lock(&slot->ctrl->cmd_lock); in shpc_write_cmd()
315 retval = shpc_wait_cmd(slot->ctrl); in shpc_write_cmd()
319 cmd_status = shpchp_check_cmd_status(slot->ctrl); in shpc_write_cmd()
326 mutex_unlock(&slot->ctrl->cmd_lock); in shpc_write_cmd()
359 int shpchp_get_attention_status(struct slot *slot, u8 *status) in shpchp_get_attention_status() argument
361 struct controller *ctrl = slot->ctrl; in shpchp_get_attention_status()
362 u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot)); in shpchp_get_attention_status()
383 int shpchp_get_power_status(struct slot *slot, u8 *status) in shpchp_get_power_status() argument
385 struct controller *ctrl = slot->ctrl; in shpchp_get_power_status()
386 u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot)); in shpchp_get_power_status()
408 int shpchp_get_latch_status(struct slot *slot, u8 *status) in shpchp_get_latch_status() argument
410 struct controller *ctrl = slot->ctrl; in shpchp_get_latch_status()
411 u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot)); in shpchp_get_latch_status()
418 int shpchp_get_adapter_status(struct slot *slot, u8 *status) in shpchp_get_adapter_status() argument
420 struct controller *ctrl = slot->ctrl; in shpchp_get_adapter_status()
421 u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot)); in shpchp_get_adapter_status()
429 int shpchp_get_prog_int(struct slot *slot, u8 *prog_int) in shpchp_get_prog_int() argument
431 struct controller *ctrl = slot->ctrl; in shpchp_get_prog_int()
438 int shpchp_get_adapter_speed(struct slot *slot, enum pci_bus_speed *value) in shpchp_get_adapter_speed() argument
441 struct controller *ctrl = slot->ctrl; in shpchp_get_adapter_speed()
442 u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot)); in shpchp_get_adapter_speed()
446 retval = shpchp_get_prog_int(slot, &pi); in shpchp_get_adapter_speed()
491 int shpchp_query_power_fault(struct slot *slot) in shpchp_query_power_fault() argument
493 struct controller *ctrl = slot->ctrl; in shpchp_query_power_fault()
494 u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot)); in shpchp_query_power_fault()
500 int shpchp_set_attention_status(struct slot *slot, u8 value) in shpchp_set_attention_status() argument
518 return shpc_write_cmd(slot, slot->hp_slot, slot_cmd); in shpchp_set_attention_status()
522 void shpchp_green_led_on(struct slot *slot) in shpchp_green_led_on() argument
524 shpc_write_cmd(slot, slot->hp_slot, SET_PWR_ON); in shpchp_green_led_on()
527 void shpchp_green_led_off(struct slot *slot) in shpchp_green_led_off() argument
529 shpc_write_cmd(slot, slot->hp_slot, SET_PWR_OFF); in shpchp_green_led_off()
532 void shpchp_green_led_blink(struct slot *slot) in shpchp_green_led_blink() argument
534 shpc_write_cmd(slot, slot->hp_slot, SET_PWR_BLINK); in shpchp_green_led_blink()
577 int shpchp_power_on_slot(struct slot *slot) in shpchp_power_on_slot() argument
581 retval = shpc_write_cmd(slot, slot->hp_slot, SET_SLOT_PWR); in shpchp_power_on_slot()
583 ctrl_err(slot->ctrl, "%s: Write command failed!\n", __func__); in shpchp_power_on_slot()
588 int shpchp_slot_enable(struct slot *slot) in shpchp_slot_enable() argument
593 retval = shpc_write_cmd(slot, slot->hp_slot, in shpchp_slot_enable()
596 ctrl_err(slot->ctrl, "%s: Write command failed!\n", __func__); in shpchp_slot_enable()
601 int shpchp_slot_disable(struct slot *slot) in shpchp_slot_disable() argument
606 retval = shpc_write_cmd(slot, slot->hp_slot, in shpchp_slot_disable()
609 ctrl_err(slot->ctrl, "%s: Write command failed!\n", __func__); in shpchp_slot_disable()
683 int shpchp_set_bus_speed_mode(struct slot *slot, enum pci_bus_speed value) in shpchp_set_bus_speed_mode() argument
686 struct controller *ctrl = slot->ctrl; in shpchp_set_bus_speed_mode()
740 retval = shpc_write_cmd(slot, 0, cmd); in shpchp_set_bus_speed_mode()