Lines Matching defs:ishtp_device

152 struct ishtp_device {  struct
153 struct device *devc; /* pointer to lowest device */
154 struct pci_dev *pdev; /* PCI device to get device ids */
155 struct ishtp_driver_data *driver_data; /* pointer to driver-specific data */
158 wait_queue_head_t suspend_wait;
159 bool suspend_flag; /* Suspend is active */
162 wait_queue_head_t resume_wait;
163 bool resume_flag; /*Resume is active */
169 spinlock_t device_lock;
171 bool recvd_hw_ready;
172 struct hbm_version version;
173 int transfer_path; /* Choice of transfer path: IPC or DMA */
176 struct work_struct work_fw_loader;
178 wait_queue_head_t wait_loader_recvd_msg;
180 bool fw_loader_received;
182 void *fw_loader_rx_buf;
184 int fw_loader_rx_size;
187 enum ishtp_dev_state dev_state;
188 enum ishtp_hbm_state hbm_state;
191 struct ishtp_cl_rb read_list;
192 spinlock_t read_list_spinlock;
195 struct list_head cl_list;
196 spinlock_t cl_list_lock;
197 long open_handle_count;
200 struct list_head device_list;
201 spinlock_t device_list_lock;
204 wait_queue_head_t wait_hw_ready;
205 wait_queue_head_t wait_hbm_recvd_msg;
208 unsigned char rd_msg_fifo[RD_INT_FIFO_SIZE * IPC_PAYLOAD_SIZE];
209 unsigned int rd_msg_fifo_head, rd_msg_fifo_tail;
210 spinlock_t rd_msg_spinlock;
211 struct work_struct bh_hbm_work;
214 struct list_head wr_processing_list, wr_free_list;
216 spinlock_t wr_processing_spinlock;
218 struct ishtp_fw_client *fw_clients; /*Note:memory has to be allocated*/
221 uint8_t fw_clients_num;
222 uint8_t fw_client_presentation_num;
223 uint8_t fw_client_index;
224 spinlock_t fw_clients_lock;
227 int ishtp_host_dma_enabled;
228 void *ishtp_host_dma_tx_buf;
229 unsigned int ishtp_host_dma_tx_buf_size;
230 uint64_t ishtp_host_dma_tx_buf_phys;
231 int ishtp_dma_num_slots;
234 uint8_t *ishtp_dma_tx_map;
235 spinlock_t ishtp_dma_tx_lock;
238 void *ishtp_host_dma_rx_buf;
239 unsigned int ishtp_host_dma_rx_buf_size;
240 uint64_t ishtp_host_dma_rx_buf_phys;
243 ishtp_print_log print_log;
246 struct ish_version base_ver;
248 struct ish_version prj_ver;
272 static inline int ish_ipc_reset(struct ishtp_device *dev) in ish_ipc_reset() argument