Home
last modified time | relevance | path

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

/titanic_41/usr/src/uts/sun4v/io/niumx/
H A Dniumx_tools.c84 int niumx_set_intr_target(niumx_devstate_t *niumxds_p, niudevino_t ino,
92 niumx_devstate_t *niumxds_p; in niumx_open() local
104 niumxds_p = (niumx_devstate_t *)ddi_get_soft_state(niumx_state, in niumx_open()
106 if (niumxds_p == NULL) in niumx_open()
112 mutex_enter(&niumxds_p->niumx_mutex); in niumx_open()
114 if (niumxds_p->niumx_soft_state != NIUMX_SOFT_STATE_CLOSED) { in niumx_open()
115 mutex_exit(&niumxds_p->niumx_mutex); in niumx_open()
118 niumxds_p->niumx_soft_state = NIUMX_SOFT_STATE_OPEN_EXCL; in niumx_open()
120 if (niumxds_p->niumx_soft_state == NIUMX_SOFT_STATE_OPEN_EXCL) { in niumx_open()
121 mutex_exit(&niumxds_p->niumx_mutex); in niumx_open()
[all …]
H A Dniumx.c78 int niumx_get_intr_target(niumx_devstate_t *niumxds_p, niudevino_t ino,
80 int niumx_set_intr_target(niumx_devstate_t *niumxds_p, niudevino_t ino,
201 niumx_devstate_t *niumxds_p = (niumx_devstate_t *)arg; in niumx_intr_dist() local
202 kmutex_t *lock_p = &niumxds_p->niumx_mutex; in niumx_intr_dist()
204 niumx_ih_t *ih_p = niumxds_p->niumx_ihtable; in niumx_intr_dist()
250 niumx_devstate_t *niumxds_p; /* devstate pointer */ in niumx_attach() local
274 niumxds_p = (niumx_devstate_t *)ddi_get_soft_state(niumx_state, in niumx_attach()
276 niumxds_p->dip = dip; in niumx_attach()
277 niumxds_p->niumx_open_count = 0; in niumx_attach()
278 mutex_init(&niumxds_p->niumx_mutex, NULL, MUTEX_DRIVER, NULL); in niumx_attach()
[all …]