/linux/arch/openrisc/kernel/ |
H A D | entry.S | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 12 * Copyright (C) 2010-2011 Jonas Bonn <jonas@southpole.se> 25 #include <asm/asm-offsets.h> 28 l.mfspr t2,r0,SPR_SR ;\ 29 l.movhi t1,hi(~(SPR_SR_IEE|SPR_SR_TEE)) ;\ 30 l.ori t1,t1,lo(~(SPR_SR_IEE|SPR_SR_TEE)) ;\ 31 l.and t2,t2,t1 ;\ 32 l.mtspr r0,t2,SPR_SR 35 l.mfspr t1,r0,SPR_SR ;\ 36 l.ori t1,t1,lo(SPR_SR_IEE|SPR_SR_TEE) ;\ [all …]
|
H A D | head.S | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 11 * Copyright (C) 2010-2011 Jonas Bonn <jonas@southpole.se> 26 #include <asm/asm-offsets.h> 30 l.movhi rd,hi(-KERNELBASE) ;\ 31 l.add rd,rd,rs 34 l.movhi gpr,0x0 37 l.movhi gpr,hi(symbol) ;\ 38 l.ori gpr,gpr,lo(symbol) 54 #define EMERGENCY_PRINT_STORE_GPR4 l.mtspr r0,r4,SPR_SHADOW_GPR(14) 55 #define EMERGENCY_PRINT_LOAD_GPR4 l.mfspr r4,r0,SPR_SHADOW_GPR(14) [all …]
|
/linux/arch/m68k/ifpsp060/src/ |
H A D | itest.S | 3 M68000 Hi-Performance Microprocessor Division 5 Production Release P1.00 -- October 10, 1994 30 set SREGS, -64 31 set IREGS, -128 32 set SCCR, -130 33 set ICCR, -132 34 set TESTCTR, -136 35 set EAMEM, -140 36 set EASTORE, -144 37 set DATA, -160 [all …]
|
H A D | ftest.S | 3 M68000 Hi-Performance Microprocessor Division 5 Production Release P1.00 -- October 10, 1994 30 set SREGS, -64 31 set IREGS, -128 32 set IFPREGS, -224 33 set SFPREGS, -320 34 set IFPCREGS, -332 35 set SFPCREGS, -344 36 set ICCR, -346 37 set SCCR, -348 [all …]
|
/linux/arch/sh/kernel/cpu/sh2/ |
H A D | entry.S | 1 /* SPDX-License-Identifier: GPL-2.0 5 * The SH-2 exception entry 7 * Copyright (C) 2005-2008 Yoshinori Sato 12 #include <asm/asm-offsets.h> 33 #include <asm/entry-macros.S> 37 ! r0 <- point sp 43 mov.l r2,@-sp 44 mov.l r3,@-sp 46 mov.l $cpu_mode,r2 48 mov.l $cpuid,r3 [all …]
|
/linux/include/asm-generic/ |
H A D | local64.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 10 * Usually used in combination with per-cpu variables. 30 #define local64_read(l) local_read(&(l)->a) argument 31 #define local64_set(l,i) local_set((&(l)->a),(i)) argument 32 #define local64_inc(l) local_inc(&(l)->a) argument 33 #define local64_dec(l) local_dec(&(l)->a) argument 34 #define local64_add(i,l) local_add((i),(&(l)->a)) argument 35 #define local64_sub(i,l) local_sub((i),(&(l)->a)) argument 37 #define local64_sub_and_test(i, l) local_sub_and_test((i), (&(l)->a)) argument 38 #define local64_dec_and_test(l) local_dec_and_test(&(l)->a) argument [all …]
|
H A D | local.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 11 * Usually used in combination with per-cpu variables. 29 #define local_read(l) atomic_long_read(&(l)->a) argument 30 #define local_set(l,i) atomic_long_set((&(l)->a),(i)) argument 31 #define local_inc(l) atomic_long_inc(&(l)->a) argument 32 #define local_dec(l) atomic_long_dec(&(l)->a) argument 33 #define local_add(i,l) atomic_long_add((i),(&(l)->a)) argument 34 #define local_sub(i,l) atomic_long_sub((i),(&(l)->a)) argument 36 #define local_sub_and_test(i, l) atomic_long_sub_and_test((i), (&(l)->a)) argument 37 #define local_dec_and_test(l) atomic_long_dec_and_test(&(l)->a) argument [all …]
|
/linux/drivers/gpu/drm/amd/display/dc/dml2/dml21/src/dml2_top/ |
H A D | dml_top.c | 1 // SPDX-License-Identifier: MIT 22 struct dml2_instance *dml = (struct dml2_instance *)in_out->dml2_instance; in dml2_initialize_instance() 23 struct dml2_initialize_instance_locals *l = &dml->scratch.initialize_instance_locals; in dml2_initialize_instance() local 29 memset(l, 0, sizeof(struct dml2_initialize_instance_locals)); in dml2_initialize_instance() 32 memcpy(&dml->ip_caps, &in_out->ip_caps, sizeof(struct dml2_ip_capabilities)); in dml2_initialize_instance() 33 memcpy(&dml->soc_bbox, &in_out->soc_bb, sizeof(struct dml2_soc_bb)); in dml2_initialize_instance() 35 dml->project_id = in_out->options.project_id; in dml2_initialize_instance() 36 dml->pmo_options = in_out->options.pmo_options; in dml2_initialize_instance() 39 result = dml2_mcg_create(in_out->options.project_id, &dml->mcg_instance); in dml2_initialize_instance() 42 result = dml2_dpmm_create(in_out->options.project_id, &dml->dpmm_instance); in dml2_initialize_instance() [all …]
|
H A D | dml2_top_soc15.c | 1 // SPDX-License-Identifier: MIT 14 memcpy(&out->display_config, display_config, sizeof(struct dml2_display_cfg)); in setup_unoptimized_display_config_with_meta() 15 …out->stage1.min_clk_index_for_latency = dml->min_clk_table.dram_bw_table.num_entries - 1; //dml->m… in setup_unoptimized_display_config_with_meta() 20 memcpy(&out->display_config, display_config, sizeof(struct dml2_display_cfg)); in setup_speculative_display_config_with_meta() 21 out->stage1.min_clk_index_for_latency = 0; in setup_speculative_display_config_with_meta() 31 struct dml2_optimization_stage1_state *state = ¶ms->display_config->stage1; in dml2_top_optimization_init_function_min_clk_for_latency() 33 state->performed = true; in dml2_top_optimization_init_function_min_clk_for_latency() 40 struct dml2_optimization_stage1_state *state = ¶ms->display_config->stage1; in dml2_top_optimization_test_function_min_clk_for_latency() 42 return state->min_clk_index_for_latency == 0; in dml2_top_optimization_test_function_min_clk_for_latency() 49 if (params->display_config->stage1.min_clk_index_for_latency > 0) { in dml2_top_optimization_optimize_function_min_clk_for_latency() [all …]
|
/linux/drivers/net/ethernet/broadcom/ |
H A D | bnx2.h | 3 * Copyright (c) 2004-2014 Broadcom Corporation 4 * Copyright (c) 2014-2015 QLogic Corporation 71 #define STATUS_ATTN_BITS_LINK_STATE (1L<<0) 72 #define STATUS_ATTN_BITS_TX_SCHEDULER_ABORT (1L<<1) 73 #define STATUS_ATTN_BITS_TX_BD_READ_ABORT (1L<<2) 74 #define STATUS_ATTN_BITS_TX_BD_CACHE_ABORT (1L<<3) 75 #define STATUS_ATTN_BITS_TX_PROCESSOR_ABORT (1L<<4) 76 #define STATUS_ATTN_BITS_TX_DMA_ABORT (1L<<5) 77 #define STATUS_ATTN_BITS_TX_PATCHUP_ABORT (1L<<6) 78 #define STATUS_ATTN_BITS_TX_ASSEMBLER_ABORT (1L<<7) [all …]
|
/linux/arch/sh/kernel/ |
H A D | relocate_kernel.S | 1 /* SPDX-License-Identifier: GPL-2.0 3 * relocate_kernel.S - put the kernel image in place to boot 8 * 2009-03-18 Magnus Damm - Added Kexec Jump support 20 mov.l 10f, r0 /* PAGE_SIZE */ 23 /* save r15->r8 to new stack */ 24 mov.l r15, @-r0 26 mov.l r14, @-r15 27 mov.l r13, @-r15 28 mov.l r12, @-r15 29 mov.l r11, @-r15 [all …]
|
/linux/net/tipc/ |
H A D | link.c | 4 * Copyright (c) 1996-2007, 2012-2016, Ericsson AB 5 * Copyright (c) 2004-2007, 2010-2013, Wind River Systems 82 * struct tipc_link - TIPC link data structure 244 static int tipc_link_proto_rcv(struct tipc_link *l, struct sk_buff *skb, 246 static void tipc_link_build_proto_msg(struct tipc_link *l, int mtyp, bool probe, 250 static void link_print(struct tipc_link *l, const char *str); 251 static int tipc_link_build_nack_msg(struct tipc_link *l, 253 static void tipc_link_build_bc_init_msg(struct tipc_link *l, 256 struct tipc_link *l, u8 start_index); 257 static u16 tipc_build_gap_ack_blks(struct tipc_link *l, struct tipc_msg *hdr); [all …]
|
/linux/fs/bcachefs/ |
H A D | nocow_locking.c | 1 // SPDX-License-Identifier: GPL-2.0 13 struct nocow_lock_bucket *l = bucket_nocow_lock(t, dev_bucket); in bch2_bucket_nocow_is_locked() local 16 for (i = 0; i < ARRAY_SIZE(l->b); i++) in bch2_bucket_nocow_is_locked() 17 if (l->b[i] == dev_bucket && atomic_read(&l->l[i])) in bch2_bucket_nocow_is_locked() 22 #define sign(v) (v < 0 ? -1 : v > 0 ? 1 : 0) 27 struct nocow_lock_bucket *l = bucket_nocow_lock(t, dev_bucket); in bch2_bucket_nocow_unlock() local 28 int lock_val = flags ? 1 : -1; in bch2_bucket_nocow_unlock() 31 for (i = 0; i < ARRAY_SIZE(l->b); i++) in bch2_bucket_nocow_unlock() 32 if (l->b[i] == dev_bucket) { in bch2_bucket_nocow_unlock() 33 int v = atomic_sub_return(lock_val, &l->l[i]); in bch2_bucket_nocow_unlock() [all …]
|
/linux/arch/x86/include/asm/ |
H A D | local.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 16 #define local_read(l) atomic_long_read(&(l)->a) argument 17 #define local_set(l, i) atomic_long_set(&(l)->a, (i)) argument 19 static inline void local_inc(local_t *l) in local_inc() argument 22 : "+m" (l->a.counter)); in local_inc() 25 static inline void local_dec(local_t *l) in local_dec() argument 28 : "+m" (l->a.counter)); in local_dec() 31 static inline void local_add(long i, local_t *l) in local_add() argument 34 : "+m" (l->a.counter) in local_add() 38 static inline void local_sub(long i, local_t *l) in local_sub() argument [all …]
|
/linux/arch/sh/lib/ |
H A D | movmem.S | 1 /* SPDX-License-Identifier: GPL-2.0+ WITH GCC-exception-2.0 28 sts.l pr,@-r15 31 mov.l @(48,r5),r0 34 mov.l @(60,r5),r0 35 add #-64,r6 36 mov.l r0,@(60,r4) 38 mov.l @(56,r5),r0 40 mov.l r0,@(56,r4) 42 mov.l @(52,r5),r0 44 mov.l r0,@(52,r4) [all …]
|
H A D | copy_page.S | 1 /* SPDX-License-Identifier: GPL-2.0 */ 21 * r0, r1, r2, r3, r4, r5, r6, r7 --- scratch 22 * r8 --- from + PAGE_SIZE 23 * r9 --- not used 24 * r10 --- to 25 * r11 --- from 28 mov.l r8,@-r15 29 mov.l r10,@-r15 30 mov.l r11,@-r15 39 1: mov.l @r11+,r0 [all …]
|
/linux/arch/loongarch/include/asm/ |
H A D | local.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * Copyright (C) 2020-2022 Loongson Technology Corporation Limited 19 #define local_read(l) atomic_long_read(&(l)->a) argument 20 #define local_set(l, i) atomic_long_set(&(l)->a, (i)) argument 22 #define local_add(i, l) atomic_long_add((i), (&(l)->a)) argument 23 #define local_sub(i, l) atomic_long_sub((i), (&(l)->a)) argument 24 #define local_inc(l) atomic_long_inc(&(l)->a) argument 25 #define local_dec(l) atomic_long_dec(&(l)->a) argument 30 static inline long local_add_return(long i, local_t *l) in local_add_return() argument 36 : "+ZB" (l->a.counter), "=&r" (result) in local_add_return() [all …]
|
/linux/arch/mips/include/asm/ |
H A D | local.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 19 #define local_read(l) atomic_long_read(&(l)->a) argument 20 #define local_set(l, i) atomic_long_set(&(l)->a, (i)) argument 22 #define local_add(i, l) atomic_long_add((i), (&(l)->a)) argument 23 #define local_sub(i, l) atomic_long_sub((i), (&(l)->a)) argument 24 #define local_inc(l) atomic_long_inc(&(l)->a) argument 25 #define local_dec(l) atomic_long_dec(&(l)->a) argument 30 static __inline__ long local_add_return(long i, local_t * l) in local_add_return() argument 47 : "=&r" (result), "=&r" (temp), "=m" (l->a.counter) in local_add_return() 48 : "Ir" (i), "m" (l->a.counter) in local_add_return() [all …]
|
/linux/arch/alpha/include/asm/ |
H A D | local.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 14 #define local_read(l) atomic_long_read(&(l)->a) argument 15 #define local_set(l,i) atomic_long_set(&(l)->a, (i)) argument 16 #define local_inc(l) atomic_long_inc(&(l)->a) argument 17 #define local_dec(l) atomic_long_dec(&(l)->a) argument 18 #define local_add(i,l) atomic_long_add((i),(&(l)->a)) argument 19 #define local_sub(i,l) atomic_long_sub((i),(&(l)->a)) argument 21 static __inline__ long local_add_return(long i, local_t * l) in local_add_return() argument 33 :"=&r" (temp), "=m" (l->a.counter), "=&r" (result) in local_add_return() 34 :"Ir" (i), "m" (l->a.counter) : "memory"); in local_add_return() [all …]
|
/linux/arch/sh/kernel/cpu/sh2a/ |
H A D | entry.S | 1 /* SPDX-License-Identifier: GPL-2.0 5 * The SH-2A exception entry 12 #include <asm/asm-offsets.h> 33 #include <asm/entry-macros.S> 37 ! r0 <- point sp 43 mov.l r2,@-sp 45 mov.l $cpu_mode,r2 51 mov.l $current_thread_info,r2 52 mov.l @r2,r2 58 mov.l r1,@-r15 ! TRA [all …]
|
/linux/arch/powerpc/include/asm/ |
H A D | local.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 20 static __inline__ long local_read(const local_t *l) in local_read() argument 22 return READ_ONCE(l->v); in local_read() 25 static __inline__ void local_set(local_t *l, long i) in local_set() argument 27 WRITE_ONCE(l->v, i); in local_set() 31 static __inline__ void local_##op(long i, local_t *l) \ 36 l->v c_op i; \ 41 static __inline__ long local_##op##_return(long a, local_t *l) \ 47 t = (l->v c_op a); \ 58 LOCAL_OPS(sub, -=) [all …]
|
/linux/arch/sh/kernel/cpu/shmobile/ |
H A D | sleep.S | 1 /* SPDX-License-Identifier: GPL-2.0 3 * arch/sh/kernel/cpu/sh4a/sleep-sh_mobile.S 13 #include <asm/asm-offsets.h> 24 /* manage self-refresh and enter standby mode. must be self-contained. 25 * this code will be copied to on-chip memory and executed from there. 31 mov.l r4, @(SH_SLEEP_MODE, r5) 35 mov.l r0, @(SH_SLEEP_VBR, r5) 37 /* point vbr to our on-chip memory page */ 42 mov.l r0, @(SH_SLEEP_SPC, r5) 46 mov.l r0, @(SH_SLEEP_SR, r5) [all …]
|
/linux/arch/m68k/math-emu/ |
H A D | fp_util.S | 23 * the restrictions contained in a BSD-style copyright.) 63 tst.l (TASK_MM-8,%a2) 65 tst.l (TASK_MM-4,%a2) 67 tst.l (TASK_MM,%a2) 69 1: printf ,"oops:%p,%p,%p\n",3,%a2@(TASK_MM-8),%a2@(TASK_MM-4),%a2@(TASK_MM) 70 2: clr.l %d0 94 | args: %d0 = source (32-bit long) 98 printf PCONV,"l2e: %p -> %p(",2,%d0,%a0 99 clr.l %d1 | sign defaults to zero 100 tst.l %d0 [all …]
|
/linux/arch/sh/include/asm/ |
H A D | switch_to_32.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 8 (!!(tsk->thread.dsp_status.status & SR_DSP)) 13 (u32 *)&tsk->thread.dsp_status; \ 16 "movs.l @r2+, a0\n\t" \ 17 "movs.l @r2+, a1\n\t" \ 18 "movs.l @r2+, a0g\n\t" \ 19 "movs.l @r2+, a1g\n\t" \ 20 "movs.l @r2+, m0\n\t" \ 21 "movs.l @r2+, m1\n\t" \ 22 "movs.l @r2+, x0\n\t" \ [all …]
|
/linux/arch/openrisc/lib/ |
H A D | memset.S | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 5 * Hand-optimized assembler version of memset for OpenRISC. 6 * Algorithm inspired by several other arch-specific memset routines 23 l.sfeqi r5, 0 24 l.bf 4f 27 l.andi r13, r4, 0xff 30 l.sfeqi r13, 0 31 l.bf 1f 33 l.sfleui r5, 7 35 /* Extend char c to 32-bit word cccc in r13 */ [all …]
|