Searched refs:pgmap (Results 1 – 12 of 12) sorted by relevance
/drivers/pci/ |
D | p2pdma.c | 37 struct dev_pagemap pgmap; member 42 static struct pci_p2pdma_pagemap *to_p2p_pgmap(struct dev_pagemap *pgmap) in to_p2p_pgmap() argument 44 return container_of(pgmap, struct pci_p2pdma_pagemap, pgmap); in to_p2p_pgmap() 161 struct dev_pagemap *pgmap; in pci_p2pdma_add_resource() local 187 pgmap = &p2p_pgmap->pgmap; in pci_p2pdma_add_resource() 188 pgmap->res.start = pci_resource_start(pdev, bar) + offset; in pci_p2pdma_add_resource() 189 pgmap->res.end = pgmap->res.start + size - 1; in pci_p2pdma_add_resource() 190 pgmap->res.flags = pci_resource_flags(pdev, bar); in pci_p2pdma_add_resource() 191 pgmap->type = MEMORY_DEVICE_PCI_P2PDMA; in pci_p2pdma_add_resource() 197 addr = devm_memremap_pages(&pdev->dev, pgmap); in pci_p2pdma_add_resource() [all …]
|
/drivers/nvdimm/ |
D | pmem.c | 310 static void pmem_pagemap_cleanup(struct dev_pagemap *pgmap) in pmem_pagemap_cleanup() argument 313 container_of(pgmap->ref, struct request_queue, q_usage_counter); in pmem_pagemap_cleanup() 318 static void pmem_release_queue(void *pgmap) in pmem_release_queue() argument 320 pmem_pagemap_cleanup(pgmap); in pmem_release_queue() 323 static void pmem_pagemap_kill(struct dev_pagemap *pgmap) in pmem_pagemap_kill() argument 326 container_of(pgmap->ref, struct request_queue, q_usage_counter); in pmem_pagemap_kill() 378 rc = nvdimm_setup_pfn(nd_pfn, &pmem->pgmap); in pmem_attach_disk() 406 pmem->pgmap.ref = &q->q_usage_counter; in pmem_attach_disk() 408 pmem->pgmap.type = MEMORY_DEVICE_FS_DAX; in pmem_attach_disk() 409 pmem->pgmap.ops = &fsdax_pagemap_ops; in pmem_attach_disk() [all …]
|
D | pfn_devs.c | 663 static int __nvdimm_setup_pfn(struct nd_pfn *nd_pfn, struct dev_pagemap *pgmap) in __nvdimm_setup_pfn() argument 665 struct resource *res = &pgmap->res; in __nvdimm_setup_pfn() 666 struct vmem_altmap *altmap = &pgmap->altmap; in __nvdimm_setup_pfn() 700 pgmap->flags |= PGMAP_ALTMAP_VALID; in __nvdimm_setup_pfn() 806 int nvdimm_setup_pfn(struct nd_pfn *nd_pfn, struct dev_pagemap *pgmap) in nvdimm_setup_pfn() argument 818 return __nvdimm_setup_pfn(nd_pfn, pgmap); in nvdimm_setup_pfn()
|
D | pmem.h | 26 struct dev_pagemap pgmap; member
|
D | nd.h | 378 int nvdimm_setup_pfn(struct nd_pfn *nd_pfn, struct dev_pagemap *pgmap); 383 struct dev_pagemap *pgmap) in nvdimm_setup_pfn() argument
|
/drivers/dax/pmem/ |
D | core.c | 19 struct dev_pagemap pgmap = { }; in __dax_pmem_probe() local 34 rc = nvdimm_setup_pfn(nd_pfn, &pgmap); in __dax_pmem_probe() 53 memcpy(&res, &pgmap.res, sizeof(res)); in __dax_pmem_probe() 61 dev_dax = __devm_create_dev_dax(dax_region, id, &pgmap, subsys); in __dax_pmem_probe()
|
/drivers/dax/ |
D | bus.h | 22 struct dev_pagemap *pgmap, enum dev_dax_subsys subsys); 25 int id, struct dev_pagemap *pgmap) in devm_create_dev_dax() argument 27 return __devm_create_dev_dax(dax_region, id, pgmap, DEV_DAX_BUS); in devm_create_dev_dax()
|
D | super.c | 126 struct dev_pagemap *pgmap, *end_pgmap; in __generic_fsdax_supported() local 128 pgmap = get_dev_pagemap(pfn_t_to_pfn(pfn), NULL); in __generic_fsdax_supported() 130 if (pgmap && pgmap == end_pgmap && pgmap->type == MEMORY_DEVICE_FS_DAX in __generic_fsdax_supported() 131 && pfn_t_to_page(pfn)->pgmap == pgmap in __generic_fsdax_supported() 132 && pfn_t_to_page(end_pfn)->pgmap == pgmap in __generic_fsdax_supported() 136 put_dev_pagemap(pgmap); in __generic_fsdax_supported()
|
D | bus.c | 388 struct dev_pagemap *pgmap, enum dev_dax_subsys subsys) in __devm_create_dev_dax() argument 404 memcpy(&dev_dax->pgmap, pgmap, sizeof(*pgmap)); in __devm_create_dev_dax()
|
D | dax-private.h | 53 struct dev_pagemap pgmap; member
|
D | device.c | 431 dev_dax->pgmap.type = MEMORY_DEVICE_DEVDAX; in dev_dax_probe() 432 addr = devm_memremap_pages(dev, &dev_dax->pgmap); in dev_dax_probe()
|
/drivers/gpu/drm/nouveau/ |
D | nouveau_dmem.c | 84 return container_of(page->pgmap, struct nouveau_dmem, pagemap); in page_to_dmem()
|