Home
last modified time | relevance | path

Searched refs:pgsz (Results 1 – 10 of 10) sorted by relevance

/linux-4.1.27/drivers/iommu/
Domap-iommu.h19 u32 pgsz, prsvd, valid; member
160 #define get_cam_va_mask(pgsz) \ argument
161 (((pgsz) == MMU_CAM_PGSZ_16M) ? 0xff000000 : \
162 ((pgsz) == MMU_CAM_PGSZ_1M) ? 0xfff00000 : \
163 ((pgsz) == MMU_CAM_PGSZ_64K) ? 0xffff0000 : \
164 ((pgsz) == MMU_CAM_PGSZ_4K) ? 0xfffff000 : 0)
Domap-iommu.c239 attr <<= (((e->pgsz == MMU_CAM_PGSZ_4K) || in get_iopte_attr()
240 (e->pgsz == MMU_CAM_PGSZ_64K)) ? 0 : 6); in get_iopte_attr()
322 if (e->da & ~(get_cam_va_mask(e->pgsz))) { in iotlb_alloc_cr()
332 cr->cam = (e->da & MMU_CAM_VATAG_MASK) | e->prsvd | e->pgsz | e->valid; in iotlb_alloc_cr()
742 switch (e->pgsz) { in iopgtable_store_entry_core()
1108 static u32 iotlb_init_entry(struct iotlb_entry *e, u32 da, u32 pa, int pgsz) in iotlb_init_entry() argument
1115 e->pgsz = pgsz; in iotlb_init_entry()
1120 return iopgsz_to_bytes(e->pgsz); in iotlb_init_entry()
/linux-4.1.27/fs/
Ddax.c46 unsigned pgsz = PAGE_SIZE - offset_in_page(addr); in dax_clear_blocks() local
47 if (pgsz > count) in dax_clear_blocks()
48 pgsz = count; in dax_clear_blocks()
49 if (pgsz < PAGE_SIZE) in dax_clear_blocks()
50 memset(addr, 0, pgsz); in dax_clear_blocks()
53 addr += pgsz; in dax_clear_blocks()
54 size -= pgsz; in dax_clear_blocks()
55 count -= pgsz; in dax_clear_blocks()
56 BUG_ON(pgsz & 511); in dax_clear_blocks()
57 sector += pgsz / 512; in dax_clear_blocks()
/linux-4.1.27/drivers/pci/
Diov.c386 u32 pgsz; in sriov_init() local
423 pci_read_config_dword(dev, pos + PCI_SRIOV_SUP_PGSIZE, &pgsz); in sriov_init()
425 pgsz &= ~((1 << i) - 1); in sriov_init()
426 if (!pgsz) in sriov_init()
429 pgsz &= ~(pgsz - 1); in sriov_init()
430 pci_write_config_dword(dev, pos + PCI_SRIOV_SYS_PGSIZE, pgsz); in sriov_init()
461 iov->pgsz = pgsz; in sriov_init()
517 pci_write_config_dword(dev, iov->pos + PCI_SRIOV_SYS_PGSIZE, iov->pgsz); in sriov_restore_state()
Dpci.h244 u32 pgsz; /* page size for BAR alignment */ member
/linux-4.1.27/drivers/mtd/nand/
Dnandsim.c216 #define NS_RAW_OFFSET_OOB(ns) (NS_RAW_OFFSET(ns) + ns->geom.pgsz)
333 uint pgsz; /* NAND flash page size, bytes */ member
686 ns->geom.pgsz = mtd->writesize; in init_nandsim()
689 ns->geom.pgszoob = ns->geom.pgsz + ns->geom.oobsz; in init_nandsim()
690 ns->geom.pgnum = div_u64(ns->geom.totsz, ns->geom.pgsz); in init_nandsim()
694 ns->geom.pgsec = ns->geom.secsz / ns->geom.pgsz; in init_nandsim()
698 if (ns->geom.pgsz == 512) { in init_nandsim()
702 } else if (ns->geom.pgsz == 2048) { in init_nandsim()
704 } else if (ns->geom.pgsz == 4096) { in init_nandsim()
707 NS_ERR("init_nandsim: unknown page size %u\n", ns->geom.pgsz); in init_nandsim()
[all …]
/linux-4.1.27/arch/mips/sgi-ip22/
Dip28-berr.c327 unsigned int pgsz = (ctl & 2) ? 14:12; /* 16k:4k */ in check_microtlb() local
330 pte += 8*((vaddr >> pgsz) & 0x1ff); in check_microtlb()
340 a += vaddr & ((1 << pgsz) - 1); in check_microtlb()
/linux-4.1.27/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_sriov.h54 u32 pgsz; /* page size for BAR alignment */ member
Dbnx2x_sriov.c1185 pci_read_config_dword(dev, pos + PCI_SRIOV_SUP_PGSIZE, &iov->pgsz); in bnx2x_sriov_pci_cfg_info()
1215 iov->initial, iov->nr_virtfn, iov->offset, iov->stride, iov->pgsz); in bnx2x_sriov_info()
/linux-4.1.27/drivers/scsi/cxgbi/
Dlibcxgbi.c1223 static int ddp_find_page_index(unsigned long pgsz) in ddp_find_page_index() argument
1228 if (pgsz == (1UL << ddp_page_shift[i])) in ddp_find_page_index()
1231 pr_info("ddp page size %lu not supported.\n", pgsz); in ddp_find_page_index()