Lines Matching defs:ishtp_device

146 struct ishtp_device {  struct
147 struct device *devc; /* pointer to lowest device */
148 struct pci_dev *pdev; /* PCI device to get device ids */
149 struct ishtp_driver_data *driver_data; /* pointer to driver-specific data */
152 wait_queue_head_t suspend_wait;
153 bool suspend_flag; /* Suspend is active */
156 wait_queue_head_t resume_wait;
157 bool resume_flag; /*Resume is active */
163 spinlock_t device_lock;
165 bool recvd_hw_ready;
166 struct hbm_version version;
167 int transfer_path; /* Choice of transfer path: IPC or DMA */
170 struct work_struct work_fw_loader;
172 wait_queue_head_t wait_loader_recvd_msg;
174 bool fw_loader_received;
176 void *fw_loader_rx_buf;
178 int fw_loader_rx_size;
181 enum ishtp_dev_state dev_state;
182 enum ishtp_hbm_state hbm_state;
185 struct ishtp_cl_rb read_list;
186 spinlock_t read_list_spinlock;
189 struct list_head cl_list;
190 spinlock_t cl_list_lock;
191 long open_handle_count;
194 struct list_head device_list;
195 spinlock_t device_list_lock;
198 wait_queue_head_t wait_hw_ready;
199 wait_queue_head_t wait_hbm_recvd_msg;
202 unsigned char rd_msg_fifo[RD_INT_FIFO_SIZE * IPC_PAYLOAD_SIZE];
203 unsigned int rd_msg_fifo_head, rd_msg_fifo_tail;
204 spinlock_t rd_msg_spinlock;
205 struct work_struct bh_hbm_work;
208 struct list_head wr_processing_list, wr_free_list;
210 spinlock_t wr_processing_spinlock;
212 struct ishtp_fw_client *fw_clients; /*Note:memory has to be allocated*/
215 uint8_t fw_clients_num;
216 uint8_t fw_client_presentation_num;
217 uint8_t fw_client_index;
218 spinlock_t fw_clients_lock;
221 int ishtp_host_dma_enabled;
222 void *ishtp_host_dma_tx_buf;
223 unsigned int ishtp_host_dma_tx_buf_size;
224 uint64_t ishtp_host_dma_tx_buf_phys;
225 int ishtp_dma_num_slots;
228 uint8_t *ishtp_dma_tx_map;
229 spinlock_t ishtp_dma_tx_lock;
232 void *ishtp_host_dma_rx_buf;
233 unsigned int ishtp_host_dma_rx_buf_size;
234 uint64_t ishtp_host_dma_rx_buf_phys;
259 static inline int ish_ipc_reset(struct ishtp_device *dev) in ish_ipc_reset() argument