Home
last modified time | relevance | path

Searched refs:ctrl_p (Results 1 – 9 of 9) sorted by relevance

/illumos-gate/usr/src/uts/common/io/pciex/hotplug/
H A Dpciehpc.c454 static int pciehpc_hpc_init(pcie_hp_ctrl_t *ctrl_p);
455 static int pciehpc_hpc_uninit(pcie_hp_ctrl_t *ctrl_p);
456 static int pciehpc_slotinfo_init(pcie_hp_ctrl_t *ctrl_p);
457 static int pciehpc_slotinfo_uninit(pcie_hp_ctrl_t *ctrl_p);
458 static int pciehpc_enable_intr(pcie_hp_ctrl_t *ctrl_p);
459 static int pciehpc_disable_intr(pcie_hp_ctrl_t *ctrl_p);
462 static int pciehpc_register_slot(pcie_hp_ctrl_t *ctrl_p);
463 static int pciehpc_unregister_slot(pcie_hp_ctrl_t *ctrl_p);
468 static void pciehpc_issue_hpc_command(pcie_hp_ctrl_t *ctrl_p, uint16_t control);
469 static void pciehpc_attn_btn_handler(pcie_hp_ctrl_t *ctrl_p);
[all …]
H A Dpcishpc.c74 static int pcishpc_setup_controller(pcie_hp_ctrl_t *ctrl_p);
76 static pcie_hp_slot_t *pcishpc_create_slot(pcie_hp_ctrl_t *ctrl_p);
77 static int pcishpc_register_slot(pcie_hp_ctrl_t *ctrl_p, int slot);
78 static int pcishpc_destroy_slots(pcie_hp_ctrl_t *ctrl_p);
83 static int pcishpc_issue_command(pcie_hp_ctrl_t *ctrl_p,
85 static int pcishpc_wait_busy(pcie_hp_ctrl_t *ctrl_p);
90 static void pcishpc_set_slot_name(pcie_hp_ctrl_t *ctrl_p, int slot);
101 static uint32_t pcishpc_read_reg(pcie_hp_ctrl_t *ctrl_p, int reg);
102 static void pcishpc_write_reg(pcie_hp_ctrl_t *ctrl_p, int reg,
119 static void pcishpc_dump_regs(pcie_hp_ctrl_t *ctrl_p);
[all …]
H A Dpcie_hp.c324 pcie_hp_ctrl_t *ctrl_p = slot_p->hs_ctrl; in pcie_hp_probe() local
325 dev_info_t *dip = ctrl_p->hc_dip; in pcie_hp_probe()
357 pcie_hp_ctrl_t *ctrl_p = slot_p->hs_ctrl; in pcie_hp_unprobe() local
358 dev_info_t *dip = ctrl_p->hc_dip; in pcie_hp_unprobe()
473 pcie_hp_ctrl_t *ctrl_p = (pcie_hp_ctrl_t *)bus_p->bus_hp_ctrl; in pcie_hp_create_occupant_props() local
482 slotp = (ctrl_p && (pci_dev == 0)) ? in pcie_hp_create_occupant_props()
483 ctrl_p->hc_slots[pci_dev] : NULL; in pcie_hp_create_occupant_props()
485 if (ctrl_p) { in pcie_hp_create_occupant_props()
488 slot_num = (ctrl_p->hc_device_increases) ? in pcie_hp_create_occupant_props()
489 (pci_dev - ctrl_p->hc_device_start) : in pcie_hp_create_occupant_props()
[all …]
/illumos-gate/usr/src/uts/intel/io/pciex/hotplug/
H A Dpciehpc_acpi.c53 static int pciehpc_acpi_hpc_init(pcie_hp_ctrl_t *ctrl_p);
54 static int pciehpc_acpi_hpc_uninit(pcie_hp_ctrl_t *ctrl_p);
55 static int pciehpc_acpi_slotinfo_init(pcie_hp_ctrl_t *ctrl_p);
56 static int pciehpc_acpi_slotinfo_uninit(pcie_hp_ctrl_t *ctrl_p);
57 static int pciehpc_acpi_enable_intr(pcie_hp_ctrl_t *ctrl_p);
58 static int pciehpc_acpi_disable_intr(pcie_hp_ctrl_t *ctrl_p);
63 static void pciehpc_acpi_setup_ops(pcie_hp_ctrl_t *ctrl_p);
65 static ACPI_STATUS pciehpc_acpi_install_event_handler(pcie_hp_ctrl_t *ctrl_p);
66 static void pciehpc_acpi_uninstall_event_handler(pcie_hp_ctrl_t *ctrl_p);
67 static ACPI_STATUS pciehpc_acpi_power_on_slot(pcie_hp_ctrl_t *ctrl_p);
[all …]
/illumos-gate/usr/src/cmd/nscd/
H A Dnscd_nswstate.c391 nscd_state_ctrl_t *ctrl_p; in _get_nsw_state_int() local
515 ctrl_p = &base->nsw_state; in _get_nsw_state_int()
518 ctrl_p = &base->nsw_state_thr; in _get_nsw_state_int()
525 ctrl_p->free); in _get_nsw_state_int()
527 ctrl_p->allocated); in _get_nsw_state_int()
529 ctrl_p->first); in _get_nsw_state_int()
531 ctrl_p->waiter); in _get_nsw_state_int()
536 if (ctrl_p->first == NULL && ctrl_p->allocated == ctrl_p->max) in _get_nsw_state_int()
543 ctrl_p->waiter++; in _get_nsw_state_int()
561 ctrl_p->first != NULL) in _get_nsw_state_int()
[all …]
/illumos-gate/usr/src/uts/common/sys/hotplug/pci/
H A Dpciehpc.h52 void pciehpc_set_slot_name(pcie_hp_ctrl_t *ctrl_p);
53 uint8_t pciehpc_reg_get8(pcie_hp_ctrl_t *ctrl_p, uint_t off);
54 uint16_t pciehpc_reg_get16(pcie_hp_ctrl_t *ctrl_p, uint_t off);
55 uint32_t pciehpc_reg_get32(pcie_hp_ctrl_t *ctrl_p, uint_t off);
56 void pciehpc_reg_put8(pcie_hp_ctrl_t *ctrl_p, uint_t off, uint8_t val);
57 void pciehpc_reg_put16(pcie_hp_ctrl_t *ctrl_p, uint_t off, uint16_t val);
58 void pciehpc_reg_put32(pcie_hp_ctrl_t *ctrl_p, uint_t off, uint32_t val);
63 extern void pciehpc_update_ops(pcie_hp_ctrl_t *ctrl_p);
H A Dpcie_hp.h92 #define PCIE_SET_HP_CTRL(dip, ctrl_p) \ argument
93 (PCIE_DIP2BUS(dip)->bus_hp_ctrl) = (pcie_hp_ctrl_t *)ctrl_p
130 int (*init_hpc_hw)(pcie_hp_ctrl_t *ctrl_p);
133 int (*uninit_hpc_hw)(pcie_hp_ctrl_t *ctrl_p);
136 int (*init_hpc_slotinfo)(pcie_hp_ctrl_t *ctrl_p);
139 int (*uninit_hpc_slotinfo)(pcie_hp_ctrl_t *ctrl_p);
151 int (*enable_hpc_intr)(pcie_hp_ctrl_t *ctrl_p);
154 int (*disable_hpc_intr)(pcie_hp_ctrl_t *ctrl_p);
H A Dpcishpc.h36 int pcishpc_enable_irqs(pcie_hp_ctrl_t *ctrl_p);
37 int pcishpc_disable_irqs(pcie_hp_ctrl_t *ctrl_p);
/illumos-gate/usr/src/uts/common/io/pciex/
H A Dpcie.c777 pcie_hp_ctrl_t *ctrl_p = PCIE_GET_HP_CTRL(dip); in pcie_hpintr_enable() local
780 (void) (ctrl_p->hc_ops.enable_hpc_intr)(ctrl_p); in pcie_hpintr_enable()
782 (void) pcishpc_enable_irqs(ctrl_p); in pcie_hpintr_enable()
797 pcie_hp_ctrl_t *ctrl_p = PCIE_GET_HP_CTRL(dip); in pcie_hpintr_disable() local
800 (void) (ctrl_p->hc_ops.disable_hpc_intr)(ctrl_p); in pcie_hpintr_disable()
802 (void) pcishpc_disable_irqs(ctrl_p); in pcie_hpintr_disable()