Lines Matching refs:ctrl

607 	struct pcihp_config_ctrl *ctrl = (struct pcihp_config_ctrl *)hdl;
621 ctrl->rv = DDI_FAILURE;
622 ctrl->dip = dip;
637 if (pci_dev == ctrl->pci_dev) { /* node is a match */
655 if (ctrl->occupant->i >= HPC_MAX_OCCUPANTS) {
667 ctrl->occupant->id[ctrl->occupant->i] =
670 (char *)ctrl->occupant->id[ctrl->occupant->i]);
671 ctrl->occupant->i++;
684 struct pcihp_config_ctrl ctrl;
691 ctrl.flags = 0;
692 ctrl.dip = NULL;
693 ctrl.rv = NDI_SUCCESS;
694 ctrl.pci_dev = pci_dev;
695 ctrl.op = 55; /* should define DRYRUN */
696 ctrl.occupant = occupant;
699 (void *)&ctrl);
1456 struct pcihp_config_ctrl ctrl;
1482 ctrl.flags = PCIHP_CFG_CONTINUE;
1483 ctrl.rv = NDI_SUCCESS;
1484 ctrl.dip = NULL;
1485 ctrl.pci_dev = pci_dev;
1486 ctrl.op = PCIHP_ONLINE;
1490 (void *)&ctrl);
1493 if (ctrl.rv != NDI_SUCCESS) {
1579 ctrl.flags = PCIHP_CFG_CONTINUE;
1580 ctrl.rv = NDI_SUCCESS;
1581 ctrl.dip = NULL;
1582 ctrl.pci_dev = pci_dev;
1583 ctrl.op = PCIHP_ONLINE;
1586 ddi_walk_devs(ddi_get_child(self), pcihp_configure, (void *)&ctrl);
1589 if (ctrl.rv != NDI_SUCCESS) {
1626 struct pcihp_config_ctrl ctrl;
1680 ctrl.flags = 0;
1681 ctrl.rv = NDI_SUCCESS;
1682 ctrl.dip = NULL;
1683 ctrl.pci_dev = pci_dev;
1684 ctrl.op = PCIHP_OFFLINE;
1689 (void *)&ctrl);
1692 if (ctrl.rv != NDI_SUCCESS) {
1698 ctrl.flags = 0;
1699 ctrl.rv = NDI_SUCCESS;
1700 ctrl.dip = NULL;
1701 ctrl.pci_dev = pci_dev;
1702 ctrl.op = PCIHP_ONLINE;
1706 pcihp_configure, (void *)&ctrl);
2116 struct pcihp_config_ctrl ctrl;
2184 ctrl.flags = PCIHP_CFG_CONTINUE;
2185 ctrl.rv = NDI_SUCCESS;
2186 ctrl.dip = NULL;
2187 ctrl.pci_dev = pci_dev;
2188 ctrl.op = PCIHP_ONLINE;
2197 pcihp_configure, (void *)&ctrl);
2200 if (ctrl.rv != NDI_SUCCESS) {
2318 struct pcihp_config_ctrl ctrl;
2497 ctrl.flags = PCIHP_CFG_CONTINUE;
2498 ctrl.rv = NDI_SUCCESS;
2499 ctrl.dip = NULL;
2500 ctrl.pci_dev = pci_dev;
2501 ctrl.op = PCIHP_ONLINE;
2506 pcihp_configure, (void *)&ctrl);
2509 if (ctrl.rv != NDI_SUCCESS) {
2581 ctrl.flags = 0;
2582 ctrl.rv = NDI_SUCCESS;
2583 ctrl.dip = NULL;
2584 ctrl.pci_dev = pci_dev;
2585 ctrl.op = PCIHP_OFFLINE;
2590 pcihp_configure, (void *)&ctrl);
2593 if (ctrl.rv != NDI_SUCCESS) {
2599 ctrl.flags = PCIHP_CFG_CONTINUE;
2600 ctrl.rv = NDI_SUCCESS;
2601 ctrl.dip = NULL;
2602 ctrl.pci_dev = pci_dev;
2603 ctrl.op = PCIHP_ONLINE;
2607 pcihp_configure, (void *)&ctrl);
3011 struct pcihp_config_ctrl *ctrl = (struct pcihp_config_ctrl *)hdl;
3024 ctrl->rv = DDI_FAILURE;
3025 ctrl->dip = dip;
3040 if (pci_dev == ctrl->pci_dev) { /* node is a match */
3041 if (ctrl->op == PCIHP_ONLINE) {
3058 ctrl->rv = rv;
3059 ctrl->dip = dip;
3061 if (!(ctrl->flags & PCIHP_CFG_CONTINUE))
3123 struct pcihp_find_ctrl ctrl;
3126 ctrl.device = device;
3127 ctrl.function = function;
3128 ctrl.dip = NULL;
3131 ddi_walk_devs(ddi_get_child(dip), pcihp_match_dev, (void *)&ctrl);
3134 return (ctrl.dip);
3140 struct pcihp_find_ctrl *ctrl = (struct pcihp_find_ctrl *)hdl;
3148 ctrl->dip = NULL;
3162 if ((pci_dev == ctrl->device) && (pci_func == ctrl->function)) {
3164 ctrl->dip = dip;