Lines Matching refs:control

468 static void pciehpc_issue_hpc_command(pcie_hp_ctrl_t *ctrl_p, uint16_t control);
712 uint16_t status, control; in pciehpc_intr() local
784 control = pciehpc_reg_get16(ctrl_p, in pciehpc_intr()
787 if (control & PCIE_SLOTCTL_PWR_FAULT_EN) { in pciehpc_intr()
792 PCIE_SLOTCTL, control & ~PCIE_SLOTCTL_PWR_FAULT_EN); in pciehpc_intr()
844 control = pciehpc_reg_get16(ctrl_p, in pciehpc_intr()
847 if (control & PCIE_SLOTCTL_PWR_FAULT_EN) in pciehpc_intr()
850 control & ~PCIE_SLOTCTL_PWR_FAULT_EN); in pciehpc_intr()
981 uint16_t control, status; in pciehpc_get_slot_state() local
987 control = pciehpc_reg_get16(ctrl_p, in pciehpc_get_slot_state()
1004 pciehpc_led_state_to_hpc(pcie_slotctl_pwr_indicator_get(control)); in pciehpc_get_slot_state()
1008 pciehpc_led_state_to_hpc(pcie_slotctl_attn_indicator_get(control)); in pciehpc_get_slot_state()
1024 if (ctrl_p->hc_has_pwr && (control & PCIE_SLOTCTL_PWR_CONTROL) != 0) { in pciehpc_get_slot_state()
1768 uint16_t control, status; in pciehpc_enable_state_sync() local
1781 control = pciehpc_reg_get16(ctrl_p, bus_p->bus_pcie_off + PCIE_SLOTCTL); in pciehpc_enable_state_sync()
1794 (control & PCIE_SLOTCTL_PWR_CONTROL) == 0) { in pciehpc_enable_state_sync()
1819 if (ctrl_p->hc_has_pwr && (control & PCIE_SLOTCTL_PWR_CONTROL) != 0) { in pciehpc_enable_state_sync()
2095 uint16_t control, status; in pciehpc_slot_power_state() local
2106 control = pciehpc_reg_get16(ctrl_p, bus_p->bus_pcie_off + PCIE_SLOTCTL); in pciehpc_slot_power_state()
2109 if ((control & PCIE_SLOTCTL_PWR_CONTROL) != 0) in pciehpc_slot_power_state()
2247 uint16_t status, control; in pciehpc_slot_poweron() local
2278 control = pciehpc_reg_get16(ctrl_p, bus_p->bus_pcie_off + PCIE_SLOTCTL); in pciehpc_slot_poweron()
2305 if ((control & PCIE_SLOTCTL_PWR_CONTROL) == 0 && in pciehpc_slot_poweron()
2321 if ((control & PCIE_SLOTCTL_PWR_CONTROL) != 0 && in pciehpc_slot_poweron()
2353 control = pciehpc_reg_get16(ctrl_p, in pciehpc_slot_poweron()
2355 control &= ~PCIE_SLOTCTL_PWR_CONTROL; in pciehpc_slot_poweron()
2356 pciehpc_issue_hpc_command(ctrl_p, control); in pciehpc_slot_poweron()
2363 control = pciehpc_reg_get16(ctrl_p, in pciehpc_slot_poweron()
2366 if (control & PCIE_SLOTCTL_PWR_CONTROL) { in pciehpc_slot_poweron()
2382 control |= PCIE_SLOTCTL_PWR_FAULT_EN; in pciehpc_slot_poweron()
2383 pciehpc_issue_hpc_command(ctrl_p, control); in pciehpc_slot_poweron()
2396 control = pciehpc_reg_get16(ctrl_p, in pciehpc_slot_poweron()
2398 control |= PCIE_SLOTCTL_EMI_LOCK_CONTROL; in pciehpc_slot_poweron()
2399 pciehpc_issue_hpc_command(ctrl_p, control); in pciehpc_slot_poweron()
2411 control = pciehpc_reg_get16(ctrl_p, in pciehpc_slot_poweron()
2415 if ((control & PCIE_SLOTCTL_PWR_CONTROL) == 0) { in pciehpc_slot_poweron()
2416 control |= PCIE_SLOTCTL_PWR_CONTROL; in pciehpc_slot_poweron()
2417 pciehpc_issue_hpc_command(ctrl_p, control); in pciehpc_slot_poweron()
2436 uint16_t status, control; in pciehpc_slot_poweroff() local
2464 control = pciehpc_reg_get16(ctrl_p, bus_p->bus_pcie_off + PCIE_SLOTCTL); in pciehpc_slot_poweroff()
2473 if ((control & PCIE_SLOTCTL_PWR_CONTROL) != 0 && in pciehpc_slot_poweroff()
2506 control = pciehpc_reg_get16(ctrl_p, in pciehpc_slot_poweroff()
2508 control &= ~PCIE_SLOTCTL_PWR_FAULT_EN; in pciehpc_slot_poweroff()
2509 pciehpc_issue_hpc_command(ctrl_p, control); in pciehpc_slot_poweroff()
2512 control = pciehpc_reg_get16(ctrl_p, in pciehpc_slot_poweroff()
2514 control |= PCIE_SLOTCTL_PWR_CONTROL; in pciehpc_slot_poweroff()
2515 pciehpc_issue_hpc_command(ctrl_p, control); in pciehpc_slot_poweroff()
2523 control = pciehpc_reg_get16(ctrl_p, in pciehpc_slot_poweroff()
2525 if ((control & PCIE_SLOTCTL_PWR_CONTROL) == 0) { in pciehpc_slot_poweroff()
2552 control = pciehpc_reg_get16(ctrl_p, in pciehpc_slot_poweroff()
2554 control |= PCIE_SLOTCTL_EMI_LOCK_CONTROL; in pciehpc_slot_poweroff()
2555 pciehpc_issue_hpc_command(ctrl_p, control); in pciehpc_slot_poweroff()
3416 pciehpc_issue_hpc_command(pcie_hp_ctrl_t *ctrl_p, uint16_t control) in pciehpc_issue_hpc_command() argument
3439 bus_p->bus_pcie_off + PCIE_SLOTCTL, control); in pciehpc_issue_hpc_command()
3458 bus_p->bus_pcie_off + PCIE_SLOTCTL, control); in pciehpc_issue_hpc_command()
3495 bus_p->bus_pcie_off + PCIE_SLOTCTL, control); in pciehpc_issue_hpc_command()
3685 uint16_t control; in pciehpc_dump_hpregs() local
3694 control = pciehpc_reg_get16(ctrl_p, in pciehpc_dump_hpregs()
3725 control & PCIE_SLOTCTL_ATTN_BTN_EN ? "Yes":"No"); in pciehpc_dump_hpregs()
3728 control & PCIE_SLOTCTL_PWR_FAULT_EN ? "Yes":"No"); in pciehpc_dump_hpregs()
3731 control & PCIE_SLOTCTL_MRL_SENSOR_EN ? "Yes":"No"); in pciehpc_dump_hpregs()
3734 control & PCIE_SLOTCTL_PRESENCE_CHANGE_EN ? "Yes":"No"); in pciehpc_dump_hpregs()
3737 control & PCIE_SLOTCTL_CMD_INTR_EN ? "Yes":"No"); in pciehpc_dump_hpregs()
3740 control & PCIE_SLOTCTL_HP_INTR_EN ? "Yes":"No"); in pciehpc_dump_hpregs()
3743 pciehpc_led_state_to_hpc(pcie_slotctl_pwr_indicator_get(control)))); in pciehpc_dump_hpregs()
3747 pcie_slotctl_attn_indicator_get(control)))); in pciehpc_dump_hpregs()