Lines Matching defs:dip
72 static pcie_hp_ctrl_t *pcishpc_create_controller(dev_info_t *dip);
74 static int pcishpc_destroy_controller(dev_info_t *dip);
134 pcishpc_init(dev_info_t *dip)
136 pcie_bus_t *bus_p = PCIE_DIP2BUS(dip);
141 ddi_driver_name(dip), ddi_get_instance(dip));
143 if ((ctrl_p = PCIE_GET_HP_CTRL(dip)) != NULL) {
150 ctrl_p = pcishpc_create_controller(dip);
165 (void) pci_resource_setup(dip);
169 ddi_driver_name(dip), ddi_get_instance(dip));
196 PCIE_DBG("pcishpc_init() success(dip=%p)\n", dip);
206 (void) pci_resource_destroy(dip);
208 (void) pcishpc_destroy_controller(dip);
217 pcishpc_uninit(dev_info_t *dip)
222 PCIE_DBG("pcishpc_uninit() called(dip=%p)\n", dip);
224 ctrl_p = PCIE_GET_HP_CTRL(dip);
243 (void) pci_resource_destroy(dip);
245 (void) pcishpc_destroy_controller(dip);
247 PCIE_DBG("pcishpc_uninit() success(dip=%p)\n", dip);
258 pcishpc_intr(dev_info_t *dip)
266 /* get the soft state structure for this dip */
267 if ((ctrl_p = PCIE_GET_HP_CTRL(dip)) == NULL)
748 pcishpc_hp_ops(dev_info_t *dip, char *cn_name, ddi_hp_op_t op,
755 PCIE_DBG("pcishpc_hp_ops: dip=%p cn_name=%s op=%x arg=%p\n",
756 dip, cn_name, op, arg);
758 if ((ctrl_p = PCIE_GET_HP_CTRL(dip)) == NULL)
771 "dip %p with name: %s; op=%x arg=%p\n",
772 dip, cn_name, op, arg);
835 pcishpc_create_controller(dev_info_t *dip)
837 pcie_bus_t *bus_p = PCIE_DIP2BUS(dip);
841 ddi_driver_name(dip), ddi_get_instance(dip));
844 ctrl_p->hc_dip = dip;
855 PCIE_SET_HP_CTRL(dip, ctrl_p);
932 pcishpc_destroy_controller(dev_info_t *dip)
935 pcie_bus_t *bus_p = PCIE_DIP2BUS(dip);
937 PCIE_DBG("pcishpc_destroy_controller() called(dip=%p)\n", dip);
939 /* get the soft state structure for this dip */
940 if ((ctrl_p = PCIE_GET_HP_CTRL(dip)) == NULL) {
948 PCIE_SET_HP_CTRL(dip, NULL);
991 dev_info_t *dip = ctrl_p->hc_dip;
1012 ddi_get_instance(dip), slot_p->hs_device_num);
1037 if (ndi_hp_register(dip, &slot_p->hs_info) != NDI_SUCCESS) {
1043 pcie_hp_create_occupant_props(dip, makedevice(ddi_driver_major(dip),
1059 dev_info_t *dip = ctrl_p->hc_dip;
1086 pcie_hp_delete_occupant_props(dip,
1087 makedevice(ddi_driver_major(dip),
1091 if (ndi_hp_unregister(dip, slot_p->hs_info.cn_name) !=