Searched refs:hpc_reg (Results 1 – 3 of 3) sorted by relevance
/Linux-v4.19/drivers/pci/hotplug/ |
D | cpqphp.h | 281 void __iomem *hpc_reg; /* cookie for our pci controller location */ member 469 misc = readw(ctrl->hpc_reg + MISC); in set_SOGO() 471 writew(misc, ctrl->hpc_reg + MISC); in set_SOGO() 479 led_control = readl(ctrl->hpc_reg + LED_CONTROL); in amber_LED_on() 481 writel(led_control, ctrl->hpc_reg + LED_CONTROL); in amber_LED_on() 489 led_control = readl(ctrl->hpc_reg + LED_CONTROL); in amber_LED_off() 491 writel(led_control, ctrl->hpc_reg + LED_CONTROL); in amber_LED_off() 499 led_control = readl(ctrl->hpc_reg + LED_CONTROL); in read_amber_LED() 510 led_control = readl(ctrl->hpc_reg + LED_CONTROL); in green_LED_on() 512 writel(led_control, ctrl->hpc_reg + LED_CONTROL); in green_LED_on() [all …]
|
D | cpqphp_core.c | 131 number_of_slots = readb(ctrl->hpc_reg + SLOT_MASK) & 0x0F; in init_SERR() 135 writeb(0, ctrl->hpc_reg + SLOT_SERR); in init_SERR() 290 iounmap(ctrl->hpc_reg); in ctrl_slot_cleanup() 595 tempdword = readl(ctrl->hpc_reg + INT_INPUT_CLEAR); in ctrl_slot_setup() 597 number_of_slots = readb(ctrl->hpc_reg + SLOT_MASK) & 0x0F; in ctrl_slot_setup() 598 slot_device = readb(ctrl->hpc_reg + SLOT_MASK) >> 4; in ctrl_slot_setup() 658 slot_device - (readb(ctrl->hpc_reg + SLOT_MASK) >> 4); in ctrl_slot_setup() 1088 ctrl->hpc_reg = ioremap(pci_resource_start(pdev, 0), in cpqhpc_probe() 1090 if (!ctrl->hpc_reg) { in cpqhpc_probe() 1117 (readb(ctrl->hpc_reg + SLOT_MASK) >> 4), in cpqhpc_probe() [all …]
|
D | cpqphp_ctrl.c | 160 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 …]
|