Home
last modified time | relevance | path

Searched refs:drvinfo (Results 1 – 25 of 28) sorted by relevance

12

/illumos-gate/usr/src/uts/common/io/1394/adapters/
H A Dhci1394_attach.c139 &soft_state->drvinfo.di_sl_private); in hci1394_attach()
190 soft_state->drvinfo.di_drvstate.ds_state = HCI1394_INITIAL; in hci1394_attach()
200 &soft_state->drvinfo.di_sl_private); in hci1394_attach()
228 soft_state->drvinfo.di_dip = dip; in hci1394_soft_state_phase1_init()
229 soft_state->drvinfo.di_instance = instance; in hci1394_soft_state_phase1_init()
232 soft_state->drvinfo.di_gencnt = 0; in hci1394_soft_state_phase1_init()
234 soft_state->drvinfo.di_sl_private = NULL; in hci1394_soft_state_phase1_init()
237 soft_state->drvinfo.di_stats.st_bus_reset_count = 0; in hci1394_soft_state_phase1_init()
238 soft_state->drvinfo.di_stats.st_selfid_count = 0; in hci1394_soft_state_phase1_init()
239 soft_state->drvinfo.di_stats.st_phy_isr = 0; in hci1394_soft_state_phase1_init()
[all …]
H A Dhci1394_isr.c68 status = ddi_intr_hilevel(soft_state->drvinfo.di_dip, 0); in hci1394_isr_init()
74 status = ddi_get_iblock_cookie(soft_state->drvinfo.di_dip, 0, in hci1394_isr_init()
75 &soft_state->drvinfo.di_iblock_cookie); in hci1394_isr_init()
110 status = ddi_add_intr(soft_state->drvinfo.di_dip, 0, NULL, NULL, in hci1394_isr_handler_init()
126 ddi_remove_intr(soft_state->drvinfo.di_dip, 0, in hci1394_isr_handler_fini()
127 soft_state->drvinfo.di_iblock_cookie); in hci1394_isr_handler_fini()
182 if (hci1394_state(&soft_state->drvinfo) == HCI1394_SHUTDOWN) in hci1394_isr()
229 h1394_error_detected(soft_state->drvinfo.di_sl_private, in hci1394_isr()
233 soft_state->drvinfo.di_instance); in hci1394_isr()
234 hci1394_shutdown(soft_state->drvinfo.di_dip); in hci1394_isr()
[all …]
H A Dhci1394_misc.c62 *result = (void *)soft_state->drvinfo.di_dip; in hci1394_getinfo()
135 (void) hci1394_state_set(&soft_state->drvinfo, HCI1394_SHUTDOWN); in hci1394_shutdown()
150 hci1394_state(hci1394_drvinfo_t *drvinfo) in hci1394_state() argument
154 mutex_enter(&drvinfo->di_drvstate.ds_mutex); in hci1394_state()
155 hal_state = drvinfo->di_drvstate.ds_state; in hci1394_state()
156 mutex_exit(&drvinfo->di_drvstate.ds_mutex); in hci1394_state()
169 hci1394_state_set(hci1394_drvinfo_t *drvinfo, hci1394_statevar_t state) in hci1394_state_set() argument
171 mutex_enter(&drvinfo->di_drvstate.ds_mutex); in hci1394_state_set()
174 if (drvinfo->di_drvstate.ds_state == HCI1394_SHUTDOWN) { in hci1394_state_set()
175 mutex_exit(&drvinfo->di_drvstate.ds_mutex); in hci1394_state_set()
[all …]
H A Dhci1394_s1394if.c131 hci1394_shutdown(soft_state->drvinfo.di_dip); in hci1394_s1394if_shutdown()
153 if (hci1394_state(&soft_state->drvinfo) != HCI1394_NORMAL) { in hci1394_s1394if_phy()
154 if (hci1394_state(&soft_state->drvinfo) == HCI1394_BUS_RESET) { in hci1394_s1394if_phy()
190 if (hci1394_state(&soft_state->drvinfo) != HCI1394_NORMAL) { in hci1394_s1394if_write()
191 if (hci1394_state(&soft_state->drvinfo) == HCI1394_BUS_RESET) { in hci1394_s1394if_write()
227 if (hci1394_state(&soft_state->drvinfo) != HCI1394_NORMAL) { in hci1394_s1394if_read()
228 if (hci1394_state(&soft_state->drvinfo) == HCI1394_BUS_RESET) { in hci1394_s1394if_read()
266 if (hci1394_state(&soft_state->drvinfo) != HCI1394_NORMAL) { in hci1394_s1394if_lock()
267 if (hci1394_state(&soft_state->drvinfo) == HCI1394_BUS_RESET) { in hci1394_s1394if_lock()
303 if (hci1394_state(&soft_state->drvinfo) != HCI1394_NORMAL) { in hci1394_s1394if_write_response()
[all …]
H A Dhci1394_detach.c78 (void) hci1394_state_set(&soft_state->drvinfo, in hci1394_detach()
90 (void) h1394_detach(&soft_state->drvinfo.di_sl_private, in hci1394_detach()
107 soft_state->drvinfo.di_instance); in hci1394_detach()
129 (void) hci1394_state_set(&soft_state->drvinfo, in hci1394_detach()
141 (void) h1394_detach(&soft_state->drvinfo.di_sl_private, in hci1394_detach()
243 mutex_destroy(&soft_state->drvinfo.di_drvstate.ds_mutex); in hci1394_soft_state_fini()
H A Dhci1394_buf.c83 hci1394_buf_alloc(hci1394_drvinfo_t *drvinfo, hci1394_buf_parms_t *parms, in hci1394_buf_alloc() argument
91 ASSERT(drvinfo != NULL); in hci1394_buf_alloc()
103 buf->bu_drvinfo = drvinfo; in hci1394_buf_alloc()
112 status = ddi_dma_alloc_handle(drvinfo->di_dip, &dma_attr, in hci1394_buf_alloc()
120 &drvinfo->di_buf_attr, DDI_DMA_STREAMING, DDI_DMA_SLEEP, in hci1394_buf_alloc()
H A Dhci1394_isoch.c64 hci1394_isoch_init(hci1394_drvinfo_t *drvinfo, hci1394_ohci_handle_t ohci, in hci1394_isoch_init() argument
70 ASSERT(drvinfo != NULL); in hci1394_isoch_init()
83 MUTEX_DRIVER, drvinfo->di_iblock_cookie); in hci1394_isoch_init()
90 MUTEX_DRIVER, drvinfo->di_iblock_cookie); in hci1394_isoch_init()
116 drvinfo->di_iblock_cookie); in hci1394_isoch_init()
619 h1394_error_detected(soft_statep->drvinfo.di_sl_private, in hci1394_do_stop()
623 soft_statep->drvinfo.di_instance); in hci1394_do_stop()
624 hci1394_shutdown(soft_statep->drvinfo.di_dip); in hci1394_do_stop()
H A Dhci1394_csr.c100 hci1394_csr_init(hci1394_drvinfo_t *drvinfo, hci1394_ohci_handle_t ohci, in hci1394_csr_init() argument
106 ASSERT(drvinfo != NULL); in hci1394_csr_init()
117 csr->csr_drvinfo = drvinfo; in hci1394_csr_init()
120 drvinfo->di_iblock_cookie); in hci1394_csr_init()
H A Dhci1394_vendor.c78 hci1394_vendor_init(hci1394_drvinfo_t *drvinfo, hci1394_ohci_handle_t ohci, in hci1394_vendor_init() argument
85 ASSERT(drvinfo != NULL); in hci1394_vendor_init()
94 vendor->ve_drvinfo = drvinfo; in hci1394_vendor_init()
H A Dhci1394_tlabel.c50 hci1394_tlabel_init(hci1394_drvinfo_t *drvinfo, hrtime_t reclaim_time_nS, in hci1394_tlabel_init() argument
69 tstruct->tb_drvinfo = drvinfo; in hci1394_tlabel_init()
75 drvinfo->di_iblock_cookie); in hci1394_tlabel_init()
H A Dhci1394_tlist.c71 hci1394_tlist_init(hci1394_drvinfo_t *drvinfo, hci1394_tlist_timer_t *timer, in hci1394_tlist_init() argument
86 list->tl_drvinfo = drvinfo; in hci1394_tlist_init()
98 drvinfo->di_iblock_cookie); in hci1394_tlist_init()
H A Dhci1394_q.c87 hci1394_q_init(hci1394_drvinfo_t *drvinfo, in hci1394_q_init() argument
99 ASSERT(drvinfo != NULL); in hci1394_q_init()
108 q->q_drvinfo = drvinfo; in hci1394_q_init()
111 mutex_init(&q->q_mutex, NULL, MUTEX_DRIVER, drvinfo->di_iblock_cookie); in hci1394_q_init()
124 status = hci1394_buf_alloc(drvinfo, &parms, &desc->qb_buf, in hci1394_q_init()
150 status = hci1394_buf_alloc(drvinfo, &parms, &data->qb_buf, in hci1394_q_init()
209 hci1394_tlist_init(drvinfo, NULL, &q->q_queued_list); in hci1394_q_init()
H A Dhci1394_async.c144 hci1394_async_init(hci1394_drvinfo_t *drvinfo, in hci1394_async_init() argument
154 ASSERT(drvinfo != NULL); in hci1394_async_init()
163 async->as_drvinfo = drvinfo; in hci1394_async_init()
169 drvinfo->di_iblock_cookie); in hci1394_async_init()
182 hci1394_tlabel_init(drvinfo, OHCI_BUS_CYCLE_TO_nS( in hci1394_async_init()
198 hci1394_tlist_init(drvinfo, &timer_info, &async->as_pending_list); in hci1394_async_init()
207 status = hci1394_q_init(drvinfo, async->as_ohci, &qinfo, in hci1394_async_init()
225 status = hci1394_q_init(drvinfo, async->as_ohci, &qinfo, in hci1394_async_init()
244 status = hci1394_q_init(drvinfo, async->as_ohci, &qinfo, in hci1394_async_init()
264 status = hci1394_q_init(drvinfo, async->as_ohci, &qinfo, in hci1394_async_init()
H A Dhci1394_ioctl.c148 status = h1394_ioctl(soft_state->drvinfo.di_sl_private, cmd, in hci1394_ioctl()
272 selfid_cnt.count = soft_state->drvinfo.di_stats.st_selfid_count; in hci1394_ioctl_selfid_cnt()
H A Dhci1394_ohci.c78 hci1394_ohci_init(hci1394_state_t *soft_state, hci1394_drvinfo_t *drvinfo, in hci1394_ohci_init() argument
111 drvinfo->di_iblock_cookie); in hci1394_ohci_init()
114 status = ddi_regs_map_setup(drvinfo->di_dip, OHCI_REG_SET, in hci1394_ohci_init()
115 (caddr_t *)&ohci->ohci_regs, 0, 0, &drvinfo->di_reg_attr, in hci1394_ohci_init()
125 ohci->ohci_drvinfo = drvinfo; in hci1394_ohci_init()
190 drvinfo->di_instance, OHCI_VERSION(version), in hci1394_ohci_init()
/illumos-gate/usr/src/uts/common/sys/1394/adapters/
H A Dhci1394_state.h81 hci1394_drvinfo_t drvinfo; /* see hci1394_drvinfo.h */ member
95 hci1394_state_s::drvinfo.di_gencnt \
96 hci1394_state_s::drvinfo.di_stats.st_bus_reset_count \
97 hci1394_state_s::drvinfo.di_stats.st_selfid_count))
H A Dhci1394.h91 hci1394_statevar_t hci1394_state(hci1394_drvinfo_t *drvinfo);
92 int hci1394_state_set(hci1394_drvinfo_t *drvinfo, hci1394_statevar_t state);
H A Dhci1394_buf.h91 int hci1394_buf_alloc(hci1394_drvinfo_t *drvinfo, hci1394_buf_parms_t *parms,
H A Dhci1394_vendor.h109 int hci1394_vendor_init(hci1394_drvinfo_t *drvinfo, hci1394_ohci_handle_t ohci,
H A Dhci1394_csr.h123 void hci1394_csr_init(hci1394_drvinfo_t *drvinfo, hci1394_ohci_handle_t ohci,
H A Dhci1394_tlabel.h148 void hci1394_tlabel_init(hci1394_drvinfo_t *drvinfo, hrtime_t reclaim_time_nS,
H A Dhci1394_tlist.h162 void hci1394_tlist_init(hci1394_drvinfo_t *drvinfo,
H A Dhci1394_async.h215 int hci1394_async_init(hci1394_drvinfo_t *drvinfo,
H A Dhci1394_isoch.h193 void hci1394_isoch_init(hci1394_drvinfo_t *drvinfo, hci1394_ohci_handle_t ohci,
H A Dhci1394_q.h350 int hci1394_q_init(hci1394_drvinfo_t *drvinfo,

12