Lines Matching defs:ohci

84 	hci1394_ohci_t *ohci;
93 /* alloc the space for ohci */
94 ohci = kmem_alloc(sizeof (hci1394_ohci_t), KM_SLEEP);
95 *ohci_hdl = ohci;
105 ohci->ohci_bustime_enabled = B_FALSE;
106 ohci->ohci_bustime_count = 0;
108 ohci->ohci_set_root_holdoff = B_FALSE;
109 ohci->ohci_set_gap_count = B_FALSE;
110 ohci->ohci_gap_count = 0;
112 mutex_init(&ohci->ohci_mutex, NULL, MUTEX_DRIVER,
117 (caddr_t *)&ohci->ohci_regs, 0, 0, &drvinfo->di_reg_attr,
118 &ohci->ohci_reg_handle);
120 mutex_destroy(&ohci->ohci_mutex);
121 kmem_free(ohci, sizeof (hci1394_ohci_t));
130 ohci->soft_state = soft_state;
131 ohci->ohci_drvinfo = drvinfo;
151 status = hci1394_ohci_chip_init(ohci);
153 ddi_regs_map_free(&ohci->ohci_reg_handle);
154 mutex_destroy(&ohci->ohci_mutex);
155 kmem_free(ohci, sizeof (hci1394_ohci_t));
165 status = hci1394_ohci_phy_init(ohci);
167 (void) hci1394_ohci_soft_reset(ohci);
168 ddi_regs_map_free(&ohci->ohci_reg_handle);
169 mutex_destroy(&ohci->ohci_mutex);
170 kmem_free(ohci, sizeof (hci1394_ohci_t));
180 if (ohci->ohci_phy == H1394_PHY_1394A) {
181 status = hci1394_ohci_1394a_init(ohci);
183 (void) hci1394_ohci_soft_reset(ohci);
184 ddi_regs_map_free(&ohci->ohci_reg_handle);
185 mutex_destroy(&ohci->ohci_mutex);
186 kmem_free(ohci, sizeof (hci1394_ohci_t));
197 soft_state->halinfo.guid = hci1394_ohci_guid(ohci);
198 soft_state->halinfo.phy = ohci->ohci_phy;
200 ddi_get32(ohci->ohci_reg_handle, &ohci->ohci_regs->vendor_id);
201 version = ddi_get32(ohci->ohci_reg_handle, &ohci->ohci_regs->version);
210 (void) hci1394_ohci_soft_reset(ohci);
211 ddi_regs_map_free(&ohci->ohci_reg_handle);
212 mutex_destroy(&ohci->ohci_mutex);
213 kmem_free(ohci, sizeof (hci1394_ohci_t));
223 status = hci1394_ohci_selfid_init(ohci);
225 (void) hci1394_ohci_soft_reset(ohci);
226 ddi_regs_map_free(&ohci->ohci_reg_handle);
227 mutex_destroy(&ohci->ohci_mutex);
228 kmem_free(ohci, sizeof (hci1394_ohci_t));
238 status = hci1394_ohci_cfgrom_init(ohci);
240 (void) hci1394_ohci_soft_reset(ohci);
241 hci1394_buf_free(&ohci->ohci_selfid_handle);
242 ddi_regs_map_free(&ohci->ohci_reg_handle);
243 mutex_destroy(&ohci->ohci_mutex);
244 kmem_free(ohci, sizeof (hci1394_ohci_t));
266 hci1394_ohci_t *ohci;
272 ohci = *ohci_hdl;
275 (void) hci1394_ohci_soft_reset(ohci);
278 hci1394_buf_free(&ohci->ohci_cfgrom_handle);
281 hci1394_buf_free(&ohci->ohci_selfid_handle);
284 ddi_regs_map_free(&ohci->ohci_reg_handle);
286 mutex_destroy(&ohci->ohci_mutex);
289 kmem_free(ohci, sizeof (hci1394_ohci_t));