/linux-6.1.9/tools/testing/selftests/powerpc/primitives/ |
D | load_unaligned_zeropad.c | 39 static char *mem_region; variable 43 if (mprotect(mem_region + page_size, page_size, PROT_NONE)) { in protect_region() 53 if (mprotect(mem_region + page_size, page_size, PROT_READ|PROT_WRITE)) { in unprotect_region() 126 mem_region = mmap(NULL, page_size * 2, PROT_READ|PROT_WRITE, in test_body() 129 FAIL_IF(mem_region == MAP_FAILED); in test_body() 132 mem_region[i] = i; in test_body() 134 memset(mem_region+page_size, 0, page_size); in test_body() 139 FAIL_IF(do_one_test(mem_region+i, i)); in test_body()
|
/linux-6.1.9/include/linux/soc/qcom/ |
D | mdt_loader.h | 22 const char *fw_name, int pas_id, void *mem_region, 27 const char *fw_name, int pas_id, void *mem_region, 49 void *mem_region, phys_addr_t mem_phys, in qcom_mdt_load() argument 58 void *mem_region, phys_addr_t mem_phys, in qcom_mdt_load_no_init() argument
|
/linux-6.1.9/drivers/virt/nitro_enclaves/ |
D | ne_misc_dev.c | 749 struct ne_user_memory_region mem_region) in ne_sanity_check_user_mem_region() argument 756 if (mem_region.memory_size & (NE_MIN_MEM_REGION_SIZE - 1)) { in ne_sanity_check_user_mem_region() 763 if (!IS_ALIGNED(mem_region.userspace_addr, NE_MIN_MEM_REGION_SIZE)) { in ne_sanity_check_user_mem_region() 770 if ((mem_region.userspace_addr & (NE_MIN_MEM_REGION_SIZE - 1)) || in ne_sanity_check_user_mem_region() 771 !access_ok((void __user *)(unsigned long)mem_region.userspace_addr, in ne_sanity_check_user_mem_region() 772 mem_region.memory_size)) { in ne_sanity_check_user_mem_region() 784 if ((userspace_addr <= mem_region.userspace_addr && in ne_sanity_check_user_mem_region() 785 mem_region.userspace_addr < (userspace_addr + memory_size)) || in ne_sanity_check_user_mem_region() 786 (mem_region.userspace_addr <= userspace_addr && in ne_sanity_check_user_mem_region() 787 (mem_region.userspace_addr + mem_region.memory_size) > userspace_addr)) { in ne_sanity_check_user_mem_region() [all …]
|
/linux-6.1.9/arch/mips/include/asm/octeon/ |
D | cvmx-pow.h | 247 uint64_t mem_region:2; member 270 uint64_t mem_region:2; 280 uint64_t mem_region:2; member 318 uint64_t mem_region:2; 328 uint64_t mem_region:2; member 362 uint64_t mem_region:2; 372 uint64_t mem_region:2; member 426 uint64_t mem_region:2; 441 uint64_t mem_region:2; member 455 uint64_t mem_region:2; [all …]
|
D | cvmx-address.h | 164 uint64_t mem_region:2; member 250 uint64_t mem_region:2; member
|
/linux-6.1.9/drivers/soc/qcom/ |
D | mdt_loader.c | 262 const char *fw_name, int pas_id, void *mem_region, in __qcom_mdt_load() argument 277 if (!fw || !mem_region || !mem_phys || !mem_size) in __qcom_mdt_load() 331 ptr = mem_region + offset; in __qcom_mdt_load() 375 const char *firmware, int pas_id, void *mem_region, in qcom_mdt_load() argument 385 return __qcom_mdt_load(dev, fw, firmware, pas_id, mem_region, mem_phys, in qcom_mdt_load() 405 void *mem_region, phys_addr_t mem_phys, in qcom_mdt_load_no_init() argument 408 return __qcom_mdt_load(dev, fw, firmware, pas_id, mem_region, mem_phys, in qcom_mdt_load_no_init()
|
/linux-6.1.9/sound/soc/sof/mediatek/mt8186/ |
D | mt8186.c | 127 struct device_node *mem_region; in platform_parse_resource() local 132 mem_region = of_parse_phandle(dev->of_node, "memory-region", 0); in platform_parse_resource() 133 if (!mem_region) { in platform_parse_resource() 138 ret = of_address_to_resource(mem_region, 0, &res); in platform_parse_resource() 139 of_node_put(mem_region); in platform_parse_resource() 153 mem_region = of_parse_phandle(dev->of_node, "memory-region", 1); in platform_parse_resource() 154 if (!mem_region) { in platform_parse_resource() 159 ret = of_address_to_resource(mem_region, 0, &res); in platform_parse_resource() 160 of_node_put(mem_region); in platform_parse_resource()
|
/linux-6.1.9/sound/soc/sof/mediatek/mt8195/ |
D | mt8195.c | 128 struct device_node *mem_region; in platform_parse_resource() local 133 mem_region = of_parse_phandle(dev->of_node, "memory-region", 0); in platform_parse_resource() 134 if (!mem_region) { in platform_parse_resource() 139 ret = of_address_to_resource(mem_region, 0, &res); in platform_parse_resource() 140 of_node_put(mem_region); in platform_parse_resource() 162 mem_region = of_parse_phandle(dev->of_node, "memory-region", 1); in platform_parse_resource() 163 if (!mem_region) { in platform_parse_resource() 168 ret = of_address_to_resource(mem_region, 0, &res); in platform_parse_resource() 169 of_node_put(mem_region); in platform_parse_resource()
|
/linux-6.1.9/drivers/net/wireless/ath/ath10k/ |
D | qmi.c | 91 ret = ath10k_qmi_map_msa_permission(qmi, &qmi->mem_region[i]); in ath10k_qmi_setup_msa_permissions() 100 ath10k_qmi_unmap_msa_permission(qmi, &qmi->mem_region[i]); in ath10k_qmi_setup_msa_permissions() 112 ath10k_qmi_unmap_msa_permission(qmi, &qmi->mem_region[i]); in ath10k_qmi_remove_msa_permission() 174 qmi->mem_region[i].addr = resp.mem_region_info[i].region_addr; in ath10k_qmi_msa_mem_info_send_sync_msg() 175 qmi->mem_region[i].size = resp.mem_region_info[i].size; in ath10k_qmi_msa_mem_info_send_sync_msg() 176 qmi->mem_region[i].secure = resp.mem_region_info[i].secure_flag; in ath10k_qmi_msa_mem_info_send_sync_msg() 179 i, &qmi->mem_region[i].addr, in ath10k_qmi_msa_mem_info_send_sync_msg() 180 qmi->mem_region[i].size, in ath10k_qmi_msa_mem_info_send_sync_msg() 181 qmi->mem_region[i].secure); in ath10k_qmi_msa_mem_info_send_sync_msg() 188 memset(&qmi->mem_region[0], 0, sizeof(qmi->mem_region[0]) * i); in ath10k_qmi_msa_mem_info_send_sync_msg()
|
D | coredump.c | 1423 const struct ath10k_mem_region *mem_region; in ath10k_coredump_get_ramdump_size() local 1432 mem_region = &hw->region_table.regions[0]; in ath10k_coredump_get_ramdump_size() 1435 size += mem_region->len; in ath10k_coredump_get_ramdump_size() 1436 mem_region++; in ath10k_coredump_get_ramdump_size()
|
D | qmi.h | 100 struct ath10k_msa_mem_info mem_region[MAX_NUM_MEMORY_REGIONS]; member
|
D | sdio.c | 2289 const struct ath10k_mem_region *mem_region, in ath10k_sdio_dump_memory_section() argument 2296 if (!mem_region || !buf) in ath10k_sdio_dump_memory_section() 2299 cur_section = &mem_region->section_table.sections[0]; in ath10k_sdio_dump_memory_section() 2301 if (mem_region->start > cur_section->start) { in ath10k_sdio_dump_memory_section() 2303 mem_region->start, cur_section->start); in ath10k_sdio_dump_memory_section() 2307 skip_size = cur_section->start - mem_region->start; in ath10k_sdio_dump_memory_section() 2329 if (++i == mem_region->section_table.size) { in ath10k_sdio_dump_memory_section()
|
D | pci.c | 1469 const struct ath10k_mem_region *mem_region, in ath10k_pci_dump_memory_section() argument 1476 if (!mem_region || !buf) in ath10k_pci_dump_memory_section() 1479 cur_section = &mem_region->section_table.sections[0]; in ath10k_pci_dump_memory_section() 1481 if (mem_region->start > cur_section->start) { in ath10k_pci_dump_memory_section() 1483 mem_region->start, cur_section->start); in ath10k_pci_dump_memory_section() 1487 skip_size = cur_section->start - mem_region->start; in ath10k_pci_dump_memory_section() 1509 if ((i + 1) == mem_region->section_table.size) { in ath10k_pci_dump_memory_section()
|
D | core.c | 2850 const struct ath10k_mem_region *tmp, *mem_region = NULL; in ath10k_core_copy_target_iram() local 2871 mem_region = tmp; in ath10k_core_copy_target_iram() 2876 if (!mem_region) in ath10k_core_copy_target_iram() 2893 len = (len < mem_region->len) ? len : mem_region->len; in ath10k_core_copy_target_iram() 2894 paddr = mem_region->start; in ath10k_core_copy_target_iram()
|
/linux-6.1.9/drivers/firmware/arm_ffa/ |
D | driver.c | 490 struct ffa_mem_region *mem_region = buffer; in ffa_setup_and_transmit() local 493 mem_region->tag = args->tag; in ffa_setup_and_transmit() 494 mem_region->flags = args->flags; in ffa_setup_and_transmit() 495 mem_region->sender_id = drv_info->vm_id; in ffa_setup_and_transmit() 496 mem_region->attributes = FFA_MEM_NORMAL | FFA_MEM_WRITE_BACK | in ffa_setup_and_transmit() 498 ep_mem_access = &mem_region->ep_mem_access[0]; in ffa_setup_and_transmit() 505 mem_region->ep_count = args->nattrs; in ffa_setup_and_transmit()
|
/linux-6.1.9/drivers/remoteproc/ |
D | qcom_wcnss.c | 97 void *mem_region; member 150 wcnss->mem_region, wcnss->mem_phys, in wcnss_load() 319 return wcnss->mem_region + offset; in wcnss_da_to_va() 515 wcnss->mem_region = devm_ioremap_wc(wcnss->dev, wcnss->mem_phys, wcnss->mem_size); in wcnss_alloc_memory_region() 516 if (!wcnss->mem_region) { in wcnss_alloc_memory_region()
|
D | qcom_q6v5_adsp.c | 100 void *mem_region; member 318 adsp->mem_region, adsp->mem_phys, in adsp_load() 437 return adsp->mem_region + offset; in adsp_da_to_va() 559 adsp->mem_region = devm_ioremap_wc(adsp->dev, in adsp_alloc_memory_region() 561 if (!adsp->mem_region) { in adsp_alloc_memory_region()
|
D | qcom_q6v5_pas.c | 80 void *mem_region; member 178 adsp->mem_region, adsp->mem_phys, adsp->mem_size, in adsp_load() 306 return adsp->mem_region + offset; in adsp_da_to_va() 458 adsp->mem_region = devm_ioremap_wc(adsp->dev, adsp->mem_phys, adsp->mem_size); in adsp_alloc_memory_region() 459 if (!adsp->mem_region) { in adsp_alloc_memory_region()
|
D | qcom_q6v5_wcss.c | 143 void *mem_region; member 750 return wcss->mem_region + offset; in q6v5_wcss_da_to_va() 759 0, wcss->mem_region, wcss->mem_phys, in q6v5_wcss_load() 893 wcss->mem_region = devm_ioremap_wc(dev, wcss->mem_phys, wcss->mem_size); in q6v5_alloc_memory_region() 894 if (!wcss->mem_region) { in q6v5_alloc_memory_region()
|
/linux-6.1.9/drivers/gpu/drm/msm/adreno/ |
D | adreno_gpu.c | 40 void *mem_region = NULL; in zap_shader_load_mdt() local 125 mem_region = memremap(mem_phys, mem_size, MEMREMAP_WC); in zap_shader_load_mdt() 126 if (!mem_region) { in zap_shader_load_mdt() 142 mem_region, mem_phys, mem_size, NULL); in zap_shader_load_mdt() 149 mem_region, mem_phys, mem_size, NULL); in zap_shader_load_mdt() 168 if (mem_region) in zap_shader_load_mdt() 169 memunmap(mem_region); in zap_shader_load_mdt()
|
/linux-6.1.9/arch/powerpc/platforms/ps3/ |
D | mm.c | 72 struct mem_region { struct 101 struct mem_region rm; 102 struct mem_region r1; 217 static int __init ps3_mm_get_repository_highmem(struct mem_region *r) in ps3_mm_get_repository_highmem() 247 static int ps3_mm_set_repository_highmem(const struct mem_region *r) in ps3_mm_set_repository_highmem() 264 static int ps3_mm_region_create(struct mem_region *r, unsigned long size) in ps3_mm_region_create() 305 static void ps3_mm_region_destroy(struct mem_region *r) in ps3_mm_region_destroy()
|
/linux-6.1.9/samples/nitro_enclaves/ |
D | ne_ioctl_sample.c | 410 struct ne_user_memory_region mem_region = { in ne_set_user_mem_region() local 417 rc = ioctl(enclave_fd, NE_SET_USER_MEMORY_REGION, &mem_region); in ne_set_user_mem_region()
|
/linux-6.1.9/sound/soc/sti/ |
D | sti_uniperif.c | 415 uni->base = devm_platform_get_and_ioremap_resource(priv->pdev, 0, &uni->mem_region); in sti_uniperiph_cpu_dai_of() 419 uni->fifo_phys_address = uni->mem_region->start + in sti_uniperiph_cpu_dai_of()
|
/linux-6.1.9/drivers/mtd/nand/raw/ |
D | stm32_fmc2_nand.c | 1885 int chip_cs, mem_region, ret, irq; in stm32_fmc2_nfc_probe() local 1917 for (chip_cs = 0, mem_region = start_region; chip_cs < FMC2_MAX_CE; in stm32_fmc2_nfc_probe() 1918 chip_cs++, mem_region += 3) { in stm32_fmc2_nfc_probe() 1922 res = platform_get_resource(pdev, IORESOURCE_MEM, mem_region); in stm32_fmc2_nfc_probe() 1929 nfc->cmd_base[chip_cs] = devm_platform_ioremap_resource(pdev, mem_region + 1); in stm32_fmc2_nfc_probe() 1933 nfc->addr_base[chip_cs] = devm_platform_ioremap_resource(pdev, mem_region + 2); in stm32_fmc2_nfc_probe()
|
/linux-6.1.9/drivers/net/ethernet/chelsio/cxgb3/ |
D | t3_hw.c | 2529 #define mem_region(adap, start, size, reg) \ macro 2579 mem_region(adap, m, (64 << 10) * 64, SG_EGR_CNTX_BADDR); in partition_mem() 2580 mem_region(adap, m, (64 << 10) * 64, SG_CQ_CONTEXT_BADDR); in partition_mem() 2583 mem_region(adap, m, pstructs * 64, TP_CMM_MM_BASE); in partition_mem() 2584 mem_region(adap, m, 64 * (pstructs / 24), TP_CMM_MM_PS_FLST_BASE); in partition_mem() 2585 mem_region(adap, m, 64 * (p->rx_num_pgs / 24), TP_CMM_MM_RX_FLST_BASE); in partition_mem() 2586 mem_region(adap, m, 64 * (p->tx_num_pgs / 24), TP_CMM_MM_TX_FLST_BASE); in partition_mem()
|