/linux/arch/arm64/boot/dts/ti/ |
H A D | k3-pinctrl.h | 44 #define AM62AX_IOPAD(pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode)) argument 45 #define AM62AX_MCU_IOPAD(pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode)) argument 47 #define AM62PX_IOPAD(pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode)) argument 48 #define AM62PX_MCU_IOPAD(pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode)) argument 50 #define AM62X_IOPAD(pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode)) argument 51 #define AM62X_MCU_IOPAD(pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode)) argument 53 #define AM64X_IOPAD(pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode)) argument 54 #define AM64X_MCU_IOPAD(pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode)) argument 56 #define AM65X_IOPAD(pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode)) argument 57 #define AM65X_WKUP_IOPAD(pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode)) argument [all …]
|
/linux/include/dt-bindings/pinctrl/ |
H A 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 …]
|
/linux/arch/x86/mm/ |
H A 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() 65 acpi_numa_processor_affinity_init(struct acpi_srat_cpu_affinity *pa) in acpi_numa_processor_affinity_init() argument 72 if (pa->header.length != sizeof(struct acpi_srat_cpu_affinity)) { in acpi_numa_processor_affinity_init() 76 if ((pa->flags & ACPI_SRAT_CPU_ENABLED) == 0) in acpi_numa_processor_affinity_init() 78 pxm = pa->proximity_domain_lo; in acpi_numa_processor_affinity_init() 80 pxm |= *((unsigned int*)pa->proximity_domain_hi) << 8; in acpi_numa_processor_affinity_init() [all …]
|
/linux/arch/arm/mach-omap1/ |
H A D | io.c | 75 u8 omap_readb(u32 pa) in omap_readb() argument 77 return __raw_readb(OMAP1_IO_ADDRESS(pa)); in omap_readb() 81 u16 omap_readw(u32 pa) in omap_readw() argument 83 return __raw_readw(OMAP1_IO_ADDRESS(pa)); in omap_readw() 87 u32 omap_readl(u32 pa) in omap_readl() argument 89 return __raw_readl(OMAP1_IO_ADDRESS(pa)); in omap_readl() 93 void omap_writeb(u8 v, u32 pa) in omap_writeb() argument 95 __raw_writeb(v, OMAP1_IO_ADDRESS(pa)); in omap_writeb() 99 void omap_writew(u16 v, u32 pa) in omap_writew() argument 101 __raw_writew(v, OMAP1_IO_ADDRESS(pa)); in omap_writew() [all …]
|
/linux/arch/arm64/kernel/ |
H A D | acpi_numa.c | 40 struct acpi_srat_gicc_affinity *pa; in acpi_parse_gicc_pxm() local 46 pa = (struct acpi_srat_gicc_affinity *)header; in acpi_parse_gicc_pxm() 47 if (!pa) in acpi_parse_gicc_pxm() 50 if (!(pa->flags & ACPI_SRAT_GICC_ENABLED)) in acpi_parse_gicc_pxm() 53 pxm = pa->proximity_domain; in acpi_parse_gicc_pxm() 62 cpu = get_cpu_for_acpi_id(pa->acpi_processor_uid); in acpi_parse_gicc_pxm() 81 void __init acpi_numa_gicc_affinity_init(struct acpi_srat_gicc_affinity *pa) in acpi_numa_gicc_affinity_init() argument 88 if (pa->header.length < sizeof(struct acpi_srat_gicc_affinity)) { in acpi_numa_gicc_affinity_init() 90 pa->header.length); in acpi_numa_gicc_affinity_init() 95 if (!(pa->flags & ACPI_SRAT_GICC_ENABLED)) in acpi_numa_gicc_affinity_init() [all …]
|
/linux/drivers/s390/cio/ |
H A D | vfio_ccw_cp.c | 58 static int page_array_alloc(struct page_array *pa, unsigned int len) in page_array_alloc() argument 60 if (pa->pa_nr || pa->pa_iova) in page_array_alloc() 66 pa->pa_nr = len; in page_array_alloc() 68 pa->pa_iova = kcalloc(len, sizeof(*pa->pa_iova), GFP_KERNEL); in page_array_alloc() 69 if (!pa->pa_iova) in page_array_alloc() 72 pa->pa_page = kcalloc(len, sizeof(*pa->pa_page), GFP_KERNEL); in page_array_alloc() 73 if (!pa->pa_page) { in page_array_alloc() 74 kfree(pa->pa_iova); in page_array_alloc() 91 static void page_array_unpin(struct page_array *pa, in page_array_unpin() argument 97 dma_addr_t *first = &pa->pa_iova[unpinned]; in page_array_unpin() [all …]
|
/linux/arch/riscv/kernel/ |
H A D | acpi_numa.c | 52 struct acpi_srat_rintc_affinity *pa; in acpi_parse_rintc_pxm() local 58 pa = (struct acpi_srat_rintc_affinity *)header; in acpi_parse_rintc_pxm() 59 if (!pa) in acpi_parse_rintc_pxm() 62 if (!(pa->flags & ACPI_SRAT_RINTC_ENABLED)) in acpi_parse_rintc_pxm() 65 pxm = pa->proximity_domain; in acpi_parse_rintc_pxm() 74 cpu = get_cpu_for_acpi_id(pa->acpi_processor_uid); in acpi_parse_rintc_pxm() 105 void __init acpi_numa_rintc_affinity_init(struct acpi_srat_rintc_affinity *pa) in acpi_numa_rintc_affinity_init() argument 112 if (pa->header.length < sizeof(struct acpi_srat_rintc_affinity)) { in acpi_numa_rintc_affinity_init() 113 pr_err("SRAT: Invalid SRAT header length: %d\n", pa->header.length); in acpi_numa_rintc_affinity_init() 118 if (!(pa->flags & ACPI_SRAT_RINTC_ENABLED)) in acpi_numa_rintc_affinity_init() [all …]
|
/linux/include/linux/soc/ti/ |
H A D | omap1-io.h | 12 extern u8 omap_readb(u32 pa); 13 extern u16 omap_readw(u32 pa); 14 extern u32 omap_readl(u32 pa); 15 extern void omap_writeb(u8 v, u32 pa); 16 extern void omap_writew(u16 v, u32 pa); 17 extern void omap_writel(u32 v, u32 pa); 19 static inline u8 omap_readb(u32 pa) { return 0; } in omap_readb() argument 20 static inline u16 omap_readw(u32 pa) { return 0; } in omap_readw() argument 21 static inline u32 omap_readl(u32 pa) { return 0; } in omap_readl() argument 22 static inline void omap_writeb(u8 v, u32 pa) { } in omap_writeb() argument [all …]
|
/linux/arch/s390/mm/ |
H A 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() 105 struct cmm_page_array *pa; in __cmm_free_pages() local [all …]
|
/linux/sound/pci/asihpi/ |
H A 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 …]
|
/linux/fs/ext4/ |
H A D | mballoc.c | 764 struct ext4_prealloc_space *pa; in __mb_check_buddy() local 765 pa = list_entry(cur, struct ext4_prealloc_space, pa_group_list); in __mb_check_buddy() 766 ext4_get_group_no_and_offset(sb, pa->pa_pstart, &groupnr, &k); in __mb_check_buddy() 768 for (i = 0; i < pa->pa_len; i++) in __mb_check_buddy() 3757 struct ext4_prealloc_space *pa; in ext4_mb_cleanup_pa() local 3762 pa = list_entry(cur, struct ext4_prealloc_space, pa_group_list); in ext4_mb_cleanup_pa() 3763 list_del(&pa->pa_group_list); in ext4_mb_cleanup_pa() 3765 kmem_cache_free(ext4_pspace_cachep, pa); in ext4_mb_cleanup_pa() 4633 struct ext4_prealloc_space *pa = ac->ac_pa; in ext4_discard_allocated_blocks() local 4637 if (pa == NULL) { in ext4_discard_allocated_blocks() [all …]
|
/linux/drivers/gpu/drm/amd/amdgpu/ |
H A D | umc_v6_7.h | 60 #define CHANNEL_HASH(channel_idx, pa) (((channel_idx) >> 4) ^ \ argument 61 (((pa) >> 20) & 0x1ULL & adev->df.hash_status.hash_64k) ^ \ 62 (((pa) >> 25) & 0x1ULL & adev->df.hash_status.hash_2m) ^ \ 63 (((pa) >> 34) & 0x1ULL & adev->df.hash_status.hash_1g)) 64 #define SET_CHANNEL_HASH(channel_idx, pa) do { \ argument 65 (pa) &= ~(0x1ULL << UMC_V6_7_PA_CH4_BIT); \ 66 (pa) |= (CHANNEL_HASH(channel_idx, pa) << UMC_V6_7_PA_CH4_BIT); \
|
/linux/arch/arm/mach-omap2/ |
H A 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
|
/linux/arch/x86/kernel/ |
H A D | head_32.S | 32 #define pa(X) ((X) - __PAGE_OFFSET) macro 66 movl pa(initial_stack),%ecx 71 lgdt pa(boot_gdt_descr) 85 movl $pa(__bss_start),%edi 86 movl $pa(__bss_stop),%ecx 98 movl $pa(boot_params),%edi 103 movl pa(boot_params) + NEW_CL_POINTER,%esi 106 movl $pa(boot_command_line),%edi 115 movl %eax, pa(olpc_ofw_pgd) 122 movl $pa(initial_pg_fixmap)+PDE_IDENT_ATTR,%eax [all …]
|
/linux/arch/mips/lib/ |
H A D | dump_tlb.c | 69 unsigned long long entrylo0, entrylo1, pa; in dump_tlb() local 150 pa = entrylo0 & ~(MIPS_ENTRYLO_RI | MIPS_ENTRYLO_XI); in dump_tlb() 152 pa |= (unsigned long long)readx_c0_entrylo0() << 30; in dump_tlb() 153 pa = (pa << 6) & PAGE_MASK; in dump_tlb() 160 pwidth, pa, c0, in dump_tlb() 165 pa = entrylo1 & ~(MIPS_ENTRYLO_RI | MIPS_ENTRYLO_XI); in dump_tlb() 167 pa |= (unsigned long long)readx_c0_entrylo1() << 30; in dump_tlb() 168 pa = (pa << 6) & PAGE_MASK; in dump_tlb() 174 pwidth, pa, c1, in dump_tlb()
|
/linux/arch/loongarch/lib/ |
H A D | dump_tlb.c | 31 unsigned long long entrylo0, entrylo1, pa; in dump_tlb() local 76 pa = entrylo0 & ~(ENTRYLO_NR | ENTRYLO_NX); in dump_tlb() 77 pa = pa & PAGE_MASK; in dump_tlb() 83 pwidth, pa, c0, in dump_tlb() 89 pa = entrylo1 & ~(ENTRYLO_NR | ENTRYLO_NX); in dump_tlb() 90 pa = pa & PAGE_MASK; in dump_tlb() 95 pwidth, pa, c1, in dump_tlb()
|
/linux/fs/ |
H A D | posix_acl.c | 238 const struct posix_acl_entry *pa, *pe; in posix_acl_valid() local 242 FOREACH_ACL_ENTRY(pa, acl, pe) { in posix_acl_valid() 243 if (pa->e_perm & ~(ACL_READ|ACL_WRITE|ACL_EXECUTE)) in posix_acl_valid() 245 switch (pa->e_tag) { in posix_acl_valid() 256 if (!kuid_has_mapping(user_ns, pa->e_uid)) in posix_acl_valid() 271 if (!kgid_has_mapping(user_ns, pa->e_gid)) in posix_acl_valid() 307 const struct posix_acl_entry *pa, *pe; in posix_acl_equiv_mode() local 317 FOREACH_ACL_ENTRY(pa, acl, pe) { in posix_acl_equiv_mode() 318 switch (pa->e_tag) { in posix_acl_equiv_mode() 320 mode |= (pa->e_perm & S_IRWXO) << 6; in posix_acl_equiv_mode() [all …]
|
/linux/drivers/net/fddi/skfp/ |
H A D | pmf.c | 31 static int smt_set_para(struct s_smc *smc, struct smt_para *pa, int index, 308 struct smt_para *pa ; in smt_build_pmf_response() local 365 pa = (struct smt_para *) (req + 1) ; in smt_build_pmf_response() 370 if (((u_short)len < pa->p_len + PARA_LEN) || (pa->p_len & 3)) { in smt_build_pmf_response() 375 if (((range = (pa->p_type & 0xf000)) == 0x2000) || in smt_build_pmf_response() 380 index = *((u_char *)pa + PARA_LEN + 3) ;/* index */ in smt_build_pmf_response() 382 if (!set && (pa->p_len != 4)) { in smt_build_pmf_response() 411 if (!set && (pa->p_len != 0)) { in smt_build_pmf_response() 423 pt = smt_get_ptab(pa->p_type) ; in smt_build_pmf_response() 438 else if (pa->p_type != SMT_P_AUTHOR && in smt_build_pmf_response() [all …]
|
/linux/drivers/net/ethernet/amd/xgbe/ |
H A 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 …]
|
/linux/arch/parisc/include/asm/ |
H A D | special_insns.h | 6 unsigned long pa; \ 13 : "=&r" (pa) \ 17 pa; \ 21 unsigned long pa; \ 28 : "=&r" (pa) \ 32 pa; \
|
/linux/drivers/dio/ |
H A D | dio.c | 128 unsigned long pa; in dio_find() local 133 pa = dio_scodetophysaddr(scode); in dio_find() 135 if (!pa) in dio_find() 139 va = (void *)(pa + DIO_VIRADDRBASE); in dio_find() 141 va = ioremap(pa, PAGE_SIZE); in dio_find() 201 unsigned long pa; in dio_init() local 206 pa = dio_scodetophysaddr(scode); in dio_init() 208 if (!pa) in dio_init() 212 va = (void *)(pa + DIO_VIRADDRBASE); in dio_init() 214 va = ioremap(pa, PAGE_SIZE); in dio_init() [all …]
|
/linux/arch/loongarch/kernel/ |
H A D | acpi.c | 277 acpi_numa_processor_affinity_init(struct acpi_srat_cpu_affinity *pa) in acpi_numa_processor_affinity_init() argument 283 if (pa->header.length != sizeof(struct acpi_srat_cpu_affinity)) { in acpi_numa_processor_affinity_init() 287 if ((pa->flags & ACPI_SRAT_CPU_ENABLED) == 0) in acpi_numa_processor_affinity_init() 289 pxm = pa->proximity_domain_lo; in acpi_numa_processor_affinity_init() 291 pxm |= (pa->proximity_domain_hi[0] << 8); in acpi_numa_processor_affinity_init() 292 pxm |= (pa->proximity_domain_hi[1] << 16); in acpi_numa_processor_affinity_init() 293 pxm |= (pa->proximity_domain_hi[2] << 24); in acpi_numa_processor_affinity_init() 302 if (pa->apic_id >= CONFIG_NR_CPUS) { in acpi_numa_processor_affinity_init() 304 pxm, pa->apic_id, node); in acpi_numa_processor_affinity_init() 308 early_numa_add_cpu(pa->apic_id, node); in acpi_numa_processor_affinity_init() [all …]
|
/linux/drivers/net/ethernet/synopsys/ |
H A 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 …]
|
/linux/lib/ |
H A 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()
|
/linux/arch/mips/kernel/ |
H A D | spram.c | 120 unsigned int firstpa = 0, lastpa = 0, pa = 0; in probe_spram() local 144 if ((pa == firstpa && size == firstsize) || in probe_spram() 145 (pa == lastpa && size == lastsize)) in probe_spram() 160 pa = tag0 & SPRAM_TAG0_PA_MASK; in probe_spram() 164 firstpa = pa; in probe_spram() 168 lastpa = pa; in probe_spram() 172 unsigned int *vp = (unsigned int *)(CKSEG1 | pa); in probe_spram() 191 type, i, pa, size, enabled ? ",enabled" : ""); in probe_spram()
|