Home
last modified time | relevance | path

Searched refs:pprm (Results 1 – 3 of 3) sorted by relevance

/drivers/infiniband/hw/irdma/
Dpble.h118 int irdma_prm_add_pble_mem(struct irdma_pble_prm *pprm,
120 int irdma_prm_get_pbles(struct irdma_pble_prm *pprm,
123 void irdma_prm_return_pbles(struct irdma_pble_prm *pprm,
Dutils.c2121 int irdma_prm_add_pble_mem(struct irdma_pble_prm *pprm, in irdma_prm_add_pble_mem() argument
2129 sizeofbitmap = (u64)pchunk->size >> pprm->pble_shift; in irdma_prm_add_pble_mem()
2137 pprm->total_pble_alloc += pchunk->size >> 3; in irdma_prm_add_pble_mem()
2138 pprm->free_pble_cnt += pchunk->size >> 3; in irdma_prm_add_pble_mem()
2151 int irdma_prm_get_pbles(struct irdma_pble_prm *pprm, in irdma_prm_get_pbles() argument
2158 struct list_head *chunk_entry = pprm->clist.next; in irdma_prm_get_pbles()
2164 bits_needed = DIV_ROUND_UP_ULL(mem_size, BIT_ULL(pprm->pble_shift)); in irdma_prm_get_pbles()
2166 spin_lock_irqsave(&pprm->prm_lock, flags); in irdma_prm_get_pbles()
2167 while (chunk_entry != &pprm->clist) { in irdma_prm_get_pbles()
2180 spin_unlock_irqrestore(&pprm->prm_lock, flags); in irdma_prm_get_pbles()
[all …]
/drivers/net/ethernet/microsoft/mana/
Dmana_en.c2144 struct page_pool_params pprm = {}; in mana_create_page_pool() local
2147 pprm.pool_size = RX_BUFFERS_PER_QUEUE; in mana_create_page_pool()
2148 pprm.nid = gc->numa_node; in mana_create_page_pool()
2149 pprm.napi = &rxq->rx_cq.napi; in mana_create_page_pool()
2151 rxq->page_pool = page_pool_create(&pprm); in mana_create_page_pool()