/linux-master/tools/testing/memblock/tests/ |
H A D | alloc_api.c | 21 * A simple test that tries to allocate a small memory region. 22 * Expect to allocate an aligned region near the end of the available memory. 53 * A test that tries to allocate memory next to a reserved region that starts at 65 * The allocation direction is top-down and region arrays are sorted from lower 66 * to higher addresses, so the new region will be the first entry in 67 * memory.reserved array. The previously reserved region does not get modified. 72 /* After allocation, this will point to the "old" region */ 75 struct region r1; 121 * Expect a merge of both regions. Only the region size gets updated. 128 * The first region end [all...] |
/linux-master/drivers/iommu/ |
H A D | s390-iommu.c | 430 struct iommu_resv_region *region; local 433 region = iommu_alloc_resv_region(0, zdev->start_dma, 0, 435 if (!region) 437 list_add_tail(®ion->list, list); 441 region = iommu_alloc_resv_region(zdev->end_dma + 1, 444 if (!region) 446 list_add_tail(®ion->list, list);
|
/linux-master/drivers/accel/habanalabs/common/ |
H A D | firmware_if.c | 1971 * @region: PCI memory region 1977 struct pci_mem_region *region) 1981 /* now make sure that the memory transfer is within region's bounds */ 1983 if (end_addr >= region->region_base + region->region_size) { 1985 "dynamic FW load: memory transfer end address out of memory region bounds. addr: %llx\n", 1995 if (end_addr >= region->region_base - region->offset_in_bar + 1996 region 1975 hl_fw_dynamic_validate_memory_bound(struct hl_device *hdev, u64 addr, size_t size, struct pci_mem_region *region) argument 2018 struct pci_mem_region *region; local 2082 hl_fw_dynamic_validate_response(struct hl_device *hdev, struct fw_response *response, struct pci_mem_region *region) argument 2151 struct pci_mem_region *region; local 2305 struct pci_mem_region *region; local 2337 struct pci_mem_region *region; local [all...] |
/linux-master/drivers/net/ethernet/qlogic/qlcnic/ |
H A D | qlcnic_minidump.c | 241 } region; member in struct:qlcnic_dump_entry 389 struct __crb *crb = &entry->region.crb; 406 struct __ctrl *ctr = &entry->region.ctrl; 505 struct __mux *mux = &entry->region.mux; 523 struct __queue *que = &entry->region.que; 547 struct __ocm *ocm = &entry->region.ocm; 563 struct __mem *rom = &entry->region.mem; 593 struct __cache *l1 = &entry->region.cache; 619 struct __cache *l2 = &entry->region.cache; 859 struct __mem *mem = &entry->region [all...] |
/linux-master/drivers/pcmcia/ |
H A D | yenta_socket.c | 445 struct pci_bus_region region; local 451 pcibios_resource_to_bus(socket->dev->bus, ®ion, mem->res); 454 start = region.start; 455 stop = region.end; 696 struct pci_bus_region region; local 712 region.start = config_readl(socket, addr_start) & mask; 713 region.end = config_readl(socket, addr_end) | ~mask; 714 if (region.start && region.end > region 1047 struct pci_bus_region region; local [all...] |
/linux-master/mm/damon/ |
H A D | sysfs.c | 15 * init region directory 31 struct damon_sysfs_region *region = container_of(kobj, local 34 return sysfs_emit(buf, "%lu\n", region->ar.start); 40 struct damon_sysfs_region *region = container_of(kobj, local 42 int err = kstrtoul(buf, 0, ®ion->ar.start); 50 struct damon_sysfs_region *region = container_of(kobj, local 53 return sysfs_emit(buf, "%lu\n", region->ar.end); 59 struct damon_sysfs_region *region = container_of(kobj, local 61 int err = kstrtoul(buf, 0, ®ion->ar.end); 120 struct damon_sysfs_region **regions_arr, *region; local [all...] |
/linux-master/sound/pci/cs46xx/ |
H A D | cs46xx_lib.c | 315 dst = chip->region.idx[bank+1].remap_addr + offset; 478 dst = chip->region.idx[bank+1].remap_addr + offset; 2797 struct snd_cs46xx_region *region = entry->private_data; local 2799 if (copy_to_user_fromio(buf, region->remap_addr + pos, count)) 2814 struct snd_cs46xx_region *region = &chip->region.idx[idx]; local 2815 if (! snd_card_proc_new(card, region->name, &entry)) { 2819 entry->size = region->size; 3825 struct snd_cs46xx_region *region; local 3855 region [all...] |
/linux-master/drivers/dax/ |
H A D | bus.c | 16 * All changes to the dax region configuration occur with this lock held 76 if (dev_dax->region->res.flags & IORESOURCE_DAX_KMEM) 168 * On dynamic dax regions, the assigned region can be partitioned by dax core 172 * When allocating a dax region, drivers must set whether it's static 186 return is_static(dev_dax->region); 207 struct dax_region *dax_region = dev_dax->region; 411 * successfully bound is tracked as the region 435 * Dynamic dax region have the pgmap allocated via dev_kzalloc() 437 * ranges on probe() from previous reconfigurations of region devices. 448 struct dax_region *dax_region = dev_dax->region; 640 dax_region_unregister(void *region) argument [all...] |
/linux-master/drivers/gpu/drm/i915/gem/ |
H A D | i915_gem_object.c | 522 src_map = io_mapping_map_wc(&obj->mm.region->iomap, 523 dma - obj->mm.region->region.start, 550 * Reads data from @obj at the specified offset. The requested region to read 612 * current region. 620 struct intel_memory_region *mr = READ_ONCE(obj->mm.region); 670 * @id: The region intended to migrate to 673 * given region. Note that pinning may affect the ability to migrate as 701 if (obj->mm.region == mr) 725 * i915_gem_object_migrate - Migrate an object to the desired region i [all...] |
/linux-master/tools/testing/selftests/kvm/lib/x86_64/ |
H A D | vmx.c | 80 /* Setup of a region of guest memory for the vmxon region. */ 85 /* Setup of a region of guest memory for a vmcs. */ 90 /* Setup of a region of guest memory for the MSR bitmap. */ 96 /* Setup of a region of guest memory for the shadow VMCS. */ 101 /* Setup of a region of guest memory for the VMREAD and VMWRITE bitmaps. */ 503 struct userspace_mem_region *region = local 506 i = (region->region.guest_phys_addr >> vm->page_shift) - 1; 507 last = i + (region [all...] |
/linux-master/drivers/gpu/drm/xe/tests/ |
H A D | xe_migrate.c | 102 struct kunit *test, u32 region) 114 region | 199 u32 region; local 205 region = XE_BO_CREATE_VRAM1_BIT; 207 region = XE_BO_CREATE_VRAM0_BIT; 208 test_copy(m, bo, test, region); 101 test_copy(struct xe_migrate *m, struct xe_bo *bo, struct kunit *test, u32 region) argument
|
/linux-master/drivers/soc/aspeed/ |
H A D | aspeed-p2a-ctrl.c | 44 struct region { struct 52 struct region regions[P2A_REGION_COUNT]; 140 const struct region *curr = &ctrl->config->regions[i]; 142 /* If the top of this region is lower than your base, skip it. 147 /* If the bottom of this region is higher than your end, bail. 164 /* Enable the region as read-write. */ 185 /* If they want a region to be read-only, since the entire 186 * region is read-only once enabled, we just need to track this 200 /* If we don't acquire any region return error. */ 212 /* This is a request for the memory-region an [all...] |
/linux-master/drivers/vfio/cdx/ |
H A D | main.c | 174 static int vfio_cdx_mmap_mmio(struct vfio_cdx_region region, argument 184 if (base + size > region.size) 187 vma->vm_pgoff = (region.addr >> PAGE_SHIFT) + pgoff;
|
/linux-master/drivers/crypto/intel/qat/qat_common/ |
H A D | icp_qat_uclo.h | 142 struct icp_qat_uclo_region *region; member in struct:icp_qat_uclo_page 152 struct icp_qat_uclo_region *region; member in struct:icp_qat_uclo_aeslice 285 char region; member in struct:icp_qat_uof_initmem
|
/linux-master/drivers/md/ |
H A D | dm-raid1.c | 21 #include <linux/dm-region-hash.h> 350 * The final region may be smaller than 448 region_t region = dm_rh_bio_to_region(ms->rh, bio); local 450 if (log->type->in_sync(log, region, 0)) 560 static inline int region_in_sync(struct mirror_set *ms, region_t region, argument 563 int state = dm_rh_get_state(ms->rh, region, may_block); 569 region_t region; local 574 region = dm_rh_bio_to_region(ms->rh, bio); 578 * We can only read balance if the region is in sync. 580 if (likely(region_in_sync(ms, region, 694 region_t region; local [all...] |
/linux-master/arch/powerpc/boot/dts/fsl/ |
H A D | p1023si-post.dtsi | 291 memory-region = <&qman_fqd &qman_pfdr>; 299 memory-region = <&bman_fbpr>;
|
/linux-master/drivers/video/fbdev/nvidia/ |
H A D | nv_proto.h | 52 const struct fb_copyarea *region);
|
/linux-master/drivers/net/wireless/mediatek/mt76/mt7603/ |
H A D | debugfs.c | 52 dev->mt76.region == NL80211_DFS_ETSI;
|
/linux-master/drivers/pci/ |
H A D | setup-res.c | 27 struct pci_bus_region region; local 57 pcibios_resource_to_bus(dev->bus, ®ion, res); 58 new = region.start; 113 new = region.start >> 16 >> 16;
|
/linux-master/drivers/gpu/drm/i915/ |
H A D | intel_memory_region.h | 70 struct resource region; member in struct:intel_memory_region
|
/linux-master/drivers/video/fbdev/ |
H A D | vesafb.c | 38 struct resource *region; member in struct:vesafb_par 431 * region already (FIXME) */ 432 par->region = request_region(0x3c0, 32, "vesafb"); 495 if (par->region) 506 if (((struct vesafb_par *)(info->par))->region)
|
/linux-master/arch/arm64/kvm/vgic/ |
H A D | vgic.h | 299 vgic_v3_redist_region_full(struct vgic_redist_region *region) argument 301 if (!region->count) 304 return (region->free_index >= region->count);
|
/linux-master/drivers/mtd/spi-nor/ |
H A D | core.h | 241 * struct spi_nor_erase_region - Structure to describe a SPI NOR erase region 242 * @offset: the offset in the data array of erase region start. 243 * @size: the size of the region in bytes. 245 * inside this region. The erase types are sorted in 248 * @overlaid: determine if this region is overlaid. 264 * @uniform_region: a pre-allocated erase region for SPI NOR with a uniform 281 * @lock: lock a region of the SPI NOR. 282 * @unlock: unlock a region of the SPI NOR. 283 * @is_locked: check if a region of the SPI NOR is completely locked 293 * @len: size of one OTP region i [all...] |
H A D | core.c | 187 * spi_nor_spimem_read_data() - read data from flash's memory region via 1527 * number of bytes to erase. The region in 1531 * @region: pointer to a structure that describes a SPI NOR erase region 1539 const struct spi_nor_erase_region *region, 1551 /* Does the erase region support the tested erase type? */ 1552 if (!(region->erase_mask & BIT(i))) 1560 if (region->overlaid && region->size <= len) 1577 * @region 1538 spi_nor_find_best_erase_type(const struct spi_nor_erase_map *map, const struct spi_nor_erase_region *region, u64 addr, u32 len) argument 1584 spi_nor_init_erase_cmd(const struct spi_nor_erase_region *region, const struct spi_nor_erase_type *erase) argument 1638 struct spi_nor_erase_region *region; local 3373 spi_nor_get_region_erasesize(const struct spi_nor_erase_region *region, const struct spi_nor_erase_type *erase_type) argument 3392 const struct spi_nor_erase_region *region = map->regions; local [all...] |
/linux-master/drivers/vfio/ |
H A D | vfio_iommu_type1.c | 1823 struct vfio_iova *region; local 1831 list_for_each_entry(region, regions, list) { 1832 start = ALIGN(region->start, PAGE_SIZE * 2); 1833 if (start >= region->end || (region->end - start < PAGE_SIZE * 2)) 1888 struct iommu_resv_region *region; local 1891 list_for_each_entry(region, group_resv_regions, list) { 1897 if (region->type == IOMMU_RESV_MSI) { 1902 if (region->type == IOMMU_RESV_SW_MSI) { 1903 *base = region 1923 struct vfio_iova *region; local 2018 struct iommu_resv_region *region; local [all...] |