Searched refs:hp_slot (Results 1 – 7 of 7) sorted by relevance
/drivers/pci/hotplug/ |
D | cpqphp_ctrl.c | 55 int hp_slot; in handle_switch_change() local 67 for (hp_slot = 0; hp_slot < 6; hp_slot++) { in handle_switch_change() 68 if (change & (0x1L << hp_slot)) { in handle_switch_change() 73 (hp_slot + ctrl->slot_device_offset), 0); in handle_switch_change() 80 taskInfo->hp_slot = hp_slot; in handle_switch_change() 85 func->presence_save = (temp_word >> hp_slot) & 0x01; in handle_switch_change() 86 func->presence_save |= (temp_word >> (hp_slot + 7)) & 0x02; in handle_switch_change() 88 if (ctrl->ctrl_int_comp & (0x1L << hp_slot)) { in handle_switch_change() 129 int hp_slot; in handle_presence_change() local 146 for (hp_slot = 0; hp_slot < 6; hp_slot++) { in handle_presence_change() [all …]
|
D | shpchp_hpc.c | 363 u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot)); in hpc_get_attention_status() 387 u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot)); in hpc_get_power_status() 412 u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot)); in hpc_get_latch_status() 422 u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot)); in hpc_get_adapter_status() 443 u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot)); in hpc_get_adapter_speed() 512 u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot)); in hpc_query_power_fault() 536 return shpc_write_cmd(slot, slot->hp_slot, slot_cmd); in hpc_set_attention_status() 542 shpc_write_cmd(slot, slot->hp_slot, SET_PWR_ON); in hpc_set_green_led_on() 547 shpc_write_cmd(slot, slot->hp_slot, SET_PWR_OFF); in hpc_set_green_led_off() 552 shpc_write_cmd(slot, slot->hp_slot, SET_PWR_BLINK); in hpc_set_green_led_blink() [all …]
|
D | cpqphp.h | 260 u8 hp_slot; member 274 u8 hp_slot; member 616 static inline u8 get_adapter_speed(struct controller *ctrl, u8 hp_slot) in get_adapter_speed() argument 619 dbg("slot: %d, PCIXCAP: %8x\n", hp_slot, temp_dword); in get_adapter_speed() 621 if (temp_dword & (0x10000 << hp_slot)) in get_adapter_speed() 623 if (temp_dword & (0x100 << hp_slot)) in get_adapter_speed() 627 if (temp_dword & (0x01 << hp_slot)) in get_adapter_speed() 654 u8 hp_slot; in cpq_get_attention_status() local 656 hp_slot = slot->device - ctrl->slot_device_offset; in cpq_get_attention_status() 658 return read_amber_LED(ctrl, hp_slot); in cpq_get_attention_status() [all …]
|
D | shpchp_ctrl.c | 45 u8 shpchp_handle_attention_button(u8 hp_slot, struct controller *ctrl) in shpchp_handle_attention_button() argument 53 p_slot = shpchp_find_slot(ctrl, hp_slot + ctrl->slot_device_offset); in shpchp_handle_attention_button() 68 u8 shpchp_handle_switch_change(u8 hp_slot, struct controller *ctrl) in shpchp_handle_switch_change() argument 77 p_slot = shpchp_find_slot(ctrl, hp_slot + ctrl->slot_device_offset); in shpchp_handle_switch_change() 106 u8 shpchp_handle_presence_change(u8 hp_slot, struct controller *ctrl) in shpchp_handle_presence_change() argument 114 p_slot = shpchp_find_slot(ctrl, hp_slot + ctrl->slot_device_offset); in shpchp_handle_presence_change() 141 u8 shpchp_handle_power_fault(u8 hp_slot, struct controller *ctrl) in shpchp_handle_power_fault() argument 149 p_slot = shpchp_find_slot(ctrl, hp_slot + ctrl->slot_device_offset); in shpchp_handle_power_fault() 167 ctrl_info(ctrl, "Power fault bit %x set\n", hp_slot); in shpchp_handle_power_fault() 231 u8 hp_slot; in board_added() local [all …]
|
D | shpchp.h | 81 u8 hp_slot; member 162 u8 shpchp_handle_attention_button(u8 hp_slot, struct controller *ctrl); 163 u8 shpchp_handle_switch_change(u8 hp_slot, struct controller *ctrl); 164 u8 shpchp_handle_presence_change(u8 hp_slot, struct controller *ctrl); 165 u8 shpchp_handle_power_fault(u8 hp_slot, struct controller *ctrl);
|
D | cpqphp_core.c | 378 u8 hp_slot; in cpqhp_set_attention_status() local 383 hp_slot = func->device - ctrl->slot_device_offset; in cpqhp_set_attention_status() 389 amber_LED_on(ctrl, hp_slot); in cpqhp_set_attention_status() 391 amber_LED_off(ctrl, hp_slot); in cpqhp_set_attention_status() 757 u8 hp_slot = 0; in cpqhpc_probe() local 1188 hp_slot = func->device - ctrl->slot_device_offset; in cpqhpc_probe() 1189 dbg("hp_slot: %d\n", hp_slot); in cpqhpc_probe() 1193 func->presence_save = (temp_word >> hp_slot) & 0x01; in cpqhpc_probe() 1194 func->presence_save |= (temp_word >> (hp_slot + 7)) & 0x02; in cpqhpc_probe() 1196 if (ctrl->ctrl_int_comp & (0x1L << hp_slot)) in cpqhpc_probe() [all …]
|
D | shpchp_core.c | 81 slot->hp_slot = i; in init_slots() 103 slot->bus, slot->device, slot->hp_slot, slot->number, in init_slots()
|