Home
last modified time | relevance | path

Searched refs:page_sz (Results 1 – 14 of 14) sorted by relevance

/linux-6.6.21/tools/testing/selftests/arm64/mte/
Dcheck_ksm_options.c23 static size_t page_sz; variable
110 ptr = mte_allocate_memory(TEST_UNIT * page_sz, mem_type, mapping, true); in check_madvise_options()
111 if (check_allocated_memory(ptr, TEST_UNIT * page_sz, mem_type, false) != KSFT_PASS) in check_madvise_options()
115 memset(ptr, 'A', TEST_UNIT * page_sz); in check_madvise_options()
116 ret = madvise(ptr, TEST_UNIT * page_sz, MADV_MERGEABLE); in check_madvise_options()
127 mte_free_memory(ptr, TEST_UNIT * page_sz, mem_type, true); in check_madvise_options()
138 page_sz = getpagesize(); in main()
139 if (!page_sz) { in main()
Dcheck_user_mem.c22 static size_t page_sz; variable
43 int sizes[] = {1, 2, 3, 8, 16, 32, 4096, page_sz}; in check_usermem_access_fault()
46 len = 2 * page_sz; in check_usermem_access_fault()
201 int tag_offsets[] = {page_sz, MT_GRANULE_SIZE}; in main()
204 page_sz = getpagesize(); in main()
205 if (!page_sz) { in main()
/linux-6.6.21/arch/sparc/mm/
Dtsb.c197 unsigned long page_sz, tte; in setup_tsb_params() local
228 page_sz = 8192; in setup_tsb_params()
233 page_sz = 64 * 1024; in setup_tsb_params()
238 page_sz = 64 * 1024; in setup_tsb_params()
243 page_sz = 64 * 1024; in setup_tsb_params()
248 page_sz = 512 * 1024; in setup_tsb_params()
253 page_sz = 512 * 1024; in setup_tsb_params()
258 page_sz = 512 * 1024; in setup_tsb_params()
263 page_sz = 4 * 1024 * 1024; in setup_tsb_params()
271 tte |= pte_sz_bits(page_sz); in setup_tsb_params()
[all …]
/linux-6.6.21/tools/testing/selftests/powerpc/nx-gzip/
Dgunz_test.c94 const int page_sz = 1<<16; variable
172 static int nx_touch_pages_dde(struct nx_dde_t *ddep, long buf_sz, long page_sz, in nx_touch_pages_dde() argument
199 nxu_touch_pages((void *)buf_addr, buf_len, page_sz, wr); in nx_touch_pages_dde()
202 buf_sz), page_sz, wr); in nx_touch_pages_dde()
230 nxu_touch_pages((void *)buf_addr, buf_len, page_sz, wr); in nx_touch_pages_dde()
236 nxu_touch_pages((void *)buf_addr, buf_len, page_sz, wr); in nx_touch_pages_dde()
403 fifo_in_len + page_sz)) != NULL); in decompress_file()
405 fifo_out_len + page_sz + line_sz)) != NULL); in decompress_file()
408 nxu_touch_pages(fifo_out, fifo_out_len, page_sz, 1); in decompress_file()
692 nxu_touch_pages(cmdp, sizeof(struct nx_gzip_crb_cpb_t), page_sz, 1); in decompress_file()
[all …]
/linux-6.6.21/drivers/infiniband/hw/mana/
Dmain.c326 unsigned long page_sz; in mana_ib_gd_create_dma_region() local
337 page_sz = ib_umem_find_best_pgsz(umem, PAGE_SZ_BM, 0); in mana_ib_gd_create_dma_region()
338 if (!page_sz) { in mana_ib_gd_create_dma_region()
342 num_pages_total = ib_umem_num_dma_blocks(umem, page_sz); in mana_ib_gd_create_dma_region()
361 create_req->offset_in_page = umem->address & (page_sz - 1); in mana_ib_gd_create_dma_region()
362 create_req->gdma_page_type = order_base_2(page_sz) - PAGE_SHIFT; in mana_ib_gd_create_dma_region()
369 page_sz, create_req->offset_in_page); in mana_ib_gd_create_dma_region()
375 rdma_umem_for_each_dma_block(umem, &biter, page_sz) { in mana_ib_gd_create_dma_region()
/linux-6.6.21/drivers/mtd/devices/
Dmchp48l640.c217 size_t page_sz = flash->caps->page_size; in mchp48l640_write() local
224 ws = min((len - wlen), page_sz); in mchp48l640_write()
275 size_t page_sz = flash->caps->page_size; in mchp48l640_read() local
282 ws = min((len - wlen), page_sz); in mchp48l640_read()
/linux-6.6.21/drivers/mtd/nand/raw/
Darasan-nand-controller.c175 unsigned int page_sz; member
416 CMD_PAGE_SIZE(anand->page_sz) | in anfc_read_page_hw_ecc()
534 CMD_PAGE_SIZE(anand->page_sz) | in anfc_write_page_hw_ecc()
608 nfc_op->cmd_reg = CMD_PAGE_SIZE(anand->page_sz); in anfc_parse_instructions()
1215 anand->page_sz = 0; in anfc_attach_chip()
1218 anand->page_sz = 5; in anfc_attach_chip()
1221 anand->page_sz = 1; in anfc_attach_chip()
1224 anand->page_sz = 2; in anfc_attach_chip()
1227 anand->page_sz = 3; in anfc_attach_chip()
1230 anand->page_sz = 4; in anfc_attach_chip()
/linux-6.6.21/drivers/net/ethernet/huawei/hinic/
Dhinic_hw_wq.c104 void ***shadow_vaddr, size_t page_sz) in queue_alloc_page() argument
109 *vaddr = dma_alloc_coherent(&pdev->dev, page_sz, &dma_addr, in queue_alloc_page()
119 *shadow_vaddr = vzalloc(page_sz); in queue_alloc_page()
126 dma_free_coherent(&pdev->dev, page_sz, *vaddr, dma_addr); in queue_alloc_page()
/linux-6.6.21/drivers/net/ethernet/qlogic/qed/
Dqed_cxt.c319 u32 page_sz = p_mgr->clients[ILT_CLI_CDUC].p_size.val; in qed_cxt_set_proto_cid_count() local
321 u32 elems_per_page = ILT_PAGE_IN_BYTES(page_sz) / cxt_size; in qed_cxt_set_proto_cid_count()
1299 u32 page_sz, elems_per_page, block_waste, cxt_size, cdu_params = 0; in qed_cdu_init_common() local
1302 page_sz = p_hwfn->p_cxt_mngr->clients[ILT_CLI_CDUC].p_size.val; in qed_cdu_init_common()
1304 elems_per_page = ILT_PAGE_IN_BYTES(page_sz) / cxt_size; in qed_cdu_init_common()
1305 block_waste = ILT_PAGE_IN_BYTES(page_sz) - elems_per_page * cxt_size; in qed_cdu_init_common()
1313 page_sz = p_hwfn->p_cxt_mngr->clients[ILT_CLI_CDUT].p_size.val; in qed_cdu_init_common()
1315 elems_per_page = ILT_PAGE_IN_BYTES(page_sz) / cxt_size; in qed_cdu_init_common()
1316 block_waste = ILT_PAGE_IN_BYTES(page_sz) - elems_per_page * cxt_size; in qed_cdu_init_common()
1327 elems_per_page = ILT_PAGE_IN_BYTES(page_sz) / cxt_size; in qed_cdu_init_common()
[all …]
/linux-6.6.21/Documentation/arch/arm64/
Dmemory-tagging-extension.rst312 unsigned long page_sz = sysconf(_SC_PAGESIZE);
332 a = mmap(0, page_sz, PROT_READ | PROT_WRITE,
343 if (mprotect(a, page_sz, PROT_READ | PROT_WRITE | PROT_MTE)) {
/linux-6.6.21/drivers/net/ethernet/brocade/bna/
Dbfi_enet.h161 u16 page_sz; member
Dbna_tx_rx.c1298 (bfi_q)->page_sz = htons((u16)(bna_qpt)->page_size);\
/linux-6.6.21/tools/bpf/bpftool/
Dgen.c458 long page_sz = sysconf(_SC_PAGE_SIZE); in bpf_map_mmap_sz() local
462 map_sz = roundup(map_sz, page_sz); in bpf_map_mmap_sz()
/linux-6.6.21/tools/lib/bpf/
Dlibbpf.c1514 const long page_sz = sysconf(_SC_PAGE_SIZE); in bpf_map_mmap_sz() local
1518 map_sz = roundup(map_sz, page_sz); in bpf_map_mmap_sz()
2421 __u32 page_sz = sysconf(_SC_PAGE_SIZE); in adjust_ringbuf_sz() local
2431 if ((sz % page_sz) == 0 && is_pow_of_2(sz / page_sz)) in adjust_ringbuf_sz()
2438 for (mul = 1; mul <= UINT_MAX / page_sz; mul <<= 1) { in adjust_ringbuf_sz()
2439 if (mul * page_sz > sz) in adjust_ringbuf_sz()
2440 return mul * page_sz; in adjust_ringbuf_sz()