Lines Matching refs:pq

18 	struct hfi1_user_sdma_pkt_q *pq;  member
35 int hfi1_init_system_pinning(struct hfi1_user_sdma_pkt_q *pq) in hfi1_init_system_pinning() argument
37 struct hfi1_devdata *dd = pq->dd; in hfi1_init_system_pinning()
40 ret = hfi1_mmu_rb_register(pq, &sdma_rb_ops, dd->pport->hfi1_wq, in hfi1_init_system_pinning()
41 &pq->handler); in hfi1_init_system_pinning()
45 pq->ctxt, pq->subctxt, ret); in hfi1_init_system_pinning()
49 void hfi1_free_system_pinning(struct hfi1_user_sdma_pkt_q *pq) in hfi1_free_system_pinning() argument
51 if (pq->handler) in hfi1_free_system_pinning()
52 hfi1_mmu_rb_unregister(pq->handler); in hfi1_free_system_pinning()
55 static u32 sdma_cache_evict(struct hfi1_user_sdma_pkt_q *pq, u32 npages) in sdma_cache_evict() argument
61 hfi1_mmu_rb_evict(pq->handler, &evict_data); in sdma_cache_evict()
82 atomic_sub(node->npages, &node->pq->n_locked); in free_system_node()
118 struct hfi1_user_sdma_pkt_q *pq = req->pq; in pin_system_pages() local
127 if (!hfi1_can_pin_pages(pq->dd, current->mm, atomic_read(&pq->n_locked), in pin_system_pages()
130 atomic_read(&pq->n_locked), npages); in pin_system_pages()
131 cleared = sdma_cache_evict(pq, npages); in pin_system_pages()
155 atomic_add(pinned, &pq->n_locked); in pin_system_pages()
172 struct hfi1_user_sdma_pkt_q *pq = req->pq; in add_system_pinning() local
186 node->pq = pq; in add_system_pinning()
189 ret = hfi1_mmu_rb_insert(pq->handler, &node->rb); in add_system_pinning()
206 struct hfi1_user_sdma_pkt_q *pq = req->pq; in get_system_cache_entry() local
222 find_system_node(pq->handler, start, end); in get_system_cache_entry()
288 struct hfi1_user_sdma_pkt_q *pq = req->pq; in add_mapping_to_sdma_packet() local
325 ret = sdma_txadd_page(pq->dd, &tx->txreq, in add_mapping_to_sdma_packet()