/kernel/linux/linux-5.10/drivers/pci/hotplug/ |
H A D | shpchp_ctrl.c | 25 static int shpchp_enable_slot(struct slot *p_slot); 26 static int shpchp_disable_slot(struct slot *p_slot); 28 static int queue_interrupt_event(struct slot *p_slot, u32 event_type) in queue_interrupt_event() argument 37 info->p_slot = p_slot; in queue_interrupt_event() 40 queue_work(p_slot->wq, &info->work); in queue_interrupt_event() 47 struct slot *p_slot; in shpchp_handle_attention_button() local 53 p_slot = shpchp_find_slot(ctrl, hp_slot + ctrl->slot_device_offset); in shpchp_handle_attention_button() 54 p_slot->hpc_ops->get_adapter_status(p_slot, in shpchp_handle_attention_button() 70 struct slot *p_slot; shpchp_handle_switch_change() local 108 struct slot *p_slot; shpchp_handle_presence_change() local 143 struct slot *p_slot; shpchp_handle_power_fault() local 178 change_bus_speed(struct controller *ctrl, struct slot *p_slot, enum pci_bus_speed speed) change_bus_speed() argument 229 board_added(struct slot *p_slot) board_added() argument 337 remove_board(struct slot *p_slot) remove_board() argument 376 struct slot *p_slot; global() member 391 struct slot *p_slot = info->p_slot; shpchp_pushbutton_thread() local 418 struct slot *p_slot = container_of(work, struct slot, work.work); shpchp_queue_pushbutton_work() local 458 handle_button_press_event(struct slot *p_slot) handle_button_press_event() argument 520 struct slot *p_slot = info->p_slot; interrupt_event_handler() local 542 shpchp_enable_slot(struct slot *p_slot) shpchp_enable_slot() argument 599 shpchp_disable_slot(struct slot *p_slot) shpchp_disable_slot() argument 635 shpchp_sysfs_enable_slot(struct slot *p_slot) shpchp_sysfs_enable_slot() argument 671 shpchp_sysfs_disable_slot(struct slot *p_slot) shpchp_sysfs_disable_slot() argument [all...] |
H A D | shpchp_pci.c | 23 int shpchp_configure_device(struct slot *p_slot) in shpchp_configure_device() argument 26 struct controller *ctrl = p_slot->ctrl; in shpchp_configure_device() 33 dev = pci_get_slot(parent, PCI_DEVFN(p_slot->device, 0)); in shpchp_configure_device() 37 p_slot->bus, p_slot->device); in shpchp_configure_device() 43 num = pci_scan_slot(parent, PCI_DEVFN(p_slot->device, 0)); in shpchp_configure_device() 51 if (PCI_SLOT(dev->devfn) == p_slot->device) in shpchp_configure_device() 64 void shpchp_unconfigure_device(struct slot *p_slot) in shpchp_unconfigure_device() argument 66 struct pci_bus *parent = p_slot->ctrl->pci_dev->subordinate; in shpchp_unconfigure_device() 68 struct controller *ctrl = p_slot in shpchp_unconfigure_device() [all...] |
H A D | shpchp.h | 86 struct slot *p_slot; member 166 int shpchp_configure_device(struct slot *p_slot); 167 void shpchp_unconfigure_device(struct slot *p_slot); 228 static inline void amd_pogo_errata_save_misc_reg(struct slot *p_slot) in amd_pogo_errata_save_misc_reg() argument 233 pci_read_config_dword(p_slot->ctrl->pci_dev, PCIX_MISCII_OFFSET, &pcix_misc2_temp); in amd_pogo_errata_save_misc_reg() 235 p_slot->ctrl->pcix_misc2_reg = pcix_misc2_temp; in amd_pogo_errata_save_misc_reg() 243 pci_write_config_dword(p_slot->ctrl->pci_dev, PCIX_MISCII_OFFSET, pcix_misc2_temp); in amd_pogo_errata_save_misc_reg() 246 static inline void amd_pogo_errata_restore_misc_reg(struct slot *p_slot) in amd_pogo_errata_restore_misc_reg() argument 255 pci_read_config_dword(p_slot->ctrl->pci_dev, PCIX_MISC_BRIDGE_ERRORS_OFFSET, &pcix_bridge_errors_reg); in amd_pogo_errata_restore_misc_reg() 258 ctrl_dbg(p_slot in amd_pogo_errata_restore_misc_reg() [all...] |
H A D | cpqphp_ctrl.c | 135 struct slot *p_slot; in handle_presence_change() local 160 p_slot = cpqhp_find_slot(ctrl, hp_slot + (readb(ctrl->hpc_reg + SLOT_MASK) >> 4)); in handle_presence_change() 161 if (!p_slot) in handle_presence_change() 186 if ((p_slot->state == BLINKINGON_STATE) in handle_presence_change() 187 || (p_slot->state == BLINKINGOFF_STATE)) { in handle_presence_change() 190 } else if ((p_slot->state == POWERON_STATE) in handle_presence_change() 191 || (p_slot->state == POWEROFF_STATE)) { in handle_presence_change() 192 /* info(msg_button_ignore, p_slot->number); */ in handle_presence_change() 1415 struct slot *p_slot; in board_added() local 1462 p_slot in board_added() 1774 struct slot *p_slot; interrupt_event_handler() local 1890 struct slot *p_slot = from_timer(p_slot, t, task_event); cpqhp_pushbutton_thread() local 1953 struct slot *p_slot; cpqhp_process_SI() local 2044 struct slot *p_slot; cpqhp_process_SS() local [all...] |
/kernel/linux/linux-6.6/drivers/pci/hotplug/ |
H A D | shpchp_ctrl.c | 25 static int shpchp_enable_slot(struct slot *p_slot); 26 static int shpchp_disable_slot(struct slot *p_slot); 28 static int queue_interrupt_event(struct slot *p_slot, u32 event_type) in queue_interrupt_event() argument 37 info->p_slot = p_slot; in queue_interrupt_event() 40 queue_work(p_slot->wq, &info->work); in queue_interrupt_event() 47 struct slot *p_slot; in shpchp_handle_attention_button() local 53 p_slot = shpchp_find_slot(ctrl, hp_slot + ctrl->slot_device_offset); in shpchp_handle_attention_button() 54 p_slot->hpc_ops->get_adapter_status(p_slot, in shpchp_handle_attention_button() 70 struct slot *p_slot; shpchp_handle_switch_change() local 108 struct slot *p_slot; shpchp_handle_presence_change() local 143 struct slot *p_slot; shpchp_handle_power_fault() local 178 change_bus_speed(struct controller *ctrl, struct slot *p_slot, enum pci_bus_speed speed) change_bus_speed() argument 229 board_added(struct slot *p_slot) board_added() argument 337 remove_board(struct slot *p_slot) remove_board() argument 376 struct slot *p_slot; global() member 391 struct slot *p_slot = info->p_slot; shpchp_pushbutton_thread() local 418 struct slot *p_slot = container_of(work, struct slot, work.work); shpchp_queue_pushbutton_work() local 458 handle_button_press_event(struct slot *p_slot) handle_button_press_event() argument 520 struct slot *p_slot = info->p_slot; interrupt_event_handler() local 542 shpchp_enable_slot(struct slot *p_slot) shpchp_enable_slot() argument 599 shpchp_disable_slot(struct slot *p_slot) shpchp_disable_slot() argument 635 shpchp_sysfs_enable_slot(struct slot *p_slot) shpchp_sysfs_enable_slot() argument 671 shpchp_sysfs_disable_slot(struct slot *p_slot) shpchp_sysfs_disable_slot() argument [all...] |
H A D | shpchp_pci.c | 23 int shpchp_configure_device(struct slot *p_slot) in shpchp_configure_device() argument 26 struct controller *ctrl = p_slot->ctrl; in shpchp_configure_device() 33 dev = pci_get_slot(parent, PCI_DEVFN(p_slot->device, 0)); in shpchp_configure_device() 37 p_slot->bus, p_slot->device); in shpchp_configure_device() 43 num = pci_scan_slot(parent, PCI_DEVFN(p_slot->device, 0)); in shpchp_configure_device() 51 if (PCI_SLOT(dev->devfn) == p_slot->device) in shpchp_configure_device() 64 void shpchp_unconfigure_device(struct slot *p_slot) in shpchp_unconfigure_device() argument 66 struct pci_bus *parent = p_slot->ctrl->pci_dev->subordinate; in shpchp_unconfigure_device() 68 struct controller *ctrl = p_slot in shpchp_unconfigure_device() [all...] |
H A D | shpchp.h | 86 struct slot *p_slot; member 166 int shpchp_configure_device(struct slot *p_slot); 167 void shpchp_unconfigure_device(struct slot *p_slot); 228 static inline void amd_pogo_errata_save_misc_reg(struct slot *p_slot) in amd_pogo_errata_save_misc_reg() argument 233 pci_read_config_dword(p_slot->ctrl->pci_dev, PCIX_MISCII_OFFSET, &pcix_misc2_temp); in amd_pogo_errata_save_misc_reg() 235 p_slot->ctrl->pcix_misc2_reg = pcix_misc2_temp; in amd_pogo_errata_save_misc_reg() 243 pci_write_config_dword(p_slot->ctrl->pci_dev, PCIX_MISCII_OFFSET, pcix_misc2_temp); in amd_pogo_errata_save_misc_reg() 246 static inline void amd_pogo_errata_restore_misc_reg(struct slot *p_slot) in amd_pogo_errata_restore_misc_reg() argument 255 pci_read_config_dword(p_slot->ctrl->pci_dev, PCIX_MISC_BRIDGE_ERRORS_OFFSET, &pcix_bridge_errors_reg); in amd_pogo_errata_restore_misc_reg() 258 ctrl_dbg(p_slot in amd_pogo_errata_restore_misc_reg() [all...] |
H A D | cpqphp_ctrl.c | 135 struct slot *p_slot; in handle_presence_change() local 160 p_slot = cpqhp_find_slot(ctrl, hp_slot + (readb(ctrl->hpc_reg + SLOT_MASK) >> 4)); in handle_presence_change() 161 if (!p_slot) in handle_presence_change() 186 if ((p_slot->state == BLINKINGON_STATE) in handle_presence_change() 187 || (p_slot->state == BLINKINGOFF_STATE)) { in handle_presence_change() 190 } else if ((p_slot->state == POWERON_STATE) in handle_presence_change() 191 || (p_slot->state == POWEROFF_STATE)) { in handle_presence_change() 192 /* info(msg_button_ignore, p_slot->number); */ in handle_presence_change() 1771 struct slot *p_slot; in interrupt_event_handler() local 1785 p_slot in interrupt_event_handler() 1886 struct slot *p_slot = from_timer(p_slot, t, task_event); cpqhp_pushbutton_thread() local 1947 struct slot *p_slot; cpqhp_process_SI() local 2035 struct slot *p_slot; cpqhp_process_SS() local [all...] |
/kernel/linux/linux-6.6/lib/ |
H A D | maple_tree.c | 2175 unsigned int p_slot = mte_parent_slot(mas->node); in mas_prev_sibling() local 2180 if (!p_slot) in mas_prev_sibling() 2184 mas->offset = p_slot - 1; in mas_prev_sibling() 3250 unsigned char p_slot; in mast_split_data() local 3261 p_slot = mast->orig_l->offset; in mast_split_data() 3263 &p_slot, split); in mast_split_data() 3265 &p_slot, split); in mast_split_data() 6930 unsigned char p_slot, offset; in mas_validate_gaps() local 7004 p_slot = mte_parent_slot(mas->node); in mas_validate_gaps() 7007 if (ma_gaps(p_mn, mas_parent_type(mas, mte))[p_slot] ! in mas_validate_gaps() 7019 unsigned char p_slot; mas_validate_parent_slot() local [all...] |