Searched refs:hp_slot (Results 1 – 7 of 7) sorted by relevance
/linux-4.19.296/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 | 368 u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot)); in hpc_get_attention_status() 392 u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot)); in hpc_get_power_status() 417 u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot)); in hpc_get_latch_status() 427 u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot)); in hpc_get_adapter_status() 448 u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot)); in hpc_get_adapter_speed() 517 u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot)); in hpc_query_power_fault() 541 return shpc_write_cmd(slot, slot->hp_slot, slot_cmd); in hpc_set_attention_status() 547 shpc_write_cmd(slot, slot->hp_slot, SET_PWR_ON); in hpc_set_green_led_on() 552 shpc_write_cmd(slot, slot->hp_slot, SET_PWR_OFF); in hpc_set_green_led_off() 557 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 611 static inline u8 get_adapter_speed(struct controller *ctrl, u8 hp_slot) in get_adapter_speed() argument 614 dbg("slot: %d, PCIXCAP: %8x\n", hp_slot, temp_dword); in get_adapter_speed() 616 if (temp_dword & (0x10000 << hp_slot)) in get_adapter_speed() 618 if (temp_dword & (0x100 << hp_slot)) in get_adapter_speed() 622 if (temp_dword & (0x01 << hp_slot)) in get_adapter_speed() 649 u8 hp_slot; in cpq_get_attention_status() local 651 hp_slot = slot->device - ctrl->slot_device_offset; in cpq_get_attention_status() 653 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 | 79 u8 hp_slot; member 160 u8 shpchp_handle_attention_button(u8 hp_slot, struct controller *ctrl); 161 u8 shpchp_handle_switch_change(u8 hp_slot, struct controller *ctrl); 162 u8 shpchp_handle_presence_change(u8 hp_slot, struct controller *ctrl); 163 u8 shpchp_handle_power_fault(u8 hp_slot, struct controller *ctrl);
|
D | cpqphp_core.c | 382 u8 hp_slot; in cpqhp_set_attention_status() local 387 hp_slot = func->device - ctrl->slot_device_offset; in cpqhp_set_attention_status() 393 amber_LED_on(ctrl, hp_slot); in cpqhp_set_attention_status() 395 amber_LED_off(ctrl, hp_slot); in cpqhp_set_attention_status() 792 u8 hp_slot = 0; in cpqhpc_probe() local 1223 hp_slot = func->device - ctrl->slot_device_offset; in cpqhpc_probe() 1224 dbg("hp_slot: %d\n", hp_slot); in cpqhpc_probe() 1228 func->presence_save = (temp_word >> hp_slot) & 0x01; in cpqhpc_probe() 1229 func->presence_save |= (temp_word >> (hp_slot + 7)) & 0x02; in cpqhpc_probe() 1231 if (ctrl->ctrl_int_comp & (0x1L << hp_slot)) in cpqhpc_probe() [all …]
|
D | shpchp_core.c | 94 slot->hp_slot = i; in init_slots() 117 slot->bus, slot->device, slot->hp_slot, slot->number, in init_slots()
|