Home
last modified time | relevance | path

Searched refs:pageshift (Results 1 – 8 of 8) sorted by relevance

/linux-6.1.9/arch/powerpc/mm/book3s64/
Diommu_api.c32 unsigned int pageshift; member
62 unsigned int pageshift; in mm_iommu_do_alloc() local
80 mem->pageshift = __ffs(dev_hpa | (entries << PAGE_SHIFT)); in mm_iommu_do_alloc()
91 mem->pageshift = __ffs(ua | (entries << PAGE_SHIFT)); in mm_iommu_do_alloc()
150 pageshift = PAGE_SHIFT; in mm_iommu_do_alloc()
154 if ((mem->pageshift > PAGE_SHIFT) && PageHuge(page)) in mm_iommu_do_alloc()
155 pageshift = page_shift(compound_head(page)); in mm_iommu_do_alloc()
156 mem->pageshift = min(mem->pageshift, pageshift); in mm_iommu_do_alloc()
331 unsigned long ua, unsigned int pageshift, unsigned long *hpa) in mm_iommu_ua_to_hpa() argument
339 if (pageshift > mem->pageshift) in mm_iommu_ua_to_hpa()
[all …]
/linux-6.1.9/drivers/misc/sgi-gru/
Dgrufault.c179 unsigned long *paddr, int *pageshift) in non_atomic_pte_lookup() argument
184 *pageshift = is_vm_hugetlb_page(vma) ? HPAGE_SHIFT : PAGE_SHIFT; in non_atomic_pte_lookup()
186 *pageshift = PAGE_SHIFT; in non_atomic_pte_lookup()
206 int write, unsigned long *paddr, int *pageshift) in atomic_pte_lookup() argument
242 *pageshift = is_vm_hugetlb_page(vma) ? HPAGE_SHIFT : PAGE_SHIFT; in atomic_pte_lookup()
244 *pageshift = PAGE_SHIFT; in atomic_pte_lookup()
253 int write, int atomic, unsigned long *gpa, int *pageshift) in gru_vtop() argument
280 *pageshift = ps; in gru_vtop()
317 int ret, pageshift; in gru_preload_tlb() local
332 ret = gru_vtop(gts, vaddr, write, atomic, &gpa, &pageshift); in gru_preload_tlb()
[all …]
Dgrutlbpurge.c152 int grupagesize, pagesize, pageshift, gid, asid; in gru_flush_tlb_range() local
155 pageshift = PAGE_SHIFT; in gru_flush_tlb_range()
156 pagesize = (1UL << pageshift); in gru_flush_tlb_range()
157 grupagesize = GRU_PAGESIZE(pageshift); in gru_flush_tlb_range()
158 num = min(((len + pagesize - 1) >> pageshift), GRUMAXINVAL); in gru_flush_tlb_range()
/linux-6.1.9/drivers/usb/storage/
Dsddr09.c110 char pageshift; /* 1<<ps bytes in a page */ member
250 int pageshift; /* log2 of pagesize */ member
439 int nr_of_pages, int pageshift, unsigned char *buf, int use_sg) { in sddr09_read20() argument
440 int bulklen = nr_of_pages << pageshift; in sddr09_read20()
480 int nr_of_pages, int pageshift, unsigned char *buf, int use_sg) { in sddr09_read22() argument
482 int bulklen = (nr_of_pages << pageshift) + (nr_of_pages << CONTROL_SHIFT); in sddr09_read22()
616 int nr_of_pages, int pageshift, unsigned char *buf, in sddr09_write_inplace() argument
618 int bulklen = (nr_of_pages << pageshift) + (nr_of_pages << CONTROL_SHIFT); in sddr09_write_inplace()
747 maxlba = info->capacity >> (info->pageshift + info->blockshift); in sddr09_read_data()
771 len = pages << info->pageshift; in sddr09_read_data()
[all …]
Dalauda.c93 unsigned char pageshift; member
170 unsigned char pageshift; /* 1<<ps bytes in a page */ member
287 + media_info->blockshift + media_info->pageshift; in alauda_free_maps()
426 MEDIA_INFO(us).pageshift = media_info->pageshift; in alauda_init_media()
430 MEDIA_INFO(us).pagesize = 1 << media_info->pageshift; in alauda_init_media()
438 + MEDIA_INFO(us).blockshift + MEDIA_INFO(us).pageshift); in alauda_init_media()
914 unsigned int pageshift = MEDIA_INFO(us).pageshift; in alauda_read_data() local
937 max_lba = MEDIA_INFO(us).capacity >> (blockshift + pageshift); in alauda_read_data()
960 len = pages << pageshift; in alauda_read_data()
1008 unsigned int pageshift = MEDIA_INFO(us).pageshift; in alauda_write_data() local
[all …]
Dsddr55.c89 int pageshift; /* log2 of pagesize */ member
229 len = pages << info->pageshift; in sddr55_read_data()
356 len = pages << info->pageshift; in sddr55_write_data()
576 info->pageshift = 9; in sddr55_get_capacity()
587 info->pageshift = 8; in sddr55_get_capacity()
593 info->pageshift = 8; in sddr55_get_capacity()
653 numblocks = info->capacity >> (info->blockshift + info->pageshift); in sddr55_read_map()
875 info->max_log_blks = ((info->capacity >> (info->pageshift + info->blockshift)) / 256) * 250; in sddr55_transport()
/linux-6.1.9/arch/powerpc/include/asm/
Dmmu_context.h39 unsigned long ua, unsigned int pageshift, unsigned long *hpa);
41 unsigned int pageshift, unsigned long *size);
46 unsigned int pageshift, unsigned long *size) in mm_iommu_is_devmem() argument
/linux-6.1.9/tools/testing/selftests/vm/
Dsplit_huge_page_test.c22 unsigned int pageshift; variable
41 ((long)vaddr >> pageshift) * sizeof(paddr)); in is_backed_by_thp()
301 pageshift = ffs(pagesize) - 1; in main()