Lines Matching refs:slotp
117 hpc_slot_entry_t *slotp; member
323 hpc_slot_entry_t *slotp; in hpc_nexus_register_bus() local
370 for (slotp = busp->bus_slot_list; slotp; in hpc_nexus_register_bus()
371 slotp = slotp->slot_next) { in hpc_nexus_register_bus()
372 (void) callback(dip, slotp, &slotp->slot_info, in hpc_nexus_register_bus()
387 hpc_slot_entry_t *slotp; in hpc_nexus_unregister_bus() local
425 for (slotp = busp->bus_slot_list; slotp != NULL; in hpc_nexus_unregister_bus()
426 slotp = slotp->slot_next) { in hpc_nexus_unregister_bus()
427 slotp->slot_event_handler = NULL; in hpc_nexus_unregister_bus()
428 slotp->slot_event_handler_arg = NULL; in hpc_nexus_unregister_bus()
444 hpc_slot_entry_t *slotp, *slot_list_head; in hpc_slot_register() local
508 slotp = hpc_alloc_slot_entry(); in hpc_slot_register()
509 slotp->slot_handle = (hpc_slot_t)slotp; in hpc_slot_register()
510 slotp->slot_info = *infop; in hpc_slot_register()
511 slotp->slot_ops = *opsp; in hpc_slot_register()
512 slotp->slot_ops_arg = ops_arg; in hpc_slot_register()
513 slotp->slot_bus = busp; in hpc_slot_register()
514 slotp->slot_hpc_dip = hpc_dip; in hpc_slot_register()
515 slotp->slot_prev = NULL; in hpc_slot_register()
516 busp->bus_slot_list = slotp; in hpc_slot_register()
517 slotp->slot_next = slot_list_head; in hpc_slot_register()
519 slot_list_head->slot_prev = slotp; in hpc_slot_register()
526 *handlep = (hpc_slot_t)slotp; in hpc_slot_register()
535 (void) callback(dip, slotp, infop, HPC_SLOT_ONLINE); in hpc_slot_register()
550 hpc_slot_entry_t *slotp; in hpc_slot_unregister() local
564 slotp = (hpc_slot_entry_t *)*handlep; in hpc_slot_unregister()
565 if ((slotp == NULL) || slotp->slot_handle != *handlep) in hpc_slot_unregister()
573 busp = slotp->slot_bus; in hpc_slot_unregister()
574 DEBUG2("hpc_slot_unregister: handlep=%x, slotp=%x", handlep, slotp); in hpc_slot_unregister()
595 r = callback(dip, (hpc_slot_t)slotp, &slotp->slot_info, in hpc_slot_unregister()
609 if (slotp->slot_prev != NULL) in hpc_slot_unregister()
610 slotp->slot_prev->slot_next = slotp->slot_next; in hpc_slot_unregister()
611 if (slotp->slot_next != NULL) in hpc_slot_unregister()
612 slotp->slot_next->slot_prev = slotp->slot_prev; in hpc_slot_unregister()
613 if (slotp == busp->bus_slot_list) in hpc_slot_unregister()
614 busp->bus_slot_list = slotp->slot_next; in hpc_slot_unregister()
619 ndi_rele_driver(slotp->slot_hpc_dip); in hpc_slot_unregister()
622 hpc_free_slot_entry(slotp); in hpc_slot_unregister()
672 hpc_slot_entry_t *slotp; in hpc_install_event_handler() local
678 slotp = (hpc_slot_entry_t *)handle; in hpc_install_event_handler()
679 busp = slotp->slot_bus; in hpc_install_event_handler()
680 ASSERT(slotp == slotp->slot_handle); in hpc_install_event_handler()
682 slotp->slot_event_mask = event_mask; in hpc_install_event_handler()
683 slotp->slot_event_handler = event_handler; in hpc_install_event_handler()
684 slotp->slot_event_handler_arg = arg; in hpc_install_event_handler()
693 hpc_slot_entry_t *slotp; in hpc_remove_event_handler() local
698 slotp = (hpc_slot_entry_t *)handle; in hpc_remove_event_handler()
699 ASSERT(slotp == slotp->slot_handle); in hpc_remove_event_handler()
700 busp = slotp->slot_bus; in hpc_remove_event_handler()
702 slotp->slot_event_mask = 0; in hpc_remove_event_handler()
703 slotp->slot_event_handler = NULL; in hpc_remove_event_handler()
704 slotp->slot_event_handler_arg = NULL; in hpc_remove_event_handler()
714 hpc_slot_entry_t *slotp; in hpc_slot_event_notify() local
720 slotp = (hpc_slot_entry_t *)handle; in hpc_slot_event_notify()
721 ASSERT(slotp == slotp->slot_handle); in hpc_slot_event_notify()
723 if (slotp->slot_event_handler == NULL) in hpc_slot_event_notify()
734 func = slotp->slot_event_handler; in hpc_slot_event_notify()
735 arg = slotp->slot_event_handler_arg; in hpc_slot_event_notify()
742 busp = slotp->slot_bus; in hpc_slot_event_notify()
755 eventp->slotp = slotp; in hpc_slot_event_notify()
768 hpc_slot_entry_t *slotp; in hpc_nexus_connect() local
771 slotp = (hpc_slot_entry_t *)handle; in hpc_nexus_connect()
772 if (slotp->slot_ops.hpc_op_connect) in hpc_nexus_connect()
773 return (slotp->slot_ops.hpc_op_connect(slotp->slot_ops_arg, in hpc_nexus_connect()
782 hpc_slot_entry_t *slotp; in hpc_nexus_disconnect() local
785 slotp = (hpc_slot_entry_t *)handle; in hpc_nexus_disconnect()
786 if (slotp->slot_ops.hpc_op_disconnect) in hpc_nexus_disconnect()
787 return (slotp->slot_ops.hpc_op_disconnect(slotp->slot_ops_arg, in hpc_nexus_disconnect()
796 hpc_slot_entry_t *slotp; in hpc_nexus_insert() local
799 slotp = (hpc_slot_entry_t *)handle; in hpc_nexus_insert()
800 if (slotp->slot_ops.hpc_op_insert) in hpc_nexus_insert()
801 return (slotp->slot_ops.hpc_op_insert(slotp->slot_ops_arg, in hpc_nexus_insert()
810 hpc_slot_entry_t *slotp; in hpc_nexus_remove() local
813 slotp = (hpc_slot_entry_t *)handle; in hpc_nexus_remove()
814 if (slotp->slot_ops.hpc_op_remove) in hpc_nexus_remove()
815 return (slotp->slot_ops.hpc_op_remove(slotp->slot_ops_arg, in hpc_nexus_remove()
824 hpc_slot_entry_t *slotp; in hpc_nexus_control() local
827 slotp = (hpc_slot_entry_t *)handle; in hpc_nexus_control()
828 if (slotp->slot_ops.hpc_op_control) in hpc_nexus_control()
829 return (slotp->slot_ops.hpc_op_control(slotp->slot_ops_arg, in hpc_nexus_control()
842 hpc_slot_entry_t *slotp; in hpc_slot_event_dispatcher() local
886 slotp = eventp->slotp; in hpc_slot_event_dispatcher()
888 func = slotp->slot_event_handler; in hpc_slot_event_dispatcher()
889 arg = slotp->slot_event_handler_arg; in hpc_slot_event_dispatcher()
922 hpc_slot_entry_t *slotp; in hpc_bus_registered() local
925 slotp = (hpc_slot_entry_t *)slot_hdl; in hpc_bus_registered()
926 busp = slotp->slot_bus; in hpc_bus_registered()