/linux-6.6.21/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() 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() 80 mutex_unlock(®ion->mutex); in fpga_region_put() 97 int fpga_region_program_fpga(struct fpga_region *region) in fpga_region_program_fpga() argument 99 struct device *dev = ®ion->dev; in fpga_region_program_fpga() [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.6.21/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.6.21/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 …]
|
D | spectrum2_acl_tcam.c | 18 struct mlxsw_sp_acl_tcam_region *region; member 155 struct mlxsw_sp2_acl_tcam_region *region = region_priv; in mlxsw_sp2_acl_tcam_region_init() local 158 region->region = _region; in mlxsw_sp2_acl_tcam_region_init() 161 ®ion->aregion, in mlxsw_sp2_acl_tcam_region_init() 169 struct mlxsw_sp2_acl_tcam_region *region = region_priv; in mlxsw_sp2_acl_tcam_region_fini() local 171 mlxsw_sp_acl_atcam_region_fini(®ion->aregion); in mlxsw_sp2_acl_tcam_region_fini() 176 struct mlxsw_sp_acl_tcam_region *region) in mlxsw_sp2_acl_tcam_region_associate() argument 178 return mlxsw_sp_acl_atcam_region_associate(mlxsw_sp, region->id); in mlxsw_sp2_acl_tcam_region_associate() 183 struct mlxsw_sp2_acl_tcam_region *region = region_priv; in mlxsw_sp2_acl_tcam_region_rehash_hints_get() local 185 return mlxsw_sp_acl_atcam_rehash_hints_get(®ion->aregion); in mlxsw_sp2_acl_tcam_region_rehash_hints_get() [all …]
|
/linux-6.6.21/tools/testing/selftests/kvm/lib/ |
D | kvm_util.c | 377 ucall_init(vm, slot0->region.guest_phys_addr + slot0->region.memory_size); in __vm_create() 449 struct userspace_mem_region *region; in kvm_vm_restart() local 455 hash_for_each(vmp->regions.slot_hash, ctr, region, slot_node) { in kvm_vm_restart() 456 int ret = ioctl(vmp->fd, KVM_SET_USER_MEMORY_REGION, ®ion->region); in kvm_vm_restart() 461 ret, errno, region->region.slot, in kvm_vm_restart() 462 region->region.flags, in kvm_vm_restart() 463 region->region.guest_phys_addr, in kvm_vm_restart() 464 region->region.memory_size); in kvm_vm_restart() 576 struct userspace_mem_region *region = in userspace_mem_region_find() local 578 uint64_t existing_start = region->region.guest_phys_addr; in userspace_mem_region_find() [all …]
|
/linux-6.6.21/arch/um/kernel/ |
D | physmem.c | 127 struct iomem_region *region = iomem_regions; in phys_mapping() local 129 while (region != NULL) { in phys_mapping() 130 if ((phys >= region->phys) && in phys_mapping() 131 (phys < region->phys + region->size)) { in phys_mapping() 132 fd = region->fd; in phys_mapping() 133 *offset_out = phys - region->phys; in phys_mapping() 136 region = region->next; in phys_mapping() 183 struct iomem_region *region = iomem_regions; in find_iomem() local 185 while (region != NULL) { in find_iomem() 186 if (!strcmp(region->driver, driver)) { in find_iomem() [all …]
|
/linux-6.6.21/mm/ |
D | nommu.c | 425 struct vm_region *region, *last; in validate_nommu_regions() local 437 region = rb_entry(p, struct vm_region, vm_rb); in validate_nommu_regions() 440 BUG_ON(region->vm_end <= region->vm_start); in validate_nommu_regions() 441 BUG_ON(region->vm_top < region->vm_end); in validate_nommu_regions() 442 BUG_ON(region->vm_start < last->vm_top); in validate_nommu_regions() 456 static void add_nommu_region(struct vm_region *region) in add_nommu_region() argument 468 if (region->vm_start < pregion->vm_start) in add_nommu_region() 470 else if (region->vm_start > pregion->vm_start) in add_nommu_region() 472 else if (pregion == region) in add_nommu_region() 478 rb_link_node(®ion->vm_rb, parent, p); in add_nommu_region() [all …]
|
/linux-6.6.21/drivers/acpi/acpica/ |
D | evregion.c | 128 handler_desc = region_obj->region.handler; in acpi_ev_address_space_dispatch() 132 acpi_ut_get_node_name(region_obj->region.node), in acpi_ev_address_space_dispatch() 134 acpi_ut_get_region_name(region_obj->region. in acpi_ev_address_space_dispatch() 148 if (!(region_obj->region.flags & AOPOBJ_SETUP_COMPLETE)) { in acpi_ev_address_space_dispatch() 160 acpi_ut_get_region_name(region_obj->region. in acpi_ev_address_space_dispatch() 165 if (region_obj->region.space_id == ACPI_ADR_SPACE_PLATFORM_COMM) { in acpi_ev_address_space_dispatch() 171 ctx->length = (u16)region_obj->region.length; in acpi_ev_address_space_dispatch() 172 ctx->subspace_id = (u8)region_obj->region.address; in acpi_ev_address_space_dispatch() 175 if (region_obj->region.space_id == in acpi_ev_address_space_dispatch() 180 ctx->length = region_obj->region.length; in acpi_ev_address_space_dispatch() [all …]
|
/linux-6.6.21/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.6.21/arch/x86/boot/compressed/ |
D | kaslr.c | 492 static void store_slot_info(struct mem_vector *region, unsigned long image_size) in store_slot_info() argument 499 slot_area.addr = region->start; in store_slot_info() 500 slot_area.num = 1 + (region->size - image_size) / CONFIG_PHYSICAL_ALIGN; in store_slot_info() 511 process_gb_huge_pages(struct mem_vector *region, unsigned long image_size) in process_gb_huge_pages() argument 518 store_slot_info(region, image_size); in process_gb_huge_pages() 523 pud_start = ALIGN(region->start, PUD_SIZE); in process_gb_huge_pages() 524 pud_end = ALIGN_DOWN(region->start + region->size, PUD_SIZE); in process_gb_huge_pages() 528 store_slot_info(region, image_size); in process_gb_huge_pages() 533 if (pud_start >= region->start + image_size) { in process_gb_huge_pages() 534 tmp.start = region->start; in process_gb_huge_pages() [all …]
|
/linux-6.6.21/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.6.21/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() 135 if (cw2->region.base != cw2->region.top) { in dmub_dcn30_setup_windows() 138 REG_WRITE(DMCUB_REGION3_CW2_BASE_ADDRESS, cw2->region.base); in dmub_dcn30_setup_windows() 140 DMCUB_REGION3_CW2_TOP_ADDRESS, cw2->region.top, in dmub_dcn30_setup_windows() 153 REG_WRITE(DMCUB_REGION3_CW3_BASE_ADDRESS, cw3->region.base); in dmub_dcn30_setup_windows() 155 DMCUB_REGION3_CW3_TOP_ADDRESS, cw3->region.top, in dmub_dcn30_setup_windows() 164 REG_WRITE(DMCUB_REGION3_CW4_BASE_ADDRESS, cw4->region.base); in dmub_dcn30_setup_windows() [all …]
|
/linux-6.6.21/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.6.21/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.6.21/drivers/fpga/tests/ |
D | fpga-region-test.c | 32 struct fpga_region *region; member 77 static int fake_region_get_bridges(struct fpga_region *region) in fake_region_get_bridges() argument 79 struct fpga_bridge *bridge = region->priv; in fake_region_get_bridges() 81 return fpga_bridge_get_to_list(bridge->dev.parent, region->info, ®ion->bridge_list); in fake_region_get_bridges() 92 struct fpga_region *region; in fpga_region_test_class_find() local 94 region = fpga_region_class_find(NULL, &ctx->region_pdev->dev, fake_region_match); in fpga_region_test_class_find() 95 KUNIT_EXPECT_PTR_EQ(test, region, ctx->region); in fpga_region_test_class_find() 97 put_device(®ion->dev); in fpga_region_test_class_find() 117 ctx->region->info = img_info; in fpga_region_test_program_fpga() 118 ret = fpga_region_program_fpga(ctx->region); in fpga_region_test_program_fpga() [all …]
|
/linux-6.6.21/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.6.21/drivers/virt/acrn/ |
D | mm.c | 18 static int modify_region(struct acrn_vm *vm, struct vm_memory_region_op *region) in modify_region() argument 29 regions->regions_gpa = virt_to_phys(region); in modify_region() 54 struct vm_memory_region_op *region; in acrn_mm_region_add() local 57 region = kzalloc(sizeof(*region), GFP_KERNEL); in acrn_mm_region_add() 58 if (!region) in acrn_mm_region_add() 61 region->type = ACRN_MEM_REGION_ADD; in acrn_mm_region_add() 62 region->user_vm_pa = user_gpa; in acrn_mm_region_add() 63 region->service_vm_pa = service_gpa; in acrn_mm_region_add() 64 region->size = size; in acrn_mm_region_add() 65 region->attr = ((mem_type & ACRN_MEM_TYPE_MASK) | in acrn_mm_region_add() [all …]
|
/linux-6.6.21/drivers/soc/ti/ |
D | knav_qmss_queue.c | 688 struct knav_region *region; in kdesc_fill_pool() local 691 region = pool->region; in kdesc_fill_pool() 692 pool->desc_size = region->desc_size; in kdesc_fill_pool() 697 dma_addr = region->dma_start + (region->desc_size * index); in kdesc_fill_pool() 736 return pool->region->dma_start + (virt - pool->region->virt_start); in knav_pool_desc_virt_to_dma() 743 return pool->region->virt_start + (dma - pool->region->dma_start); in knav_pool_desc_dma_to_virt() 760 struct knav_region *reg_itr, *region = NULL; in knav_pool_create() local 781 region = reg_itr; in knav_pool_create() 785 if (!region) { in knav_pool_create() 806 if (num_desc > (region->num_desc - region->used_desc)) { in knav_pool_create() [all …]
|