Lines Matching refs:oct
30 int octeon_setup_response_list(struct octeon_device *oct) in octeon_setup_response_list() argument
36 INIT_LIST_HEAD(&oct->response_list[i].head); in octeon_setup_response_list()
37 spin_lock_init(&oct->response_list[i].lock); in octeon_setup_response_list()
38 atomic_set(&oct->response_list[i].pending_req_count, 0); in octeon_setup_response_list()
40 spin_lock_init(&oct->cmd_resp_wqlock); in octeon_setup_response_list()
42 oct->dma_comp_wq.wq = alloc_workqueue("dma-comp", WQ_MEM_RECLAIM, 0); in octeon_setup_response_list()
43 if (!oct->dma_comp_wq.wq) { in octeon_setup_response_list()
44 dev_err(&oct->pci_dev->dev, "failed to create wq thread\n"); in octeon_setup_response_list()
48 cwq = &oct->dma_comp_wq; in octeon_setup_response_list()
50 cwq->wk.ctxptr = oct; in octeon_setup_response_list()
51 oct->cmd_resp_state = OCT_DRV_ONLINE; in octeon_setup_response_list()
56 void octeon_delete_response_list(struct octeon_device *oct) in octeon_delete_response_list() argument
58 cancel_delayed_work_sync(&oct->dma_comp_wq.wk.work); in octeon_delete_response_list()
59 destroy_workqueue(oct->dma_comp_wq.wq); in octeon_delete_response_list()
226 struct octeon_device *oct = (struct octeon_device *)wk->ctxptr; in oct_poll_req_completion() local
227 struct cavium_wq *cwq = &oct->dma_comp_wq; in oct_poll_req_completion()
229 lio_process_ordered_list(oct, 0); in oct_poll_req_completion()
231 if (atomic_read(&oct->response_list in oct_poll_req_completion()