Projectname large_stringclasses 15
values | Filepath large_stringlengths 4 106 ⌀ | Function large_stringlengths 11 3.45k | Label list |
|---|---|---|---|
Linux Kernel | arch/sh/include/asm/syscall_32.h | static inline void syscall_rollback(struct task_struct *task,
struct pt_regs *regs) {
/*
* XXX: This needs some thought. On SH we don't
* save away the original r0 value anywhere.
*/
} | [
0,
1
] |
Linux Kernel | arch/sh/include/asm/syscall_32.h |
static inline void syscall_set_return_value(struct task_struct *task,
struct pt_regs *regs, int error,
long val) {
regs->regs[0] = (long)error ?: val;
} | [
0,
0
] |
Linux Kernel | arch/sh/include/asm/syscall_32.h | static inline void syscall_get_arguments(struct task_struct *task,
struct pt_regs *regs,
unsigned long *args) {
args[5] = regs->regs[1];
args[4] = regs->regs[0];
args[3] = regs->regs[7];
args[2] = regs->regs[6];
args[1] = regs-... | [
0,
0
] |
Linux Kernel | arch/sh/include/asm/thread_info.h | static inline unsigned int get_thread_fault_code(void) {
struct thread_info *ti = current_thread_info();
return ti->flags >> TI_FLAG_FAULT_CODE_SHIFT;
}
#endif
#endif /* __ASM_SH_THREAD_INFO_H */ | [
0,
0
] |
Linux Kernel | arch/sh/include/asm/watchdog.h | static inline __u32 sh_wdt_read_csr(void) { return __raw_readl(WTCSR_R); } | [
0,
0
] |
Linux Kernel | arch/sh/include/asm/word-at-a-time.h | static inline unsigned long create_zero_mask(unsigned long bits) {
bits = (bits - 1) & ~bits;
return bits >> 7;
}
#define zero_bytemask(mask) (mask) | [
0,
0
] |
Linux Kernel | arch/sh/include/cpu-sh2/cpu/watchdog.h | static inline void sh_wdt_write_rstcsr(__u8 val) {
__raw_writeb((WTCNT_HIGH << 8) | (__u16)val, RSTCSR);
} | [
0,
0
] |
Linux Kernel | arch/sh/include/cpu-sh4/cpu/sh7786.h | static inline u32 sh7786_mm_sel(void) {
return __raw_readl((const volatile void __iomem *)0xFC400020) & 0x7;
}
#endif | [
0,
0
] |
Linux Kernel | arch/sh/include/mach-sdk7786/mach/fpga.h |
static inline u16 fpga_read_reg(unsigned int reg) {
return ioread16(sdk7786_fpga_base + reg);
} | [
0,
0
] |
Linux Kernel | arch/sh/kernel/cpu/init.c | static void expmask_init(void) {
unsigned long expmask = __raw_readl(EXPMASK);
expmask &= ~(EXPMASK_RTEDS | EXPMASK_BRDSSLP | EXPMASK_MMCAW);
__raw_writel(expmask, EXPMASK);
ctrl_barrier();
} | [
1,
0
] |
Linux Kernel | arch/sh/kernel/cpu/irq/imask.c |
static void mask_imask_irq(struct irq_data *data) {
unsigned int irq = data->irq;
clear_bit(irq, imask_mask);
if (interrupt_priority < IMASK_PRIORITY - irq)
interrupt_priority = IMASK_PRIORITY - irq;
set_interrupt_registers(interrupt_priority);
} | [
1,
0
] |
Linux Kernel | arch/sh/kernel/cpu/proc.c |
static void show_cpuflags(struct seq_file *m, struct sh_cpuinfo *c) {
unsigned long i;
seq_printf(m, "cpu flags\t:");
if (!c->flags) {
seq_printf(m, " %s\n", cpu_flags[0]);
return;
}
for (i = 0; cpu_flags[i]; i++)
if ((c->flags & (1 << i)))
seq_printf(m, " %s", cpu_flags[i + 1]);
seq_... | [
0,
0
] |
Linux Kernel | arch/sh/kernel/cpu/proc.c |
static void *c_start(struct seq_file *m, loff_t *pos) {
return *pos < NR_CPUS ? cpu_data + *pos : NULL;
} | [
0,
0
] |
Linux Kernel | arch/sh/kernel/cpu/sh2/clock-sh7619.c |
static unsigned long module_clk_recalc(struct clk *clk) {
int idx = (__raw_readw(FREQCR) & 0x0007);
return clk->parent->rate / pfc_divisors[idx];
} | [
1,
0
] |
Linux Kernel | arch/sh/kernel/cpu/sh2/probe.c | void __ref cpu_probe(void) {
#if defined(CONFIG_CPU_SUBTYPE_SH7619)
boot_cpu_data.type = CPU_SH7619;
boot_cpu_data.dcache.ways = 4;
boot_cpu_data.dcache.way_incr = (1 << 12);
boot_cpu_data.dcache.sets = 256;
boot_cpu_data.dcache.entry_shift = 4;
boot_cpu_data.dcache.linesz = L1_CACHE_BYTES;
boot_cpu_data.... | [
1,
0
] |
Linux Kernel | arch/sh/kernel/cpu/sh2/setup-sh7619.c | void __init plat_early_device_setup(void) {
__raw_writeb(__raw_readb(STBCR3) & ~0x10, STBCR3);
sh_early_platform_add_devices(sh7619_early_devices,
ARRAY_SIZE(sh7619_early_devices));
} | [
0,
0
] |
Linux Kernel | arch/sh/kernel/cpu/sh2/smp-j2.c |
static void j2_smp_setup(void) {} | [
0,
0
] |
Linux Kernel | arch/sh/kernel/cpu/sh2/smp-j2.c |
static void j2_start_cpu(unsigned int cpu, unsigned long entry_point) {
struct device_node *np;
u32 regs[2];
void __iomem *release, *initpc;
if (!cpu)
return;
np = of_get_cpu_node(cpu, NULL);
if (!np)
return;
if (of_property_read_u32_array(np, "cpu-release-addr", regs, 2))
return;
releas... | [
1,
0
] |
Linux Kernel | arch/sh/kernel/cpu/sh2/smp-j2.c | static void j2_send_ipi(unsigned int cpu, unsigned int message) {
volatile unsigned *pmsg;
unsigned old;
unsigned long val;
pmsg = &per_cpu(j2_ipi_messages, cpu);
do
old = *pmsg;
while (cmpxchg(pmsg, old, old | (1U << message)) != old);
/* Generate the actual interrupt by writing to CCRn bit 28. */
... | [
1,
0
] |
Linux Kernel | arch/sh/kernel/cpu/sh2a/clock-sh7201.c |
static unsigned long bus_clk_recalc(struct clk *clk) {
int idx = (__raw_readw(FREQCR) & 0x0007);
return clk->parent->rate / pfc_divisors[idx];
} | [
1,
0
] |
Linux Kernel | arch/sh/kernel/cpu/sh2a/clock-sh7201.c |
static unsigned long cpu_clk_recalc(struct clk *clk) {
int idx = ((__raw_readw(FREQCR) >> 4) & 0x0007);
return clk->parent->rate / ifc_divisors[idx];
} | [
1,
0
] |
Linux Kernel | arch/sh/kernel/cpu/sh2a/clock-sh7201.c |
void __init arch_init_clk_ops(struct sh_clk_ops **ops, int idx) {
if (test_mode_pin(MODE_PIN1 | MODE_PIN0))
pll2_mult = 1;
else if (test_mode_pin(MODE_PIN1))
pll2_mult = 2;
else
pll2_mult = 4;
if (idx < ARRAY_SIZE(sh7201_clk_ops))
*ops = sh7201_clk_ops[idx];
} | [
0,
0
] |
Linux Kernel | arch/sh/kernel/cpu/sh2a/clock-sh7203.c |
static unsigned long module_clk_recalc(struct clk *clk) {
int idx = (__raw_readw(FREQCR) & 0x0007);
return clk->parent->rate / pfc_divisors[idx];
} | [
1,
0
] |
Linux Kernel | arch/sh/kernel/cpu/sh2a/clock-sh7206.c |
static unsigned long module_clk_recalc(struct clk *clk) {
int idx = (__raw_readw(FREQCR) & 0x0007);
return clk->parent->rate / pfc_divisors[idx];
} | [
1,
0
] |
Linux Kernel | arch/sh/kernel/cpu/sh2a/clock-sh7206.c |
static unsigned long cpu_clk_recalc(struct clk *clk) {
int idx = (__raw_readw(FREQCR) & 0x0007);
return clk->parent->rate / ifc_divisors[idx];
} | [
1,
0
] |
Linux Kernel | arch/sh/kernel/cpu/sh2a/fpu.c | denormalized number for some FPU insns.
*/ /* denormalized float * float */
static int denormal_mulf(int hx, int hy)
{
unsigned int ix, iy;
unsigned long long m, n;
int exp, w;
ix = hx & 0x7fffffff;
iy = hy & 0x7fffffff;
if (iy < 0x00800000 || ix == 0)
return ((hx ^ hy) & 0x80000000);
exp = (iy & 0... | [
1,
1
] |
Linux Kernel | arch/sh/kernel/cpu/sh2a/fpu.c | static long long denormal_muld(long long hx, long long hy) {
unsigned long long ix, iy;
unsigned long long mh, ml, nh, nl;
int exp, w;
ix = hx & 0x7fffffffffffffffLL;
iy = hy & 0x7fffffffffffffffLL;
if (iy < 0x0010000000000000LL || ix == 0)
return ((hx ^ hy) & 0x8000000000000000LL);
exp = (iy & 0x7f... | [
1,
1
] |
Linux Kernel | arch/sh/kernel/cpu/sh2a/pinmux-sh7264.c |
static int __init plat_pinmux_setup(void) {
return sh_pfc_register("pfc-sh7264", sh7264_pfc_resources,
ARRAY_SIZE(sh7264_pfc_resources));
} | [
0,
0
] |
Linux Kernel | arch/sh/kernel/cpu/sh2a/pinmux-sh7269.c |
static int __init plat_pinmux_setup(void) {
return sh_pfc_register("pfc-sh7269", sh7269_pfc_resources,
ARRAY_SIZE(sh7269_pfc_resources));
} | [
0,
0
] |
Linux Kernel | arch/sh/kernel/cpu/sh2a/probe.c | void cpu_probe(void) {
boot_cpu_data.family = CPU_FAMILY_SH2A;
boot_cpu_data.flags |= CPU_HAS_OP32;
#if defined(CONFIG_CPU_SUBTYPE_SH7201)
boot_cpu_data.type = CPU_SH7201;
boot_cpu_data.flags |= CPU_HAS_FPU;
#elif defined(CONFIG_CPU_SUBTYPE_SH7203)
boot_cpu_data.type = CPU_SH7203;
boot_cpu_data.flags |= C... | [
0,
0
] |
Linux Kernel | arch/sh/kernel/cpu/sh2a/setup-mxg.c |
void __init plat_early_device_setup(void) {
sh_early_platform_add_devices(mxg_early_devices,
ARRAY_SIZE(mxg_early_devices));
} | [
0,
0
] |
Linux Kernel | arch/sh/kernel/cpu/sh2a/setup-sh7264.c |
void __init plat_early_device_setup(void) {
sh_early_platform_add_devices(sh7264_early_devices,
ARRAY_SIZE(sh7264_early_devices));
} | [
0,
0
] |
Linux Kernel | arch/sh/kernel/cpu/sh3/clock-sh3.c |
static unsigned long bus_clk_recalc(struct clk *clk) {
int frqcr = __raw_readw(FRQCR);
int idx = ((frqcr & 0x8000) >> 13) | ((frqcr & 0x0030) >> 4);
return clk->parent->rate / stc_multipliers[idx];
} | [
1,
0
] |
Linux Kernel | arch/sh/kernel/cpu/sh3/clock-sh3.c |
static unsigned long cpu_clk_recalc(struct clk *clk) {
int frqcr = __raw_readw(FRQCR);
int idx = ((frqcr & 0x4000) >> 12) | ((frqcr & 0x000c) >> 2);
return clk->parent->rate / ifc_divisors[idx];
} | [
1,
0
] |
Linux Kernel | arch/sh/kernel/cpu/sh3/clock-sh7705.c |
static unsigned long module_clk_recalc(struct clk *clk) {
int idx = __raw_readw(FRQCR) & 0x0003;
return clk->parent->rate / pfc_divisors[idx];
} | [
1,
0
] |
Linux Kernel | arch/sh/kernel/cpu/sh3/clock-sh7706.c |
static void master_clk_init(struct clk *clk) {
int frqcr = __raw_readw(FRQCR);
int idx = ((frqcr & 0x2000) >> 11) | (frqcr & 0x0003);
clk->rate *= pfc_divisors[idx];
} | [
1,
0
] |
Linux Kernel | arch/sh/kernel/cpu/sh3/clock-sh7706.c |
static unsigned long module_clk_recalc(struct clk *clk) {
int frqcr = __raw_readw(FRQCR);
int idx = ((frqcr & 0x2000) >> 11) | (frqcr & 0x0003);
return clk->parent->rate / pfc_divisors[idx];
} | [
1,
0
] |
Linux Kernel | arch/sh/kernel/cpu/sh3/clock-sh7706.c |
static unsigned long bus_clk_recalc(struct clk *clk) {
int frqcr = __raw_readw(FRQCR);
int idx = ((frqcr & 0x8000) >> 13) | ((frqcr & 0x0030) >> 4);
return clk->parent->rate / stc_multipliers[idx];
} | [
1,
0
] |
Linux Kernel | arch/sh/kernel/cpu/sh3/clock-sh7709.c |
static void master_clk_init(struct clk *clk) {
int frqcr = __raw_readw(FRQCR);
int idx = ((frqcr & 0x2000) >> 11) | (frqcr & 0x0003);
clk->rate *= pfc_divisors[idx];
} | [
1,
0
] |
Linux Kernel | arch/sh/kernel/cpu/sh3/clock-sh7710.c |
static void master_clk_init(struct clk *clk) {
clk->rate *= md_table[__raw_readw(FRQCR) & 0x0007];
} | [
0,
0
] |
Linux Kernel | arch/sh/kernel/cpu/sh3/clock-sh7710.c |
static unsigned long module_clk_recalc(struct clk *clk) {
int idx = (__raw_readw(FRQCR) & 0x0007);
return clk->parent->rate / md_table[idx];
} | [
1,
0
] |
Linux Kernel | arch/sh/kernel/cpu/sh3/clock-sh7712.c |
static void master_clk_init(struct clk *clk) {
int frqcr = __raw_readw(FRQCR);
int idx = (frqcr & 0x0300) >> 8;
clk->rate *= multipliers[idx];
} | [
0,
0
] |
Linux Kernel | arch/sh/kernel/cpu/sh3/clock-sh7712.c |
static unsigned long cpu_clk_recalc(struct clk *clk) {
int frqcr = __raw_readw(FRQCR);
int idx = (frqcr & 0x0030) >> 4;
return clk->parent->rate / divisors[idx];
} | [
1,
0
] |
Linux Kernel | arch/sh/kernel/cpu/sh3/clock-sh7712.c |
void __init arch_init_clk_ops(struct sh_clk_ops **ops, int idx) {
if (idx < ARRAY_SIZE(sh7712_clk_ops))
*ops = sh7712_clk_ops[idx];
} | [
0,
0
] |
Linux Kernel | arch/sh/kernel/cpu/sh3/setup-sh7705.c |
static int __init sh7705_devices_setup(void) {
return platform_add_devices(sh7705_devices, ARRAY_SIZE(sh7705_devices));
} | [
0,
0
] |
Linux Kernel | arch/sh/kernel/cpu/sh3/setup-sh7705.c |
void __init plat_early_device_setup(void) {
sh_early_platform_add_devices(sh7705_early_devices,
ARRAY_SIZE(sh7705_early_devices));
} | [
0,
0
] |
Linux Kernel | arch/sh/kernel/cpu/sh3/setup-sh770x.c |
void __init plat_irq_setup(void) {
register_intc_controller(&intc_desc);
#if defined(CONFIG_CPU_SUBTYPE_SH7706) || \
defined(CONFIG_CPU_SUBTYPE_SH7707) || defined(CONFIG_CPU_SUBTYPE_SH7709)
plat_irq_setup_sh3();
#endif
} | [
0,
0
] |
Linux Kernel | arch/sh/kernel/cpu/sh3/setup-sh7720.c |
void __init plat_early_device_setup(void) {
sh_early_platform_add_devices(sh7720_early_devices,
ARRAY_SIZE(sh7720_early_devices));
} | [
0,
0
] |
Linux Kernel | arch/sh/kernel/cpu/sh3/setup-sh7720.c |
void __init plat_irq_setup(void) {
register_intc_controller(&intc_desc);
plat_irq_setup_sh3();
} | [
0,
0
] |
Linux Kernel | arch/sh/kernel/cpu/sh4/clock-sh4-202.c | static inline int frqcr3_lookup(struct clk *clk, unsigned long rate) {
int divisor = clk->parent->rate / rate;
int i;
for (i = 0; i < ARRAY_SIZE(frqcr3_divisors); i++)
if (frqcr3_divisors[i] == divisor)
return frqcr3_values[i];
return 5;
} | [
1,
0
] |
Linux Kernel | arch/sh/kernel/cpu/sh4/clock-sh4-202.c | static void shoc_clk_init(struct clk *clk) {
int i;
for (i = 0; i < ARRAY_SIZE(frqcr3_divisors); i++) {
int divisor = frqcr3_divisors[i];
if (clk->ops->set_rate(clk, clk->parent->rate / divisor) == 0)
break;
}
WARN_ON(i == ARRAY_SIZE(frqcr3_divisors)); /* Undefined clock */
} | [
1,
0
] |
Linux Kernel | arch/sh/kernel/cpu/sh4/clock-sh4.c |
static unsigned long module_clk_recalc(struct clk *clk) {
int idx = (__raw_readw(FRQCR) & 0x0007);
return clk->parent->rate / pfc_divisors[idx];
} | [
1,
0
] |
Linux Kernel | arch/sh/kernel/cpu/sh4/clock-sh4.c |
static unsigned long bus_clk_recalc(struct clk *clk) {
int idx = (__raw_readw(FRQCR) >> 3) & 0x0007;
return clk->parent->rate / bfc_divisors[idx];
} | [
1,
0
] |
Linux Kernel | arch/sh/kernel/cpu/sh4/clock-sh4.c |
static unsigned long cpu_clk_recalc(struct clk *clk) {
int idx = (__raw_readw(FRQCR) >> 6) & 0x0007;
return clk->parent->rate / ifc_divisors[idx];
} | [
1,
0
] |
Linux Kernel | arch/sh/kernel/cpu/sh4/fpu.c |
void float_raise(unsigned int flags) { fpu_exception_flags |= flags; } | [
0,
0
] |
Linux Kernel | arch/sh/kernel/cpu/sh4/perf_event.c |
static u64 sh7750_pmu_read(int idx) {
return (u64)((u64)(__raw_readl(PMCTRH(idx)) & 0xffff) << 32) |
__raw_readl(PMCTRL(idx));
} | [
0,
0
] |
Linux Kernel | arch/sh/kernel/cpu/sh4/perf_event.c |
static void sh7750_pmu_disable_all(void) {
int i;
for (i = 0; i < sh7750_pmu.num_events; i++)
__raw_writew(__raw_readw(PMCR(i)) & ~PMCR_PMEN, PMCR(i));
} | [
0,
0
] |
Linux Kernel | arch/sh/kernel/cpu/sh4/setup-sh4-202.c |
static int __init sh4202_devices_setup(void) {
return platform_add_devices(sh4202_devices, ARRAY_SIZE(sh4202_devices));
} | [
0,
0
] |
Linux Kernel | arch/sh/kernel/cpu/sh4/setup-sh7760.c |
static int __init sh7760_devices_setup(void) {
return platform_add_devices(sh7760_devices, ARRAY_SIZE(sh7760_devices));
} | [
0,
0
] |
Linux Kernel | arch/sh/kernel/cpu/sh4/softfloat.c | static float64 roundAndPackFloat64(flag zSign, int16 zExp, bits64 zSig) {
flag roundNearestEven;
int16 roundIncrement, roundBits;
flag isTiny;
roundNearestEven = (float_rounding_mode() == FPSCR_RM_NEAREST);
roundIncrement = 0x200;
if (!roundNearestEven) {
roundIncrement = 0;
}
roundBits = zSig & 0x... | [
1,
0
] |
Linux Kernel | arch/sh/kernel/cpu/sh4/softfloat.c |
static float32 addFloat32Sigs(float32 a, float32 b, flag zSign) {
int16 aExp, bExp, zExp;
bits32 aSig, bSig, zSig;
int16 expDiff;
aSig = extractFloat32Frac(a);
aExp = extractFloat32Exp(a);
bSig = extractFloat32Frac(b);
bExp = extractFloat32Exp(b);
expDiff = aExp - bExp;
aSig <<= 6;
bSig <<= 6;
i... | [
1,
0
] |
Linux Kernel | arch/sh/kernel/cpu/sh4/softfloat.c |
float32 float32_add(float32 a, float32 b) {
flag aSign, bSign;
aSign = extractFloat32Sign(a);
bSign = extractFloat32Sign(b);
if (aSign == bSign) {
return addFloat32Sigs(a, b, aSign);
} else {
return subFloat32Sigs(a, b, aSign);
}
} | [
0,
0
] |
Linux Kernel | arch/sh/kernel/cpu/sh4/softfloat.c |
static void normalizeFloat64Subnormal(bits64 aSig, int16 *zExpPtr,
bits64 *zSigPtr) {
int8 shiftCount;
shiftCount = countLeadingZeros64(aSig) - 11;
*zSigPtr = aSig << shiftCount;
*zExpPtr = 1 - shiftCount;
} | [
0,
0
] |
Linux Kernel | arch/sh/kernel/cpu/sh4/softfloat.c |
float64 float64_mul(float64 a, float64 b) {
char aSign, bSign, zSign;
int aExp, bExp, zExp;
unsigned long long int aSig, bSig, zSig0, zSig1;
aSig = extractFloat64Frac(a);
aExp = extractFloat64Exp(a);
aSign = extractFloat64Sign(a);
bSig = extractFloat64Frac(b);
bExp = extractFloat64Exp(b);
bSign = ex... | [
1,
0
] |
Linux Kernel | arch/sh/kernel/cpu/sh4/sq.c | static int __sq_remap(struct sq_mapping *map, pgprot_t prot) {
#if defined(CONFIG_MMU)
struct vm_struct *vma;
vma = __get_vm_area_caller(map->size, VM_ALLOC, map->sq_addr, SQ_ADDRMAX,
__builtin_return_address(0));
if (!vma)
return -ENOMEM;
vma->phys_addr = map->addr;
if (io... | [
0,
0
] |
Linux Kernel | arch/sh/kernel/cpu/sh4/sq.c | unsigned long sq_remap(unsigned long phys, unsigned int size, const char *name,
pgprot_t prot) {
struct sq_mapping *map;
unsigned long end;
unsigned int psz;
int ret, page;
end = phys + size - 1;
if (unlikely(!size || end < phys))
return -EINVAL;
/* Don't allow anyone to remap ... | [
1,
0
] |
Linux Kernel | arch/sh/kernel/cpu/sh4/sq.c | void sq_unmap(unsigned long vaddr) {
struct sq_mapping **p, *map;
int page;
for (p = &sq_mapping_list; (map = *p); p = &map->next)
if (map->sq_addr == vaddr)
break;
if (unlikely(!map)) {
printk("%s: bad store queue address 0x%08lx\n", __func__, vaddr);
return;
}
page = (map->sq_addr - P... | [
0,
0
] |
Linux Kernel | arch/sh/kernel/cpu/sh4/sq.c |
static int sq_dev_add(struct device *dev, struct subsys_interface *sif) {
unsigned int cpu = dev->id;
struct kobject *kobj;
int error;
sq_kobject[cpu] = kzalloc(sizeof(struct kobject), GFP_KERNEL);
if (unlikely(!sq_kobject[cpu]))
return -ENOMEM;
kobj = sq_kobject[cpu];
error =
kobject_init_an... | [
1,
0
] |
Linux Kernel | arch/sh/kernel/cpu/sh4a/clock-sh7366.c |
static unsigned long pll_recalc(struct clk *clk) {
unsigned long mult = 1;
unsigned long div = 1;
if (__raw_readl(PLLCR) & 0x4000)
mult = (((__raw_readl(FRQCR) >> 24) & 0x1f) + 1);
else
div = 2;
return (clk->parent->rate * mult) / div;
} | [
1,
0
] |
Linux Kernel | arch/sh/kernel/cpu/sh4a/clock-sh7724.c |
static unsigned long pll_recalc(struct clk *clk) {
unsigned long mult = 1;
if (__raw_readl(PLLCR) & 0x4000)
mult = (((__raw_readl(FRQCRA) >> 24) & 0x3f) + 1) * 2;
return clk->parent->rate * mult;
} | [
1,
0
] |
Linux Kernel | arch/sh/kernel/cpu/sh4a/clock-sh7724.c | static void div4_kick(struct clk *clk) {
unsigned long value;
value = __raw_readl(FRQCRA);
value |= (1 << 31);
__raw_writel(value, FRQCRA);
} | [
0,
0
] |
Linux Kernel | arch/sh/kernel/cpu/sh4a/clock-sh7724.c | int __init arch_clk_init(void) {
int k, ret = 0;
if (__raw_readl(PLLCR) & 0x1000)
pll_clk.parent = &fll_clk;
else
pll_clk.parent = &extal_clk;
for (k = 0; !ret && (k < ARRAY_SIZE(main_clks)); k++)
ret = clk_register(main_clks[k]);
clkdev_add_table(lookups, ARRAY_SIZE(lookups));
if (!ret)
... | [
0,
0
] |
Linux Kernel | arch/sh/kernel/cpu/sh4a/clock-sh7734.c |
int __init arch_clk_init(void) {
int i, ret = 0;
for (i = 0; i < ARRAY_SIZE(main_clks); i++)
ret |= clk_register(main_clks[i]);
clkdev_add_table(lookups, ARRAY_SIZE(lookups));
if (!ret)
ret = sh_clk_div4_register(div4_clks, ARRAY_SIZE(div4_clks), &div4_table);
if (!ret)
ret = sh_clk_mstp_regi... | [
0,
0
] |
Linux Kernel | arch/sh/kernel/cpu/sh4a/clock-sh7757.c |
static unsigned long pll_recalc(struct clk *clk) {
int multiplier;
multiplier = test_mode_pin(MODE_PIN0) ? 24 : 16;
return clk->parent->rate * multiplier;
} | [
1,
0
] |
Linux Kernel | arch/sh/kernel/cpu/sh4a/clock-sh7763.c |
static void master_clk_init(struct clk *clk) {
clk->rate *= p0fc_divisors[(__raw_readl(FRQCR) >> 4) & 0x07];
} | [
0,
0
] |
Linux Kernel | arch/sh/kernel/cpu/sh4a/clock-sh7770.c |
void __init arch_init_clk_ops(struct sh_clk_ops **ops, int idx) {
if (idx < ARRAY_SIZE(sh7770_clk_ops))
*ops = sh7770_clk_ops[idx];
} | [
0,
0
] |
Linux Kernel | arch/sh/kernel/cpu/sh4a/clock-sh7780.c |
static unsigned long shyway_clk_recalc(struct clk *clk) {
int idx = ((__raw_readl(FRQCR) >> 20) & 0x0007);
return clk->parent->rate / cfc_divisors[idx];
} | [
1,
0
] |
Linux Kernel | arch/sh/kernel/cpu/sh4a/clock-sh7785.c |
int __init arch_clk_init(void) {
int i, ret = 0;
for (i = 0; i < ARRAY_SIZE(clks); i++)
ret |= clk_register(clks[i]);
clkdev_add_table(lookups, ARRAY_SIZE(lookups));
if (!ret)
ret = sh_clk_div4_register(div4_clks, ARRAY_SIZE(div4_clks), &div4_table);
if (!ret)
ret = sh_clk_mstp_register(mstp_c... | [
0,
0
] |
Linux Kernel | arch/sh/kernel/cpu/sh4a/clock-shx3.c |
int __init arch_clk_init(void) {
int i, ret = 0;
for (i = 0; i < ARRAY_SIZE(clks); i++)
ret |= clk_register(clks[i]);
clkdev_add_table(lookups, ARRAY_SIZE(lookups));
if (!ret)
ret = sh_clk_div4_register(div4_clks, ARRAY_SIZE(div4_clks), &div4_table);
if (!ret)
ret = sh_clk_mstp_register(mstp_c... | [
0,
0
] |
Linux Kernel | arch/sh/kernel/cpu/sh4a/intc-shx3.c |
void irq_finish(unsigned int irq) { __raw_writel(irq2evt(irq), INTACKCLR); }
#endif | [
0,
0
] |
Linux Kernel | arch/sh/kernel/cpu/sh4a/intc-shx3.c |
static int __init shx3_irq_setup(void) {
return register_intc_userimask(INTC_USERIMASK);
} | [
0,
0
] |
Linux Kernel | arch/sh/kernel/cpu/sh4a/perf_event.c |
static u64 sh4a_pmu_read(int idx) { return __raw_readl(PPC_PMCTR(idx)); } | [
0,
0
] |
Linux Kernel | arch/sh/kernel/cpu/sh4a/perf_event.c |
static void sh4a_pmu_disable_all(void) {
int i;
for (i = 0; i < sh4a_pmu.num_events; i++)
__raw_writel(__raw_readl(PPC_CCBR(i)) & ~CCBR_DUC, PPC_CCBR(i));
} | [
0,
0
] |
Linux Kernel | arch/sh/kernel/cpu/sh4a/pinmux-sh7786.c |
static int __init plat_pinmux_setup(void) {
return sh_pfc_register("pfc-sh7786", sh7786_pfc_resources,
ARRAY_SIZE(sh7786_pfc_resources));
} | [
0,
0
] |
Linux Kernel | arch/sh/kernel/cpu/sh4a/setup-sh7343.c |
void __init plat_early_device_setup(void) {
sh_early_platform_add_devices(sh7343_early_devices,
ARRAY_SIZE(sh7343_early_devices));
} | [
0,
0
] |
Linux Kernel | arch/sh/kernel/cpu/sh4a/setup-sh7724.c |
static int __init sh7724_sleep_setup(void) {
atomic_notifier_chain_register(&sh_mobile_pre_sleep_notifier_list,
&sh7724_pre_sleep_notifier);
atomic_notifier_chain_register(&sh_mobile_post_sleep_notifier_list,
&sh7724_post_sleep_notifier);
return ... | [
0,
0
] |
Linux Kernel | arch/sh/kernel/cpu/sh4a/setup-sh7757.c |
static int __init sh7757_devices_setup(void) {
return platform_add_devices(sh7757_devices, ARRAY_SIZE(sh7757_devices));
} | [
0,
0
] |
Linux Kernel | arch/sh/kernel/cpu/sh4a/setup-sh7757.c | void __init plat_irq_setup(void) {
__raw_writel(0xff000000, INTC_INTMSK0);
/* disable IRL3-0 + IRL7-4 */
__raw_writel(0xc0000000, INTC_INTMSK1);
__raw_writel(0xfffefffe, INTC_INTMSK2);
/* select IRL mode for IRL3-0 + IRL7-4 */
__raw_writel(__raw_readl(INTC_ICR0) & ~0x00c00000, INTC_ICR0);
/* disable h... | [
0,
0
] |
Linux Kernel | arch/sh/kernel/cpu/sh4a/setup-sh7763.c | void __init plat_irq_setup(void) {
__raw_writel(0xff000000, INTC_INTMSK0);
/* disable IRL3-0 + IRL7-4 */
__raw_writel(0xc0000000, INTC_INTMSK1);
__raw_writel(0xfffefffe, INTC_INTMSK2);
register_intc_controller(&intc_desc);
} | [
0,
0
] |
Linux Kernel | arch/sh/kernel/cpu/sh4a/setup-sh7770.c |
void __init plat_early_device_setup(void) {
sh_early_platform_add_devices(sh7770_early_devices,
ARRAY_SIZE(sh7770_early_devices));
} | [
0,
0
] |
Linux Kernel | arch/sh/kernel/cpu/sh4a/setup-sh7780.c |
static int __init sh7780_devices_setup(void) {
return platform_add_devices(sh7780_devices, ARRAY_SIZE(sh7780_devices));
} | [
0,
0
] |
Linux Kernel | arch/sh/kernel/cpu/sh4a/setup-sh7780.c |
void __init plat_early_device_setup(void) {
if (mach_is_sh2007()) {
scif0_platform_data.scscr &= ~SCSCR_CKE1;
scif1_platform_data.scscr &= ~SCSCR_CKE1;
}
sh_early_platform_add_devices(sh7780_early_devices,
ARRAY_SIZE(sh7780_early_devices));
} | [
0,
0
] |
Linux Kernel | arch/sh/kernel/cpu/sh4a/setup-sh7780.c | void __init plat_irq_setup_pins(int mode) {
switch (mode) {
case IRQ_MODE_IRQ:
__raw_writel(__raw_readl(INTC_ICR0) | 0x00c00000, INTC_ICR0);
register_intc_controller(&intc_irq_desc);
break;
case IRQ_MODE_IRL7654:
/* enable IRL7-4 but don't provide any masking */
__raw_writel(0x40000000, INTC_... | [
0,
0
] |
Linux Kernel | arch/sh/kernel/cpu/sh4a/setup-sh7785.c | void __init plat_mem_setup(void) {
setup_bootmem_node(1, 0xe55f0000, 0xe5610000);
} | [
0,
0
] |
Linux Kernel | arch/sh/kernel/cpu/sh4a/setup-sh7786.c | static void __init sh7786_usb_setup(void) {
int i = 1000000;
__raw_writel(USBINITVAL1, USBINITREG1);
__raw_writel(USBINITVAL2, USBINITREG2);
/*
* Set the PHY and PLL enable bit
*/
__raw_writel(PHY_ENB | PLL_ENB, USBPCTL1);
while (i--) {
if (ACT_PLL_STATUS == (__raw_readl(USBST) & ACT_PLL_STATUS)... | [
0,
0
] |
Linux Kernel | arch/sh/kernel/cpu/sh4a/setup-sh7786.c | void __init plat_irq_setup_pins(int mode) {
switch (mode) {
case IRQ_MODE_IRQ7654:
__raw_writel(__raw_readl(INTC_ICR0) | 0x00400000, INTC_ICR0);
register_intc_controller(&intc_desc_irq4567);
break;
case IRQ_MODE_IRQ3210:
/* select IRQ mode for IRL3-0 */
__raw_writel(__raw_readl(INTC_ICR0) | 0... | [
0,
0
] |
Linux Kernel | arch/sh/kernel/cpu/sh4a/setup-shx3.c |
void __init plat_early_device_setup(void) {
sh_early_platform_add_devices(shx3_early_devices,
ARRAY_SIZE(shx3_early_devices));
} | [
0,
0
] |
Linux Kernel | arch/sh/kernel/cpu/sh4a/setup-shx3.c |
void __init plat_irq_setup_pins(int mode) {
int ret = 0;
switch (mode) {
case IRQ_MODE_IRQ:
ret |= gpio_request(GPIO_FN_IRQ3, intc_desc_irq.name);
ret |= gpio_request(GPIO_FN_IRQ2, intc_desc_irq.name);
ret |= gpio_request(GPIO_FN_IRQ1, intc_desc_irq.name);
ret |= gpio_request(GPIO_FN_IRQ0, intc_... | [
0,
0
] |
Linux Kernel | arch/sh/kernel/cpu/sh4a/smp-shx3.c |
static void shx3_update_boot_vector(unsigned int cpu) {
__raw_writel(STBCR_MSTP, STBCR_REG(cpu));
while (!(__raw_readl(STBCR_REG(cpu)) & STBCR_MSTP))
cpu_relax();
__raw_writel(STBCR_RESET, STBCR_REG(cpu));
} | [
0,
0
] |
Linux Kernel | arch/sh/kernel/cpu/sh4a/ubc.c |
static void sh4a_ubc_enable(struct arch_hw_breakpoint *info, int idx) {
__raw_writel(UBC_CBR_CE | info->len | info->type, UBC_CBR(idx));
__raw_writel(info->address, UBC_CAR(idx));
} | [
0,
0
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.