Home
last modified time | relevance | path

Searched refs:hpc_reg (Results 1 – 3 of 3) sorted by relevance

/kernel/linux/linux-5.10/drivers/pci/hotplug/
Dcpqphp.h281 void __iomem *hpc_reg; /* cookie for our pci controller location */ member
474 misc = readw(ctrl->hpc_reg + MISC); in set_SOGO()
476 writew(misc, ctrl->hpc_reg + MISC); in set_SOGO()
484 led_control = readl(ctrl->hpc_reg + LED_CONTROL); in amber_LED_on()
486 writel(led_control, ctrl->hpc_reg + LED_CONTROL); in amber_LED_on()
494 led_control = readl(ctrl->hpc_reg + LED_CONTROL); in amber_LED_off()
496 writel(led_control, ctrl->hpc_reg + LED_CONTROL); in amber_LED_off()
504 led_control = readl(ctrl->hpc_reg + LED_CONTROL); in read_amber_LED()
515 led_control = readl(ctrl->hpc_reg + LED_CONTROL); in green_LED_on()
517 writel(led_control, ctrl->hpc_reg + LED_CONTROL); in green_LED_on()
[all …]
Dcpqphp_core.c130 number_of_slots = readb(ctrl->hpc_reg + SLOT_MASK) & 0x0F; in init_SERR()
133 writeb(0, ctrl->hpc_reg + SLOT_SERR); in init_SERR()
285 iounmap(ctrl->hpc_reg); in ctrl_slot_cleanup()
588 tempdword = readl(ctrl->hpc_reg + INT_INPUT_CLEAR); in ctrl_slot_setup()
590 number_of_slots = readb(ctrl->hpc_reg + SLOT_MASK) & 0x0F; in ctrl_slot_setup()
591 slot_device = readb(ctrl->hpc_reg + SLOT_MASK) >> 4; in ctrl_slot_setup()
635 slot_device - (readb(ctrl->hpc_reg + SLOT_MASK) >> 4); in ctrl_slot_setup()
1052 ctrl->hpc_reg = ioremap(pci_resource_start(pdev, 0), in cpqhpc_probe()
1054 if (!ctrl->hpc_reg) { in cpqhpc_probe()
1081 (readb(ctrl->hpc_reg + SLOT_MASK) >> 4), in cpqhpc_probe()
[all …]
Dcpqphp_ctrl.c160 p_slot = cpqhp_find_slot(ctrl, hp_slot + (readb(ctrl->hpc_reg + SLOT_MASK) >> 4)); in handle_presence_change()
887 misc = readw(ctrl->hpc_reg + MISC); in cpqhp_ctrl_intr()
901 writew(misc, ctrl->hpc_reg + MISC); in cpqhp_ctrl_intr()
904 misc = readw(ctrl->hpc_reg + MISC); in cpqhp_ctrl_intr()
912 Diff = readl(ctrl->hpc_reg + INT_INPUT_CLEAR) ^ ctrl->ctrl_int_comp; in cpqhp_ctrl_intr()
914 ctrl->ctrl_int_comp = readl(ctrl->hpc_reg + INT_INPUT_CLEAR); in cpqhp_ctrl_intr()
917 writel(Diff, ctrl->hpc_reg + INT_INPUT_CLEAR); in cpqhp_ctrl_intr()
920 temp_dword = readl(ctrl->hpc_reg + INT_INPUT_CLEAR); in cpqhp_ctrl_intr()
924 writel(0xFFFFFFFF, ctrl->hpc_reg + INT_INPUT_CLEAR); in cpqhp_ctrl_intr()
931 reset = readb(ctrl->hpc_reg + RESET_FREQ_MODE); in cpqhp_ctrl_intr()
[all …]