Home
last modified time | relevance | path

Searched refs:hp_slot (Results 1 – 7 of 7) sorted by relevance

/drivers/pci/hotplug/
Dcpqphp_ctrl.c69 int hp_slot; in handle_switch_change() local
81 for (hp_slot = 0; hp_slot < 6; hp_slot++) { in handle_switch_change()
82 if (change & (0x1L << hp_slot)) { in handle_switch_change()
87 (hp_slot + ctrl->slot_device_offset), 0); in handle_switch_change()
94 taskInfo->hp_slot = hp_slot; in handle_switch_change()
99 func->presence_save = (temp_word >> hp_slot) & 0x01; in handle_switch_change()
100 func->presence_save |= (temp_word >> (hp_slot + 7)) & 0x02; in handle_switch_change()
102 if (ctrl->ctrl_int_comp & (0x1L << hp_slot)) { in handle_switch_change()
143 int hp_slot; in handle_presence_change() local
160 for (hp_slot = 0; hp_slot < 6; hp_slot++) { in handle_presence_change()
[all …]
Dshpchp_hpc.c386 u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot)); in hpc_get_attention_status()
410 u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot)); in hpc_get_power_status()
435 u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot)); in hpc_get_latch_status()
445 u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot)); in hpc_get_adapter_status()
466 u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot)); in hpc_get_adapter_speed()
534 u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot)); in hpc_query_power_fault()
558 return shpc_write_cmd(slot, slot->hp_slot, slot_cmd); in hpc_set_attention_status()
564 shpc_write_cmd(slot, slot->hp_slot, SET_PWR_ON); in hpc_set_green_led_on()
569 shpc_write_cmd(slot, slot->hp_slot, SET_PWR_OFF); in hpc_set_green_led_off()
574 shpc_write_cmd(slot, slot->hp_slot, SET_PWR_BLINK); in hpc_set_green_led_blink()
[all …]
Dcpqphp.h274 u8 hp_slot; member
288 u8 hp_slot; member
631 static inline u8 get_adapter_speed(struct controller *ctrl, u8 hp_slot) in get_adapter_speed() argument
634 dbg("slot: %d, PCIXCAP: %8x\n", hp_slot, temp_dword); in get_adapter_speed()
636 if (temp_dword & (0x10000 << hp_slot)) in get_adapter_speed()
638 if (temp_dword & (0x100 << hp_slot)) in get_adapter_speed()
642 if (temp_dword & (0x01 << hp_slot)) in get_adapter_speed()
669 u8 hp_slot; in cpq_get_attention_status() local
671 hp_slot = slot->device - ctrl->slot_device_offset; in cpq_get_attention_status()
673 return read_amber_LED(ctrl, hp_slot); in cpq_get_attention_status()
[all …]
Dshpchp_ctrl.c59 u8 shpchp_handle_attention_button(u8 hp_slot, struct controller *ctrl) in shpchp_handle_attention_button() argument
67 p_slot = shpchp_find_slot(ctrl, hp_slot + ctrl->slot_device_offset); in shpchp_handle_attention_button()
82 u8 shpchp_handle_switch_change(u8 hp_slot, struct controller *ctrl) in shpchp_handle_switch_change() argument
91 p_slot = shpchp_find_slot(ctrl, hp_slot + ctrl->slot_device_offset); in shpchp_handle_switch_change()
120 u8 shpchp_handle_presence_change(u8 hp_slot, struct controller *ctrl) in shpchp_handle_presence_change() argument
128 p_slot = shpchp_find_slot(ctrl, hp_slot + ctrl->slot_device_offset); in shpchp_handle_presence_change()
155 u8 shpchp_handle_power_fault(u8 hp_slot, struct controller *ctrl) in shpchp_handle_power_fault() argument
163 p_slot = shpchp_find_slot(ctrl, hp_slot + ctrl->slot_device_offset); in shpchp_handle_power_fault()
181 ctrl_info(ctrl, "Power fault bit %x set\n", hp_slot); in shpchp_handle_power_fault()
244 u8 hp_slot; in board_added() local
[all …]
Dshpchp.h93 u8 hp_slot; member
175 extern u8 shpchp_handle_attention_button(u8 hp_slot, struct controller *ctrl);
176 extern u8 shpchp_handle_switch_change(u8 hp_slot, struct controller *ctrl);
177 extern u8 shpchp_handle_presence_change(u8 hp_slot, struct controller *ctrl);
178 extern u8 shpchp_handle_power_fault(u8 hp_slot, struct controller *ctrl);
Dcpqphp_core.c405 u8 hp_slot; in cpqhp_set_attention_status() local
410 hp_slot = func->device - ctrl->slot_device_offset; in cpqhp_set_attention_status()
416 amber_LED_on (ctrl, hp_slot); in cpqhp_set_attention_status()
418 amber_LED_off (ctrl, hp_slot); in cpqhp_set_attention_status()
812 u8 hp_slot = 0; in cpqhpc_probe() local
1245 hp_slot = func->device - ctrl->slot_device_offset; in cpqhpc_probe()
1246 dbg("hp_slot: %d\n", hp_slot); in cpqhpc_probe()
1250 func->presence_save = (temp_word >> hp_slot) & 0x01; in cpqhpc_probe()
1251 func->presence_save |= (temp_word >> (hp_slot + 7)) & 0x02; in cpqhpc_probe()
1253 if (ctrl->ctrl_int_comp & (0x1L << hp_slot)) in cpqhpc_probe()
[all …]
Dshpchp_core.c119 slot->hp_slot = i; in init_slots()
137 slot->bus, slot->device, slot->hp_slot, slot->number, in init_slots()