Home
last modified time | relevance | path

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

/linux-6.15/drivers/pci/hotplug/
H A Doctep_hp.c73 if (hp_slot->hp_pdev) { in octep_hp_enable_pdev()
93 if (!hp_slot->hp_pdev) { in octep_hp_disable_pdev()
112 octep_hp_enable_pdev(hp_slot->ctrl, hp_slot); in octep_hp_enable_slot()
121 octep_hp_disable_pdev(hp_slot->ctrl, hp_slot); in octep_hp_disable_slot()
139 hp_slot = kzalloc(sizeof(*hp_slot), GFP_KERNEL); in octep_hp_register_slot()
140 if (!hp_slot) in octep_hp_register_slot()
153 kfree(hp_slot); in octep_hp_register_slot()
163 return hp_slot; in octep_hp_register_slot()
174 kfree(hp_slot); in octep_hp_deregister_slot()
394 if (IS_ERR(hp_slot)) in octep_hp_pci_probe()
[all …]
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()
80 taskInfo->hp_slot = 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()
156 taskInfo->hp_slot = hp_slot; in handle_presence_change()
237 for (hp_slot = 0; hp_slot < 6; hp_slot++) { in handle_power_fault()
247 taskInfo->hp_slot = hp_slot; in handle_power_fault()
1779 hp_slot = ctrl->event_queue[loop].hp_slot; in interrupt_event_handler()
1853 p_slot->hp_slot = hp_slot; in interrupt_event_handler()
[all …]
H A Dshpchp_hpc.c593 retval = shpc_write_cmd(slot, slot->hp_slot, in shpchp_slot_enable()
606 retval = shpc_write_cmd(slot, slot->hp_slot, in shpchp_slot_disable()
753 int hp_slot; in shpc_isr() local
792 for (hp_slot = 0; hp_slot < ctrl->num_slots; hp_slot++) { in shpc_isr()
799 hp_slot, slot_reg); in shpc_isr()
811 shpchp_handle_power_fault(hp_slot, ctrl); in shpc_isr()
876 u8 hp_slot; in shpc_init() local
978 for (hp_slot = 0; hp_slot < ctrl->num_slots; hp_slot++) { in shpc_init()
981 hp_slot, slot_reg); in shpc_init()
1022 for (hp_slot = 0; hp_slot < ctrl->num_slots; hp_slot++) { in shpc_init()
[all …]
H A Dcpqphp.h260 u8 hp_slot; member
274 u8 hp_slot; member
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
658 return read_amber_LED(ctrl, hp_slot); in cpq_get_attention_status()
664 u8 hp_slot; in get_slot_enabled() local
668 return is_slot_enabled(ctrl, hp_slot); in get_slot_enabled()
676 u8 hp_slot; in cpq_get_latch_status() local
692 u8 hp_slot; in get_presence_status() 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
141 u8 shpchp_handle_power_fault(u8 hp_slot, struct controller *ctrl) in shpchp_handle_power_fault() argument
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
238 hp_slot = p_slot->device - ctrl->slot_device_offset; in board_added()
241 __func__, p_slot->device, ctrl->slot_device_offset, hp_slot); in board_added()
340 u8 hp_slot; in remove_board() local
345 hp_slot = p_slot->device - ctrl->slot_device_offset; in remove_board()
[all …]
H A Dshpchp.h64 u8 hp_slot; member
144 u8 shpchp_handle_attention_button(u8 hp_slot, struct controller *ctrl);
145 u8 shpchp_handle_switch_change(u8 hp_slot, struct controller *ctrl);
146 u8 shpchp_handle_presence_change(u8 hp_slot, struct controller *ctrl);
147 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()
1196 if (ctrl->ctrl_int_comp & (0x1L << hp_slot)) in cpqhpc_probe()
1203 green_LED_off(ctrl, hp_slot); in cpqhpc_probe()
[all …]
H A Dshpchp_core.c77 slot->hp_slot = i; in init_slots()
98 slot->bus, slot->device, slot->hp_slot, slot->number, in init_slots()