/illumos-gate/usr/src/uts/common/sys/hotplug/pci/ |
H A D | pciehpc.h | 42 void pciehpc_set_slot_name(pcie_hp_ctrl_t *ctrl_p); 43 uint8_t pciehpc_reg_get8(pcie_hp_ctrl_t *ctrl_p, uint_t off); 44 uint16_t pciehpc_reg_get16(pcie_hp_ctrl_t *ctrl_p, uint_t off); 45 uint32_t pciehpc_reg_get32(pcie_hp_ctrl_t *ctrl_p, uint_t off); 46 void pciehpc_reg_put8(pcie_hp_ctrl_t *ctrl_p, uint_t off, uint8_t val); 47 void pciehpc_reg_put16(pcie_hp_ctrl_t *ctrl_p, uint_t off, uint16_t val); 48 void pciehpc_reg_put32(pcie_hp_ctrl_t *ctrl_p, uint_t off, uint32_t val); 50 extern void pciehpc_update_ops(pcie_hp_ctrl_t *ctrl_p);
|
H A D | pcishpc.h | 36 int pcishpc_enable_irqs(pcie_hp_ctrl_t *ctrl_p); 37 int pcishpc_disable_irqs(pcie_hp_ctrl_t *ctrl_p);
|
H A D | pcie_hp.h | 88 #define PCIE_SET_HP_CTRL(dip, ctrl_p) \ 89 (PCIE_DIP2BUS(dip)->bus_hp_ctrl) = (pcie_hp_ctrl_t *)ctrl_p 126 int (*init_hpc_hw)(pcie_hp_ctrl_t *ctrl_p); 129 int (*uninit_hpc_hw)(pcie_hp_ctrl_t *ctrl_p); 132 int (*init_hpc_slotinfo)(pcie_hp_ctrl_t *ctrl_p); 135 int (*uninit_hpc_slotinfo)(pcie_hp_ctrl_t *ctrl_p); 147 int (*enable_hpc_intr)(pcie_hp_ctrl_t *ctrl_p); 150 int (*disable_hpc_intr)(pcie_hp_ctrl_t *ctrl_p);
|
/illumos-gate/usr/src/uts/intel/io/pciex/hotplug/ |
H A D | pciehpc_acpi.c | 50 static int pciehpc_acpi_hpc_init(pcie_hp_ctrl_t *ctrl_p); 51 static int pciehpc_acpi_hpc_uninit(pcie_hp_ctrl_t *ctrl_p); 52 static int pciehpc_acpi_slotinfo_init(pcie_hp_ctrl_t *ctrl_p); 53 static int pciehpc_acpi_slotinfo_uninit(pcie_hp_ctrl_t *ctrl_p); 54 static int pciehpc_acpi_enable_intr(pcie_hp_ctrl_t *ctrl_p); 55 static int pciehpc_acpi_disable_intr(pcie_hp_ctrl_t *ctrl_p); 60 static void pciehpc_acpi_setup_ops(pcie_hp_ctrl_t *ctrl_p); 62 static ACPI_STATUS pciehpc_acpi_install_event_handler(pcie_hp_ctrl_t *ctrl_p); 63 static void pciehpc_acpi_uninstall_event_handler(pcie_hp_ctrl_t *ctrl_p); 64 static ACPI_STATUS pciehpc_acpi_power_on_slot(pcie_hp_ctrl_t *ctrl_p); 74 pciehpc_update_ops(pcie_hp_ctrl_t *ctrl_p) argument 105 pciehpc_acpi_setup_ops(pcie_hp_ctrl_t *ctrl_p) argument 121 pciehpc_acpi_hpc_init(pcie_hp_ctrl_t *ctrl_p) argument 182 pciehpc_acpi_hpc_uninit(pcie_hp_ctrl_t *ctrl_p) argument 199 pciehpc_acpi_enable_intr(pcie_hp_ctrl_t *ctrl_p) argument 210 pciehpc_acpi_disable_intr(pcie_hp_ctrl_t *ctrl_p) argument 226 pciehpc_acpi_slotinfo_init(pcie_hp_ctrl_t *ctrl_p) argument 289 pciehpc_acpi_slotinfo_uninit(pcie_hp_ctrl_t *ctrl_p) argument 311 pcie_hp_ctrl_t *ctrl_p = slot_p->hs_ctrl; local 383 pcie_hp_ctrl_t *ctrl_p = slot_p->hs_ctrl; local 434 pciehpc_acpi_install_event_handler(pcie_hp_ctrl_t *ctrl_p) argument 477 pcie_hp_ctrl_t *ctrl_p = context; local 557 pciehpc_acpi_uninstall_event_handler(pcie_hp_ctrl_t *ctrl_p) argument 574 pciehpc_acpi_power_on_slot(pcie_hp_ctrl_t *ctrl_p) argument 612 pciehpc_acpi_power_off_slot(pcie_hp_ctrl_t *ctrl_p) argument [all...] |
/illumos-gate/usr/src/uts/common/io/pciex/hotplug/ |
H A D | pciehpc.c | 68 static int pciehpc_hpc_init(pcie_hp_ctrl_t *ctrl_p); 69 static int pciehpc_hpc_uninit(pcie_hp_ctrl_t *ctrl_p); 70 static int pciehpc_slotinfo_init(pcie_hp_ctrl_t *ctrl_p); 71 static int pciehpc_slotinfo_uninit(pcie_hp_ctrl_t *ctrl_p); 72 static int pciehpc_enable_intr(pcie_hp_ctrl_t *ctrl_p); 73 static int pciehpc_disable_intr(pcie_hp_ctrl_t *ctrl_p); 76 static int pciehpc_register_slot(pcie_hp_ctrl_t *ctrl_p); 77 static int pciehpc_unregister_slot(pcie_hp_ctrl_t *ctrl_p); 82 static void pciehpc_issue_hpc_command(pcie_hp_ctrl_t *ctrl_p, uint16_t control); 83 static void pciehpc_attn_btn_handler(pcie_hp_ctrl_t *ctrl_p); 127 pcie_hp_ctrl_t *ctrl_p; local 219 pcie_hp_ctrl_t *ctrl_p; local 266 pcie_hp_ctrl_t *ctrl_p; local 431 pcie_hp_ctrl_t *ctrl_p; local 504 pcie_hp_ctrl_t *ctrl_p = slot_p->hs_ctrl; local 558 pciehpc_set_slot_name(pcie_hp_ctrl_t *ctrl_p) argument 632 pciehpc_reg_get8(pcie_hp_ctrl_t *ctrl_p, uint_t off) argument 645 pciehpc_reg_get16(pcie_hp_ctrl_t *ctrl_p, uint_t off) argument 658 pciehpc_reg_get32(pcie_hp_ctrl_t *ctrl_p, uint_t off) argument 671 pciehpc_reg_put8(pcie_hp_ctrl_t *ctrl_p, uint_t off, uint8_t val) argument 684 pciehpc_reg_put16(pcie_hp_ctrl_t *ctrl_p, uint_t off, uint16_t val) argument 697 pciehpc_reg_put32(pcie_hp_ctrl_t *ctrl_p, uint_t off, uint32_t val) argument 723 pciehpc_hpc_init(pcie_hp_ctrl_t *ctrl_p) argument 752 pciehpc_hpc_uninit(pcie_hp_ctrl_t *ctrl_p) argument 764 pciehpc_slotinfo_init(pcie_hp_ctrl_t *ctrl_p) argument 841 pciehpc_slotinfo_uninit(pcie_hp_ctrl_t *ctrl_p) argument 872 pciehpc_enable_intr(pcie_hp_ctrl_t *ctrl_p) argument 908 pciehpc_disable_intr(pcie_hp_ctrl_t *ctrl_p) argument 937 pcie_hp_ctrl_t *ctrl_p; local 968 pcie_hp_ctrl_t *ctrl_p; local 988 pciehpc_register_slot(pcie_hp_ctrl_t *ctrl_p) argument 1013 pciehpc_unregister_slot(pcie_hp_ctrl_t *ctrl_p) argument 1045 pcie_hp_ctrl_t *ctrl_p = slot_p->hs_ctrl; local 1201 pcie_hp_ctrl_t *ctrl_p = slot_p->hs_ctrl; local 1305 pcie_hp_ctrl_t *ctrl_p = slot_p->hs_ctrl; local 1354 pcie_hp_ctrl_t *ctrl_p = slot_p->hs_ctrl; local 1505 pcie_hp_ctrl_t *ctrl_p = slot_p->hs_ctrl; local 1707 pcie_hp_ctrl_t *ctrl_p = slot_p->hs_ctrl; local 1888 pciehpc_issue_hpc_command(pcie_hp_ctrl_t *ctrl_p, uint16_t control) argument 2002 pciehpc_attn_btn_handler(pcie_hp_ctrl_t *ctrl_p) argument 2106 pciehpc_get_led_state(pcie_hp_ctrl_t *ctrl_p, pcie_hp_led_t led) argument 2144 pciehpc_set_led_state(pcie_hp_ctrl_t *ctrl_p, pcie_hp_led_t led, pcie_hp_led_state_t state) argument 2240 pcie_hp_ctrl_t *ctrl_p; local 2270 pciehpc_dump_hpregs(pcie_hp_ctrl_t *ctrl_p) argument [all...] |
H A D | pcishpc.c | 73 static int pcishpc_setup_controller(pcie_hp_ctrl_t *ctrl_p); 75 static pcie_hp_slot_t *pcishpc_create_slot(pcie_hp_ctrl_t *ctrl_p); 76 static int pcishpc_register_slot(pcie_hp_ctrl_t *ctrl_p, int slot); 77 static int pcishpc_destroy_slots(pcie_hp_ctrl_t *ctrl_p); 82 static int pcishpc_issue_command(pcie_hp_ctrl_t *ctrl_p, 84 static int pcishpc_wait_busy(pcie_hp_ctrl_t *ctrl_p); 89 static void pcishpc_set_slot_name(pcie_hp_ctrl_t *ctrl_p, int slot); 100 static uint32_t pcishpc_read_reg(pcie_hp_ctrl_t *ctrl_p, int reg); 101 static void pcishpc_write_reg(pcie_hp_ctrl_t *ctrl_p, int reg, 118 static void pcishpc_dump_regs(pcie_hp_ctrl_t *ctrl_p); 137 pcie_hp_ctrl_t *ctrl_p; local 219 pcie_hp_ctrl_t *ctrl_p; local 260 pcie_hp_ctrl_t *ctrl_p; local 369 pcie_hp_ctrl_t *ctrl_p = slot_p->hs_ctrl; local 573 pcie_hp_ctrl_t *ctrl_p = slot_p->hs_ctrl; local 752 pcie_hp_ctrl_t *ctrl_p; local 838 pcie_hp_ctrl_t *ctrl_p; local 870 pcishpc_setup_controller(pcie_hp_ctrl_t *ctrl_p) argument 934 pcie_hp_ctrl_t *ctrl_p; local 966 pcishpc_create_slot(pcie_hp_ctrl_t *ctrl_p) argument 989 pcishpc_register_slot(pcie_hp_ctrl_t *ctrl_p, int slot) argument 1057 pcishpc_destroy_slots(pcie_hp_ctrl_t *ctrl_p) argument 1112 pcishpc_enable_irqs(pcie_hp_ctrl_t *ctrl_p) argument 1158 pcishpc_disable_irqs(pcie_hp_ctrl_t *ctrl_p) argument 1601 pcishpc_issue_command(pcie_hp_ctrl_t *ctrl_p, uint32_t cmd_code) argument 1646 pcishpc_wait_busy(pcie_hp_ctrl_t *ctrl_p) argument 1880 pcishpc_set_slot_name(pcie_hp_ctrl_t *ctrl_p, int slot) argument 2013 pcie_hp_ctrl_t *ctrl_p = slot_p->hs_ctrl; local 2357 pcishpc_read_reg(pcie_hp_ctrl_t *ctrl_p, int reg) argument 2385 pcishpc_write_reg(pcie_hp_ctrl_t *ctrl_p, int reg, uint32_t data) argument 2421 pcishpc_dump_regs(pcie_hp_ctrl_t *ctrl_p) argument [all...] |
H A D | pcie_hp.c | 321 pcie_hp_ctrl_t *ctrl_p = slot_p->hs_ctrl; local 322 dev_info_t *dip = ctrl_p->hc_dip; 354 pcie_hp_ctrl_t *ctrl_p = slot_p->hs_ctrl; local 355 dev_info_t *dip = ctrl_p->hc_dip; 471 pcie_hp_ctrl_t *ctrl_p = (pcie_hp_ctrl_t *)bus_p->bus_hp_ctrl; local 480 slotp = (ctrl_p && (pci_dev == 0)) ? 481 ctrl_p->hc_slots[pci_dev] : NULL; 483 if (ctrl_p) { 486 slot_num = (ctrl_p->hc_device_increases) ? 487 (pci_dev - ctrl_p 543 pcie_create_minor_node(pcie_hp_ctrl_t *ctrl_p, int slot) argument 566 pcie_remove_minor_node(pcie_hp_ctrl_t *ctrl_p, int slot) argument [all...] |
/illumos-gate/usr/src/cmd/nscd/ |
H A D | nscd_nswstate.c | 391 nscd_state_ctrl_t *ctrl_p; local 515 ctrl_p = &base->nsw_state; 518 ctrl_p = &base->nsw_state_thr; 525 ctrl_p->free); 527 ctrl_p->allocated); 529 ctrl_p->first); 531 ctrl_p->waiter); 536 if (ctrl_p->first == NULL && ctrl_p->allocated == ctrl_p 696 nscd_state_ctrl_t *ctrl_p; local [all...] |
/illumos-gate/usr/src/uts/common/io/pciex/ |
H A D | pcie.c | 287 pcie_hp_ctrl_t *ctrl_p = PCIE_GET_HP_CTRL(dip); local 290 (void) (ctrl_p->hc_ops.enable_hpc_intr)(ctrl_p); 292 (void) pcishpc_enable_irqs(ctrl_p); 307 pcie_hp_ctrl_t *ctrl_p = PCIE_GET_HP_CTRL(dip); local 310 (void) (ctrl_p->hc_ops.disable_hpc_intr)(ctrl_p); 312 (void) pcishpc_disable_irqs(ctrl_p);
|