Lines Matching refs:dev

52 void ishtp_device_init(struct ishtp_device *dev)  in ishtp_device_init()  argument
54 dev->dev_state = ISHTP_DEV_INITIALIZING; in ishtp_device_init()
55 INIT_LIST_HEAD(&dev->cl_list); in ishtp_device_init()
56 INIT_LIST_HEAD(&dev->device_list); in ishtp_device_init()
57 dev->rd_msg_fifo_head = 0; in ishtp_device_init()
58 dev->rd_msg_fifo_tail = 0; in ishtp_device_init()
59 spin_lock_init(&dev->rd_msg_spinlock); in ishtp_device_init()
61 init_waitqueue_head(&dev->wait_hbm_recvd_msg); in ishtp_device_init()
62 spin_lock_init(&dev->read_list_spinlock); in ishtp_device_init()
63 spin_lock_init(&dev->device_lock); in ishtp_device_init()
64 spin_lock_init(&dev->device_list_lock); in ishtp_device_init()
65 spin_lock_init(&dev->cl_list_lock); in ishtp_device_init()
66 spin_lock_init(&dev->fw_clients_lock); in ishtp_device_init()
67 INIT_WORK(&dev->bh_hbm_work, bh_hbm_work_fn); in ishtp_device_init()
69 bitmap_zero(dev->host_clients_map, ISHTP_CLIENTS_MAX); in ishtp_device_init()
70 dev->open_handle_count = 0; in ishtp_device_init()
75 bitmap_set(dev->host_clients_map, 0, 1); in ishtp_device_init()
77 INIT_LIST_HEAD(&dev->read_list.list); in ishtp_device_init()
90 int ishtp_start(struct ishtp_device *dev) in ishtp_start() argument
92 if (ishtp_hbm_start_wait(dev)) { in ishtp_start()
93 dev_err(dev->devc, "HBM haven't started"); in ishtp_start()
98 ishtp_query_subscribers(dev); in ishtp_start()
102 dev_err(dev->devc, "link layer initialization failed.\n"); in ishtp_start()
103 dev->dev_state = ISHTP_DEV_DISABLED; in ishtp_start()