Lines Matching refs:device

184  * heci_reset_iamthif_params - initializes heci device iamthif
185 * @dev: The heci device structure
204 fini_heci_device(struct iamt_heci_device *device)
206 mutex_destroy(&device->device_lock);
207 cv_destroy(&device->wait_recvd_msg);
208 cv_destroy(&device->wait_stop_wd);
209 if (device->work)
210 ddi_taskq_destroy(device->work);
211 if (device->reinit_tsk)
212 ddi_taskq_destroy(device->reinit_tsk);
217 * init_heci_device - initializes the heci device structure
222 struct iamt_heci_device *device)
226 if (!device)
230 device->io_list_array[0] = &device->read_list;
231 device->io_list_array[1] = &device->write_list;
232 device->io_list_array[2] = &device->write_waiting_list;
233 device->io_list_array[3] = &device->ctrl_wr_list;
234 device->io_list_array[4] = &device->ctrl_rd_list;
235 device->io_list_array[5] = &device->pthi_cmd_list;
236 device->io_list_array[6] = &device->pthi_read_complete_list;
237 LIST_INIT_HEAD(&device->file_list);
238 LIST_INIT_HEAD(&device->wd_file_ext.link);
239 LIST_INIT_HEAD(&device->iamthif_file_ext.link);
240 mutex_init(&device->device_lock, NULL, MUTEX_DRIVER, NULL);
241 cv_init(&device->wait_recvd_msg, NULL, CV_DRIVER, NULL);
242 cv_init(&device->wait_stop_wd, NULL, CV_DRIVER, NULL);
243 device->open_handle_count = 0;
244 device->num_heci_me_clients = 0;
245 device->extra_write_index = 0;
246 device->rd_msg_hdr = 0;
247 device->mem_addr = NULL;
248 device->asf_mode = B_FALSE;
249 device->need_reset = B_FALSE;
250 device->recvd_msg = B_FALSE;
251 device->heci_state = HECI_INITIALIZING;
252 device->iamthif_state = HECI_IAMTHIF_IDLE;
254 device->work = ddi_taskq_create(dip, "heci_bh_handler", 1,
256 if (device->work == NULL)
258 device->reinit_tsk = ddi_taskq_create(dip, "heci_reinit_tsk", 1,
260 if (device->reinit_tsk == NULL)
263 device->wd_pending = B_FALSE;
264 device->wd_stoped = B_FALSE;
266 device->me_clients = NULL;
268 heci_initialize_list(device->io_list_array[i], device);
269 device->dip = dip;
295 DBG("reset in start the heci device.\n");
1166 * remove file private data from device file list