| /kernel/linux/linux-5.10/arch/powerpc/include/asm/ |
| D | atomic.h | 25 static __inline__ int atomic_read(const atomic_t *v) in atomic_read() argument 29 __asm__ __volatile__("lwz%U1%X1 %0,%1" : "=r"(t) : "m"(v->counter)); in atomic_read() 34 static __inline__ void atomic_set(atomic_t *v, int i) in atomic_set() argument 36 __asm__ __volatile__("stw%U0%X0 %1,%0" : "=m"(v->counter) : "r"(i)); in atomic_set() 40 static __inline__ void atomic_##op(int a, atomic_t *v) \ 46 #asm_op " %0,%2,%0\n" \ 49 : "=&r" (t), "+m" (v->counter) \ 50 : "r" (a), "r" (&v->counter) \ 55 static inline int atomic_##op##_return_relaxed(int a, atomic_t *v) \ 61 #asm_op " %0,%2,%0\n" \ [all …]
|
| /kernel/linux/linux-4.19/arch/powerpc/include/asm/ |
| D | atomic.h | 28 static __inline__ int atomic_read(const atomic_t *v) in atomic_read() argument 32 __asm__ __volatile__("lwz%U1%X1 %0,%1" : "=r"(t) : "m"(v->counter)); in atomic_read() 37 static __inline__ void atomic_set(atomic_t *v, int i) in atomic_set() argument 39 __asm__ __volatile__("stw%U0%X0 %1,%0" : "=m"(v->counter) : "r"(i)); in atomic_set() 43 static __inline__ void atomic_##op(int a, atomic_t *v) \ 49 #asm_op " %0,%2,%0\n" \ 53 : "=&r" (t), "+m" (v->counter) \ 54 : "r" (a), "r" (&v->counter) \ 59 static inline int atomic_##op##_return_relaxed(int a, atomic_t *v) \ 65 #asm_op " %0,%2,%0\n" \ [all …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dml/dcn30/ |
| D | display_mode_vba_30.c | 426 double RequiredDPPCLK[][2][DC__NUM_DPP__MAX], 427 double RequiredDISPCLK[][2], 429 unsigned int NoOfDPP[][2][DC__NUM_DPP__MAX], 430 double ProjectedDCFCLKDeepSleep[][2], 431 double MaximumVStartup[][2][DC__NUM_DPP__MAX], 432 double TotalVActivePixelBandwidth[][2], 433 double TotalVActiveCursorBandwidth[][2], 434 double TotalMetaRowBandwidth[][2], 435 double TotalDPTERowBandwidth[][2], 436 unsigned int TotalNumberOfActiveDPP[][2], [all …]
|
| /kernel/linux/linux-5.10/lib/crypto/ |
| D | blake2s-generic.c | 21 { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 }, 22 { 14, 10, 4, 8, 9, 15, 13, 6, 1, 12, 0, 2, 11, 7, 5, 3 }, 23 { 11, 8, 12, 0, 5, 2, 15, 13, 10, 14, 3, 6, 7, 1, 9, 4 }, 24 { 7, 9, 3, 1, 13, 12, 11, 14, 2, 6, 5, 10, 4, 0, 15, 8 }, 25 { 9, 0, 5, 7, 2, 4, 10, 15, 14, 1, 11, 12, 6, 8, 3, 13 }, 26 { 2, 12, 6, 10, 0, 11, 8, 3, 4, 13, 7, 5, 15, 14, 1, 9 }, 27 { 12, 5, 1, 15, 14, 13, 4, 10, 0, 7, 6, 3, 9, 2, 8, 11 }, 28 { 13, 11, 7, 14, 12, 1, 3, 9, 5, 0, 15, 4, 8, 6, 2, 10 }, 29 { 6, 15, 14, 9, 11, 3, 0, 8, 12, 2, 13, 7, 1, 4, 10, 5 }, 30 { 10, 2, 8, 4, 7, 6, 1, 5, 15, 11, 9, 14, 3, 12, 13, 0 }, [all …]
|
| /kernel/linux/linux-5.10/drivers/media/dvb-frontends/ |
| D | mb86a16.c | 40 #define MB86A16_INFO 2 71 .len = 2 in mb86a16_write() 102 ret = i2c_transfer(state->i2c_adap, msg, 2); in mb86a16_read() 103 if (ret != 2) { in mb86a16_read() 123 val = (timint1 << 4) | (timint2 << 2) | cnext; in CNTM_set() 141 tmp = (8192 * state->master_clk - 2 * m * rate * 8192 + state->master_clk / 2) / state->master_clk; in smrt_set() 146 if (mb86a16_write(state, MB86A16_SRATE1, (state->deci << 2) | in smrt_set() 292 val = 0x7a | (cren << 7) | (afcen << 2); in EN_set() 313 AFCA = 2; in AFCEXEN_set() 317 if (mb86a16_write(state, 0x2a, 0x02 | (afcexen << 5) | (AFCA << 2)) < 0) in AFCEXEN_set() [all …]
|
| /kernel/linux/linux-5.10/arch/alpha/include/asm/ |
| D | atomic.h | 29 #define atomic_read(v) READ_ONCE((v)->counter) argument 30 #define atomic64_read(v) READ_ONCE((v)->counter) argument 32 #define atomic_set(v,i) WRITE_ONCE((v)->counter, (i)) argument 33 #define atomic64_set(v,i) WRITE_ONCE((v)->counter, (i)) argument 42 static __inline__ void atomic_##op(int i, atomic_t * v) \ 47 " " #asm_op " %0,%2,%0\n" \ 49 " beq %0,2f\n" \ 50 ".subsection 2\n" \ 51 "2: br 1b\n" \ 53 :"=&r" (temp), "=m" (v->counter) \ [all …]
|
| /kernel/linux/linux-4.19/arch/alpha/include/asm/ |
| D | atomic.h | 30 #define atomic_read(v) READ_ONCE((v)->counter) argument 31 #define atomic64_read(v) READ_ONCE((v)->counter) argument 33 #define atomic_set(v,i) WRITE_ONCE((v)->counter, (i)) argument 34 #define atomic64_set(v,i) WRITE_ONCE((v)->counter, (i)) argument 43 static __inline__ void atomic_##op(int i, atomic_t * v) \ 48 " " #asm_op " %0,%2,%0\n" \ 50 " beq %0,2f\n" \ 51 ".subsection 2\n" \ 52 "2: br 1b\n" \ 54 :"=&r" (temp), "=m" (v->counter) \ [all …]
|
| /kernel/linux/linux-4.19/drivers/media/dvb-frontends/ |
| D | mb86a16.c | 8 the Free Software Foundation; either version 2 of the License, or 52 #define MB86A16_INFO 2 83 .len = 2 in mb86a16_write() 114 ret = i2c_transfer(state->i2c_adap, msg, 2); in mb86a16_read() 115 if (ret != 2) { in mb86a16_read() 135 val = (timint1 << 4) | (timint2 << 2) | cnext; in CNTM_set() 153 tmp = (8192 * state->master_clk - 2 * m * rate * 8192 + state->master_clk / 2) / state->master_clk; in smrt_set() 158 if (mb86a16_write(state, MB86A16_SRATE1, (state->deci << 2) | in smrt_set() 304 val = 0x7a | (cren << 7) | (afcen << 2); in EN_set() 325 AFCA = 2; in AFCEXEN_set() [all …]
|
| /kernel/linux/linux-4.19/Documentation/media/uapi/v4l/ |
| D | subdev-formats.rst | 15 :widths: 1 1 2 96 1 and 2. 112 green and 5-bit blue values padded on the high bit, transferred as 2 132 \setlength{\tabcolsep}{2pt} 135 :header-rows: 2 137 :widths: 36 7 3 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 175 - 2 204 - r\ :sub:`2` 208 - g\ :sub:`2` 212 - b\ :sub:`2` [all …]
|
| /kernel/linux/linux-4.19/arch/x86/lib/ |
| D | atomic64_386_32.S | 8 * the Free Software Foundation; either version 2 of the License, or 31 LOCK v; 36 UNLOCK v; \ 43 #define v %ecx macro 45 movl (v), %eax 46 movl 4(v), %edx 48 #undef v 50 #define v %esi macro 52 movl %ebx, (v) 53 movl %ecx, 4(v) [all …]
|
| /kernel/linux/linux-5.10/Documentation/userspace-api/media/v4l/ |
| D | subdev-formats.rst | 15 :widths: 1 1 2 179 1 and 2. 195 green and 5-bit blue values padded on the high bit, transferred as 2 215 \setlength{\tabcolsep}{2pt} 218 :header-rows: 2 220 :widths: 36 7 3 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 258 - 2 287 - r\ :sub:`2` 291 - g\ :sub:`2` 295 - b\ :sub:`2` [all …]
|
| /kernel/linux/linux-4.19/Documentation/hwmon/ |
| D | mc13783-adc | 36 0 Battery Voltage (BATT) 2.50 - 4.65V -2.40V 38 2 Application Supply (BP) 2.50 - 4.65V -2.40V 39 3 Charger Voltage (CHRGRAW) 0 - 10V / /5 40 0 - 20V /10 41 4 Charger Current (CHRGISNSP-CHRGISNSN) -0.25 - 0.25V x4 42 5 General Purpose ADIN5 / Battery Pack Thermistor 0 - 2.30V No 43 6 General Purpose ADIN6 / Backup Voltage (LICELL) 0 - 2.30V / No / 44 1.50 - 3.50V -1.20V 45 7 General Purpose ADIN7 / UID / Die Temperature 0 - 2.30V / No / 46 0 - 2.55V / x0.9 / No [all …]
|
| /kernel/linux/linux-4.19/sound/soc/qcom/ |
| D | lpass-lpaif-reg.h | 5 * it under the terms of the GNU General Public License version 2 and 6 * only version 2 as published by the Free Software Foundation. 19 #define LPAIF_I2SCTL_REG_ADDR(v, addr, port) \ argument 20 (v->i2sctrl_reg_base + (addr) + v->i2sctrl_reg_stride * (port)) 22 #define LPAIF_I2SCTL_REG(v, port) LPAIF_I2SCTL_REG_ADDR(v, 0x0, (port)) argument 37 #define LPAIF_I2SCTL_SPKMODE_SD1 (2 << LPAIF_I2SCTL_SPKMODE_SHIFT) 59 #define LPAIF_I2SCTL_MICMODE_SD1 (2 << LPAIF_I2SCTL_MICMODE_SHIFT) 73 #define LPAIF_I2SCTL_WSSRC_SHIFT 2 81 #define LPAIF_I2SCTL_BITWIDTH_32 (2 << LPAIF_I2SCTL_BITWIDTH_SHIFT) 84 #define LPAIF_IRQ_REG_ADDR(v, addr, port) \ argument [all …]
|
| /kernel/linux/linux-5.10/drivers/iommu/ |
| D | msm_iommu_hw-8xxx.h | 20 #define SET_GLOBAL_REG_N(b, n, r, v) SET_GLOBAL_REG(b, ((r) + (n << 2)), (v)) argument 21 #define GET_GLOBAL_REG_N(b, n, r) GET_GLOBAL_REG(b, ((r) + (n << 2))) 28 #define SET_GLOBAL_FIELD(b, r, F, v) \ argument 29 SET_FIELD(((b) + (r)), F##_MASK, F##_SHIFT, (v)) 30 #define SET_CONTEXT_FIELD(b, c, r, F, v) \ argument 31 SET_FIELD(((b) + (r) + ((c) << CTX_SHIFT)), F##_MASK, F##_SHIFT, (v)) 35 #define SET_FIELD(addr, mask, shift, v) \ argument 38 writel((t & ~((mask) << (shift))) + (((v) & (mask)) << (shift)), addr);\ 49 #define FL_TYPE_SECT (2 << 0) 54 #define FL_BUFFERABLE (1 << 2) [all …]
|
| /kernel/linux/linux-4.19/drivers/iommu/ |
| D | msm_iommu_hw-8xxx.h | 4 * it under the terms of the GNU General Public License version 2 and 5 * only version 2 as published by the Free Software Foundation. 33 #define SET_GLOBAL_REG_N(b, n, r, v) SET_GLOBAL_REG(b, ((r) + (n << 2)), (v)) argument 34 #define GET_GLOBAL_REG_N(b, n, r) GET_GLOBAL_REG(b, ((r) + (n << 2))) 41 #define SET_GLOBAL_FIELD(b, r, F, v) \ argument 42 SET_FIELD(((b) + (r)), F##_MASK, F##_SHIFT, (v)) 43 #define SET_CONTEXT_FIELD(b, c, r, F, v) \ argument 44 SET_FIELD(((b) + (r) + ((c) << CTX_SHIFT)), F##_MASK, F##_SHIFT, (v)) 48 #define SET_FIELD(addr, mask, shift, v) \ argument 51 writel((t & ~((mask) << (shift))) + (((v) & (mask)) << (shift)), addr);\ [all …]
|
| /kernel/linux/linux-4.19/arch/mips/include/asm/ |
| D | atomic.h | 40 * @v: pointer of type atomic_t 42 * Atomically reads the value of @v. 44 #define atomic_read(v) READ_ONCE((v)->counter) argument 48 * @v: pointer of type atomic_t 51 * Atomically sets the value of @v to @i. 53 #define atomic_set(v, i) WRITE_ONCE((v)->counter, (i)) argument 56 static __inline__ void atomic_##op(int i, atomic_t * v) \ 64 " " #asm_op " %0, %2 \n" \ 68 : "=&r" (temp), "+" GCC_OFF_SMALL_ASM() (v->counter) \ 74 v->counter c_op i; \ [all …]
|
| /kernel/linux/linux-5.10/Documentation/hwmon/ |
| D | mc13783-adc.rst | 47 0 Battery Voltage (BATT) 2.50 - 4.65V -2.40V 49 2 Application Supply (BP) 2.50 - 4.65V -2.40V 50 3 Charger Voltage (CHRGRAW) 0 - 10V / /5 51 0 - 20V /10 52 4 Charger Current (CHRGISNSP-CHRGISNSN) -0.25 - 0.25V x4 53 5 General Purpose ADIN5 / Battery Pack Thermistor 0 - 2.30V No 54 6 General Purpose ADIN6 / Backup Voltage (LICELL) 0 - 2.30V / No / 55 1.50 - 3.50V -1.20V 56 7 General Purpose ADIN7 / UID / Die Temperature 0 - 2.30V / No / 57 0 - 2.55V / x0.9 / No [all …]
|
| /kernel/linux/linux-5.10/drivers/iio/adc/ |
| D | stm32-dfsdm.h | 31 * | 0x300 | FILTER 2 | 48 #define DFSDM_CHCFGR1_SITP(v) FIELD_PREP(DFSDM_CHCFGR1_SITP_MASK, v) argument 49 #define DFSDM_CHCFGR1_SPICKSEL_MASK GENMASK(3, 2) 50 #define DFSDM_CHCFGR1_SPICKSEL(v) FIELD_PREP(DFSDM_CHCFGR1_SPICKSEL_MASK, v) argument 52 #define DFSDM_CHCFGR1_SCDEN(v) FIELD_PREP(DFSDM_CHCFGR1_SCDEN_MASK, v) argument 54 #define DFSDM_CHCFGR1_CKABEN(v) FIELD_PREP(DFSDM_CHCFGR1_CKABEN_MASK, v) argument 56 #define DFSDM_CHCFGR1_CHEN(v) FIELD_PREP(DFSDM_CHCFGR1_CHEN_MASK, v) argument 58 #define DFSDM_CHCFGR1_CHINSEL(v) FIELD_PREP(DFSDM_CHCFGR1_CHINSEL_MASK, v) argument 60 #define DFSDM_CHCFGR1_DATMPX(v) FIELD_PREP(DFSDM_CHCFGR1_DATMPX_MASK, v) argument 62 #define DFSDM_CHCFGR1_DATPACK(v) FIELD_PREP(DFSDM_CHCFGR1_DATPACK_MASK, v) argument [all …]
|
| /kernel/linux/linux-4.19/arch/arm/include/asm/ |
| D | atomic.h | 8 * it under the terms of the GNU General Public License version 2 as 30 #define atomic_read(v) READ_ONCE((v)->counter) argument 31 #define atomic_set(v,i) WRITE_ONCE(((v)->counter), (i)) argument 42 static inline void atomic_##op(int i, atomic_t *v) \ 47 prefetchw(&v->counter); \ 54 : "=&r" (result), "=&r" (tmp), "+Qo" (v->counter) \ 55 : "r" (&v->counter), "Ir" (i) \ 60 static inline int atomic_##op##_return_relaxed(int i, atomic_t *v) \ 65 prefetchw(&v->counter); \ 73 : "=&r" (result), "=&r" (tmp), "+Qo" (v->counter) \ [all …]
|
| /kernel/linux/linux-5.10/arch/x86/lib/ |
| D | atomic64_386_32.S | 27 IRQ_SAVE v; 32 IRQ_RESTORE v; \ 35 #define v %ecx macro 37 movl (v), %eax 38 movl 4(v), %edx 41 #undef v 43 #define v %esi macro 45 movl %ebx, (v) 46 movl %ecx, 4(v) 49 #undef v [all …]
|
| /kernel/liteos_m/arch/arm/cortex-m4/iar/ |
| D | los_arch_atomic.h | 11 * 2. Redistributions in binary form must reproduce the above copyright notice, this list 43 STATIC INLINE INT32 ArchAtomicRead(const Atomic *v) in ArchAtomicRead() argument 49 : "r"(v) in ArchAtomicRead() 55 STATIC INLINE VOID ArchAtomicSet(Atomic *v, INT32 setVal) in ArchAtomicSet() argument 60 " strex %0, %2, [%1]\n" in ArchAtomicSet() 64 : "r"(v), "r"(setVal) in ArchAtomicSet() 68 STATIC INLINE INT32 ArchAtomicAdd(Atomic *v, INT32 addVal) in ArchAtomicAdd() argument 74 asm volatile("ldrex %1, [%2]\n" in ArchAtomicAdd() 76 "strex %0, %1, [%2]" in ArchAtomicAdd() 78 : "r"(v), "r"(addVal) in ArchAtomicAdd() [all …]
|
| /kernel/liteos_m/arch/arm/cortex-m33/iar/TZ/non_secure/ |
| D | los_arch_atomic.h | 11 * 2. Redistributions in binary form must reproduce the above copyright notice, this list 43 STATIC INLINE INT32 ArchAtomicRead(const Atomic *v) in ArchAtomicRead() argument 49 : "r"(v) in ArchAtomicRead() 55 STATIC INLINE VOID ArchAtomicSet(Atomic *v, INT32 setVal) in ArchAtomicSet() argument 61 "strex %0, %2, [%1]\n" in ArchAtomicSet() 63 : "r"(v), "r"(setVal) in ArchAtomicSet() 68 STATIC INLINE INT32 ArchAtomicAdd(Atomic *v, INT32 addVal) in ArchAtomicAdd() argument 74 asm volatile("ldrex %1, [%2]\n" in ArchAtomicAdd() 76 "strex %0, %1, [%2]" in ArchAtomicAdd() 78 : "r"(v), "r"(addVal) in ArchAtomicAdd() [all …]
|
| /kernel/liteos_m/arch/arm/cortex-m7/iar/ |
| D | los_arch_atomic.h | 11 * 2. Redistributions in binary form must reproduce the above copyright notice, this list 43 STATIC INLINE INT32 ArchAtomicRead(const Atomic *v) in ArchAtomicRead() argument 49 : "r"(v) in ArchAtomicRead() 55 STATIC INLINE VOID ArchAtomicSet(Atomic *v, INT32 setVal) in ArchAtomicSet() argument 61 "strex %0, %2, [%1]\n" in ArchAtomicSet() 63 : "r"(v), "r"(setVal) in ArchAtomicSet() 68 STATIC INLINE INT32 ArchAtomicAdd(Atomic *v, INT32 addVal) in ArchAtomicAdd() argument 74 asm volatile("ldrex %1, [%2]\n" in ArchAtomicAdd() 76 "strex %0, %1, [%2]" in ArchAtomicAdd() 78 : "r"(v), "r"(addVal) in ArchAtomicAdd() [all …]
|
| /kernel/liteos_m/arch/arm/cortex-m33/iar/NTZ/ |
| D | los_arch_atomic.h | 11 * 2. Redistributions in binary form must reproduce the above copyright notice, this list 43 STATIC INLINE INT32 ArchAtomicRead(const Atomic *v) in ArchAtomicRead() argument 49 : "r"(v) in ArchAtomicRead() 55 STATIC INLINE VOID ArchAtomicSet(Atomic *v, INT32 setVal) in ArchAtomicSet() argument 61 "strex %0, %2, [%1]\n" in ArchAtomicSet() 63 : "r"(v), "r"(setVal) in ArchAtomicSet() 68 STATIC INLINE INT32 ArchAtomicAdd(Atomic *v, INT32 addVal) in ArchAtomicAdd() argument 74 asm volatile("ldrex %1, [%2]\n" in ArchAtomicAdd() 76 "strex %0, %1, [%2]" in ArchAtomicAdd() 78 : "r"(v), "r"(addVal) in ArchAtomicAdd() [all …]
|
| /kernel/linux/linux-4.19/arch/m68k/include/asm/ |
| D | atomic.h | 21 #define atomic_read(v) READ_ONCE((v)->counter) argument 22 #define atomic_set(v, i) WRITE_ONCE(((v)->counter), (i)) argument 35 static inline void atomic_##op(int i, atomic_t *v) \ 37 __asm__ __volatile__(#asm_op "l %1,%0" : "+m" (*v) : ASM_DI (i));\ 43 static inline int atomic_##op##_return(int i, atomic_t *v) \ 48 "1: movel %2,%1\n" \ 50 " casl %2,%1,%0\n" \ 52 : "+m" (*v), "=&d" (t), "=&d" (tmp) \ 53 : "g" (i), "2" (atomic_read(v))); \ 58 static inline int atomic_fetch_##op(int i, atomic_t *v) \ [all …]
|