Home
last modified time | relevance | path

Searched refs:sghsc (Results 1 – 2 of 2) sorted by relevance

/illumos-gate/usr/src/uts/sun4u/serengeti/io/
H A Dsghsc.c316 sghsc_t *sghsc; in sghsc_attach() local
351 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 …]
/illumos-gate/usr/src/uts/sun4u/serengeti/sys/
H A Dsghsc.h54 #define SGHSC_MUTEX(sghsc) \ argument
55 (&sghsc->sghsc_mutex)
56 #define SGHSC_MUTEX_OWNED(sghsc) \ argument
57 mutex_owned(SGHSC_MUTEX(sghsc))
58 #define SGHSC_MUTEX_ENTER(sghsc) \ argument
59 mutex_enter(SGHSC_MUTEX(sghsc))
60 #define SGHSC_MUTEX_EXIT(sghsc) \ argument
61 mutex_exit(SGHSC_MUTEX(sghsc))
63 #define SGHSC_SLOT_MUTEX(sghsc, slot_num) \ argument
64 (&sghsc->sghsc_slot_table[slot_num]->slot_mutex)
[all …]