| /linux/drivers/mtd/tests/ |
| A D | torturetest.c | 36 static int pgcnt; variable 37 module_param(pgcnt, int, S_IRUGO); 96 if (pgcnt) { in check_eraseblock() 98 len = pgcnt * pgsize; in check_eraseblock() 150 if (pgcnt) { in write_pattern() 152 len = pgcnt * pgsize; in write_pattern() 188 if (pgcnt) in tort_init() 190 pgcnt); in tort_init() 207 if (pgcnt && (pgcnt > mtd->erasesize / pgsize || pgcnt < 0)) { in tort_init() 378 if (pgcnt) in report_corrupt() [all …]
|
| A D | speedtest.c | 39 static int pgcnt; variable 76 for (i = 0; i < pgcnt; i++) { in write_eraseblock_by_page() 90 int i, n = pgcnt / 2, err = 0; in write_eraseblock_by_2pages() 101 if (pgcnt % 2) in write_eraseblock_by_2pages() 120 for (i = 0; i < pgcnt; i++) { in read_eraseblock_by_page() 134 int i, n = pgcnt / 2, err = 0; in read_eraseblock_by_2pages() 145 if (pgcnt % 2) in read_eraseblock_by_2pages() 210 pgcnt = mtd->erasesize / pgsize; in mtd_speedtest_init() 216 pgsize, ebcnt, pgcnt, mtd->oobsize); in mtd_speedtest_init()
|
| A D | readtest.c | 33 static int pgcnt; variable 42 for (i = 0; i < pgcnt; i++) { in read_eraseblock_by_page() 100 for (pg = 0, i = 0; pg < pgcnt; pg++) in dump_eraseblock() 145 pgcnt = mtd->erasesize / pgsize; in mtd_readtest_init() 151 pgsize, ebcnt, pgcnt, mtd->oobsize); in mtd_readtest_init()
|
| A D | oobtest.c | 37 static int pgcnt; variable 63 prandom_bytes_state(&rnd_state, writebuf, use_len_max * pgcnt); in write_eraseblock() 64 for (i = 0; i < pgcnt; ++i, addr += mtd->writesize) { in write_eraseblock() 173 prandom_bytes_state(&rnd_state, writebuf, use_len_max * pgcnt); in verify_eraseblock() 174 for (i = 0; i < pgcnt; ++i, addr += mtd->writesize) { in verify_eraseblock() 266 size_t len = mtd->oobavail * pgcnt; in verify_eraseblock_in_one_go() 294 for (i = 0; i < pgcnt; ++i, addr += mtd->writesize) { in verify_eraseblock_in_one_go() 370 pgcnt = mtd->erasesize / mtd->writesize; in mtd_oobtest_init() 376 mtd->writesize, ebcnt, pgcnt, mtd->oobsize); in mtd_oobtest_init()
|
| A D | stresstest.c | 41 static int pgcnt; variable 161 pgcnt = mtd->erasesize / pgsize; in mtd_stresstest_init() 167 pgsize, ebcnt, pgcnt, mtd->oobsize); in mtd_stresstest_init()
|
| A D | pagetest.c | 37 static int pgcnt; variable 66 for (j = 0; j < pgcnt - 1; ++j, addr += pgsize) { in verify_eraseblock() 351 pgcnt = mtd->erasesize / mtd->writesize; in mtd_pagetest_init() 358 pgsize, ebcnt, pgcnt, mtd->oobsize); in mtd_pagetest_init()
|
| A D | subpagetest.c | 34 static int pgcnt; variable 301 pgcnt = mtd->erasesize / mtd->writesize; in mtd_subpagetest_init() 307 mtd->writesize, subpgsize, ebcnt, pgcnt, mtd->oobsize); in mtd_subpagetest_init()
|
| /linux/drivers/iommu/ |
| A D | iommu-pages.h | 30 const long pgcnt = 1l << order; in __iommu_alloc_account() local 32 mod_node_page_state(page_pgdat(page), NR_IOMMU_PAGES, pgcnt); in __iommu_alloc_account() 33 mod_lruvec_page_state(page, NR_SECONDARY_PAGETABLE, pgcnt); in __iommu_alloc_account() 43 const long pgcnt = 1l << order; in __iommu_free_account() local 45 mod_node_page_state(page_pgdat(page), NR_IOMMU_PAGES, -pgcnt); in __iommu_free_account() 46 mod_lruvec_page_state(page, NR_SECONDARY_PAGETABLE, -pgcnt); in __iommu_free_account()
|
| A D | exynos-iommu.c | 1136 phys_addr_t paddr, int prot, short *pgcnt) in lv1set_section() argument 1145 if (*pgcnt != NUM_LV2ENTRIES) { in lv1set_section() 1152 *pgcnt = 0; in lv1set_section() 1173 int prot, short *pgcnt) in lv2set_page() argument 1180 *pgcnt -= 1; in lv2set_page() 1200 *pgcnt -= SPAGES_PER_LPAGE; in lv2set_page()
|
| /linux/mm/ |
| A D | page_table_check.c | 63 static void page_table_check_clear(unsigned long pfn, unsigned long pgcnt) in page_table_check_clear() argument 82 for (i = 0; i < pgcnt; i++) { in page_table_check_clear() 102 static void page_table_check_set(unsigned long pfn, unsigned long pgcnt, in page_table_check_set() argument 122 for (i = 0; i < pgcnt; i++) { in page_table_check_set()
|
| A D | mm_init.c | 823 u64 pgcnt = 0; in init_unavailable_range() local 832 pgcnt++; in init_unavailable_range() 835 if (pgcnt) in init_unavailable_range() 837 node, zone_names[zone], pgcnt); in init_unavailable_range()
|
| /linux/fs/xfs/ |
| A D | xfs_notify_failure.c | 79 unsigned long pgcnt; in xfs_dax_failure_fn() local 104 pgcnt = xfs_failure_pgcnt(mp, rec, notify); in xfs_dax_failure_fn() 108 error = mf_dax_kill_procs(mapping, pgoff, pgcnt, in xfs_dax_failure_fn() 114 pgoff + pgcnt - 1); in xfs_dax_failure_fn()
|
| /linux/drivers/dma-buf/ |
| A D | udmabuf.c | 298 pgoff_t pgoff, pgcnt, pglimit, pgbuf = 0; in udmabuf_create() local 345 pgcnt = list[i].size >> PAGE_SHIFT; in udmabuf_create() 346 folios = kmalloc_array(pgcnt, sizeof(*folios), GFP_KERNEL); in udmabuf_create() 352 end = list[i].offset + (pgcnt << PAGE_SHIFT) - 1; in udmabuf_create() 354 folios, pgcnt, &pgoff); in udmabuf_create() 364 for (j = 0, k = 0; j < pgcnt; j++) { in udmabuf_create()
|
| /linux/drivers/net/ethernet/cavium/thunder/ |
| A D | nicvf_queues.c | 129 if (rbdr->pgalloc >= rbdr->pgcnt) { in nicvf_alloc_page() 164 rbdr->pgidx &= (rbdr->pgcnt - 1); in nicvf_alloc_page() 285 rbdr->pgcnt = ring_len / (PAGE_SIZE / buf_size); in nicvf_init_rbdr() 288 rbdr->pgcnt = ring_len; in nicvf_init_rbdr() 291 rbdr->pgcnt = roundup_pow_of_two(rbdr->pgcnt); in nicvf_init_rbdr() 292 rbdr->pgcache = kcalloc(rbdr->pgcnt, sizeof(*rbdr->pgcache), in nicvf_init_rbdr() 362 while (head < rbdr->pgcnt) { in nicvf_free_rbdr()
|
| A D | nicvf_queues.h | 234 int pgcnt; member
|
| /linux/drivers/net/ethernet/intel/ice/ |
| A D | ice_txrx.h | 203 unsigned int pgcnt; member
|
| A D | ice_txrx.c | 817 if (unlikely(rx_buf->pgcnt - pagecnt_bias > 1)) in ice_can_reuse_rx_page() 927 rx_buf->pgcnt = page_count(rx_buf->page); in ice_get_rx_buf()
|
| /linux/drivers/scsi/lpfc/ |
| A D | lpfc_sli.c | 15841 uint16_t x, pgcnt; in lpfc_sli4_queue_alloc() local 15846 pgcnt = ALIGN(entry_size * entry_count, hw_page_size) / hw_page_size; in lpfc_sli4_queue_alloc() 15849 if (pgcnt > phba->sli4_hba.pc_sli4_params.wqpcnt) in lpfc_sli4_queue_alloc() 15850 pgcnt = phba->sli4_hba.pc_sli4_params.wqpcnt; in lpfc_sli4_queue_alloc() 15852 queue = kzalloc_node(sizeof(*queue) + (sizeof(void *) * pgcnt), in lpfc_sli4_queue_alloc() 15868 queue->page_count = pgcnt; in lpfc_sli4_queue_alloc()
|