cregit-Linux how code gets into the kernel

Release 4.14 arch/ia64/kernel/machvec.c

Directory: arch/ia64/kernel
// SPDX-License-Identifier: GPL-2.0
#include <linux/module.h>
#include <linux/dma-mapping.h>
#include <asm/machvec.h>

#ifdef CONFIG_IA64_GENERIC

#include <linux/kernel.h>
#include <linux/string.h>

#include <asm/page.h>


struct ia64_machine_vector ia64_mv;

EXPORT_SYMBOL(ia64_mv);


static struct ia64_machine_vector * __init lookup_machvec (const char *name) { extern struct ia64_machine_vector machvec_start[]; extern struct ia64_machine_vector machvec_end[]; struct ia64_machine_vector *mv; for (mv = machvec_start; mv < machvec_end; ++mv) if (strcmp (mv->name, name) == 0) return mv; return 0; }

Contributors

PersonTokensPropCommitsCommitProp
Linus Torvalds (pre-git)6298.41%150.00%
Simon Horman11.59%150.00%
Total63100.00%2100.00%


void __init machvec_init (const char *name) { struct ia64_machine_vector *mv; if (!name) name = acpi_get_sysname(); mv = lookup_machvec(name); if (!mv) panic("generic kernel failed to find machine vector for" " platform %s!", name); ia64_mv = *mv; printk(KERN_INFO "booting generic kernel on platform %s\n", name); }

Contributors

PersonTokensPropCommitsCommitProp
Linus Torvalds (pre-git)4576.27%125.00%
Simon Horman1220.34%125.00%
David Mosberger-Tang11.69%125.00%
Tony Luck11.69%125.00%
Total59100.00%4100.00%


void __init machvec_init_from_cmdline(const char *cmdline) { char str[64]; const char *start; char *end; if (! (start = strstr(cmdline, "machvec=")) ) return machvec_init(NULL); strlcpy(str, start + strlen("machvec="), sizeof(str)); if ( (end = strchr(str, ' ')) ) *end = '\0'; return machvec_init(str); }

Contributors

PersonTokensPropCommitsCommitProp
Simon Horman87100.00%1100.00%
Total87100.00%1100.00%

#endif /* CONFIG_IA64_GENERIC */
void machvec_setup (char **arg) { }

Contributors

PersonTokensPropCommitsCommitProp
David Mosberger-Tang888.89%266.67%
Linus Torvalds (pre-git)111.11%133.33%
Total9100.00%3100.00%

EXPORT_SYMBOL(machvec_setup);
void machvec_timer_interrupt (int irq, void *dev_id) { }

Contributors

PersonTokensPropCommitsCommitProp
David Mosberger-Tang11100.00%1100.00%
Total11100.00%1100.00%

EXPORT_SYMBOL(machvec_timer_interrupt);
void machvec_dma_sync_single(struct device *hwdev, dma_addr_t dma_handle, size_t size, enum dma_data_direction dir) { mb(); }

Contributors

PersonTokensPropCommitsCommitProp
David Mosberger-Tang2191.30%266.67%
FUJITA Tomonori28.70%133.33%
Total23100.00%3100.00%

EXPORT_SYMBOL(machvec_dma_sync_single);
void machvec_dma_sync_sg(struct device *hwdev, struct scatterlist *sg, int n, enum dma_data_direction dir) { mb(); }

Contributors

PersonTokensPropCommitsCommitProp
David Mosberger-Tang2392.00%266.67%
FUJITA Tomonori28.00%133.33%
Total25100.00%3100.00%

EXPORT_SYMBOL(machvec_dma_sync_sg);

Overall Contributors

PersonTokensPropCommitsCommitProp
Linus Torvalds (pre-git)12838.67%428.57%
Simon Horman10030.21%214.29%
David Mosberger-Tang9428.40%535.71%
FUJITA Tomonori72.11%17.14%
Greg Kroah-Hartman10.30%17.14%
Tony Luck10.30%17.14%
Total331100.00%14100.00%
Directory: arch/ia64/kernel
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.