/dports/benchmarks/stress-ng/stress-ng-0.13.09/ |
H A D | core-mincore.c | 33 const size_t n_pages, in stress_mincore_touch_pages_slow() argument 42 (i < n_pages); i++, buffer += page_size) { in stress_mincore_touch_pages_slow() 46 (i < n_pages); i++, buffer += page_size) { in stress_mincore_touch_pages_slow() 50 for (buffer = buf, i = 0; i < n_pages; i++, buffer += page_size) { in stress_mincore_touch_pages_slow() 53 for (buffer = buf, i = 0; i < n_pages; i++, buffer += page_size) { in stress_mincore_touch_pages_slow() 70 const size_t n_pages = buf_len / page_size; in stress_mincore_touch_pages_generic() local 85 if (n_pages < 1) in stress_mincore_touch_pages_generic() 88 vec = calloc(n_pages, 1); in stress_mincore_touch_pages_generic() 107 (i < n_pages); i++, buffer += page_size) { in stress_mincore_touch_pages_generic() 114 (i < n_pages); i++, buffer += page_size) { in stress_mincore_touch_pages_generic() [all …]
|
/dports/multimedia/v4l-utils/linux-5.13-rc2/arch/xtensa/mm/ |
H A D | mmu.c | 22 static void * __init init_pmd(unsigned long vaddr, unsigned long n_pages) in init_pmd() argument 28 n_pages = ALIGN(n_pages, PTRS_PER_PTE); in init_pmd() 31 __func__, vaddr, n_pages); in init_pmd() 33 pte = memblock_alloc_low(n_pages * sizeof(pte_t), PAGE_SIZE); in init_pmd() 36 __func__, n_pages * sizeof(pte_t), PAGE_SIZE); in init_pmd() 38 for (i = 0; i < n_pages; ++i) in init_pmd() 41 for (i = 0; i < n_pages; i += PTRS_PER_PTE, ++pmd) { in init_pmd()
|
/dports/multimedia/v4l_compat/linux-5.13-rc2/arch/xtensa/mm/ |
H A D | mmu.c | 22 static void * __init init_pmd(unsigned long vaddr, unsigned long n_pages) in init_pmd() argument 28 n_pages = ALIGN(n_pages, PTRS_PER_PTE); in init_pmd() 31 __func__, vaddr, n_pages); in init_pmd() 33 pte = memblock_alloc_low(n_pages * sizeof(pte_t), PAGE_SIZE); in init_pmd() 36 __func__, n_pages * sizeof(pte_t), PAGE_SIZE); in init_pmd() 38 for (i = 0; i < n_pages; ++i) in init_pmd() 41 for (i = 0; i < n_pages; i += PTRS_PER_PTE, ++pmd) { in init_pmd()
|
/dports/multimedia/libv4l/linux-5.13-rc2/arch/xtensa/mm/ |
H A D | mmu.c | 22 static void * __init init_pmd(unsigned long vaddr, unsigned long n_pages) in init_pmd() argument 28 n_pages = ALIGN(n_pages, PTRS_PER_PTE); in init_pmd() 31 __func__, vaddr, n_pages); in init_pmd() 33 pte = memblock_alloc_low(n_pages * sizeof(pte_t), PAGE_SIZE); in init_pmd() 36 __func__, n_pages * sizeof(pte_t), PAGE_SIZE); in init_pmd() 38 for (i = 0; i < n_pages; ++i) in init_pmd() 41 for (i = 0; i < n_pages; i += PTRS_PER_PTE, ++pmd) { in init_pmd()
|
/dports/audio/aqualung/aqualung-1.0/src/ |
H A D | metadata_ogg.c | 299 while ((slist != NULL) && ((n_pages == -1) || (page_count < n_pages))) { in meta_ogg_render() 369 unsigned int n_pages; in meta_ogg_vc_get_total_growable() local 377 for (i = 0; i < n_pages-1; i++) { in meta_ogg_vc_get_total_growable() 434 if (n_pages != NULL) { in meta_ogg_read_packet() 435 *n_pages = n; in meta_ogg_read_packet() 468 for (i = 0; i < n_pages; i++) { in meta_ogg_vc_in_place_ovwr() 475 *n_pages_to_write = n_pages+1; in meta_ogg_vc_in_place_ovwr() 488 for (i = 0; i < n_pages; i++) { in meta_ogg_vc_expander_encaps() 490 int is_last_page = (i == n_pages-1) ? 1 : 0; in meta_ogg_vc_expander_encaps() 566 for (i = n_pages-1; i >= 1; i--) { in meta_ogg_vc_paginator_encaps() [all …]
|
/dports/multimedia/v4l_compat/linux-5.13-rc2/mm/ |
H A D | balloon_compaction.c | 45 size_t n_pages = 0; in balloon_page_list_enqueue() local 51 n_pages++; in balloon_page_list_enqueue() 54 return n_pages; in balloon_page_list_enqueue() 81 size_t n_pages = 0; in balloon_page_list_dequeue() local 85 if (n_pages == n_req_pages) in balloon_page_list_dequeue() 106 n_pages++; in balloon_page_list_dequeue() 110 return n_pages; in balloon_page_list_dequeue() 181 int n_pages; in balloon_page_dequeue() local 183 n_pages = balloon_page_list_dequeue(b_dev_info, &pages, 1); in balloon_page_dequeue() 185 if (n_pages != 1) { in balloon_page_dequeue()
|
/dports/multimedia/libv4l/linux-5.13-rc2/mm/ |
H A D | balloon_compaction.c | 45 size_t n_pages = 0; in balloon_page_list_enqueue() local 51 n_pages++; in balloon_page_list_enqueue() 54 return n_pages; in balloon_page_list_enqueue() 81 size_t n_pages = 0; in balloon_page_list_dequeue() local 85 if (n_pages == n_req_pages) in balloon_page_list_dequeue() 106 n_pages++; in balloon_page_list_dequeue() 110 return n_pages; in balloon_page_list_dequeue() 181 int n_pages; in balloon_page_dequeue() local 183 n_pages = balloon_page_list_dequeue(b_dev_info, &pages, 1); in balloon_page_dequeue() 185 if (n_pages != 1) { in balloon_page_dequeue()
|
/dports/www/epiphany/epiphany-41.0/src/ |
H A D | ephy-pages-button.c | 34 int n_pages; member 82 g_assert (self->n_pages >= 0); in update_icon() 84 is_overflow = self->n_pages >= 100; in update_icon() 85 font_size = self->n_pages >= 10 ? FONT_SIZE_SMALL : FONT_SIZE_LARGE; in update_icon() 87 label_text = g_strdup_printf ("%u", (guint)self->n_pages); in update_icon() 107 return self->n_pages; in ephy_pages_button_get_n_pages() 112 int n_pages) in ephy_pages_button_set_n_pages() argument 114 self->n_pages = n_pages; in ephy_pages_button_set_n_pages() 200 self->n_pages = 1; in ephy_pages_button_init()
|
/dports/multimedia/v4l-utils/linux-5.13-rc2/mm/ |
H A D | balloon_compaction.c | 45 size_t n_pages = 0; in balloon_page_list_enqueue() local 51 n_pages++; in balloon_page_list_enqueue() 54 return n_pages; in balloon_page_list_enqueue() 81 size_t n_pages = 0; in balloon_page_list_dequeue() local 85 if (n_pages == n_req_pages) in balloon_page_list_dequeue() 106 n_pages++; in balloon_page_list_dequeue() 110 return n_pages; in balloon_page_list_dequeue() 181 int n_pages; in balloon_page_dequeue() local 183 n_pages = balloon_page_list_dequeue(b_dev_info, &pages, 1); in balloon_page_dequeue() 185 if (n_pages != 1) { in balloon_page_dequeue()
|
/dports/multimedia/v4l-utils/linux-5.13-rc2/drivers/comedi/ |
H A D | comedi_buf.c | 37 PAGE_SIZE * bm->n_pages, in comedi_buf_map_kref_release() 40 for (i = 0; i < bm->n_pages; i++) { in comedi_buf_map_kref_release() 76 unsigned int n_pages) in comedi_buf_map_alloc() argument 111 for (i = 0; i < n_pages; i++) { in comedi_buf_map_alloc() 117 bm->n_pages = i; in comedi_buf_map_alloc() 119 for (i = 0; i < n_pages; i++) { in comedi_buf_map_alloc() 128 bm->n_pages = i; in comedi_buf_map_alloc() 129 if (i < n_pages) in comedi_buf_map_alloc() 142 unsigned int n_pages) in __comedi_buf_alloc() argument 177 for (i = 0; i < n_pages; i++) { in __comedi_buf_alloc() [all …]
|
/dports/multimedia/v4l_compat/linux-5.13-rc2/drivers/comedi/ |
H A D | comedi_buf.c | 37 PAGE_SIZE * bm->n_pages, in comedi_buf_map_kref_release() 40 for (i = 0; i < bm->n_pages; i++) { in comedi_buf_map_kref_release() 76 unsigned int n_pages) in comedi_buf_map_alloc() argument 111 for (i = 0; i < n_pages; i++) { in comedi_buf_map_alloc() 117 bm->n_pages = i; in comedi_buf_map_alloc() 119 for (i = 0; i < n_pages; i++) { in comedi_buf_map_alloc() 128 bm->n_pages = i; in comedi_buf_map_alloc() 129 if (i < n_pages) in comedi_buf_map_alloc() 142 unsigned int n_pages) in __comedi_buf_alloc() argument 177 for (i = 0; i < n_pages; i++) { in __comedi_buf_alloc() [all …]
|
/dports/multimedia/libv4l/linux-5.13-rc2/drivers/comedi/ |
H A D | comedi_buf.c | 37 PAGE_SIZE * bm->n_pages, in comedi_buf_map_kref_release() 40 for (i = 0; i < bm->n_pages; i++) { in comedi_buf_map_kref_release() 76 unsigned int n_pages) in comedi_buf_map_alloc() argument 111 for (i = 0; i < n_pages; i++) { in comedi_buf_map_alloc() 117 bm->n_pages = i; in comedi_buf_map_alloc() 119 for (i = 0; i < n_pages; i++) { in comedi_buf_map_alloc() 128 bm->n_pages = i; in comedi_buf_map_alloc() 129 if (i < n_pages) in comedi_buf_map_alloc() 142 unsigned int n_pages) in __comedi_buf_alloc() argument 177 for (i = 0; i < n_pages; i++) { in __comedi_buf_alloc() [all …]
|
/dports/graphics/gimp-app/gimp-2.10.30/libgimpwidgets/ |
H A D | gimppageselector.c | 76 gint n_pages; member 224 priv->n_pages = 0; in gimp_page_selector_init() 424 g_return_if_fail (n_pages >= 0); in gimp_page_selector_set_n_pages() 428 if (n_pages != priv->n_pages) in gimp_page_selector_set_n_pages() 433 if (n_pages < priv->n_pages) in gimp_page_selector_set_n_pages() 435 for (i = n_pages; i < priv->n_pages; i++) in gimp_page_selector_set_n_pages() 444 for (i = priv->n_pages; i < n_pages; i++) in gimp_page_selector_set_n_pages() 462 priv->n_pages = n_pages; in gimp_page_selector_set_n_pages() 485 return priv->n_pages; in gimp_page_selector_get_n_pages() 1005 gint n_pages; in gimp_page_selector_get_selected_range() local [all …]
|
/dports/databases/mariadb105-client/mariadb-10.5.15/storage/innobase/buf/ |
H A D | buf0dump.cc | 276 ulint n_pages; in buf_dump() local 284 if (n_pages == 0) { in buf_dump() 295 if (n_pages > t_pages) { in buf_dump() 301 n_pages = t_pages; in buf_dump() 304 if (n_pages == 0) { in buf_dump() 305 n_pages = 1; in buf_dump() 310 n_pages * sizeof(*dump))); in buf_dump() 317 (ulint) (n_pages * sizeof(*dump)), in buf_dump() 324 bpage != NULL && j < n_pages; in buf_dump() 344 ut_a(j <= n_pages); in buf_dump() [all …]
|
/dports/databases/mariadb104-server/mariadb-10.4.24/storage/innobase/buf/ |
H A D | buf0dump.cc | 303 ulint n_pages; in buf_dump() local 315 if (n_pages == 0) { in buf_dump() 329 if (n_pages > t_pages) { in buf_dump() 337 n_pages = t_pages; in buf_dump() 340 if (n_pages == 0) { in buf_dump() 341 n_pages = 1; in buf_dump() 346 n_pages * sizeof(*dump))); in buf_dump() 360 bpage != NULL && j < n_pages; in buf_dump() 375 ut_a(j <= n_pages); in buf_dump() 376 n_pages = j; in buf_dump() [all …]
|
/dports/databases/mariadb104-client/mariadb-10.4.24/storage/innobase/buf/ |
H A D | buf0dump.cc | 303 ulint n_pages; in buf_dump() local 315 if (n_pages == 0) { in buf_dump() 329 if (n_pages > t_pages) { in buf_dump() 337 n_pages = t_pages; in buf_dump() 340 if (n_pages == 0) { in buf_dump() 341 n_pages = 1; in buf_dump() 346 n_pages * sizeof(*dump))); in buf_dump() 360 bpage != NULL && j < n_pages; in buf_dump() 375 ut_a(j <= n_pages); in buf_dump() 376 n_pages = j; in buf_dump() [all …]
|
/dports/databases/mariadb103-server/mariadb-10.3.34/storage/innobase/buf/ |
H A D | buf0dump.cc | 303 ulint n_pages; in buf_dump() local 315 if (n_pages == 0) { in buf_dump() 329 if (n_pages > t_pages) { in buf_dump() 337 n_pages = t_pages; in buf_dump() 340 if (n_pages == 0) { in buf_dump() 341 n_pages = 1; in buf_dump() 346 n_pages * sizeof(*dump))); in buf_dump() 360 bpage != NULL && j < n_pages; in buf_dump() 375 ut_a(j <= n_pages); in buf_dump() 376 n_pages = j; in buf_dump() [all …]
|
/dports/databases/mariadb103-client/mariadb-10.3.34/storage/innobase/buf/ |
H A D | buf0dump.cc | 303 ulint n_pages; in buf_dump() local 315 if (n_pages == 0) { in buf_dump() 329 if (n_pages > t_pages) { in buf_dump() 337 n_pages = t_pages; in buf_dump() 340 if (n_pages == 0) { in buf_dump() 341 n_pages = 1; in buf_dump() 346 n_pages * sizeof(*dump))); in buf_dump() 360 bpage != NULL && j < n_pages; in buf_dump() 375 ut_a(j <= n_pages); in buf_dump() 376 n_pages = j; in buf_dump() [all …]
|
/dports/databases/mariadb105-server/mariadb-10.5.15/storage/innobase/buf/ |
H A D | buf0dump.cc | 276 ulint n_pages; in buf_dump() local 284 if (n_pages == 0) { in buf_dump() 295 if (n_pages > t_pages) { in buf_dump() 301 n_pages = t_pages; in buf_dump() 304 if (n_pages == 0) { in buf_dump() 305 n_pages = 1; in buf_dump() 310 n_pages * sizeof(*dump))); in buf_dump() 317 (ulint) (n_pages * sizeof(*dump)), in buf_dump() 324 bpage != NULL && j < n_pages; in buf_dump() 344 ut_a(j <= n_pages); in buf_dump() [all …]
|
/dports/databases/xtrabackup8/percona-xtrabackup-8.0.14/storage/innobase/buf/ |
H A D | buf0dump.cc | 254 ulint n_pages; in buf_dump() local 263 n_pages = UT_LIST_GET_LEN(buf_pool->LRU); in buf_dump() 266 if (n_pages == 0) { in buf_dump() 274 n_pages = n_pages * srv_buf_pool_dump_pct / 100; in buf_dump() 276 if (n_pages == 0) { in buf_dump() 277 n_pages = 1; in buf_dump() 287 (ulint)(n_pages * sizeof(*dump)), strerror(errno)); in buf_dump() 293 bpage != nullptr && j < n_pages; in buf_dump() 300 ut_a(j == n_pages); in buf_dump() 304 for (j = 0; j < n_pages && !SHOULD_QUIT(); j++) { in buf_dump() [all …]
|
/dports/databases/xtrabackup/percona-xtrabackup-2.4.21/storage/innobase/buf/ |
H A D | buf0dump.cc | 305 ulint n_pages; in buf_dump() local 314 n_pages = UT_LIST_GET_LEN(buf_pool->LRU); in buf_dump() 317 if (n_pages == 0) { in buf_dump() 325 n_pages = n_pages * srv_buf_pool_dump_pct / 100; in buf_dump() 327 if (n_pages == 0) { in buf_dump() 328 n_pages = 1; in buf_dump() 333 n_pages * sizeof(*dump))); in buf_dump() 340 (ulint) (n_pages * sizeof(*dump)), in buf_dump() 347 bpage != NULL && j < n_pages; in buf_dump() 356 ut_a(j == n_pages); in buf_dump() [all …]
|
/dports/databases/mysql57-client/mysql-5.7.36/storage/innobase/buf/ |
H A D | buf0dump.cc | 305 ulint n_pages; in buf_dump() local 314 n_pages = UT_LIST_GET_LEN(buf_pool->LRU); in buf_dump() 317 if (n_pages == 0) { in buf_dump() 325 n_pages = n_pages * srv_buf_pool_dump_pct / 100; in buf_dump() 327 if (n_pages == 0) { in buf_dump() 328 n_pages = 1; in buf_dump() 333 n_pages * sizeof(*dump))); in buf_dump() 340 (ulint) (n_pages * sizeof(*dump)), in buf_dump() 347 bpage != NULL && j < n_pages; in buf_dump() 356 ut_a(j == n_pages); in buf_dump() [all …]
|
/dports/graphics/atril-lite/atril-1.26.0/libview/ |
H A D | ev-page-cache.c | 58 gint n_pages; member 150 for (i = 0; i < cache->n_pages; i++) { in ev_page_cache_finalize() 168 cache->n_pages = 0; in ev_page_cache_finalize() 268 cache->n_pages = ev_document_get_n_pages (document); in ev_page_cache_new() 270 cache->page_list = g_new0 (EvPageCacheData, cache->n_pages); in ev_page_cache_new() 368 while ((start - i > 0) || (end + i < cache->n_pages)) { in ev_page_cache_set_page_range() 369 if (end + i < cache->n_pages) { in ev_page_cache_set_page_range() 447 g_return_val_if_fail (page >= 0 && page < cache->n_pages, NULL); in ev_page_cache_get_link_mapping() 469 g_return_val_if_fail (page >= 0 && page < cache->n_pages, NULL); in ev_page_cache_get_image_mapping() 491 g_return_val_if_fail (page >= 0 && page < cache->n_pages, NULL); in ev_page_cache_get_form_field_mapping() [all …]
|
/dports/graphics/atril/atril-1.26.0/libview/ |
H A D | ev-page-cache.c | 58 gint n_pages; member 150 for (i = 0; i < cache->n_pages; i++) { in ev_page_cache_finalize() 168 cache->n_pages = 0; in ev_page_cache_finalize() 268 cache->n_pages = ev_document_get_n_pages (document); in ev_page_cache_new() 270 cache->page_list = g_new0 (EvPageCacheData, cache->n_pages); in ev_page_cache_new() 368 while ((start - i > 0) || (end + i < cache->n_pages)) { in ev_page_cache_set_page_range() 369 if (end + i < cache->n_pages) { in ev_page_cache_set_page_range() 447 g_return_val_if_fail (page >= 0 && page < cache->n_pages, NULL); in ev_page_cache_get_link_mapping() 469 g_return_val_if_fail (page >= 0 && page < cache->n_pages, NULL); in ev_page_cache_get_image_mapping() 491 g_return_val_if_fail (page >= 0 && page < cache->n_pages, NULL); in ev_page_cache_get_form_field_mapping() [all …]
|
/dports/emulators/ucon64/ucon64-2.2.2-src/src/backup/ |
H A D | doctor64jr.c | 402 int n_pages = 0, page; 412 n_pages = 0x100; 415 n_pages = 0x200; 419 for (page = 0; page < n_pages; page++) 441 for (page = 0; page < n_pages; page++) 461 return n_pages; 508 unsigned int size, n_pages; in doctor64jr_write() local 559 n_pages = (size + (64 * 1024 - 1)) / (64 * 1024); // "+ (64 * 1024 - 1)" to round up in doctor64jr_write() 561 for (page = 0; page < n_pages; page++) in doctor64jr_write()
|