Lines Matching full:pinned
122 * Release pinned receive buffer pages.
161 int pinned; in pin_rcv_pages() local
179 * pages, accept the amount pinned so far and program only that. in pin_rcv_pages()
187 pinned = hfi1_acquire_user_pages(current->mm, vaddr, npages, true, pages); in pin_rcv_pages()
188 if (pinned <= 0) { in pin_rcv_pages()
190 return pinned; in pin_rcv_pages()
193 fd->tid_n_pinned += pinned; in pin_rcv_pages()
194 return pinned; in pin_rcv_pages()
249 int ret = 0, need_group = 0, pinned; in hfi1_user_exp_rcv_setup() local
288 pinned = pin_rcv_pages(fd, tidbuf); in hfi1_user_exp_rcv_setup()
289 if (pinned <= 0) { in hfi1_user_exp_rcv_setup()
290 ret = (pinned < 0) ? pinned : -ENOSPC; in hfi1_user_exp_rcv_setup()
295 tidbuf->n_psets = find_phys_blocks(tidbuf, pinned); in hfi1_user_exp_rcv_setup()
425 unpin_rcv_pages(fd, tidbuf, NULL, mapped_pages, pinned - mapped_pages, in hfi1_user_exp_rcv_setup()
464 pinned = 0; /* nothing left to unpin */ in hfi1_user_exp_rcv_setup()
473 if (pinned > 0) in hfi1_user_exp_rcv_setup()
474 unpin_rcv_pages(fd, tidbuf, NULL, 0, pinned, false); in hfi1_user_exp_rcv_setup()