Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/tools/testing/selftests/arm64/mte/
Dcheck_ksm_options.c23 static size_t page_sz; variable
107 ptr = mte_allocate_memory(TEST_UNIT * page_sz, mem_type, mapping, true); in check_madvise_options()
108 if (check_allocated_memory(ptr, TEST_UNIT * page_sz, mem_type, false) != KSFT_PASS) in check_madvise_options()
112 memset(ptr, 'A', TEST_UNIT * page_sz); in check_madvise_options()
113 ret = madvise(ptr, TEST_UNIT * page_sz, MADV_MERGEABLE); in check_madvise_options()
124 mte_free_memory(ptr, TEST_UNIT * page_sz, mem_type, true); in check_madvise_options()
135 page_sz = getpagesize(); in main()
136 if (!page_sz) { in main()
Dcheck_user_mem.c20 static size_t page_sz; variable
30 len = 2 * page_sz; in check_usermem_access_fault()
57 ptr_next = (void *)((unsigned long)ptr + page_sz); in check_usermem_access_fault()
59 mte_set_tag_address_range(ptr_next, page_sz); in check_usermem_access_fault()
87 page_sz = getpagesize(); in main()
88 if (!page_sz) { in main()
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/drivers/mtd/nand/raw/
Darasan-nand-controller.c159 unsigned int page_sz; member
352 CMD_PAGE_SIZE(anand->page_sz) | in anfc_read_page_hw_ecc()
469 CMD_PAGE_SIZE(anand->page_sz) | in anfc_write_page_hw_ecc()
531 nfc_op->cmd_reg = CMD_PAGE_SIZE(anand->page_sz); in anfc_parse_instructions()
1097 anand->page_sz = 0; in anfc_attach_chip()
1100 anand->page_sz = 5; in anfc_attach_chip()
1103 anand->page_sz = 1; in anfc_attach_chip()
1106 anand->page_sz = 2; in anfc_attach_chip()
1109 anand->page_sz = 3; in anfc_attach_chip()
1112 anand->page_sz = 4; in anfc_attach_chip()
/kernel/linux/linux-5.10/drivers/net/ethernet/huawei/hinic/
Dhinic_hw_wq.c103 void ***shadow_vaddr, size_t page_sz) in queue_alloc_page() argument
108 *vaddr = dma_alloc_coherent(&pdev->dev, page_sz, &dma_addr, in queue_alloc_page()
118 *shadow_vaddr = vzalloc(page_sz); in queue_alloc_page()
125 dma_free_coherent(&pdev->dev, page_sz, *vaddr, dma_addr); in queue_alloc_page()
/kernel/linux/linux-5.10/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()
1312 u32 page_sz, elems_per_page, block_waste, cxt_size, cdu_params = 0; in qed_cdu_init_common() local
1315 page_sz = p_hwfn->p_cxt_mngr->clients[ILT_CLI_CDUC].p_size.val; in qed_cdu_init_common()
1317 elems_per_page = ILT_PAGE_IN_BYTES(page_sz) / cxt_size; in qed_cdu_init_common()
1318 block_waste = ILT_PAGE_IN_BYTES(page_sz) - elems_per_page * cxt_size; in qed_cdu_init_common()
1326 page_sz = p_hwfn->p_cxt_mngr->clients[ILT_CLI_CDUT].p_size.val; in qed_cdu_init_common()
1328 elems_per_page = ILT_PAGE_IN_BYTES(page_sz) / cxt_size; in qed_cdu_init_common()
1329 block_waste = ILT_PAGE_IN_BYTES(page_sz) - elems_per_page * cxt_size; in qed_cdu_init_common()
1340 elems_per_page = ILT_PAGE_IN_BYTES(page_sz) / cxt_size; in qed_cdu_init_common()
[all …]
/kernel/linux/linux-5.10/Documentation/arm64/
Dmemory-tagging-extension.rst246 unsigned long page_sz = sysconf(_SC_PAGESIZE);
264 a = mmap(0, page_sz, PROT_READ | PROT_WRITE,
275 if (mprotect(a, page_sz, PROT_READ | PROT_WRITE | PROT_MTE)) {
/kernel/linux/linux-5.10/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);\
/kernel/linux/linux-5.10/tools/lib/bpf/
Dlibbpf.c1332 long page_sz = sysconf(_SC_PAGE_SIZE); in bpf_map_mmap_sz() local
1336 map_sz = roundup(map_sz, page_sz); in bpf_map_mmap_sz()