Searched refs:loop_nr_pages (Results 1 - 2 of 2) sorted by relevance

/linux-4.4.14/drivers/misc/mic/scif/
H A Dscif_mmap.c386 int loop_nr_pages, nr_pages_left = nr_pages; scif_rma_list_mmap() local
398 loop_nr_pages = min_t(int, list_for_each_entry_from()
402 for (i = 0; i < loop_nr_pages; i++) { list_for_each_entry_from()
417 nr_pages_left -= loop_nr_pages; list_for_each_entry_from()
434 loop_nr_pages = min_t(int, list_for_each_entry_from()
437 scif_get_window(window, loop_nr_pages); list_for_each_entry_from()
438 nr_pages_left -= loop_nr_pages; list_for_each_entry_from()
439 loop_offset += (loop_nr_pages << PAGE_SHIFT); list_for_each_entry_from()
463 int loop_nr_pages, nr_pages_left = nr_pages; scif_rma_list_munmap() local
475 loop_nr_pages = min_t(int, list_for_each_entry_safe_from()
478 scif_put_window(window, loop_nr_pages); list_for_each_entry_safe_from()
492 nr_pages_left -= loop_nr_pages; list_for_each_entry_safe_from()
493 loop_offset += (loop_nr_pages << PAGE_SHIFT); list_for_each_entry_safe_from()
H A Dscif_rma_list.c210 int loop_nr_pages; scif_rma_list_unregister() local
215 loop_nr_pages = min((int)((end_offset - offset) >> PAGE_SHIFT), list_for_each_entry_safe_from()
220 nr_pages -= loop_nr_pages; list_for_each_entry_safe_from()
221 offset += (loop_nr_pages << PAGE_SHIFT); list_for_each_entry_safe_from()

Completed in 129 milliseconds