Home
last modified time | relevance | path

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

/linux-5.19.10/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.c2231 int irdma_prm_add_pble_mem(struct irdma_pble_prm *pprm, in irdma_prm_add_pble_mem() argument
2239 sizeofbitmap = (u64)pchunk->size >> pprm->pble_shift; in irdma_prm_add_pble_mem()
2247 pprm->total_pble_alloc += pchunk->size >> 3; in irdma_prm_add_pble_mem()
2248 pprm->free_pble_cnt += pchunk->size >> 3; in irdma_prm_add_pble_mem()
2261 int irdma_prm_get_pbles(struct irdma_pble_prm *pprm, in irdma_prm_get_pbles() argument
2268 struct list_head *chunk_entry = pprm->clist.next; in irdma_prm_get_pbles()
2274 bits_needed = DIV_ROUND_UP_ULL(mem_size, BIT_ULL(pprm->pble_shift)); in irdma_prm_get_pbles()
2276 spin_lock_irqsave(&pprm->prm_lock, flags); in irdma_prm_get_pbles()
2277 while (chunk_entry != &pprm->clist) { in irdma_prm_get_pbles()
2290 spin_unlock_irqrestore(&pprm->prm_lock, flags); in irdma_prm_get_pbles()
[all …]