Searched refs:pgsz (Results 1 – 9 of 9) sorted by relevance
/drivers/iommu/ |
D | omap-iommu2.c | 52 #define get_cam_va_mask(pgsz) \ argument 53 (((pgsz) == MMU_CAM_PGSZ_16M) ? 0xff000000 : \ 54 ((pgsz) == MMU_CAM_PGSZ_1M) ? 0xfff00000 : \ 55 ((pgsz) == MMU_CAM_PGSZ_64K) ? 0xffff0000 : \ 56 ((pgsz) == MMU_CAM_PGSZ_4K) ? 0xfffff000 : 0) 176 if (e->da & ~(get_cam_va_mask(e->pgsz))) { in omap2_alloc_cr() 186 cr->cam = (e->da & MMU_CAM_VATAG_MASK) | e->prsvd | e->pgsz | e->valid; in omap2_alloc_cr() 204 attr <<= (((e->pgsz == MMU_CAM_PGSZ_4K) || in omap2_get_pte_attr() 205 (e->pgsz == MMU_CAM_PGSZ_64K)) ? 0 : 6); in omap2_get_pte_attr() 290 e->pgsz = cr->cam & MMU_CAM_PGSZ_MASK; in omap2_cr_to_e()
|
D | omap-iommu.h | 20 u32 pgsz, prsvd, valid; member
|
D | omap-iommu.c | 647 switch (e->pgsz) { in iopgtable_store_entry_core() 1051 e->pgsz = flags & MMU_CAM_PGSZ_MASK; in iotlb_init_entry() 1056 return iopgsz_to_bytes(e->pgsz); in iotlb_init_entry()
|
/drivers/pci/ |
D | iov.c | 422 u32 pgsz; in sriov_init() local 458 pci_read_config_dword(dev, pos + PCI_SRIOV_SUP_PGSIZE, &pgsz); in sriov_init() 460 pgsz &= ~((1 << i) - 1); in sriov_init() 461 if (!pgsz) in sriov_init() 464 pgsz &= ~(pgsz - 1); in sriov_init() 465 pci_write_config_dword(dev, pos + PCI_SRIOV_SYS_PGSIZE, pgsz); in sriov_init() 494 iov->pgsz = pgsz; in sriov_init() 548 pci_write_config_dword(dev, iov->pos + PCI_SRIOV_SYS_PGSIZE, iov->pgsz); in sriov_restore_state()
|
D | pci.h | 236 u32 pgsz; /* page size for BAR alignment */ member
|
/drivers/mtd/nand/ |
D | nandsim.c | 211 #define NS_RAW_OFFSET_OOB(ns) (NS_RAW_OFFSET(ns) + ns->geom.pgsz) 330 uint pgsz; /* NAND flash page size, bytes */ member 685 ns->geom.pgsz = mtd->writesize; in init_nandsim() 688 ns->geom.pgszoob = ns->geom.pgsz + ns->geom.oobsz; in init_nandsim() 689 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 …]
|
/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_sriov.h | 52 u32 pgsz; /* page size for BAR alignment */ member
|
D | bnx2x_sriov.c | 1853 pci_read_config_dword(dev, pos + PCI_SRIOV_SUP_PGSIZE, &iov->pgsz); in bnx2x_sriov_pci_cfg_info() 1883 iov->initial, iov->nr_virtfn, iov->offset, iov->stride, iov->pgsz); in bnx2x_sriov_info()
|
/drivers/scsi/cxgbi/ |
D | libcxgbi.c | 985 static int ddp_find_page_index(unsigned long pgsz) in ddp_find_page_index() argument 990 if (pgsz == (1UL << ddp_page_shift[i])) in ddp_find_page_index() 993 pr_info("ddp page size %lu not supported.\n", pgsz); in ddp_find_page_index()
|