/linux-6.12.1/drivers/fpga/ |
D | dfl-afu-dma-region.c | 35 struct dfl_afu_dma_region *region) in afu_dma_pin_pages() argument 37 int npages = region->length >> PAGE_SHIFT; in afu_dma_pin_pages() 45 region->pages = kcalloc(npages, sizeof(struct page *), GFP_KERNEL); in afu_dma_pin_pages() 46 if (!region->pages) { in afu_dma_pin_pages() 51 pinned = pin_user_pages_fast(region->user_addr, npages, FOLL_WRITE, in afu_dma_pin_pages() 52 region->pages); in afu_dma_pin_pages() 66 unpin_user_pages(region->pages, pinned); in afu_dma_pin_pages() 68 kfree(region->pages); in afu_dma_pin_pages() 83 struct dfl_afu_dma_region *region) in afu_dma_unpin_pages() argument 85 long npages = region->length >> PAGE_SHIFT; in afu_dma_unpin_pages() [all …]
|
D | fpga-region.c | 46 static struct fpga_region *fpga_region_get(struct fpga_region *region) in fpga_region_get() argument 48 struct device *dev = ®ion->dev; in fpga_region_get() 50 if (!mutex_trylock(®ion->mutex)) { in fpga_region_get() 56 if (!try_module_get(region->ops_owner)) { in fpga_region_get() 58 mutex_unlock(®ion->mutex); in fpga_region_get() 64 return region; in fpga_region_get() 72 static void fpga_region_put(struct fpga_region *region) in fpga_region_put() argument 74 struct device *dev = ®ion->dev; in fpga_region_put() 78 module_put(region->ops_owner); in fpga_region_put() 80 mutex_unlock(®ion->mutex); in fpga_region_put() [all …]
|
D | dfl-afu-region.c | 24 #define for_each_region(region, afu) \ argument 25 list_for_each_entry((region), &(afu)->regions, node) 30 struct dfl_afu_mmio_region *region; in get_region_by_index() local 32 for_each_region(region, afu) in get_region_by_index() 33 if (region->index == region_index) in get_region_by_index() 34 return region; in get_region_by_index() 53 struct dfl_afu_mmio_region *region; in afu_mmio_region_add() local 57 region = devm_kzalloc(&pdata->dev->dev, sizeof(*region), GFP_KERNEL); in afu_mmio_region_add() 58 if (!region) in afu_mmio_region_add() 61 region->index = region_index; in afu_mmio_region_add() [all …]
|
D | of-fpga-region.c | 88 static int of_fpga_region_get_bridges(struct fpga_region *region) in of_fpga_region_get_bridges() argument 90 struct device *dev = ®ion->dev; in of_fpga_region_get_bridges() 92 struct fpga_image_info *info = region->info; in of_fpga_region_get_bridges() 98 ®ion->bridge_list); in of_fpga_region_get_bridges() 130 ®ion->bridge_list); in of_fpga_region_get_bridges() 135 fpga_bridges_put(®ion->bridge_list); in of_fpga_region_get_bridges() 195 of_fpga_region_parse_ov(struct fpga_region *region, in of_fpga_region_parse_ov() argument 198 struct device *dev = ®ion->dev; in of_fpga_region_parse_ov() 203 if (region->info) { in of_fpga_region_parse_ov() 286 static int of_fpga_region_notify_pre_apply(struct fpga_region *region, in of_fpga_region_notify_pre_apply() argument [all …]
|
D | dfl-fme-region.c | 22 static int fme_region_get_bridges(struct fpga_region *region) in fme_region_get_bridges() argument 24 struct dfl_fme_region_pdata *pdata = region->priv; in fme_region_get_bridges() 27 return fpga_bridge_get_to_list(dev, region->info, ®ion->bridge_list); in fme_region_get_bridges() 35 struct fpga_region *region; in fme_region_probe() local 47 region = fpga_region_register_full(dev, &info); in fme_region_probe() 48 if (IS_ERR(region)) { in fme_region_probe() 49 ret = PTR_ERR(region); in fme_region_probe() 53 platform_set_drvdata(pdev, region); in fme_region_probe() 66 struct fpga_region *region = platform_get_drvdata(pdev); in fme_region_remove() local 67 struct fpga_manager *mgr = region->mgr; in fme_region_remove() [all …]
|
/linux-6.12.1/net/devlink/ |
D | region.c | 29 struct devlink_region *region; member 37 struct devlink_region *region; in devlink_region_get_by_name() local 39 list_for_each_entry(region, &devlink->region_list, list) in devlink_region_get_by_name() 40 if (!strcmp(region->ops->name, region_name)) in devlink_region_get_by_name() 41 return region; in devlink_region_get_by_name() 50 struct devlink_region *region; in devlink_port_region_get_by_name() local 52 list_for_each_entry(region, &port->region_list, list) in devlink_port_region_get_by_name() 53 if (!strcmp(region->ops->name, region_name)) in devlink_port_region_get_by_name() 54 return region; in devlink_port_region_get_by_name() 60 devlink_region_snapshot_get_by_id(struct devlink_region *region, u32 id) in devlink_region_snapshot_get_by_id() argument [all …]
|
/linux-6.12.1/tools/testing/selftests/kvm/lib/ |
D | kvm_util.c | 436 ucall_init(vm, slot0->region.guest_phys_addr + slot0->region.memory_size); in __vm_create() 515 struct userspace_mem_region *region; in kvm_vm_restart() local 521 hash_for_each(vmp->regions.slot_hash, ctr, region, slot_node) { in kvm_vm_restart() 522 int ret = ioctl(vmp->fd, KVM_SET_USER_MEMORY_REGION2, ®ion->region); in kvm_vm_restart() 528 ret, errno, region->region.slot, in kvm_vm_restart() 529 region->region.flags, in kvm_vm_restart() 530 region->region.guest_phys_addr, in kvm_vm_restart() 531 region->region.memory_size); in kvm_vm_restart() 643 struct userspace_mem_region *region = in userspace_mem_region_find() local 645 uint64_t existing_start = region->region.guest_phys_addr; in userspace_mem_region_find() [all …]
|
/linux-6.12.1/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum1_acl_tcam.c | 14 struct mlxsw_sp_acl_tcam_region *region; member 62 struct mlxsw_sp1_acl_tcam_region *region) in mlxsw_sp1_acl_ctcam_region_catchall_add() argument 67 mlxsw_sp_acl_ctcam_chunk_init(®ion->cregion, in mlxsw_sp1_acl_ctcam_region_catchall_add() 68 ®ion->catchall.cchunk, in mlxsw_sp1_acl_ctcam_region_catchall_add() 81 err = mlxsw_sp_acl_ctcam_entry_add(mlxsw_sp, ®ion->cregion, in mlxsw_sp1_acl_ctcam_region_catchall_add() 82 ®ion->catchall.cchunk, in mlxsw_sp1_acl_ctcam_region_catchall_add() 83 ®ion->catchall.centry, in mlxsw_sp1_acl_ctcam_region_catchall_add() 87 region->catchall.rulei = rulei; in mlxsw_sp1_acl_ctcam_region_catchall_add() 95 mlxsw_sp_acl_ctcam_chunk_fini(®ion->catchall.cchunk); in mlxsw_sp1_acl_ctcam_region_catchall_add() 101 struct mlxsw_sp1_acl_tcam_region *region) in mlxsw_sp1_acl_ctcam_region_catchall_del() argument [all …]
|
D | spectrum_acl_ctcam.c | 15 struct mlxsw_sp_acl_tcam_region *region, in mlxsw_sp_acl_ctcam_region_resize() argument 21 region->key_type, new_size, region->id, in mlxsw_sp_acl_ctcam_region_resize() 22 region->tcam_region_info); in mlxsw_sp_acl_ctcam_region_resize() 28 struct mlxsw_sp_acl_tcam_region *region, in mlxsw_sp_acl_ctcam_region_move() argument 34 region->tcam_region_info, src_offset, in mlxsw_sp_acl_ctcam_region_move() 35 region->tcam_region_info, dst_offset, size); in mlxsw_sp_acl_ctcam_region_move() 46 struct mlxsw_sp_acl_tcam_region *region = cregion->region; in mlxsw_sp_acl_ctcam_region_entry_insert() local 61 region->tcam_region_info, in mlxsw_sp_acl_ctcam_region_entry_insert() 65 mlxsw_afk_encode(afk, region->key_info, &rulei->values, key, mask); in mlxsw_sp_acl_ctcam_region_entry_insert() 94 cregion->region->tcam_region_info, in mlxsw_sp_acl_ctcam_region_entry_remove() [all …]
|
/linux-6.12.1/arch/um/kernel/ |
D | physmem.c | 128 struct iomem_region *region = iomem_regions; in phys_mapping() local 130 while (region != NULL) { in phys_mapping() 131 if ((phys >= region->phys) && in phys_mapping() 132 (phys < region->phys + region->size)) { in phys_mapping() 133 fd = region->fd; in phys_mapping() 134 *offset_out = phys - region->phys; in phys_mapping() 137 region = region->next; in phys_mapping() 182 struct iomem_region *region = iomem_regions; in find_iomem() local 184 while (region != NULL) { in find_iomem() 185 if (!strcmp(region->driver, driver)) { in find_iomem() [all …]
|
/linux-6.12.1/drivers/vfio/pci/pds/ |
D | dirty.c | 74 static int pds_vfio_dirty_alloc_bitmaps(struct pds_vfio_region *region, in pds_vfio_dirty_alloc_bitmaps() argument 89 region->host_seq = host_seq_bmp; in pds_vfio_dirty_alloc_bitmaps() 90 region->host_ack = host_ack_bmp; in pds_vfio_dirty_alloc_bitmaps() 91 region->bmp_bytes = bytes; in pds_vfio_dirty_alloc_bitmaps() 102 struct pds_vfio_region *region = &dirty->regions[i]; in pds_vfio_dirty_free_bitmaps() local 104 vfree(region->host_seq); in pds_vfio_dirty_free_bitmaps() 105 vfree(region->host_ack); in pds_vfio_dirty_free_bitmaps() 106 region->host_seq = NULL; in pds_vfio_dirty_free_bitmaps() 107 region->host_ack = NULL; in pds_vfio_dirty_free_bitmaps() 108 region->bmp_bytes = 0; in pds_vfio_dirty_free_bitmaps() [all …]
|
/linux-6.12.1/mm/ |
D | nommu.c | 414 struct vm_region *region, *last; in validate_nommu_regions() local 426 region = rb_entry(p, struct vm_region, vm_rb); in validate_nommu_regions() 429 BUG_ON(region->vm_end <= region->vm_start); in validate_nommu_regions() 430 BUG_ON(region->vm_top < region->vm_end); in validate_nommu_regions() 431 BUG_ON(region->vm_start < last->vm_top); in validate_nommu_regions() 445 static void add_nommu_region(struct vm_region *region) in add_nommu_region() argument 457 if (region->vm_start < pregion->vm_start) in add_nommu_region() 459 else if (region->vm_start > pregion->vm_start) in add_nommu_region() 461 else if (pregion == region) in add_nommu_region() 467 rb_link_node(®ion->vm_rb, parent, p); in add_nommu_region() [all …]
|
/linux-6.12.1/drivers/acpi/acpica/ |
D | evregion.c | 129 handler_desc = region_obj->region.handler; in acpi_ev_address_space_dispatch() 133 acpi_ut_get_node_name(region_obj->region.node), in acpi_ev_address_space_dispatch() 135 acpi_ut_get_region_name(region_obj->region. in acpi_ev_address_space_dispatch() 149 if (!(region_obj->region.flags & AOPOBJ_SETUP_COMPLETE)) { in acpi_ev_address_space_dispatch() 161 acpi_ut_get_region_name(region_obj->region. in acpi_ev_address_space_dispatch() 166 if (region_obj->region.space_id == ACPI_ADR_SPACE_PLATFORM_COMM) { in acpi_ev_address_space_dispatch() 172 ctx->length = (u16)region_obj->region.length; in acpi_ev_address_space_dispatch() 173 ctx->subspace_id = (u8)region_obj->region.address; in acpi_ev_address_space_dispatch() 176 if (region_obj->region.space_id == in acpi_ev_address_space_dispatch() 181 ctx->length = region_obj->region.length; in acpi_ev_address_space_dispatch() [all …]
|
/linux-6.12.1/drivers/s390/cio/ |
D | vfio_ccw_chp.c | 22 struct ccw_schib_region *region; in vfio_ccw_schib_region_read() local 25 if (pos + count > sizeof(*region)) in vfio_ccw_schib_region_read() 29 region = private->region[i].data; in vfio_ccw_schib_region_read() 36 memcpy(region, &sch->schib, sizeof(*region)); in vfio_ccw_schib_region_read() 38 if (copy_to_user(buf, (void *)region + pos, count)) { in vfio_ccw_schib_region_read() 59 struct vfio_ccw_region *region) in vfio_ccw_schib_region_release() argument 86 struct ccw_crw_region *region; in vfio_ccw_crw_region_read() local 90 if (pos + count > sizeof(*region)) in vfio_ccw_crw_region_read() 100 region = private->region[i].data; in vfio_ccw_crw_region_read() 103 memcpy(®ion->crw, &crw->crw, sizeof(region->crw)); in vfio_ccw_crw_region_read() [all …]
|
D | vfio_ccw_async.c | 20 struct ccw_cmd_region *region; in vfio_ccw_async_region_read() local 23 if (pos + count > sizeof(*region)) in vfio_ccw_async_region_read() 27 region = private->region[i].data; in vfio_ccw_async_region_read() 28 if (copy_to_user(buf, (void *)region + pos, count)) in vfio_ccw_async_region_read() 42 struct ccw_cmd_region *region; in vfio_ccw_async_region_write() local 45 if (pos + count > sizeof(*region)) in vfio_ccw_async_region_write() 51 region = private->region[i].data; in vfio_ccw_async_region_write() 52 if (copy_from_user((void *)region + pos, buf, count)) { in vfio_ccw_async_region_write() 59 ret = region->ret_code ? region->ret_code : count; in vfio_ccw_async_region_write() 67 struct vfio_ccw_region *region) in vfio_ccw_async_region_release() argument
|
/linux-6.12.1/arch/x86/boot/compressed/ |
D | kaslr.c | 467 static void store_slot_info(struct mem_vector *region, unsigned long image_size) in store_slot_info() argument 474 slot_area.addr = region->start; in store_slot_info() 475 slot_area.num = 1 + (region->size - image_size) / CONFIG_PHYSICAL_ALIGN; in store_slot_info() 486 process_gb_huge_pages(struct mem_vector *region, unsigned long image_size) in process_gb_huge_pages() argument 493 store_slot_info(region, image_size); in process_gb_huge_pages() 498 pud_start = ALIGN(region->start, PUD_SIZE); in process_gb_huge_pages() 499 pud_end = ALIGN_DOWN(region->start + region->size, PUD_SIZE); in process_gb_huge_pages() 503 store_slot_info(region, image_size); in process_gb_huge_pages() 508 if (pud_start >= region->start + image_size) { in process_gb_huge_pages() 509 tmp.start = region->start; in process_gb_huge_pages() [all …]
|
/linux-6.12.1/Documentation/driver-api/fpga/ |
D | fpga-region.rst | 7 This document is meant to be a brief overview of the FPGA region API usage. A 11 For the purposes of this API document, let's just say that a region associates 12 an FPGA Manager and a bridge (or bridges) with a reprogrammable region of an 13 FPGA or the whole FPGA. The API provides a way to register a region and to 14 program a region. 16 Currently the only layer above fpga-region.c in the kernel is the Device Tree 17 support (of-fpga-region.c) described in [#f1]_. The DT support layer uses regions 18 to program the FPGA and then DT to handle enumeration. The common region code 22 An fpga-region can be set up to know the following things: 37 How to add a new FPGA region [all …]
|
/linux-6.12.1/drivers/acpi/pmic/ |
D | Kconfig | 4 bool "PMIC (Power Management Integrated Circuit) operation region support" 7 region of the PMIC chip. The operation region can be used 14 bool "ACPI operation region support for Bay Trail Crystal Cove PMIC" 17 This config adds ACPI operation region support for the Bay Trail 21 bool "ACPI operation region support for Cherry Trail Crystal Cove PMIC" 24 This config adds ACPI operation region support for the Cherry Trail 28 bool "ACPI operation region support for XPower AXP288 PMIC" 31 This config adds ACPI operation region support for XPower AXP288 PMIC. 34 bool "ACPI operation region support for BXT WhiskeyCove PMIC" 37 This config adds ACPI operation region support for BXT WhiskeyCove PMIC. [all …]
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dmub/src/ |
D | dmub_dcn30.c | 104 REG_WRITE(DMCUB_REGION3_CW0_BASE_ADDRESS, cw0->region.base); in dmub_dcn30_backdoor_load() 106 DMCUB_REGION3_CW0_TOP_ADDRESS, cw0->region.top, in dmub_dcn30_backdoor_load() 113 REG_WRITE(DMCUB_REGION3_CW1_BASE_ADDRESS, cw1->region.base); in dmub_dcn30_backdoor_load() 115 DMCUB_REGION3_CW1_TOP_ADDRESS, cw1->region.top, in dmub_dcn30_backdoor_load() 136 if (cw2->region.base != cw2->region.top) { in dmub_dcn30_setup_windows() 139 REG_WRITE(DMCUB_REGION3_CW2_BASE_ADDRESS, cw2->region.base); in dmub_dcn30_setup_windows() 141 DMCUB_REGION3_CW2_TOP_ADDRESS, cw2->region.top, in dmub_dcn30_setup_windows() 154 REG_WRITE(DMCUB_REGION3_CW3_BASE_ADDRESS, cw3->region.base); in dmub_dcn30_setup_windows() 156 DMCUB_REGION3_CW3_TOP_ADDRESS, cw3->region.top, in dmub_dcn30_setup_windows() 165 REG_WRITE(DMCUB_REGION3_CW4_BASE_ADDRESS, cw4->region.base); in dmub_dcn30_setup_windows() [all …]
|
/linux-6.12.1/drivers/mtd/maps/ |
D | pismo.c | 89 struct pismo_mem *region, const char *name, in pismo_add_device() argument 94 phys_addr_t base = region->base; in pismo_add_device() 101 res.end = base + region->size - 1; in pismo_add_device() 131 struct pismo_mem *region) in pismo_add_nor() argument 134 .width = region->width, in pismo_add_nor() 140 return pismo_add_device(pismo, i, region, "physmap-flash", in pismo_add_nor() 145 struct pismo_mem *region) in pismo_add_sram() argument 148 .bankwidth = region->width, in pismo_add_sram() 151 return pismo_add_device(pismo, i, region, "mtd-ram", in pismo_add_sram() 159 struct pismo_mem region; in pismo_add_one() local [all …]
|
/linux-6.12.1/drivers/fpga/tests/ |
D | fpga-region-test.c | 32 struct fpga_region *region; member 90 static int fake_region_get_bridges(struct fpga_region *region) in fake_region_get_bridges() argument 92 struct fpga_bridge *bridge = region->priv; in fake_region_get_bridges() 94 return fpga_bridge_get_to_list(bridge->dev.parent, region->info, ®ion->bridge_list); in fake_region_get_bridges() 105 struct fpga_region *region; in fpga_region_test_class_find() local 107 region = fpga_region_class_find(NULL, ctx->region_dev, fake_region_match); in fpga_region_test_class_find() 108 KUNIT_EXPECT_PTR_EQ(test, region, ctx->region); in fpga_region_test_class_find() 110 put_device(®ion->dev); in fpga_region_test_class_find() 133 ctx->region->info = img_info; in fpga_region_test_program_fpga() 134 ret = fpga_region_program_fpga(ctx->region); in fpga_region_test_program_fpga() [all …]
|
/linux-6.12.1/Documentation/networking/devlink/ |
D | iosm.rst | 61 data required for flashing. The data like region count and address of each region 109 - The summary of exception details logged as part of this region. 111 - This region contains the details related to the exception occurred in the 114 - This region contains the logs related to the modem CDD driver. 116 - This region contains the eeprom logs. 118 - This region contains the current instance of bootloader logs. 120 - This region contains the previous instance of bootloader logs. 126 $ devlink region show 128 $ devlink region new pci/0000:02:00.0/report.json 130 $ devlink region dump pci/0000:02:00.0/report.json snapshot 0 [all …]
|
D | devlink-region.rst | 11 region can then be accessed via the devlink region interface. 17 Snapshot identifiers are scoped to the devlink instance, not a region. 21 The major benefit to creating a region is to provide access to internal 29 requested snapshots must implement the ``.snapshot`` callback for the region 38 region should implement the ``.read`` callback in the ``devlink_region_ops`` 48 $ devlink region help 49 $ devlink region show [ DEV/REGION ] 50 $ devlink region del DEV/REGION snapshot SNAPSHOT_ID 51 $ devlink region dump DEV/REGION [ snapshot SNAPSHOT_ID ] 52 $ devlink region read DEV/REGION [ snapshot SNAPSHOT_ID ] address ADDRESS length LENGTH [all …]
|
/linux-6.12.1/drivers/virt/acrn/ |
D | mm.c | 19 static int modify_region(struct acrn_vm *vm, struct vm_memory_region_op *region) in modify_region() argument 30 regions->regions_gpa = virt_to_phys(region); in modify_region() 55 struct vm_memory_region_op *region; in acrn_mm_region_add() local 58 region = kzalloc(sizeof(*region), GFP_KERNEL); in acrn_mm_region_add() 59 if (!region) in acrn_mm_region_add() 62 region->type = ACRN_MEM_REGION_ADD; in acrn_mm_region_add() 63 region->user_vm_pa = user_gpa; in acrn_mm_region_add() 64 region->service_vm_pa = service_gpa; in acrn_mm_region_add() 65 region->size = size; in acrn_mm_region_add() 66 region->attr = ((mem_type & ACRN_MEM_TYPE_MASK) | in acrn_mm_region_add() [all …]
|
/linux-6.12.1/arch/arm64/boot/dts/qcom/ |
D | qcs8550.dtsi | 25 * reserved memory region may have reserved region which was not yet 35 ( region) don't need to be described in DT. 59 aop_image_mem: aop-image-region@81c00000 { 64 aop_cmd_db_mem: aop-cmd-db-region@81c60000 { 70 aop_config_mem: aop-config-region@81c80000 { 75 smem_mem: smem-region@81d00000 { 82 adsp_mhi_mem: adsp-mhi-region@81f00000 { 87 mpss_mem: mpss-region@8a800000 { 92 q6_mpss_dtb_mem: q6-mpss-dtb-region@9b000000 { 97 ipa_fw_mem: ipa-fw-region@9b080000 { [all …]
|