/kernel/linux/linux-6.6/arch/arm64/include/asm/ |
H A D | stacktrace.h | 27 unsigned long low = (unsigned long)raw_cpu_read(irq_stack_ptr); in stackinfo_get_irq() local 28 unsigned long high = low + IRQ_STACK_SIZE; in stackinfo_get_irq() 31 .low = low, in stackinfo_get_irq() 44 unsigned long low = (unsigned long)task_stack_page(tsk); in stackinfo_get_task() local 45 unsigned long high = low + THREAD_SIZE; in stackinfo_get_task() 48 .low = low, in stackinfo_get_task() 67 unsigned long low = (unsigned long)raw_cpu_ptr(overflow_stack); in stackinfo_get_overflow() local 68 unsigned long high = low in stackinfo_get_overflow() 85 unsigned long low = (unsigned long)raw_cpu_read(sdei_stack_normal_ptr); stackinfo_get_sdei_normal() local 96 unsigned long low = (unsigned long)raw_cpu_read(sdei_stack_critical_ptr); stackinfo_get_sdei_critical() local 115 unsigned long low = high - THREAD_SIZE; stackinfo_get_efi() local [all...] |
/kernel/linux/linux-6.6/drivers/thermal/intel/ |
H A D | intel_tcc.c | 22 u32 low, high; in intel_tcc_get_tjmax() local 26 err = rdmsr_safe(MSR_IA32_TEMPERATURE_TARGET, &low, &high); in intel_tcc_get_tjmax() 28 err = rdmsr_safe_on_cpu(cpu, MSR_IA32_TEMPERATURE_TARGET, &low, &high); in intel_tcc_get_tjmax() 32 val = (low >> 16) & 0xff; in intel_tcc_get_tjmax() 49 u32 low, high; in intel_tcc_get_offset() local 53 err = rdmsr_safe(MSR_IA32_TEMPERATURE_TARGET, &low, &high); in intel_tcc_get_offset() 55 err = rdmsr_safe_on_cpu(cpu, MSR_IA32_TEMPERATURE_TARGET, &low, &high); in intel_tcc_get_offset() 59 return (low >> 24) & 0x3f; in intel_tcc_get_offset() 76 u32 low, high; in intel_tcc_set_offset() local 83 err = rdmsr_safe(MSR_IA32_TEMPERATURE_TARGET, &low, in intel_tcc_set_offset() 116 u32 low, high; intel_tcc_get_temp() local [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/sfc/falcon/ |
H A D | bitfield.h | 109 * Extract bit field portion [low,high) from the native-endian element 121 * [0,high-low), with garbage in bits [high-low+1,...). 123 #define EF4_EXTRACT_NATIVE(native_element, min, max, low, high) \ 124 ((low) > (max) || (high) < (min) ? 0 : \ 125 (low) > (min) ? \ 126 (native_element) >> ((low) - (min)) : \ 127 (native_element) << ((min) - (low))) 130 * Extract bit field portion [low,high) from the 64-bit little-endian 133 #define EF4_EXTRACT64(element, min, max, low, hig [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/sfc/ |
H A D | bitfield.h | 109 * Extract bit field portion [low,high) from the native-endian element 121 * [0,high-low), with garbage in bits [high-low+1,...). 123 #define EFX_EXTRACT_NATIVE(native_element, min, max, low, high) \ 124 ((low) > (max) || (high) < (min) ? 0 : \ 125 (low) > (min) ? \ 126 (native_element) >> ((low) - (min)) : \ 127 (native_element) << ((min) - (low))) 130 * Extract bit field portion [low,high) from the 64-bit little-endian 133 #define EFX_EXTRACT64(element, min, max, low, hig [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/sfc/falcon/ |
H A D | bitfield.h | 109 * Extract bit field portion [low,high) from the native-endian element 121 * [0,high-low), with garbage in bits [high-low+1,...). 123 #define EF4_EXTRACT_NATIVE(native_element, min, max, low, high) \ 124 ((low) > (max) || (high) < (min) ? 0 : \ 125 (low) > (min) ? \ 126 (native_element) >> ((low) - (min)) : \ 127 (native_element) << ((min) - (low))) 130 * Extract bit field portion [low,high) from the 64-bit little-endian 133 #define EF4_EXTRACT64(element, min, max, low, hig [all...] |
/kernel/linux/linux-6.6/arch/alpha/kernel/ |
H A D | machvec_impl.h | 75 #define IO_LITE(UP,low) \ 78 .mv_ioread8 = CAT(low,_ioread8), \ 79 .mv_ioread16 = CAT(low,_ioread16), \ 80 .mv_ioread32 = CAT(low,_ioread32), \ 81 .mv_ioread64 = CAT(low,_ioread64), \ 82 .mv_iowrite8 = CAT(low,_iowrite8), \ 83 .mv_iowrite16 = CAT(low,_iowrite16), \ 84 .mv_iowrite32 = CAT(low,_iowrite32), \ 85 .mv_iowrite64 = CAT(low,_iowrite64), \ 86 .mv_readb = CAT(low,_read [all...] |
/kernel/linux/linux-5.10/arch/alpha/kernel/ |
H A D | machvec_impl.h | 75 #define IO_LITE(UP,low) \ 78 .mv_ioread8 = CAT(low,_ioread8), \ 79 .mv_ioread16 = CAT(low,_ioread16), \ 80 .mv_ioread32 = CAT(low,_ioread32), \ 81 .mv_iowrite8 = CAT(low,_iowrite8), \ 82 .mv_iowrite16 = CAT(low,_iowrite16), \ 83 .mv_iowrite32 = CAT(low,_iowrite32), \ 84 .mv_readb = CAT(low,_readb), \ 85 .mv_readw = CAT(low,_readw), \ 86 .mv_readl = CAT(low,_read [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/sfc/ |
H A D | bitfield.h | 111 * Extract bit field portion [low,high) from the native-endian element 123 * [0,high-low), with garbage in bits [high-low+1,...). 125 #define EFX_EXTRACT_NATIVE(native_element, min, max, low, high) \ 126 ((low) > (max) || (high) < (min) ? 0 : \ 127 (low) > (min) ? \ 128 (native_element) >> ((low) - (min)) : \ 129 (native_element) << ((min) - (low))) 132 * Extract bit field portion [low,high) from the 64-bit little-endian 135 #define EFX_EXTRACT64(element, min, max, low, hig [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/sfc/siena/ |
H A D | bitfield.h | 109 * Extract bit field portion [low,high) from the native-endian element 121 * [0,high-low), with garbage in bits [high-low+1,...). 123 #define EFX_EXTRACT_NATIVE(native_element, min, max, low, high) \ 124 ((low) > (max) || (high) < (min) ? 0 : \ 125 (low) > (min) ? \ 126 (native_element) >> ((low) - (min)) : \ 127 (native_element) << ((min) - (low))) 130 * Extract bit field portion [low,high) from the 64-bit little-endian 133 #define EFX_EXTRACT64(element, min, max, low, hig [all...] |
/kernel/linux/linux-5.10/arch/x86/include/asm/ |
H A D | msr.h | 53 /* Using 64-bit values saves one instruction clearing the high half of low */ 54 #define DECLARE_ARGS(val, low, high) unsigned long low, high 55 #define EAX_EDX_VAL(val, low, high) ((low) | (high) << 32) 56 #define EAX_EDX_RET(val, low, high) "=a" (low), "=d" (high) 58 #define DECLARE_ARGS(val, low, high) unsigned long long val 59 #define EAX_EDX_VAL(val, low, high) (val) 60 #define EAX_EDX_RET(val, low, hig 101 __wrmsr(unsigned int msr, u32 low, u32 high) __wrmsr() argument 158 native_write_msr(unsigned int msr, u32 low, u32 high) native_write_msr() argument 168 native_write_msr_safe(unsigned int msr, u32 low, u32 high) native_write_msr_safe() argument 271 wrmsr(unsigned int msr, u32 low, u32 high) wrmsr() argument 285 wrmsr_safe(unsigned int msr, u32 low, u32 high) wrmsr_safe() argument [all...] |
/kernel/linux/linux-6.6/arch/x86/include/asm/ |
H A D | msr.h | 44 /* Using 64-bit values saves one instruction clearing the high half of low */ 45 #define DECLARE_ARGS(val, low, high) unsigned long low, high 46 #define EAX_EDX_VAL(val, low, high) ((low) | (high) << 32) 47 #define EAX_EDX_RET(val, low, high) "=a" (low), "=d" (high) 49 #define DECLARE_ARGS(val, low, high) unsigned long long val 50 #define EAX_EDX_VAL(val, low, high) (val) 51 #define EAX_EDX_RET(val, low, hig 92 __wrmsr(unsigned int msr, u32 low, u32 high) __wrmsr() argument 143 native_write_msr(unsigned int msr, u32 low, u32 high) native_write_msr() argument 153 native_write_msr_safe(unsigned int msr, u32 low, u32 high) native_write_msr_safe() argument 252 wrmsr(unsigned int msr, u32 low, u32 high) wrmsr() argument 266 wrmsr_safe(unsigned int msr, u32 low, u32 high) wrmsr_safe() argument [all...] |
/kernel/linux/linux-6.6/arch/arm64/kvm/ |
H A D | stacktrace.c | 28 unsigned long low = (unsigned long)stacktrace_info->overflow_stack_base; in stackinfo_get_overflow() local 29 unsigned long high = low + OVERFLOW_STACK_SIZE; in stackinfo_get_overflow() 32 .low = low, in stackinfo_get_overflow() 39 unsigned long low = (unsigned long)this_cpu_ptr_nvhe_sym(overflow_stack); in stackinfo_get_overflow_kern_va() local 40 unsigned long high = low + OVERFLOW_STACK_SIZE; in stackinfo_get_overflow_kern_va() 43 .low = low, in stackinfo_get_overflow_kern_va() 52 unsigned long low = (unsigned long)stacktrace_info->stack_base; in stackinfo_get_hyp() local 53 unsigned long high = low in stackinfo_get_hyp() 63 unsigned long low = (unsigned long)*this_cpu_ptr(&kvm_arm_hyp_stack_page); stackinfo_get_hyp_kern_va() local [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/i40e/ |
H A D | i40e_ptp.c | 66 low = 0, enumerator 83 {off, in_A, off, high, high, high, low}, 84 {off, out_A, off, high, low, high, high}, 85 {off, in_B, off, high, high, high, low}, 86 {off, out_B, off, high, low, high, high}, 87 {in_A, off, off, high, high, high, low}, 88 {in_A, in_B, off, high, high, high, low}, 89 {in_A, out_B, off, high, low, high, high}, 90 {out_A, off, off, high, low, high, high}, 91 {out_A, in_B, off, high, low, hig [all...] |
/kernel/linux/linux-5.10/drivers/rtc/ |
H A D | rtc-max8925.c | 113 unsigned char high, low; in data_calc() local 119 low = (tm->tm_year + 1900) / 100; in data_calc() 120 low = low - high * 10; in data_calc() 121 buf[RTC_YEAR2] = (high << 4) + low; in data_calc() 123 low = tm->tm_year + 1900; in data_calc() 124 low = low - high * 10; in data_calc() 126 buf[RTC_YEAR1] = (high << 4) + low; in data_calc() 128 low in data_calc() [all...] |
/kernel/linux/linux-6.6/drivers/rtc/ |
H A D | rtc-max8925.c | 113 unsigned char high, low; in data_calc() local 119 low = (tm->tm_year + 1900) / 100; in data_calc() 120 low = low - high * 10; in data_calc() 121 buf[RTC_YEAR2] = (high << 4) + low; in data_calc() 123 low = tm->tm_year + 1900; in data_calc() 124 low = low - high * 10; in data_calc() 126 buf[RTC_YEAR1] = (high << 4) + low; in data_calc() 128 low in data_calc() [all...] |
/kernel/linux/linux-6.6/arch/x86/kernel/cpu/mtrr/ |
H A D | centaur.c | 12 unsigned long low; member 53 *size = -(centaur_mcr[reg].low & 0xfffff000) >> PAGE_SHIFT; in centaur_get_mcr() 56 if (centaur_mcr_type == 1 && ((centaur_mcr[reg].low & 31) & 2)) in centaur_get_mcr() 58 if (centaur_mcr_type == 1 && (centaur_mcr[reg].low & 31) == 25) in centaur_get_mcr() 60 if (centaur_mcr_type == 0 && (centaur_mcr[reg].low & 31) == 31) in centaur_get_mcr() 68 unsigned long low, high; in centaur_set_mcr() local 72 high = low = 0; in centaur_set_mcr() 77 low = -size << PAGE_SHIFT | 0x1f; in centaur_set_mcr() 80 low = -size << PAGE_SHIFT | 0x02; /* NC */ in centaur_set_mcr() 82 low in centaur_set_mcr() [all...] |
H A D | amd.c | 13 unsigned long low, high; in amd_get_mtrr() local 15 rdmsr(MSR_K6_UWCCR, low, high); in amd_get_mtrr() 18 low = high; in amd_get_mtrr() 20 *base = (low & 0xFFFE0000) >> PAGE_SHIFT; in amd_get_mtrr() 22 if (low & 1) in amd_get_mtrr() 24 if (low & 2) in amd_get_mtrr() 26 if (!(low & 3)) { in amd_get_mtrr() 45 low = (~low) & 0x1FFFC; in amd_get_mtrr() 46 *size = (low in amd_get_mtrr() [all...] |
/kernel/linux/linux-5.10/arch/arm64/include/asm/ |
H A D | stacktrace.h | 28 unsigned long low; member 72 static inline bool on_stack(unsigned long sp, unsigned long low, in on_stack() argument 76 if (!low) in on_stack() 79 if (sp < low || sp >= high) in on_stack() 83 info->low = low; in on_stack() 93 unsigned long low = (unsigned long)raw_cpu_read(irq_stack_ptr); in on_irq_stack() local 94 unsigned long high = low + IRQ_STACK_SIZE; in on_irq_stack() 96 return on_stack(sp, low, high, STACK_TYPE_IRQ, info); in on_irq_stack() 103 unsigned long low in on_task_stack() local 115 unsigned long low = (unsigned long)raw_cpu_ptr(overflow_stack); on_overflow_stack() local [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/signal/ |
H A D | sigreturn_vdso.c | 26 static int search_proc_maps(char *needle, unsigned long *low, unsigned long *high) in search_proc_maps() argument 53 *low = start; in search_proc_maps() 74 unsigned long low, high, size; in test_sigreturn_vdso() local 85 assert(search_proc_maps("[vdso]", &low, &high) == 0); in test_sigreturn_vdso() 86 size = high - low + 1; in test_sigreturn_vdso() 87 printf("VDSO is at 0x%lx-0x%lx (%lu bytes)\n", low, high, size); in test_sigreturn_vdso() 96 assert(mremap((void *)low, size, size, MREMAP_MAYMOVE|MREMAP_FIXED, p) != MAP_FAILED); in test_sigreturn_vdso() 97 assert(search_proc_maps("[vdso]", &low, &high) == 0); in test_sigreturn_vdso() 98 size = high - low + 1; in test_sigreturn_vdso() 99 printf("VDSO moved to 0x%lx-0x%lx (%lu bytes)\n", low, hig in test_sigreturn_vdso() [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/powerpc/signal/ |
H A D | sigreturn_vdso.c | 26 static int search_proc_maps(char *needle, unsigned long *low, unsigned long *high) in search_proc_maps() argument 53 *low = start; in search_proc_maps() 74 unsigned long low, high, size; in test_sigreturn_vdso() local 85 assert(search_proc_maps("[vdso]", &low, &high) == 0); in test_sigreturn_vdso() 86 size = high - low + 1; in test_sigreturn_vdso() 87 printf("VDSO is at 0x%lx-0x%lx (%lu bytes)\n", low, high, size); in test_sigreturn_vdso() 96 assert(mremap((void *)low, size, size, MREMAP_MAYMOVE|MREMAP_FIXED, p) != MAP_FAILED); in test_sigreturn_vdso() 97 assert(search_proc_maps("[vdso]", &low, &high) == 0); in test_sigreturn_vdso() 98 size = high - low + 1; in test_sigreturn_vdso() 99 printf("VDSO moved to 0x%lx-0x%lx (%lu bytes)\n", low, hig in test_sigreturn_vdso() [all...] |
/kernel/linux/linux-5.10/arch/x86/kernel/cpu/mtrr/ |
H A D | centaur.c | 12 unsigned long low; member 53 centaur_mcr[mcr].low = lo; in mtrr_centaur_report_mcr() 62 *size = -(centaur_mcr[reg].low & 0xfffff000) >> PAGE_SHIFT; in centaur_get_mcr() 65 if (centaur_mcr_type == 1 && ((centaur_mcr[reg].low & 31) & 2)) in centaur_get_mcr() 67 if (centaur_mcr_type == 1 && (centaur_mcr[reg].low & 31) == 25) in centaur_get_mcr() 69 if (centaur_mcr_type == 0 && (centaur_mcr[reg].low & 31) == 31) in centaur_get_mcr() 77 unsigned long low, high; in centaur_set_mcr() local 81 high = low = 0; in centaur_set_mcr() 86 low = -size << PAGE_SHIFT | 0x1f; in centaur_set_mcr() 89 low in centaur_set_mcr() [all...] |
H A D | amd.c | 13 unsigned long low, high; in amd_get_mtrr() local 15 rdmsr(MSR_K6_UWCCR, low, high); in amd_get_mtrr() 18 low = high; in amd_get_mtrr() 20 *base = (low & 0xFFFE0000) >> PAGE_SHIFT; in amd_get_mtrr() 22 if (low & 1) in amd_get_mtrr() 24 if (low & 2) in amd_get_mtrr() 26 if (!(low & 3)) { in amd_get_mtrr() 45 low = (~low) & 0x1FFFC; in amd_get_mtrr() 46 *size = (low in amd_get_mtrr() [all...] |
/kernel/uniproton/src/utility/lib/ |
H A D | prt_lib_math64.c | 21 OS_SEC_ALW_INLINE INLINE void OsAdd64X(U32 oldLow, U32 oldHigh, U32 *low, U32 *high) in OsAdd64X() argument 23 if (*low > OS_MAX_U32 - oldLow) { in OsAdd64X() 28 *low += oldLow; in OsAdd64X() 33 OS_SEC_L4_TEXT void OsAdd64(U32 *low, U32 *high, U32 oldLow, U32 oldHigh) in OsAdd64() argument 35 OsAdd64X(oldLow, oldHigh, low, high); in OsAdd64() 41 OS_SEC_ALW_INLINE INLINE void OsSub64X(U32 oldLow, U32 oldHigh, U32 *low, U32 *high) in OsSub64X() argument 43 if (*low >= oldLow) { in OsSub64X() 48 *low -= oldLow; in OsSub64X() 53 OS_SEC_L4_TEXT void OsSub64(U32 *low, U32 *high, U32 oldLow, U32 oldHigh) in OsSub64() argument 55 OsSub64X(oldLow, oldHigh, low, hig in OsSub64() [all...] |
/kernel/linux/linux-5.10/arch/arm/nwfpe/ |
H A D | fpopcode.c | 19 { .high = 0x0000, .low = 0x0000000000000000ULL},/* extended 0.0 */ 20 { .high = 0x3fff, .low = 0x8000000000000000ULL},/* extended 1.0 */ 21 { .high = 0x4000, .low = 0x8000000000000000ULL},/* extended 2.0 */ 22 { .high = 0x4000, .low = 0xc000000000000000ULL},/* extended 3.0 */ 23 { .high = 0x4001, .low = 0x8000000000000000ULL},/* extended 4.0 */ 24 { .high = 0x4001, .low = 0xa000000000000000ULL},/* extended 5.0 */ 25 { .high = 0x3ffe, .low = 0x8000000000000000ULL},/* extended 0.5 */ 26 { .high = 0x4002, .low = 0xa000000000000000ULL},/* extended 10.0 */
|
/kernel/linux/linux-6.6/arch/arm/nwfpe/ |
H A D | fpopcode.c | 19 { .high = 0x0000, .low = 0x0000000000000000ULL},/* extended 0.0 */ 20 { .high = 0x3fff, .low = 0x8000000000000000ULL},/* extended 1.0 */ 21 { .high = 0x4000, .low = 0x8000000000000000ULL},/* extended 2.0 */ 22 { .high = 0x4000, .low = 0xc000000000000000ULL},/* extended 3.0 */ 23 { .high = 0x4001, .low = 0x8000000000000000ULL},/* extended 4.0 */ 24 { .high = 0x4001, .low = 0xa000000000000000ULL},/* extended 5.0 */ 25 { .high = 0x3ffe, .low = 0x8000000000000000ULL},/* extended 0.5 */ 26 { .high = 0x4002, .low = 0xa000000000000000ULL},/* extended 10.0 */
|