Home
last modified time | relevance | path

Searched refs:pp (Results 1 – 25 of 43) sorted by relevance

12

/arch/arm/mach-dove/
Dpcie.c40 struct pcie_port *pp; in dove_pcie_setup() local
45 pp = &pcie_port[nr]; in dove_pcie_setup()
46 pp->root_bus_nr = sys->busnr; in dove_pcie_setup()
51 orion_pcie_set_local_bus_nr(pp->base, sys->busnr); in dove_pcie_setup()
53 orion_pcie_setup(pp->base); in dove_pcie_setup()
58 snprintf(pp->io_space_name, sizeof(pp->io_space_name), in dove_pcie_setup()
59 "PCIe %d I/O", pp->index); in dove_pcie_setup()
60 pp->io_space_name[sizeof(pp->io_space_name) - 1] = 0; in dove_pcie_setup()
61 pp->res[0].name = pp->io_space_name; in dove_pcie_setup()
62 if (pp->index == 0) { in dove_pcie_setup()
[all …]
/arch/arm/mach-mv78xx0/
Dpcie.c67 struct pcie_port *pp = pcie_port + i; in mv78xx0_pcie_preinit() local
69 snprintf(pp->io_space_name, sizeof(pp->io_space_name), in mv78xx0_pcie_preinit()
70 "PCIe %d.%d I/O", pp->maj, pp->min); in mv78xx0_pcie_preinit()
71 pp->io_space_name[sizeof(pp->io_space_name) - 1] = 0; in mv78xx0_pcie_preinit()
72 pp->res[0].name = pp->io_space_name; in mv78xx0_pcie_preinit()
73 pp->res[0].start = MV78XX0_PCIE_IO_PHYS_BASE(i); in mv78xx0_pcie_preinit()
74 pp->res[0].end = pp->res[0].start + MV78XX0_PCIE_IO_SIZE - 1; in mv78xx0_pcie_preinit()
75 pp->res[0].flags = IORESOURCE_IO; in mv78xx0_pcie_preinit()
77 snprintf(pp->mem_space_name, sizeof(pp->mem_space_name), in mv78xx0_pcie_preinit()
78 "PCIe %d.%d MEM", pp->maj, pp->min); in mv78xx0_pcie_preinit()
[all …]
/arch/arm/mach-kirkwood/
Dpcie.c53 static int pcie_valid_config(struct pcie_port *pp, int bus, int dev) in pcie_valid_config() argument
60 if (bus == pp->root_bus_nr && dev == 0) in pcie_valid_config()
63 if (!orion_pcie_link_up(pp->base)) in pcie_valid_config()
66 if (bus == pp->root_bus_nr && dev != 1) in pcie_valid_config()
82 struct pcie_port *pp = bus_to_port(bus); in pcie_rd_conf() local
86 if (pcie_valid_config(pp, bus->number, PCI_SLOT(devfn)) == 0) { in pcie_rd_conf()
91 spin_lock_irqsave(&pp->conf_lock, flags); in pcie_rd_conf()
92 ret = orion_pcie_rd_conf(pp->base, bus, devfn, where, size, val); in pcie_rd_conf()
93 spin_unlock_irqrestore(&pp->conf_lock, flags); in pcie_rd_conf()
101 struct pcie_port *pp = bus_to_port(bus); in pcie_wr_conf() local
[all …]
/arch/m68k/include/asm/
Dnettel.h50 volatile unsigned short *pp; in mcf_getppdata() local
51 pp = (volatile unsigned short *) MCFSIM_PADAT; in mcf_getppdata()
52 return((unsigned int) *pp); in mcf_getppdata()
57 volatile unsigned short *pp; in mcf_setppdata() local
58 pp = (volatile unsigned short *) MCFSIM_PADAT; in mcf_setppdata()
60 *pp = ppdata; in mcf_setppdata()
89 volatile unsigned short *pp; in mcf_getppdata() local
90 pp = (volatile unsigned short *) (MCF_MBAR + MCFSIM_PBDAT); in mcf_getppdata()
91 return((unsigned int) *pp); in mcf_getppdata()
96 volatile unsigned short *pp; in mcf_setppdata() local
[all …]
/arch/arm/mach-tegra/
Dpcie.c274 struct tegra_pcie_port *pp = bus_to_port(bus->number); in tegra_pcie_read_conf() local
277 if (pp) { in tegra_pcie_read_conf()
283 addr = pp->base + (where & ~0x3); in tegra_pcie_read_conf()
304 struct tegra_pcie_port *pp = bus_to_port(bus->number); in tegra_pcie_write_conf() local
310 if (pp) { in tegra_pcie_write_conf()
314 addr = pp->base + (where & ~0x3); in tegra_pcie_write_conf()
386 struct tegra_pcie_port *pp; in tegra_pcie_setup() local
391 pp = tegra_pcie.port + nr; in tegra_pcie_setup()
392 pp->root_bus_nr = sys->busnr; in tegra_pcie_setup()
397 snprintf(pp->io_space_name, sizeof(pp->io_space_name), in tegra_pcie_setup()
[all …]
/arch/sparc/kernel/
Dof_device_64.c281 static int __init use_1to1_mapping(struct device_node *pp) in use_1to1_mapping() argument
284 if (of_find_property(pp, "ranges", NULL) != NULL) in use_1to1_mapping()
296 if (!strcmp(pp->name, "dma") || in use_1to1_mapping()
297 !strcmp(pp->name, "espdma") || in use_1to1_mapping()
298 !strcmp(pp->name, "ledma") || in use_1to1_mapping()
299 !strcmp(pp->name, "lebuffer")) in use_1to1_mapping()
306 if (!strcmp(pp->name, "pci")) in use_1to1_mapping()
355 struct device_node *pp = p_op->dev.of_node; in build_device_resources() local
367 if (use_1to1_mapping(pp)) { in build_device_resources()
377 dp = pp; in build_device_resources()
[all …]
Dleon_kernel.c257 struct property *pp; in leon_init_timers() local
273 pp = of_find_property(rootnp, "systemid", &len); in leon_init_timers()
274 if (pp) in leon_init_timers()
275 amba_system_id = *(unsigned long *)pp->value; in leon_init_timers()
284 pp = of_find_property(np, "reg", &len); in leon_init_timers()
285 if (!pp) in leon_init_timers()
287 leon3_irqctrl_regs = *(struct leon3_irqctrl_regs_map **)pp->value; in leon_init_timers()
300 pp = of_find_property(np, "ampopts", &len); in leon_init_timers()
301 if (pp) { in leon_init_timers()
302 ampopts = *(int *)pp->value; in leon_init_timers()
[all …]
Dof_device_32.c221 static int __init use_1to1_mapping(struct device_node *pp) in use_1to1_mapping() argument
224 if (of_find_property(pp, "ranges", NULL) != NULL) in use_1to1_mapping()
233 if (!strcmp(pp->name, "dma") || in use_1to1_mapping()
234 !strcmp(pp->name, "espdma") || in use_1to1_mapping()
235 !strcmp(pp->name, "ledma") || in use_1to1_mapping()
236 !strcmp(pp->name, "lebuffer")) in use_1to1_mapping()
277 struct device_node *pp = p_op->dev.of_node; in build_device_resources() local
290 if (use_1to1_mapping(pp)) { in build_device_resources()
300 dp = pp; in build_device_resources()
301 pp = dp->parent; in build_device_resources()
[all …]
Dleon_smp.c323 struct property *pp; in leon_ipi_init() local
331 pp = of_find_property(rootnp, "ipi_num", &len); in leon_ipi_init()
332 if (pp && (*(int *)pp->value)) in leon_ipi_init()
333 leon_ipi_irq = *(int *)pp->value; in leon_ipi_init()
/arch/powerpc/include/asm/
Dkvm_book3s_64.h126 unsigned long pp = ptel & (HPTE_R_PP0 | HPTE_R_PP); in hpte_is_writable() local
128 return pp != PP_RXRX && pp != PP_RXXX; in hpte_is_writable()
197 static inline bool hpte_read_permission(unsigned long pp, unsigned long key) in hpte_read_permission() argument
200 return PP_RWRX <= pp && pp <= PP_RXRX; in hpte_read_permission()
204 static inline bool hpte_write_permission(unsigned long pp, unsigned long key) in hpte_write_permission() argument
207 return pp == PP_RWRW; in hpte_write_permission()
208 return pp <= PP_RWRW; in hpte_write_permission()
Dmmu-hash32.h77 unsigned long pp:2; /* Page protection */ member
/arch/powerpc/kernel/
Dsoftemu8xx.c56 #define pp ((long)pte_val(*pte)) in print_8xx_pte() macro
59 pp>>12, /* rpn */ in print_8xx_pte()
60 (pp>>10)&3, /* pp */ in print_8xx_pte()
61 (pp>>3)&1, /* small */ in print_8xx_pte()
62 (pp>>2)&1, /* shared */ in print_8xx_pte()
63 (pp>>1)&1, /* cache inhibit */ in print_8xx_pte()
64 pp&1 /* valid */ in print_8xx_pte()
66 #undef pp in print_8xx_pte()
/arch/powerpc/platforms/powermac/
Dsetup.c108 const char *pp; in pmac_show_cpuinfo() local
126 pp = of_get_property(np, "model", NULL); in pmac_show_cpuinfo()
127 if (pp != NULL) in pmac_show_cpuinfo()
128 seq_printf(m, "%s\n", pp); in pmac_show_cpuinfo()
131 pp = of_get_property(np, "compatible", &plen); in pmac_show_cpuinfo()
132 if (pp != NULL) { in pmac_show_cpuinfo()
135 int l = strlen(pp) + 1; in pmac_show_cpuinfo()
136 seq_printf(m, " %s", pp); in pmac_show_cpuinfo()
138 pp += l; in pmac_show_cpuinfo()
170 pp = of_get_property(np, "ram-type", NULL); in pmac_show_cpuinfo()
[all …]
Dbootx_init.c100 struct bootx_dt_prop *pp = in bootx_early_getprop() local
103 if (strcmp((char *)((unsigned long)pp->name + base), in bootx_early_getprop()
105 return (void *)((unsigned long)pp->value + base); in bootx_early_getprop()
107 ppp = &pp->next; in bootx_early_getprop()
254 struct bootx_dt_prop *pp = in bootx_scan_dt_build_strings() local
257 namep = pp->name ? (char *)(base + pp->name) : NULL; in bootx_scan_dt_build_strings()
265 ppp = &pp->next; in bootx_scan_dt_build_strings()
313 struct bootx_dt_prop *pp = in bootx_scan_dt_build_struct() local
316 namep = pp->name ? (char *)(base + pp->name) : NULL; in bootx_scan_dt_build_struct()
326 pp->value ? (void *)(base + pp->value): NULL, in bootx_scan_dt_build_struct()
[all …]
Dpfunc_core.c683 struct property *pp; in pmf_add_functions() local
688 for (pp = dev->node->properties; pp != 0; pp = pp->next) { in pmf_add_functions()
690 if (strncmp(pp->name, PP_PREFIX, plen) != 0) in pmf_add_functions()
692 name = pp->name + plen; in pmf_add_functions()
693 if (strlen(name) && pp->length >= 12) in pmf_add_functions()
695 pp->value, pp->length); in pmf_add_functions()
/arch/powerpc/perf/
Dpower5+-pmu.c247 int pmc, altpmc, pp, j; in find_alternative_bdecode() local
253 pp = event & PM_PMCSEL_MSK; in find_alternative_bdecode()
255 if (bytedecode_alternatives[pmc - 1][j] == pp) { in find_alternative_bdecode()
263 if (pmc == 1 && (pp == 0x0d || pp == 0x0e)) in find_alternative_bdecode()
265 if (pmc == 3 && (pp == 0x2e || pp == 0x2f)) in find_alternative_bdecode()
269 if (pp == 0x10 || pp == 0x28) in find_alternative_bdecode()
Dpower5-pmu.c255 int pmc, altpmc, pp, j; in find_alternative_bdecode() local
261 pp = event & PM_PMCSEL_MSK; in find_alternative_bdecode()
263 if (bytedecode_alternatives[pmc - 1][j] == pp) { in find_alternative_bdecode()
/arch/powerpc/kvm/
Dbook3s_32_mmu.c182 pte->may_read = bat->pp; in kvmppc_mmu_book3s_32_xlate_bat()
183 pte->may_write = bat->pp > 1; in kvmppc_mmu_book3s_32_xlate_bat()
236 u8 pp; in kvmppc_mmu_book3s_32_xlate_pte() local
239 pp = pteg[i+1] & 3; in kvmppc_mmu_book3s_32_xlate_pte()
243 pp |= 4; in kvmppc_mmu_book3s_32_xlate_pte()
248 switch (pp) { in kvmppc_mmu_book3s_32_xlate_pte()
265 pteg[i], pteg[i+1], pp); in kvmppc_mmu_book3s_32_xlate_pte()
/arch/powerpc/platforms/pseries/
Dsetup.c292 struct paca_struct *pp; in alloc_dispatch_logs() local
302 pp = &paca[cpu]; in alloc_dispatch_logs()
311 pp->dtl_ridx = 0; in alloc_dispatch_logs()
312 pp->dispatch_log = dtl; in alloc_dispatch_logs()
313 pp->dispatch_log_end = dtl + N_DISPATCH_LOG; in alloc_dispatch_logs()
314 pp->dtl_curr = dtl; in alloc_dispatch_logs()
Dreconfig.c46 struct property *pp = np->properties; in remove_node_proc_entries() local
49 while (pp) { in remove_node_proc_entries()
50 remove_proc_entry(pp->name, np->pde); in remove_node_proc_entries()
51 pp = pp->next; in remove_node_proc_entries()
Dlpar.c62 struct paca_struct *pp; in vpa_init() local
92 pp = &paca[cpu]; in vpa_init()
93 dtl = pp->dispatch_log; in vpa_init()
95 pp->dtl_ridx = 0; in vpa_init()
96 pp->dtl_curr = dtl; in vpa_init()
/arch/powerpc/lib/
Drheap.c33 unsigned long *pp; in fixup() local
35 pp = (unsigned long *)&l->next; in fixup()
36 if (*pp >= s && *pp < e) in fixup()
37 *pp += d; in fixup()
39 pp = (unsigned long *)&l->prev; in fixup()
40 if (*pp >= s && *pp < e) in fixup()
41 *pp += d; in fixup()
/arch/microblaze/include/asm/
Dmmu.h38 unsigned long pp:2; /* Page protection */ member
/arch/mips/include/asm/octeon/
Dcvmx-pow-defs.h59 uint64_t pp:16; member
64 uint64_t pp:1; member
78 uint64_t pp:2; member
92 uint64_t pp:16; member
109 uint64_t pp:4; member
124 uint64_t pp:12; member
142 uint64_t pp:6; member
/arch/s390/include/asm/
Dsysinfo.h118 unsigned char pp:2; member

12