/linux-master/arch/alpha/lib/ |
H A D | fpreg.c | 14 #define STT(reg,val) asm volatile ("ftoit $f"#reg",%0" : "=r"(val)); 16 #define STT(reg,val) asm volatile ("stt $f"#reg",%0" : "=m"(val)); 22 unsigned long val; local 28 val = current_thread_info()->fp[reg]; 30 case 0: STT( 0, val); break; 31 case 1: STT( 1, val); break; 32 case 2: STT( 2, val); break; 33 case 3: STT( 3, val); brea 75 alpha_write_fp_reg(unsigned long reg, unsigned long val) argument 131 unsigned long val; local 186 alpha_write_fp_reg_s(unsigned long reg, unsigned long val) argument [all...] |
/linux-master/lib/ |
H A D | bcd.c | 5 unsigned _bcd2bin(unsigned char val) argument 7 return (val & 0x0f) + (val >> 4) * 10; 11 unsigned char _bin2bcd(unsigned val) argument 13 return ((val / 10) << 4) + val % 10;
|
H A D | clz_ctz.c | 17 int __weak __ctzsi2(int val); 18 int __weak __ctzsi2(int val) argument 20 return __ffs(val); 24 int __weak __clzsi2(int val); 25 int __weak __clzsi2(int val) argument 27 return 32 - fls(val); 31 int __weak __clzdi2(u64 val); 32 int __weak __clzdi2(u64 val) argument 34 return 64 - fls64(val); 38 int __weak __ctzdi2(u64 val); 39 __ctzdi2(u64 val) argument [all...] |
/linux-master/tools/perf/arch/arm64/util/ |
H A D | tsc.c | 9 u64 val; local 18 asm volatile("mrs %0, cntvct_el0" : "=r" (val)); 20 return val;
|
/linux-master/arch/x86/include/asm/ |
H A D | pgtable-invert.h | 16 static inline bool __pte_needs_invert(u64 val) argument 18 return val && !(val & _PAGE_PRESENT); 22 static inline u64 protnone_mask(u64 val) argument 24 return __pte_needs_invert(val) ? ~0ull : 0; 27 static inline u64 flip_protnone_guard(u64 oldval, u64 val, u64 mask) argument 34 if (__pte_needs_invert(oldval) != __pte_needs_invert(val)) 35 val = (val & ~mask) | (~val [all...] |
H A D | misc.h | 5 int num_digits(int val);
|
/linux-master/tools/testing/selftests/powerpc/math/ |
H A D | fpu.h | 11 long val; local 14 val = random(); 15 if (val & 1) 16 val *= -1; 18 if (val & 2) 19 darray[i] = 1.0 / val; 21 darray[i] = val * val;
|
/linux-master/include/linux/ |
H A D | hwmon-vid.h | 14 int vid_from_reg(int val, u8 vrm); 18 val is in mV to avoid floating point in the kernel. 21 static inline int vid_to_reg(int val, u8 vrm) argument 26 return ((val >= 1100) && (val <= 1850) ? 27 ((18499 - val * 10) / 25 + 5) / 10 : -1);
|
/linux-master/arch/x86/lib/ |
H A D | misc.c | 5 * Count the digits of @val including a possible sign. 9 int num_digits(int val) argument 14 if (val < 0) { 16 val = -val; 19 while (val >= m) {
|
/linux-master/drivers/net/wireless/broadcom/brcm80211/brcmsmac/ |
H A D | types.h | 133 #define CONF_HAS(config, val) ((config) & (1 << (val))) 138 #define CONF_IS(config, val) ((config) == (1 << (val))) 139 #define CONF_GE(config, val) ((config) & (0-(1 << (val)))) 140 #define CONF_GT(config, val) ((config) & (0-2*(1 << (val)))) 141 #define CONF_LT(config, val) ((config) & ((1 << (val)) [all...] |
/linux-master/drivers/hwtracing/coresight/ |
H A D | coresight-etm-cp14.c | 15 int etm_readl_cp14(u32 reg, unsigned int *val) argument 19 *val = etm_read(ETMCR); 22 *val = etm_read(ETMCCR); 25 *val = etm_read(ETMTRIGGER); 28 *val = etm_read(ETMSR); 31 *val = etm_read(ETMSCR); 34 *val = etm_read(ETMTSSCR); 37 *val = etm_read(ETMTEEVR); 40 *val = etm_read(ETMTECR1); 43 *val 306 etm_writel_cp14(u32 reg, u32 val) argument [all...] |
/linux-master/arch/m68k/include/uapi/asm/ |
H A D | swab.h | 11 static inline __attribute_const__ __u32 __arch_swab32(__u32 val) argument 13 __asm__("byterev %0" : "=d" (val) : "0" (val)); 14 return val; 20 static inline __attribute_const__ __u32 __arch_swab32(__u32 val) argument 22 __asm__("rolw #8,%0; swap %0; rolw #8,%0" : "=d" (val) : "0" (val)); 23 return val;
|
/linux-master/arch/loongarch/include/asm/ |
H A D | kvm_csr.h | 18 " gcsrrd %[val], %[reg]\n\t" \ 19 : [val] "=r" (__v) \ 29 " gcsrwr %[val], %[reg]\n\t" \ 30 : [val] "+r" (__v) \ 39 " gcsrxchg %[val], %[mask], %[reg]\n\t" \ 40 : [val] "+r" (__v) \ 48 #define write_gcsr_crmd(val) gcsr_write(val, LOONGARCH_CSR_CRMD) 50 #define write_gcsr_prmd(val) gcsr_write(val, LOONGARCH_CSR_PRM 191 kvm_write_sw_gcsr(struct loongarch_csrs *csr, int gid, unsigned long val) argument 196 kvm_set_sw_gcsr(struct loongarch_csrs *csr, int gid, unsigned long val) argument 202 kvm_change_sw_gcsr(struct loongarch_csrs *csr, int gid, unsigned long mask, unsigned long val) argument [all...] |
/linux-master/arch/arm/include/asm/ |
H A D | cp15.h | 59 unsigned long val; local 60 asm("mrc p15, 0, %0, c1, c0, 0 @ get CR" : "=r" (val) : : "cc"); 61 return val; 64 static inline void set_cr(unsigned long val) argument 67 : : "r" (val) : "cc"); 73 unsigned int val; local 74 asm("mrc p15, 0, %0, c1, c0, 1 @ get AUXCR" : "=r" (val)); 75 return val; 78 static inline void set_auxcr(unsigned int val) argument 81 : : "r" (val)); 91 unsigned int val; local 97 set_copro_access(unsigned int val) argument [all...] |
/linux-master/arch/s390/kernel/ |
H A D | machine_kexec_reloc.c | 5 int arch_kexec_do_relocs(int r_type, void *loc, unsigned long val, argument 12 *(u8 *)loc = val; 16 *(u16 *)loc |= val & 0xfff; 19 *(u16 *)loc = val; 23 *(u32 *)loc |= (val & 0xfff) << 16; /* DL */ 24 *(u32 *)loc |= (val & 0xff000) >> 4; /* DH */ 27 *(u32 *)loc = val; 32 *(u64 *)loc = val; 35 *(u16 *)loc = (val - addr); 38 *(u16 *)loc = (val [all...] |
/linux-master/arch/arm/include/asm/hardware/ |
H A D | cp14.h | 12 #define dbg_write(val, reg) WCP14_##reg(val) 14 #define etm_write(val, reg) WCP14_##reg(val) 19 u32 val; \ 20 asm volatile("mrc p14, "#op1", %0, "#crn", "#crm", "#op2 : "=r" (val)); \ 21 val; \ 24 #define MCR14(val, op1, crn, crm, op2) \ 26 asm volatile("mcr p14, "#op1", %0, "#crn", "#crm", "#op2 : : "r" (val));\ 152 #define WCP14_DBGDTRTXint(val) MCR1 [all...] |
/linux-master/arch/x86/include/uapi/asm/ |
H A D | swab.h | 8 static inline __attribute_const__ __u32 __arch_swab32(__u32 val) argument 10 asm("bswapl %0" : "=r" (val) : "0" (val)); 11 return val; 15 static inline __attribute_const__ __u64 __arch_swab64(__u64 val) argument 25 v.u = val; 31 asm("bswapq %0" : "=r" (val) : "0" (val)); 32 return val;
|
/linux-master/tools/objtool/include/objtool/ |
H A D | endianness.h | 21 #define bswap_if_needed(elf, val) \ 23 __typeof__(val) __ret; \ 25 switch (sizeof(val)) { \ 27 __ret = __need_bswap ? bswap_64(val) : (val); break; \ 29 __ret = __need_bswap ? bswap_32(val) : (val); break; \ 31 __ret = __need_bswap ? bswap_16(val) : (val); break; \
|
/linux-master/arch/arm64/boot/dts/ti/ |
H A D | k3-pinctrl.h | 41 #define AM62AX_IOPAD(pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode)) 42 #define AM62AX_MCU_IOPAD(pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode)) 44 #define AM62PX_IOPAD(pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode)) 45 #define AM62PX_MCU_IOPAD(pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode)) 47 #define AM62X_IOPAD(pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmod [all...] |
/linux-master/scripts/dtc/include-prefixes/arm64/ti/ |
H A D | k3-pinctrl.h | 41 #define AM62AX_IOPAD(pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode)) 42 #define AM62AX_MCU_IOPAD(pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode)) 44 #define AM62PX_IOPAD(pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode)) 45 #define AM62PX_MCU_IOPAD(pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode)) 47 #define AM62X_IOPAD(pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmod [all...] |
/linux-master/drivers/clk/ |
H A D | clk-fsl-flexspi.c | 14 { .val = 0, .div = 1, }, 15 { .val = 1, .div = 2, }, 16 { .val = 2, .div = 3, }, 17 { .val = 3, .div = 4, }, 18 { .val = 4, .div = 5, }, 19 { .val = 5, .div = 6, }, 20 { .val = 6, .div = 7, }, 21 { .val = 7, .div = 8, }, 22 { .val = 11, .div = 12, }, 23 { .val [all...] |
/linux-master/drivers/net/ethernet/chelsio/cxgb4/ |
H A D | cxgb4_tc_u32_parse.h | 41 int (*val)(struct ch_filter_specification *f, __be32 val, __be32 mask); member in struct:cxgb4_match_field 46 __be32 val, __be32 mask) 48 f->val.tos = (ntohl(val) >> 16) & 0x000000FF; 55 __be32 val, __be32 mask) 60 frag_val = (ntohl(val) >> 13) & 0x00000007; 64 f->val.frag = 1; 67 f->val.frag = 0; 77 __be32 val, __be3 45 cxgb4_fill_ipv4_tos(struct ch_filter_specification *f, __be32 val, __be32 mask) argument 54 cxgb4_fill_ipv4_frag(struct ch_filter_specification *f, __be32 val, __be32 mask) argument 76 cxgb4_fill_ipv4_proto(struct ch_filter_specification *f, __be32 val, __be32 mask) argument 85 cxgb4_fill_ipv4_src_ip(struct ch_filter_specification *f, __be32 val, __be32 mask) argument 94 cxgb4_fill_ipv4_dst_ip(struct ch_filter_specification *f, __be32 val, __be32 mask) argument 113 cxgb4_fill_ipv6_tos(struct ch_filter_specification *f, __be32 val, __be32 mask) argument 122 cxgb4_fill_ipv6_proto(struct ch_filter_specification *f, __be32 val, __be32 mask) argument 131 cxgb4_fill_ipv6_src_ip0(struct ch_filter_specification *f, __be32 val, __be32 mask) argument 140 cxgb4_fill_ipv6_src_ip1(struct ch_filter_specification *f, __be32 val, __be32 mask) argument 149 cxgb4_fill_ipv6_src_ip2(struct ch_filter_specification *f, __be32 val, __be32 mask) argument 158 cxgb4_fill_ipv6_src_ip3(struct ch_filter_specification *f, __be32 val, __be32 mask) argument 167 cxgb4_fill_ipv6_dst_ip0(struct ch_filter_specification *f, __be32 val, __be32 mask) argument 176 cxgb4_fill_ipv6_dst_ip1(struct ch_filter_specification *f, __be32 val, __be32 mask) argument 185 cxgb4_fill_ipv6_dst_ip2(struct ch_filter_specification *f, __be32 val, __be32 mask) argument 194 cxgb4_fill_ipv6_dst_ip3(struct ch_filter_specification *f, __be32 val, __be32 mask) argument 218 cxgb4_fill_l4_ports(struct ch_filter_specification *f, __be32 val, __be32 mask) argument [all...] |
/linux-master/tools/testing/ktest/examples/bootconfigs/ |
H A D | verify-functiongraph.sh | 7 val="$2" 9 if [ "$content" != "$val" ]; then 10 echo "FAILED: $file has '$content', expected '$val'" 17 val="$2" 18 content=`cat $file | sed -ne "/^$val/p"` 20 echo "FAILED: $file does not contain '$val'" 28 val="$2" 30 if ! grep -q "$val" $file ; then 31 echo "FAILED: $file does not contain $val" 39 val [all...] |
H A D | verify-tracing.sh | 7 val="$2" 9 if [ "$content" != "$val" ]; then 10 echo "FAILED: $file has '$content', expected '$val'" 17 val="$2" 18 content=`cat $file | sed -ne "/^$val/p"` 20 echo "FAILED: $file does not contain '$val'" 28 val="$2" 30 if ! grep -q "$val" $file ; then 31 echo "FAILED: $file does not contain $val" 39 val [all...] |
/linux-master/tools/virtio/linux/ |
H A D | compiler.h | 7 #define WRITE_ONCE(var, val) \ 8 (*((volatile typeof(val) *)(&(var))) = (val))
|