/kernel/linux/linux-5.10/include/dt-bindings/pinctrl/ |
D | omap.h | 57 #define OMAP_IOPAD_OFFSET(pa, offset) (((pa) & 0xffff) - (offset)) argument 59 #define OMAP2420_CORE_IOPAD(pa, val) OMAP_IOPAD_OFFSET((pa), 0x0030) (val) argument 60 #define OMAP2430_CORE_IOPAD(pa, val) OMAP_IOPAD_OFFSET((pa), 0x2030) (val) argument 61 #define OMAP3_CORE1_IOPAD(pa, val) OMAP_IOPAD_OFFSET((pa), 0x2030) (val) argument 62 #define OMAP3430_CORE2_IOPAD(pa, val) OMAP_IOPAD_OFFSET((pa), 0x25d8) (val) argument 63 #define OMAP3630_CORE2_IOPAD(pa, val) OMAP_IOPAD_OFFSET((pa), 0x25a0) (val) argument 64 #define OMAP3_WKUP_IOPAD(pa, val) OMAP_IOPAD_OFFSET((pa), 0x2a00) (val) argument 65 #define DM814X_IOPAD(pa, val) OMAP_IOPAD_OFFSET((pa), 0x0800) (val) argument 66 #define DM816X_IOPAD(pa, val) OMAP_IOPAD_OFFSET((pa), 0x0800) (val) argument 67 #define AM33XX_IOPAD(pa, val) OMAP_IOPAD_OFFSET((pa), 0x0800) (val) (0) argument [all …]
|
D | k3.h | 32 #define AM65X_IOPAD(pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode)) argument 33 #define AM65X_WKUP_IOPAD(pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode)) argument 35 #define J721E_IOPAD(pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode)) argument 36 #define J721E_WKUP_IOPAD(pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode)) argument
|
/kernel/linux/linux-5.10/drivers/s390/cio/ |
D | vfio_ccw_cp.c | 59 static int pfn_array_alloc(struct pfn_array *pa, u64 iova, unsigned int len) in pfn_array_alloc() argument 63 if (pa->pa_nr || pa->pa_iova_pfn) in pfn_array_alloc() 66 pa->pa_iova = iova; in pfn_array_alloc() 68 pa->pa_nr = ((iova & ~PAGE_MASK) + len + (PAGE_SIZE - 1)) >> PAGE_SHIFT; in pfn_array_alloc() 69 if (!pa->pa_nr) in pfn_array_alloc() 72 pa->pa_iova_pfn = kcalloc(pa->pa_nr, in pfn_array_alloc() 73 sizeof(*pa->pa_iova_pfn) + in pfn_array_alloc() 74 sizeof(*pa->pa_pfn), in pfn_array_alloc() 76 if (unlikely(!pa->pa_iova_pfn)) { in pfn_array_alloc() 77 pa->pa_nr = 0; in pfn_array_alloc() [all …]
|
/kernel/liteos_a/kernel/base/vm/ |
D | los_vm_page.c | 44 STATIC VOID OsVmPageInit(LosVmPage *page, paddr_t pa, UINT8 segID) in OsVmPageInit() argument 49 page->physAddr = pa; in OsVmPageInit() 63 #define VMPAGEINIT(page, pa, segID) do { \ argument 64 OsVmPageInit(page, pa, segID); \ 66 (pa) += PAGE_SIZE; \ 73 paddr_t pa; in OsVmPageStartup() local 99 for (page = seg->pageBase, pa = seg->start; count > 0; count--) { in OsVmPageStartup() 101 VMPAGEINIT(page, pa, segID); in OsVmPageStartup() 102 VMPAGEINIT(page, pa, segID); in OsVmPageStartup() 103 VMPAGEINIT(page, pa, segID); in OsVmPageStartup() [all …]
|
/kernel/linux/linux-5.10/arch/x86/mm/ |
D | srat.c | 28 acpi_numa_x2apic_affinity_init(struct acpi_srat_x2apic_cpu_affinity *pa) in acpi_numa_x2apic_affinity_init() argument 35 if (pa->header.length < sizeof(struct acpi_srat_x2apic_cpu_affinity)) { in acpi_numa_x2apic_affinity_init() 39 if ((pa->flags & ACPI_SRAT_CPU_ENABLED) == 0) in acpi_numa_x2apic_affinity_init() 41 pxm = pa->proximity_domain; in acpi_numa_x2apic_affinity_init() 42 apic_id = pa->apic_id; in acpi_numa_x2apic_affinity_init() 67 acpi_numa_processor_affinity_init(struct acpi_srat_cpu_affinity *pa) in acpi_numa_processor_affinity_init() argument 74 if (pa->header.length != sizeof(struct acpi_srat_cpu_affinity)) { in acpi_numa_processor_affinity_init() 78 if ((pa->flags & ACPI_SRAT_CPU_ENABLED) == 0) in acpi_numa_processor_affinity_init() 80 pxm = pa->proximity_domain_lo; in acpi_numa_processor_affinity_init() 82 pxm |= *((unsigned int*)pa->proximity_domain_hi) << 8; in acpi_numa_processor_affinity_init() [all …]
|
/kernel/linux/linux-5.10/arch/arm64/kernel/ |
D | acpi_numa.c | 51 struct acpi_srat_gicc_affinity *pa; in acpi_parse_gicc_pxm() local 57 pa = (struct acpi_srat_gicc_affinity *)header; in acpi_parse_gicc_pxm() 58 if (!pa) in acpi_parse_gicc_pxm() 61 if (!(pa->flags & ACPI_SRAT_GICC_ENABLED)) in acpi_parse_gicc_pxm() 64 pxm = pa->proximity_domain; in acpi_parse_gicc_pxm() 73 cpu = get_cpu_for_acpi_id(pa->acpi_processor_uid); in acpi_parse_gicc_pxm() 92 void __init acpi_numa_gicc_affinity_init(struct acpi_srat_gicc_affinity *pa) in acpi_numa_gicc_affinity_init() argument 99 if (pa->header.length < sizeof(struct acpi_srat_gicc_affinity)) { in acpi_numa_gicc_affinity_init() 101 pa->header.length); in acpi_numa_gicc_affinity_init() 106 if (!(pa->flags & ACPI_SRAT_GICC_ENABLED)) in acpi_numa_gicc_affinity_init() [all …]
|
/kernel/linux/linux-5.10/arch/arm/mach-omap1/ |
D | io.c | 145 u8 omap_readb(u32 pa) in omap_readb() argument 147 return __raw_readb(OMAP1_IO_ADDRESS(pa)); in omap_readb() 151 u16 omap_readw(u32 pa) in omap_readw() argument 153 return __raw_readw(OMAP1_IO_ADDRESS(pa)); in omap_readw() 157 u32 omap_readl(u32 pa) in omap_readl() argument 159 return __raw_readl(OMAP1_IO_ADDRESS(pa)); in omap_readl() 163 void omap_writeb(u8 v, u32 pa) in omap_writeb() argument 165 __raw_writeb(v, OMAP1_IO_ADDRESS(pa)); in omap_writeb() 169 void omap_writew(u16 v, u32 pa) in omap_writew() argument 171 __raw_writew(v, OMAP1_IO_ADDRESS(pa)); in omap_writew() [all …]
|
/kernel/linux/linux-5.10/fs/ext4/ |
D | mballoc.c | 689 struct ext4_prealloc_space *pa; in __mb_check_buddy() local 690 pa = list_entry(cur, struct ext4_prealloc_space, pa_group_list); in __mb_check_buddy() 691 ext4_get_group_no_and_offset(sb, pa->pa_pstart, &groupnr, &k); in __mb_check_buddy() 693 for (i = 0; i < pa->pa_len; i++) in __mb_check_buddy() 2949 struct ext4_prealloc_space *pa; in ext4_mb_cleanup_pa() local 2954 pa = list_entry(cur, struct ext4_prealloc_space, pa_group_list); in ext4_mb_cleanup_pa() 2955 list_del(&pa->pa_group_list); in ext4_mb_cleanup_pa() 2957 kmem_cache_free(ext4_pspace_cachep, pa); in ext4_mb_cleanup_pa() 3422 struct ext4_prealloc_space *pa; in ext4_mb_normalize_request() local 3516 list_for_each_entry_rcu(pa, &ei->i_prealloc_list, pa_inode_list) { in ext4_mb_normalize_request() [all …]
|
/kernel/linux/linux-5.10/arch/s390/mm/ |
D | cmm.c | 65 struct cmm_page_array *pa, *npa; in cmm_alloc_pages() local 73 pa = *list; in cmm_alloc_pages() 74 if (!pa || pa->index >= CMM_NR_PAGES) { in cmm_alloc_pages() 84 pa = *list; in cmm_alloc_pages() 85 if (!pa || pa->index >= CMM_NR_PAGES) { in cmm_alloc_pages() 86 npa->next = pa; in cmm_alloc_pages() 88 pa = npa; in cmm_alloc_pages() 89 *list = pa; in cmm_alloc_pages() 94 pa->pages[pa->index++] = addr; in cmm_alloc_pages() 104 struct cmm_page_array *pa; in cmm_free_pages() local [all …]
|
/kernel/linux/linux-5.10/arch/riscv/mm/ |
D | init.c | 36 pte_t *(*get_pte_virt)(phys_addr_t pa); 39 pmd_t *(*get_pmd_virt)(phys_addr_t pa); 243 static inline pte_t *__init get_pte_virt_early(phys_addr_t pa) in get_pte_virt_early() argument 245 return (pte_t *)((uintptr_t)pa); in get_pte_virt_early() 248 static inline pte_t *__init get_pte_virt_fixmap(phys_addr_t pa) in get_pte_virt_fixmap() argument 251 return (pte_t *)set_fixmap_offset(FIX_PTE, pa); in get_pte_virt_fixmap() 254 static inline pte_t *get_pte_virt_late(phys_addr_t pa) in get_pte_virt_late() argument 256 return (pte_t *) __va(pa); in get_pte_virt_late() 284 uintptr_t va, phys_addr_t pa, in create_pte_mapping() argument 292 ptep[pte_idx] = pfn_pte(PFN_DOWN(pa), prot); in create_pte_mapping() [all …]
|
/kernel/linux/linux-5.10/sound/pci/asihpi/ |
D | hpioctl.c | 180 struct hpi_adapter *pa = NULL; in asihpi_hpi_ioctl() local 183 pa = &adapters[array_index_nospec(hm->h.adapter_index, in asihpi_hpi_ioctl() 186 if (!pa || !pa->adapter || !pa->adapter->type) { in asihpi_hpi_ioctl() 199 if (mutex_lock_interruptible(&pa->mutex)) { in asihpi_hpi_ioctl() 216 if (pa->buffer_size < size) { in asihpi_hpi_ioctl() 221 pa->buffer_size, size); in asihpi_hpi_ioctl() 222 if (pa->p_buffer) { in asihpi_hpi_ioctl() 223 pa->buffer_size = 0; in asihpi_hpi_ioctl() 224 vfree(pa->p_buffer); in asihpi_hpi_ioctl() 226 pa->p_buffer = vmalloc(size); in asihpi_hpi_ioctl() [all …]
|
/kernel/linux/linux-5.10/arch/arm/mach-omap2/ |
D | iomap.h | 34 #define OMAP2_L3_IO_ADDRESS(pa) IOMEM((pa) + OMAP2_L3_IO_OFFSET) /* L3 */ argument 37 #define OMAP2_L4_IO_ADDRESS(pa) IOMEM((pa) + OMAP2_L4_IO_OFFSET) /* L4 */ argument 40 #define OMAP4_L3_IO_ADDRESS(pa) IOMEM((pa) + OMAP4_L3_IO_OFFSET) /* L3 */ argument 43 #define AM33XX_L4_WK_IO_ADDRESS(pa) IOMEM((pa) + AM33XX_L4_WK_IO_OFFSET) argument 46 #define OMAP4_L3_PER_IO_ADDRESS(pa) IOMEM((pa) + OMAP4_L3_PER_IO_OFFSET) argument 49 #define OMAP2_EMU_IO_ADDRESS(pa) IOMEM((pa) + OMAP2_EMU_IO_OFFSET) argument
|
/kernel/linux/linux-5.10/fs/ |
D | posix_acl.c | 212 const struct posix_acl_entry *pa, *pe; in posix_acl_valid() local 216 FOREACH_ACL_ENTRY(pa, acl, pe) { in posix_acl_valid() 217 if (pa->e_perm & ~(ACL_READ|ACL_WRITE|ACL_EXECUTE)) in posix_acl_valid() 219 switch (pa->e_tag) { in posix_acl_valid() 230 if (!kuid_has_mapping(user_ns, pa->e_uid)) in posix_acl_valid() 245 if (!kgid_has_mapping(user_ns, pa->e_gid)) in posix_acl_valid() 281 const struct posix_acl_entry *pa, *pe; in posix_acl_equiv_mode() local 291 FOREACH_ACL_ENTRY(pa, acl, pe) { in posix_acl_equiv_mode() 292 switch (pa->e_tag) { in posix_acl_equiv_mode() 294 mode |= (pa->e_perm & S_IRWXO) << 6; in posix_acl_equiv_mode() [all …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/realtek/ |
D | r8169_firmware.c | 46 struct rtl_fw_phy_action *pa = &rtl_fw->phy_action; in rtl_fw_format_ok() local 73 pa->code = (__le32 *)(fw->data + start); in rtl_fw_format_ok() 74 pa->size = size; in rtl_fw_format_ok() 81 pa->code = (__le32 *)fw->data; in rtl_fw_format_ok() 82 pa->size = fw->size / FW_OPCODE_SIZE; in rtl_fw_format_ok() 90 struct rtl_fw_phy_action *pa = &rtl_fw->phy_action; in rtl_fw_data_ok() local 93 for (index = 0; index < pa->size; index++) { in rtl_fw_data_ok() 94 u32 action = le32_to_cpu(pa->code[index]); in rtl_fw_data_ok() 118 if (index + 2 >= pa->size) in rtl_fw_data_ok() 124 if (index + 1 + regno >= pa->size) in rtl_fw_data_ok() [all …]
|
/kernel/linux/linux-5.10/arch/mips/lib/ |
D | dump_tlb.c | 77 unsigned long long entrylo0, entrylo1, pa; in dump_tlb() local 158 pa = entrylo0 & ~(MIPS_ENTRYLO_RI | MIPS_ENTRYLO_XI); in dump_tlb() 160 pa |= (unsigned long long)readx_c0_entrylo0() << 30; in dump_tlb() 161 pa = (pa << 6) & PAGE_MASK; in dump_tlb() 168 pwidth, pa, c0, in dump_tlb() 173 pa = entrylo1 & ~(MIPS_ENTRYLO_RI | MIPS_ENTRYLO_XI); in dump_tlb() 175 pa |= (unsigned long long)readx_c0_entrylo1() << 30; in dump_tlb() 176 pa = (pa << 6) & PAGE_MASK; in dump_tlb() 182 pwidth, pa, c1, in dump_tlb()
|
/kernel/linux/linux-5.10/arch/x86/kernel/ |
D | head_32.S | 31 #define pa(X) ((X) - __PAGE_OFFSET) macro 68 movl pa(initial_stack),%ecx 73 lgdt pa(boot_gdt_descr) 87 movl $pa(__bss_start),%edi 88 movl $pa(__bss_stop),%ecx 100 movl $pa(boot_params),%edi 105 movl pa(boot_params) + NEW_CL_POINTER,%esi 108 movl $pa(boot_command_line),%edi 117 movl %eax, pa(olpc_ofw_pgd) 129 movl $pa(initial_pg_fixmap)+PDE_IDENT_ATTR,%eax [all …]
|
/kernel/linux/linux-5.10/arch/parisc/include/asm/ |
D | special_insns.h | 6 unsigned long pa; \ 12 : "=&r" (pa) \ 16 pa; \ 20 unsigned long pa; \ 26 : "=&r" (pa) \ 30 pa; \
|
/kernel/linux/linux-5.10/drivers/net/fddi/skfp/ |
D | pmf.c | 35 static int smt_set_para(struct s_smc *smc, struct smt_para *pa, int index, 312 struct smt_para *pa ; in smt_build_pmf_response() local 369 pa = (struct smt_para *) (req + 1) ; in smt_build_pmf_response() 374 if (((u_short)len < pa->p_len + PARA_LEN) || (pa->p_len & 3)) { in smt_build_pmf_response() 379 if (((range = (pa->p_type & 0xf000)) == 0x2000) || in smt_build_pmf_response() 384 index = *((u_char *)pa + PARA_LEN + 3) ;/* index */ in smt_build_pmf_response() 386 if (!set && (pa->p_len != 4)) { in smt_build_pmf_response() 415 if (!set && (pa->p_len != 0)) { in smt_build_pmf_response() 427 pt = smt_get_ptab(pa->p_type) ; in smt_build_pmf_response() 442 else if (pa->p_type != SMT_P_AUTHOR && in smt_build_pmf_response() [all …]
|
/kernel/linux/linux-5.10/fs/nfsd/ |
D | nfs4acl.c | 191 struct posix_acl_entry *pa, *pe; in summarize_posix_acl() local 203 FOREACH_ACL_ENTRY(pa, acl, pe) { in summarize_posix_acl() 204 switch (pa->e_tag) { in summarize_posix_acl() 206 pas->owner = pa->e_perm; in summarize_posix_acl() 209 pas->group = pa->e_perm; in summarize_posix_acl() 212 pas->users |= pa->e_perm; in summarize_posix_acl() 215 pas->groups |= pa->e_perm; in summarize_posix_acl() 218 pas->other = pa->e_perm; in summarize_posix_acl() 221 pas->mask = pa->e_perm; in summarize_posix_acl() 236 struct posix_acl_entry *pa, *group_owner_entry; in _posix_to_nfsv4_one() local [all …]
|
/kernel/linux/linux-5.10/drivers/dio/ |
D | dio.c | 123 unsigned long pa; in dio_find() local 128 pa = dio_scodetophysaddr(scode); in dio_find() 130 if (!pa) in dio_find() 134 va = (void *)(pa + DIO_VIRADDRBASE); in dio_find() 136 va = ioremap(pa, PAGE_SIZE); in dio_find() 197 unsigned long pa; in dio_init() local 202 pa = dio_scodetophysaddr(scode); in dio_init() 204 if (!pa) in dio_init() 208 va = (void *)(pa + DIO_VIRADDRBASE); in dio_init() 210 va = ioremap(pa, PAGE_SIZE); in dio_init() [all …]
|
/kernel/linux/linux-5.10/lib/ |
D | test_debug_virtual.c | 24 phys_addr_t pa; in test_debug_virtual_init() local 28 pa = virt_to_phys(va); in test_debug_virtual_init() 30 pr_info("PA: %pa for VA: 0x%lx\n", &pa, (unsigned long)va); in test_debug_virtual_init() 36 pa = virt_to_phys(foo); in test_debug_virtual_init() 38 pr_info("PA: %pa for VA: 0x%lx\n", &pa, (unsigned long)va); in test_debug_virtual_init()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/amd/xgbe/ |
D | xgbe-desc.c | 286 struct xgbe_page_alloc *pa, int alloc_order, in xgbe_alloc_pages() argument 324 pa->pages = pages; in xgbe_alloc_pages() 325 pa->pages_len = PAGE_SIZE << order; in xgbe_alloc_pages() 326 pa->pages_offset = 0; in xgbe_alloc_pages() 327 pa->pages_dma = pages_dma; in xgbe_alloc_pages() 333 struct xgbe_page_alloc *pa, in xgbe_set_buffer_data() argument 336 get_page(pa->pages); in xgbe_set_buffer_data() 337 bd->pa = *pa; in xgbe_set_buffer_data() 339 bd->dma_base = pa->pages_dma; in xgbe_set_buffer_data() 340 bd->dma_off = pa->pages_offset; in xgbe_set_buffer_data() [all …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/synopsys/ |
D | dwc-xlgmac-desc.c | 41 if (desc_data->rx.hdr.pa.pages) in xlgmac_unmap_desc_data() 42 put_page(desc_data->rx.hdr.pa.pages); in xlgmac_unmap_desc_data() 51 if (desc_data->rx.buf.pa.pages) in xlgmac_unmap_desc_data() 52 put_page(desc_data->rx.buf.pa.pages); in xlgmac_unmap_desc_data() 331 struct xlgmac_page_alloc *pa, in xlgmac_alloc_pages() argument 357 pa->pages = pages; in xlgmac_alloc_pages() 358 pa->pages_len = PAGE_SIZE << order; in xlgmac_alloc_pages() 359 pa->pages_offset = 0; in xlgmac_alloc_pages() 360 pa->pages_dma = pages_dma; in xlgmac_alloc_pages() 366 struct xlgmac_page_alloc *pa, in xlgmac_set_buffer_data() argument [all …]
|
/kernel/linux/linux-5.10/arch/arm/mach-omap1/include/mach/ |
D | hardware.h | 47 extern u8 omap_readb(u32 pa); 48 extern u16 omap_readw(u32 pa); 49 extern u32 omap_readl(u32 pa); 50 extern void omap_writeb(u8 v, u32 pa); 51 extern void omap_writew(u16 v, u32 pa); 52 extern void omap_writel(u32 v, u32 pa); 76 #define OMAP1_IO_ADDRESS(pa) IOMEM((pa) - OMAP1_IO_OFFSET) argument
|
/kernel/linux/linux-5.10/arch/mips/kernel/ |
D | spram.c | 119 unsigned int firstpa = 0, lastpa = 0, pa = 0; in probe_spram() local 143 if ((pa == firstpa && size == firstsize) || in probe_spram() 144 (pa == lastpa && size == lastsize)) in probe_spram() 159 pa = tag0 & SPRAM_TAG0_PA_MASK; in probe_spram() 163 firstpa = pa; in probe_spram() 167 lastpa = pa; in probe_spram() 171 unsigned int *vp = (unsigned int *)(CKSEG1 | pa); in probe_spram() 190 type, i, pa, size, enabled ? ",enabled" : ""); in probe_spram()
|