Home
last modified time | relevance | path

Searched refs:pgcnt (Results 1 – 16 of 16) sorted by relevance

/openbmc/linux/drivers/mtd/tests/
H A Dtorturetest.c36 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 …]
H A Dspeedtest.c39 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()
H A Dreadtest.c33 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()
H A Doobtest.c37 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()
H A Dstresstest.c41 static int pgcnt; variable
161 pgcnt = mtd->erasesize / pgsize; in mtd_stresstest_init()
167 pgsize, ebcnt, pgcnt, mtd->oobsize); in mtd_stresstest_init()
H A Dpagetest.c37 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()
H A Dsubpagetest.c34 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()
/openbmc/linux/mm/
H A Dpage_table_check.c63 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()
H A Dmm_init.c822 u64 pgcnt = 0; in init_unavailable_range() local
831 pgcnt++; in init_unavailable_range()
834 if (pgcnt) in init_unavailable_range()
836 node, zone_names[zone], pgcnt); in init_unavailable_range()
/openbmc/linux/drivers/dma-buf/
H A Dudmabuf.c206 pgoff_t pgoff, pgcnt, pgidx, pgbuf = 0, pglimit; in udmabuf_create() local
253 pgcnt = list[i].size >> PAGE_SHIFT; in udmabuf_create()
254 for (pgidx = 0; pgidx < pgcnt; pgidx++) { in udmabuf_create()
/openbmc/linux/drivers/net/ethernet/cavium/thunder/
H A Dnicvf_queues.c129 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()
H A Dnicvf_queues.h234 int pgcnt; member
/openbmc/linux/drivers/iommu/
H A Dexynos-iommu.c1124 phys_addr_t paddr, int prot, short *pgcnt) in lv1set_section() argument
1133 if (*pgcnt != NUM_LV2ENTRIES) { in lv1set_section()
1140 *pgcnt = 0; in lv1set_section()
1161 int prot, short *pgcnt) in lv2set_page() argument
1168 *pgcnt -= 1; in lv2set_page()
1188 *pgcnt -= SPAGES_PER_LPAGE; in lv2set_page()
/openbmc/linux/drivers/net/ethernet/intel/ice/
H A Dice_txrx.h203 unsigned int pgcnt; member
H A Dice_txrx.c814 if (unlikely(rx_buf->pgcnt - pagecnt_bias > 1)) in ice_can_reuse_rx_page()
924 rx_buf->pgcnt = page_count(rx_buf->page); in ice_get_rx_buf()
/openbmc/linux/drivers/scsi/lpfc/
H A Dlpfc_sli.c15835 uint16_t x, pgcnt; in lpfc_sli4_queue_alloc() local
15840 pgcnt = ALIGN(entry_size * entry_count, hw_page_size) / hw_page_size; in lpfc_sli4_queue_alloc()
15843 if (pgcnt > phba->sli4_hba.pc_sli4_params.wqpcnt) in lpfc_sli4_queue_alloc()
15844 pgcnt = phba->sli4_hba.pc_sli4_params.wqpcnt; in lpfc_sli4_queue_alloc()
15846 queue = kzalloc_node(sizeof(*queue) + (sizeof(void *) * pgcnt), in lpfc_sli4_queue_alloc()
15862 queue->page_count = pgcnt; in lpfc_sli4_queue_alloc()