Searched refs:hp_slot (Results 1 – 7 of 7) sorted by relevance
/linux/drivers/pci/hotplug/ |
H A 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 …]
|
H A D | shpchp_hpc.c | 362 u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot)); in shpchp_get_attention_status() 386 u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot)); in shpchp_get_power_status() 411 u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot)); in shpchp_get_latch_status() 421 u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot)); in shpchp_get_adapter_status() 442 u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot)); in shpchp_get_adapter_speed() 494 u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot)); in shpchp_query_power_fault() 518 return shpc_write_cmd(slot, slot->hp_slot, slot_cmd); in shpchp_set_attention_status() 524 shpc_write_cmd(slot, slot->hp_slot, SET_PWR_ON); in shpchp_green_led_on() 529 shpc_write_cmd(slot, slot->hp_slot, SET_PWR_OFF); in shpchp_green_led_off() 534 shpc_write_cmd(slot, slot->hp_slot, SET_PWR_BLINK); in shpchp_green_led_blink() [all …]
|
H A 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 …]
|
H A 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 …]
|
H A D | shpchp.h | 80 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);
|
H A 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 …]
|
H A D | shpchp_core.c | 80 slot->hp_slot = i; in init_slots() 101 slot->bus, slot->device, slot->hp_slot, slot->number, in init_slots()
|