Searched refs:sghsc (Results 1 – 2 of 2) sorted by relevance
316 sghsc_t *sghsc; in sghsc_attach() local351 sghsc = (sghsc_t *)ddi_get_soft_state(sghsc_state, instance); in sghsc_attach()353 sghsc->sghsc_dip = dip; in sghsc_attach()354 sghsc->sghsc_instance = instance; in sghsc_attach()355 sghsc->sghsc_board = SG_PORTID_TO_BOARD_NUM(portid); in sghsc_attach()356 sghsc->sghsc_node_id = SG_PORTID_TO_NODEID(portid); in sghsc_attach()357 sghsc->sghsc_portid = portid; in sghsc_attach()359 ddi_set_driver_private(dip, sghsc); in sghsc_attach()361 mutex_init(SGHSC_MUTEX(sghsc), NULL, MUTEX_DRIVER, NULL); in sghsc_attach()363 rc = sghsc_scctl(SGHSC_GET_NUM_SLOTS, sghsc->sghsc_node_id, in sghsc_attach()[all …]
54 #define SGHSC_MUTEX(sghsc) \ argument55 (&sghsc->sghsc_mutex)56 #define SGHSC_MUTEX_OWNED(sghsc) \ argument57 mutex_owned(SGHSC_MUTEX(sghsc))58 #define SGHSC_MUTEX_ENTER(sghsc) \ argument59 mutex_enter(SGHSC_MUTEX(sghsc))60 #define SGHSC_MUTEX_EXIT(sghsc) \ argument61 mutex_exit(SGHSC_MUTEX(sghsc))63 #define SGHSC_SLOT_MUTEX(sghsc, slot_num) \ argument64 (&sghsc->sghsc_slot_table[slot_num]->slot_mutex)[all …]