type stringclasses 5
values | content stringlengths 9 163k |
|---|---|
includes | #include <linux/seq_file.h> |
includes | #include <linux/screen_info.h> |
includes | #include <linux/of_platform.h> |
includes | #include <linux/init.h> |
includes | #include <linux/kexec.h> |
includes | #include <linux/of_fdt.h> |
includes | #include <linux/cpu.h> |
includes | #include <linux/interrupt.h> |
includes | #include <linux/smp.h> |
includes | #include <linux/proc_fs.h> |
includes | #include <linux/memblock.h> |
includes | #include <linux/bug.h> |
includes | #include <linux/compiler.h> |
includes | #include <linux/sort.h> |
includes |
#include <asm/unified.h> |
includes | #include <asm/cp15.h> |
includes | #include <asm/cpu.h> |
includes | #include <asm/cputype.h> |
includes | #include <asm/elf.h> |
includes | #include <asm/procinfo.h> |
includes | #include <asm/sections.h> |
includes | #include <asm/setup.h> |
includes | #include <asm/smp_plat.h> |
includes | #include <asm/mach-types.h> |
includes | #include <asm/cacheflush.h> |
includes | #include <asm/cachetype.h> |
includes | #include <asm/tlbflush.h> |
includes |
#include <asm/prom.h> |
includes | #include <asm/mach/arch.h> |
includes | #include <asm/mach/irq.h> |
includes | #include <asm/mach/time.h> |
includes | #include <asm/system_info.h> |
includes | #include <asm/system_misc.h> |
includes | #include <asm/traps.h> |
includes | #include <asm/unwind.h> |
includes | #include <asm/memblock.h> |
includes | #include <asm/virt.h> |
defines | #define ENDIANNESS ((char)endian_test.l) |
defines |
#define video_ram mem_res[0] |
defines | #define kernel_code mem_res[1] |
defines | #define kernel_data mem_res[2] |
defines |
#define lp0 io_res[0] |
defines | #define lp1 io_res[1] |
defines | #define lp2 io_res[2] |
defines | #define PLC "r" |
defines | #define PLC "I" |
functions | __init fpe_setup(char *line)
{
memcpy(fpe_type, line, 8);
return 1;
} |
functions | int __get_cpu_architecture(void)
{
int cpu_arch;
if ((read_cpuid_id() & 0x0008f000) == 0) {
cpu_arch = CPU_ARCH_UNKNOWN;
} |
functions | __pure cpu_architecture(void)
{
BUG_ON(__cpu_architecture == CPU_ARCH_UNKNOWN);
return __cpu_architecture;
} |
functions | int cpu_has_aliasing_icache(unsigned int arch)
{
int aliasing_icache;
unsigned int id_reg, num_sets, line_size;
/* PIPT caches never alias. */
if (icache_is_pipt())
return 0;
/* arch specifies the register format */
switch (arch) {
case CPU_ARCH_ARMv7:
asm("mcr p15, 2, %0, c0, c0, 0 @ set CSSELR"
: /... |
functions | __init cacheid_init(void)
{
unsigned int arch = cpu_architecture();
if (arch >= CPU_ARCH_ARMv6) {
unsigned int cachetype = read_cpuid_cachetype();
if ((cachetype & (7 << 29)) == 4 << 29) {
/* ARMv7 register format */
arch = CPU_ARCH_ARMv7;
cacheid = CACHEID_VIPT_NONALIASING;
switch (cachetype & (3 <<... |
functions | __init early_print(const char *str, ...)
{
extern void printascii(const char *);
char buf[256];
va_list ap;
va_start(ap, str);
vsnprintf(buf, sizeof(buf), str, ap);
va_end(ap);
#ifdef CONFIG_DEBUG_LL
printascii(buf);
#endif
printk("%s", buf);
} |
functions | __init cpuid_init_hwcaps(void)
{
unsigned int divide_instrs;
if (cpu_architecture() < CPU_ARCH_ARMv7)
return;
divide_instrs = (read_cpuid_ext(CPUID_EXT_ISAR0) & 0x0f000000) >> 24;
switch (divide_instrs) {
case 2:
elf_hwcap |= HWCAP_IDIVA;
case 1:
elf_hwcap |= HWCAP_IDIVT;
} |
functions | __init feat_v6_fixup(void)
{
int id = read_cpuid_id();
if ((id & 0xff0f0000) != 0x41070000)
return;
/*
* HWCAP_TLS is available only on 1136 r1p0 and later,
* see also kuser_get_tls_init.
*/
if ((((id >> 4) & 0xfff) == 0xb36) && (((id >> 20) & 3) == 0))
elf_hwcap &= ~HWCAP_TLS;
} |
functions | notrace cpu_init(void)
{
unsigned int cpu = smp_processor_id();
struct stack *stk = &stacks[cpu];
if (cpu >= NR_CPUS) {
printk(KERN_CRIT "CPU%u: bad primary CPU number\n", cpu);
BUG();
} |
functions | __init smp_setup_processor_id(void)
{
int i;
u32 mpidr = is_smp() ? read_cpuid_mpidr() & MPIDR_HWID_BITMASK : 0;
u32 cpu = MPIDR_AFFINITY_LEVEL(mpidr, 0);
cpu_logical_map(0) = cpu;
for (i = 1; i < nr_cpu_ids; ++i)
cpu_logical_map(i) = i == cpu ? 0 : i;
printk(KERN_INFO "Booting Linux on physical CPU 0x%x\n", ... |
functions | __init setup_processor(void)
{
struct proc_info_list *list;
/*
* locate processor in the list of supported processor
* types. The linker builds this table for us from the
* entries in arch/arm/mm/proc-*.S
*/
list = lookup_processor_type(read_cpuid_id());
if (!list) {
printk("CPU configuration botched (I... |
functions | __init dump_machine_table(void)
{
struct machine_desc *p;
early_print("Available machine support:\n\nID (hex)\tNAME\n");
for_each_machine_desc(p)
early_print("%08x\t%s\n", p->nr, p->name);
early_print("\nPlease check your kernel config and/or bootloader.\n");
while (true)
/* can't use cpu_relax() here as it... |
functions | __init arm_add_memory(phys_addr_t start, phys_addr_t size)
{
struct membank *bank = &meminfo.bank[meminfo.nr_banks];
u64 aligned_start;
if (meminfo.nr_banks >= NR_BANKS) {
printk(KERN_CRIT "NR_BANKS too low, "
"ignoring memory at 0x%08llx\n", (long long)start);
return -EINVAL;
} |
functions | CONFIG_ARCH_PHYS_ADDR_T_64BIT
if (aligned_start > ULONG_MAX) {
printk(KERN_CRIT "Ignoring memory at 0x%08llx outside "
"32-bit physical address space\n", (long long)start);
return -EINVAL;
} |
functions | endif
if (aligned_start < PHYS_OFFSET) {
if (aligned_start + size <= PHYS_OFFSET) {
pr_info("Ignoring memory below PHYS_OFFSET: 0x%08llx-0x%08llx\n",
aligned_start, aligned_start + size);
return -EINVAL;
} |
functions | __init early_mem(char *p)
{
static int usermem __initdata = 0;
phys_addr_t size;
phys_addr_t start;
char *endp;
#if (defined CONFIG_OF ) && (defined CONFIG_PLAT_MESON )
printk(KERN_WARNING "Ignore bootargs \'mem\' param.\n");
return 0;
#endif
/*
* If the user specifies memory size, we
* blow away any automa... |
functions | __init request_standard_resources(struct machine_desc *mdesc)
{
struct memblock_region *region;
struct resource *res;
kernel_code.start = virt_to_phys(_text);
kernel_code.end = virt_to_phys(_etext - 1);
kernel_data.start = virt_to_phys(_sdata);
kernel_data.end = virt_to_phys(_end - 1);
for_each_mem... |
functions | __init customize_machine(void)
{
/*
* customizes platform devices, or adds new ones
* On DT based machines, we fall back to populating the
* machine from the device tree, if no callback is provided,
* otherwise we would always need an init_machine callback.
*/
if (machine_desc->init_machine)
machine_desc-... |
functions | __init init_machine_late(void)
{
if (machine_desc->init_late)
machine_desc->init_late();
return 0;
} |
functions | long get_total_mem(void)
{
unsigned long total;
total = max_low_pfn - min_low_pfn;
return total << PAGE_SHIFT;
} |
functions | __init reserve_crashkernel(void)
{
unsigned long long crash_size, crash_base;
unsigned long long total_mem;
int ret;
total_mem = get_total_mem();
ret = parse_crashkernel(boot_command_line, total_mem,
&crash_size, &crash_base);
if (ret)
return;
ret = reserve_bootmem(crash_base, crash_size, BOOTMEM_EXCLUSI... |
functions | void reserve_crashkernel(void) {} |
functions | __init meminfo_cmp(const void *_a, const void *_b)
{
const struct membank *a = _a, *b = _b;
long cmp = bank_pfn_start(a) - bank_pfn_start(b);
return cmp < 0 ? -1 : cmp > 0 ? 1 : 0;
} |
functions | __init hyp_mode_check(void)
{
#ifdef CONFIG_ARM_VIRT_EXT
if (is_hyp_mode_available()) {
pr_info("CPU: All CPU(s) started in HYP mode.\n");
pr_info("CPU: Virtualization extensions available.\n");
} |
functions | __init setup_arch(char **cmdline_p)
{
struct machine_desc *mdesc;
setup_processor();
mdesc = setup_machine_fdt(__atags_pointer);
if (!mdesc)
mdesc = setup_machine_tags(__atags_pointer, __machine_arch_type);
machine_desc = mdesc;
machine_name = mdesc->name;
setup_dma_zone(mdesc);
if (mdesc->restart_mode)
... |
functions | __init topology_init(void)
{
int cpu;
for_each_possible_cpu(cpu) {
struct cpuinfo_arm *cpuinfo = &per_cpu(cpu_data, cpu);
cpuinfo->cpu.hotpluggable = 1;
register_cpu(&cpuinfo->cpu, cpu);
} |
functions | __init proc_cpu_init(void)
{
struct proc_dir_entry *res;
res = proc_mkdir("cpu", NULL);
if (!res)
return -ENOMEM;
return 0;
} |
functions | int c_show(struct seq_file *m, void *v)
{
int i;
seq_printf(m, "Processor\t: %s rev %d (%s)\n",
cpu_name, read_cpuid_id() & 15, elf_platform);
#if defined(CONFIG_SMP)
for_each_online_cpu(i) {
/*
* glibc reads /proc/cpuinfo to determine the number of
* online processors, looking for lines beginning wit... |
functions | void c_stop(struct seq_file *m, void *v)
{
} |
includes |
#include <linux/sched.h> |
includes | #include <linux/preempt.h> |
includes | #include <linux/module.h> |
includes | #include <linux/fs.h> |
includes | #include <linux/kprobes.h> |
includes | #include <linux/elfcore.h> |
includes | #include <linux/tick.h> |
includes | #include <linux/init.h> |
includes | #include <linux/mm.h> |
includes | #include <linux/compat.h> |
includes | #include <linux/hardirq.h> |
includes | #include <linux/syscalls.h> |
includes | #include <linux/kernel.h> |
includes | #include <linux/tracehook.h> |
includes | #include <linux/signal.h> |
includes | #include <asm/stack.h> |
includes | #include <asm/switch_to.h> |
includes | #include <asm/homecache.h> |
includes | #include <asm/syscalls.h> |
includes | #include <asm/traps.h> |
includes | #include <asm/setup.h> |
includes | #include <asm/hardwall.h> |
includes | #include <arch/chip.h> |
includes | #include <arch/abi.h> |
includes | #include <arch/sim_def.h> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.