/linux-6.1.9/tools/testing/selftests/arm64/mte/ |
D | check_ksm_options.c | 23 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()
|
D | check_user_mem.c | 22 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.1.9/arch/sparc/mm/ |
D | tsb.c | 197 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.1.9/mm/damon/ |
D | paddr.c | 85 unsigned long page_sz; member 96 result->page_sz = PAGE_SIZE; in __damon_pa_young() 108 result->page_sz = HPAGE_PMD_SIZE; in __damon_pa_young() 123 static bool damon_pa_young(unsigned long paddr, unsigned long *page_sz) in damon_pa_young() argument 128 .page_sz = PAGE_SIZE, in damon_pa_young() 164 *page_sz = result.page_sz; in damon_pa_young()
|
D | vaddr.c | 425 unsigned long *page_sz; member 455 *priv->page_sz = HPAGE_PMD_SIZE; in damon_young_pmd_entry() 477 *priv->page_sz = PAGE_SIZE; in damon_young_pmd_entry() 507 *priv->page_sz = huge_page_size(h); in damon_young_hugetlb_entry() 527 unsigned long *page_sz) in damon_va_young() argument 530 .page_sz = page_sz, in damon_va_young()
|
/linux-6.1.9/tools/testing/selftests/powerpc/nx-gzip/ |
D | gunz_test.c | 94 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.1.9/drivers/mtd/devices/ |
D | mchp48l640.c | 217 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.1.9/drivers/mtd/nand/raw/ |
D | arasan-nand-controller.c | 175 unsigned int page_sz; member 416 CMD_PAGE_SIZE(anand->page_sz) | in anfc_read_page_hw_ecc() 533 CMD_PAGE_SIZE(anand->page_sz) | in anfc_write_page_hw_ecc() 596 nfc_op->cmd_reg = CMD_PAGE_SIZE(anand->page_sz); in anfc_parse_instructions() 1218 anand->page_sz = 0; in anfc_attach_chip() 1221 anand->page_sz = 5; in anfc_attach_chip() 1224 anand->page_sz = 1; in anfc_attach_chip() 1227 anand->page_sz = 2; in anfc_attach_chip() 1230 anand->page_sz = 3; in anfc_attach_chip() 1233 anand->page_sz = 4; in anfc_attach_chip()
|
/linux-6.1.9/drivers/net/ethernet/huawei/hinic/ |
D | hinic_hw_wq.c | 104 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.1.9/drivers/net/ethernet/qlogic/qed/ |
D | qed_cxt.c | 319 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() 1298 u32 page_sz, elems_per_page, block_waste, cxt_size, cdu_params = 0; in qed_cdu_init_common() local 1301 page_sz = p_hwfn->p_cxt_mngr->clients[ILT_CLI_CDUC].p_size.val; in qed_cdu_init_common() 1303 elems_per_page = ILT_PAGE_IN_BYTES(page_sz) / cxt_size; in qed_cdu_init_common() 1304 block_waste = ILT_PAGE_IN_BYTES(page_sz) - elems_per_page * cxt_size; in qed_cdu_init_common() 1312 page_sz = p_hwfn->p_cxt_mngr->clients[ILT_CLI_CDUT].p_size.val; in qed_cdu_init_common() 1314 elems_per_page = ILT_PAGE_IN_BYTES(page_sz) / cxt_size; in qed_cdu_init_common() 1315 block_waste = ILT_PAGE_IN_BYTES(page_sz) - elems_per_page * cxt_size; in qed_cdu_init_common() 1326 elems_per_page = ILT_PAGE_IN_BYTES(page_sz) / cxt_size; in qed_cdu_init_common() [all …]
|
/linux-6.1.9/Documentation/arm64/ |
D | memory-tagging-extension.rst | 312 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.1.9/drivers/net/ethernet/brocade/bna/ |
D | bfi_enet.h | 161 u16 page_sz; member
|
D | bna_tx_rx.c | 1298 (bfi_q)->page_sz = htons((u16)(bna_qpt)->page_size);\
|
/linux-6.1.9/tools/bpf/bpftool/ |
D | gen.c | 459 long page_sz = sysconf(_SC_PAGE_SIZE); in bpf_map_mmap_sz() local 463 map_sz = roundup(map_sz, page_sz); in bpf_map_mmap_sz()
|
/linux-6.1.9/tools/lib/bpf/ |
D | libbpf.c | 1518 long page_sz = sysconf(_SC_PAGE_SIZE); in bpf_map_mmap_sz() local 1522 map_sz = roundup(map_sz, page_sz); in bpf_map_mmap_sz() 2362 __u32 page_sz = sysconf(_SC_PAGE_SIZE); in adjust_ringbuf_sz() local 2372 if ((sz % page_sz) == 0 && is_pow_of_2(sz / page_sz)) in adjust_ringbuf_sz() 2379 for (mul = 1; mul <= UINT_MAX / page_sz; mul <<= 1) { in adjust_ringbuf_sz() 2380 if (mul * page_sz > sz) in adjust_ringbuf_sz() 2381 return mul * page_sz; in adjust_ringbuf_sz()
|