Home
last modified time | relevance | path

Searched refs:hp_slot (Results 1 - 14 of 14) sorted by relevance

/kernel/linux/linux-5.10/drivers/pci/hotplug/
H A Dcpqphp_ctrl.c55 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 in handle_switch_change()
129 int hp_slot; handle_presence_change() local
223 int hp_slot; handle_power_fault() local
1115 set_controller_speed(struct controller *ctrl, u8 adapter_speed, u8 hp_slot) set_controller_speed() argument
1257 u8 hp_slot; board_replaced() local
1407 u8 hp_slot; board_added() local
1615 u8 hp_slot; remove_board() local
1773 u8 hp_slot; interrupt_event_handler() local
1887 u8 hp_slot; cpqhp_pushbutton_thread() local
1949 u8 device, hp_slot; cpqhp_process_SI() local
[all...]
H A Dshpchp_hpc.c368 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_BLIN in hpc_set_green_led_blink()
776 int hp_slot; shpc_isr() local
922 u8 hp_slot; shpc_init() local
[all...]
H A Dshpchp_ctrl.c45 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
340 u8 hp_slot; remove_board() local
[all...]
H A Dcpqphp.h260 u8 hp_slot; member
274 u8 hp_slot; member
612 * @hp_slot: hotplug slot where adapter is installed.
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 in cpq_get_attention_status()
664 u8 hp_slot; get_slot_enabled() local
676 u8 hp_slot; cpq_get_latch_status() local
692 u8 hp_slot; get_presence_status() local
[all...]
H A Dshpchp.h81 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);
H A Dcpqphp_core.c377 u8 hp_slot; in cpqhp_set_attention_status() local
382 hp_slot = func->device - ctrl->slot_device_offset; in cpqhp_set_attention_status()
388 amber_LED_on(ctrl, hp_slot); in cpqhp_set_attention_status()
390 amber_LED_off(ctrl, hp_slot); in cpqhp_set_attention_status()
756 u8 hp_slot = 0; in cpqhpc_probe() local
1187 hp_slot = func->device - ctrl->slot_device_offset; in cpqhpc_probe()
1188 dbg("hp_slot: %d\n", hp_slot); in cpqhpc_probe()
1192 func->presence_save = (temp_word >> hp_slot) & 0x01; in cpqhpc_probe()
1193 func->presence_save |= (temp_word >> (hp_slot in cpqhpc_probe()
[all...]
H A Dshpchp_core.c81 slot->hp_slot = i; in init_slots()
101 ctrl_dbg(ctrl, "Registering domain:bus:dev=%04x:%02x:%02x hp_slot=%x sun=%x slot_device_offset=%x\n", in init_slots()
103 slot->bus, slot->device, slot->hp_slot, slot->number, in init_slots()
/kernel/linux/linux-6.6/drivers/pci/hotplug/
H A Dcpqphp_ctrl.c55 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 in handle_switch_change()
129 int hp_slot; handle_presence_change() local
223 int hp_slot; handle_power_fault() local
1114 set_controller_speed(struct controller *ctrl, u8 adapter_speed, u8 hp_slot) set_controller_speed() argument
1256 u8 hp_slot; board_replaced() local
1406 u8 hp_slot; board_added() local
1613 u8 hp_slot; remove_board() local
1770 u8 hp_slot; interrupt_event_handler() local
1884 u8 hp_slot; cpqhp_pushbutton_thread() local
1943 u8 device, hp_slot; cpqhp_process_SI() local
[all...]
H A Dshpchp_hpc.c363 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()
495 u32 slot_reg = shpc_readl(ctrl, SLOT_REG(slot->hp_slot)); in hpc_query_power_fault()
519 return shpc_write_cmd(slot, slot->hp_slot, slot_cmd); in hpc_set_attention_status()
525 shpc_write_cmd(slot, slot->hp_slot, SET_PWR_ON); in hpc_set_green_led_on()
530 shpc_write_cmd(slot, slot->hp_slot, SET_PWR_OFF); in hpc_set_green_led_off()
535 shpc_write_cmd(slot, slot->hp_slot, SET_PWR_BLIN in hpc_set_green_led_blink()
754 int hp_slot; shpc_isr() local
899 u8 hp_slot; shpc_init() local
[all...]
H A Dshpchp_ctrl.c45 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
340 u8 hp_slot; remove_board() local
[all...]
H A Dcpqphp.h260 u8 hp_slot; member
274 u8 hp_slot; member
612 * @hp_slot: hotplug slot where adapter is installed.
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 in cpq_get_attention_status()
664 u8 hp_slot; get_slot_enabled() local
676 u8 hp_slot; cpq_get_latch_status() local
692 u8 hp_slot; get_presence_status() local
[all...]
H A Dshpchp.h81 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);
H A Dcpqphp_core.c378 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 in cpqhpc_probe()
[all...]
H A Dshpchp_core.c80 slot->hp_slot = i; in init_slots()
100 ctrl_dbg(ctrl, "Registering domain:bus:dev=%04x:%02x:%02x hp_slot=%x sun=%x slot_device_offset=%x\n", in init_slots()
102 slot->bus, slot->device, slot->hp_slot, slot->number, in init_slots()

Completed in 16 milliseconds