/openbmc/linux/arch/mips/loongson2ef/common/cs5536/ |
H A D | cs5536_ide.c | 17 u32 hi = 0, lo = value; in pci_ide_write_reg() local 21 _rdmsr(GLIU_MSR_REG(GLIU_PAE), &hi, &lo); in pci_ide_write_reg() 23 lo |= (0x03 << 4); in pci_ide_write_reg() 25 lo &= ~(0x03 << 4); in pci_ide_write_reg() 26 _wrmsr(GLIU_MSR_REG(GLIU_PAE), hi, lo); in pci_ide_write_reg() 30 _rdmsr(SB_MSR_REG(SB_ERROR), &hi, &lo); in pci_ide_write_reg() 31 if (lo & SB_PARE_ERR_FLAG) { in pci_ide_write_reg() 32 lo = (lo & 0x0000ffff) | SB_PARE_ERR_FLAG; in pci_ide_write_reg() 33 _wrmsr(SB_MSR_REG(SB_ERROR), hi, lo); in pci_ide_write_reg() 39 _rdmsr(SB_MSR_REG(SB_CTRL), &hi, &lo); in pci_ide_write_reg() [all …]
|
H A D | cs5536_isa.c | 51 u32 hi, lo; in divil_lbar_enable() local 59 _rdmsr(DIVIL_MSR_REG(offset), &hi, &lo); in divil_lbar_enable() 61 _wrmsr(DIVIL_MSR_REG(offset), hi, lo); in divil_lbar_enable() 70 u32 hi, lo; in divil_lbar_disable() local 74 _rdmsr(DIVIL_MSR_REG(offset), &hi, &lo); in divil_lbar_disable() 76 _wrmsr(DIVIL_MSR_REG(offset), hi, lo); in divil_lbar_disable() 86 u32 hi = 0, lo = value; in pci_isa_write_bar() local 89 _rdmsr(GLCP_MSR_REG(GLCP_SOFT_COM), &hi, &lo); in pci_isa_write_bar() 90 lo |= soft_bar_flag[n]; in pci_isa_write_bar() 91 _wrmsr(GLCP_MSR_REG(GLCP_SOFT_COM), hi, lo); in pci_isa_write_bar() [all …]
|
H A D | cs5536_acc.c | 17 u32 hi = 0, lo = value; in pci_acc_write_reg() local 21 _rdmsr(GLIU_MSR_REG(GLIU_PAE), &hi, &lo); in pci_acc_write_reg() 23 lo |= (0x03 << 8); in pci_acc_write_reg() 25 lo &= ~(0x03 << 8); in pci_acc_write_reg() 26 _wrmsr(GLIU_MSR_REG(GLIU_PAE), hi, lo); in pci_acc_write_reg() 30 _rdmsr(SB_MSR_REG(SB_ERROR), &hi, &lo); in pci_acc_write_reg() 31 if (lo & SB_PARE_ERR_FLAG) { in pci_acc_write_reg() 32 lo = (lo & 0x0000ffff) | SB_PARE_ERR_FLAG; in pci_acc_write_reg() 33 _wrmsr(SB_MSR_REG(SB_ERROR), hi, lo); in pci_acc_write_reg() 39 _rdmsr(GLCP_MSR_REG(GLCP_SOFT_COM), &hi, &lo); in pci_acc_write_reg() [all …]
|
H A D | cs5536_ohci.c | 17 u32 hi = 0, lo = value; in pci_ohci_write_reg() local 21 _rdmsr(USB_MSR_REG(USB_OHCI), &hi, &lo); in pci_ohci_write_reg() 31 _wrmsr(USB_MSR_REG(USB_OHCI), hi, lo); in pci_ohci_write_reg() 35 _rdmsr(SB_MSR_REG(SB_ERROR), &hi, &lo); in pci_ohci_write_reg() 36 if (lo & SB_PARE_ERR_FLAG) { in pci_ohci_write_reg() 37 lo = (lo & 0x0000ffff) | SB_PARE_ERR_FLAG; in pci_ohci_write_reg() 38 _wrmsr(SB_MSR_REG(SB_ERROR), hi, lo); in pci_ohci_write_reg() 44 _rdmsr(GLCP_MSR_REG(GLCP_SOFT_COM), &hi, &lo); in pci_ohci_write_reg() 45 lo |= SOFT_BAR_OHCI_FLAG; in pci_ohci_write_reg() 46 _wrmsr(GLCP_MSR_REG(GLCP_SOFT_COM), hi, lo); in pci_ohci_write_reg() [all …]
|
H A D | cs5536_ehci.c | 17 u32 hi = 0, lo = value; in pci_ehci_write_reg() local 21 _rdmsr(USB_MSR_REG(USB_EHCI), &hi, &lo); in pci_ehci_write_reg() 31 _wrmsr(USB_MSR_REG(USB_EHCI), hi, lo); in pci_ehci_write_reg() 35 _rdmsr(SB_MSR_REG(SB_ERROR), &hi, &lo); in pci_ehci_write_reg() 36 if (lo & SB_PARE_ERR_FLAG) { in pci_ehci_write_reg() 37 lo = (lo & 0x0000ffff) | SB_PARE_ERR_FLAG; in pci_ehci_write_reg() 38 _wrmsr(SB_MSR_REG(SB_ERROR), hi, lo); in pci_ehci_write_reg() 44 _rdmsr(GLCP_MSR_REG(GLCP_SOFT_COM), &hi, &lo); in pci_ehci_write_reg() 45 lo |= SOFT_BAR_EHCI_FLAG; in pci_ehci_write_reg() 46 _wrmsr(GLCP_MSR_REG(GLCP_SOFT_COM), hi, lo); in pci_ehci_write_reg() [all …]
|
/openbmc/linux/drivers/block/ |
H A D | loop.c | 111 static int loop_global_lock_killable(struct loop_device *lo, bool global) in loop_global_lock_killable() argument 120 err = mutex_lock_killable(&lo->lo_mutex); in loop_global_lock_killable() 132 static void loop_global_unlock(struct loop_device *lo, bool global) in loop_global_unlock() argument 134 mutex_unlock(&lo->lo_mutex); in loop_global_unlock() 163 static loff_t get_loop_size(struct loop_device *lo, struct file *file) in get_loop_size() argument 165 return get_size(lo->lo_offset, lo->lo_sizelimit, file); in get_loop_size() 173 static bool lo_bdev_can_use_dio(struct loop_device *lo, in lo_bdev_can_use_dio() argument 178 if (queue_logical_block_size(lo->lo_queue) < sb_bsize) in lo_bdev_can_use_dio() 180 if (lo->lo_offset & (sb_bsize - 1)) in lo_bdev_can_use_dio() 185 static void __loop_update_dio(struct loop_device *lo, bool dio) in __loop_update_dio() argument [all …]
|
/openbmc/linux/fs/nfs/ |
H A D | pnfs.c | 57 static void pnfs_layoutreturn_before_put_layout_hdr(struct pnfs_layout_hdr *lo); 58 static void pnfs_free_returned_lsegs(struct pnfs_layout_hdr *lo, 264 pnfs_get_layout_hdr(struct pnfs_layout_hdr *lo) in pnfs_get_layout_hdr() argument 266 refcount_inc(&lo->plh_refcount); in pnfs_get_layout_hdr() 277 pnfs_free_layout_hdr(struct pnfs_layout_hdr *lo) in pnfs_free_layout_hdr() argument 279 struct nfs_server *server = NFS_SERVER(lo->plh_inode); in pnfs_free_layout_hdr() 282 if (test_and_clear_bit(NFS_LAYOUT_HASHED, &lo->plh_flags)) { in pnfs_free_layout_hdr() 286 list_del_rcu(&lo->plh_layouts); in pnfs_free_layout_hdr() 289 put_cred(lo->plh_lc_cred); in pnfs_free_layout_hdr() 290 return ld->free_layout_hdr(lo); in pnfs_free_layout_hdr() [all …]
|
/openbmc/u-boot/arch/x86/cpu/ivybridge/ |
H A D | model_206ax.c | 43 if (msr.lo & (1 << 0)) { in enable_vmx() 55 msr.lo = 0; in enable_vmx() 76 msr.lo |= (1 << 2); in enable_vmx() 78 msr.lo |= (1 << 1); in enable_vmx() 172 if (!(msr.lo & PLATFORM_INFO_SET_TDP)) in set_power_limits() 177 power_unit = 2 << ((msr.lo & 0xf) - 1); in set_power_limits() 181 tdp = msr.lo & 0x7fff; in set_power_limits() 182 min_power = (msr.lo >> 16) & 0x7fff; in set_power_limits() 200 limit.lo = 0; in set_power_limits() 201 limit.lo |= tdp & PKG_POWER_LIMIT_MASK; in set_power_limits() [all …]
|
/openbmc/linux/block/ |
H A D | badblocks.c | 57 int lo; in badblocks_check() local 73 lo = 0; in badblocks_check() 85 while (hi - lo > 1) { in badblocks_check() 86 int mid = (lo + hi) / 2; in badblocks_check() 93 lo = mid; in badblocks_check() 99 if (hi > lo) { in badblocks_check() 103 while (lo >= 0 && in badblocks_check() 104 BB_OFFSET(p[lo]) + BB_LEN(p[lo]) > s) { in badblocks_check() 105 if (BB_OFFSET(p[lo]) < target) { in badblocks_check() 109 if (rv != -1 && BB_ACK(p[lo])) in badblocks_check() [all …]
|
/openbmc/u-boot/lib/efi_loader/ |
H A D | efi_bootmgr.c | 31 void efi_deserialize_load_option(struct efi_load_option *lo, u8 *data) in efi_deserialize_load_option() argument 33 lo->attributes = get_unaligned_le32(data); in efi_deserialize_load_option() 36 lo->file_path_length = get_unaligned_le16(data); in efi_deserialize_load_option() 40 lo->label = (u16 *)data; in efi_deserialize_load_option() 41 data += (u16_strlen(lo->label) + 1) * sizeof(u16); in efi_deserialize_load_option() 44 lo->file_path = (struct efi_device_path *)data; in efi_deserialize_load_option() 45 data += lo->file_path_length; in efi_deserialize_load_option() 47 lo->optional_data = data; in efi_deserialize_load_option() 54 unsigned long efi_serialize_load_option(struct efi_load_option *lo, u8 **data) in efi_serialize_load_option() argument 60 label_len = (u16_strlen(lo->label) + 1) * sizeof(u16); in efi_serialize_load_option() [all …]
|
/openbmc/linux/arch/riscv/net/ |
H A D | bpf_jit_comp32.c | 106 static s8 lo(const s8 *r) in lo() function 127 emit_imm(lo(rd), imm, ctx); in emit_imm32() 139 emit_imm(lo(rd), imm_lo, ctx); in emit_imm64() 150 emit(rv_addi(RV_REG_A0, lo(r0), 0), ctx); in __build_epilogue() 190 emit(rv_lw(lo(tmp), lo(reg), RV_REG_FP), ctx); in bpf_get_reg64() 201 emit(rv_sw(RV_REG_FP, lo(reg), lo(src)), ctx); in bpf_put_reg64() 208 if (is_stacked(lo(reg))) { in bpf_get_reg32() 209 emit(rv_lw(lo(tmp), lo(reg), RV_REG_FP), ctx); in bpf_get_reg32() 218 if (is_stacked(lo(reg))) { in bpf_put_reg32() 219 emit(rv_sw(RV_REG_FP, lo(reg), lo(src)), ctx); in bpf_put_reg32() [all …]
|
/openbmc/u-boot/arch/x86/cpu/broadwell/ |
H A D | cpu.c | 112 perf_ctl.lo = (msr.lo & 0xff) << 8; in set_max_freq() 116 perf_ctl.lo = msr.lo & 0xff00; in set_max_freq() 123 ((perf_ctl.lo >> 8) & 0xff) * CPU_BCLK); in set_max_freq() 278 msr.lo &= ~0xff000000; in initialize_vr_config() 281 msr.lo |= (min_vid & 0xff) << 24; in initialize_vr_config() 286 msr.lo &= ~0xffff; in initialize_vr_config() 292 msr.lo |= 0x006a; /* 1.56V */ in initialize_vr_config() 294 msr.lo |= 0x006f; /* 1.60V */ in initialize_vr_config() 416 perf_ctl.lo = (msr.lo & 0xff) << 8; in set_max_ratio() 420 perf_ctl.lo = (msr.lo & 0xff) << 8; in set_max_ratio() [all …]
|
/openbmc/qemu/util/ |
H A D | int128.c | 42 uint64_t hi, lo, tmp; in divrem128() local 48 lo = u.lo; in divrem128() 49 tmp = divu128(&lo, &hi, v.lo); in divrem128() 50 *q = int128_make128(lo, hi); in divrem128() 56 lo = u.lo; in divrem128() 58 divu128(&lo, &tmp, hi); in divrem128() 59 lo = int128_gethi(int128_lshift(int128_make128(lo, 0), s)); in divrem128() 61 lo = u.lo; in divrem128() 63 divu128(&lo, &tmp, hi); in divrem128() 64 lo = int128_gethi(int128_lshift(int128_make128(lo, 1), s)); in divrem128() [all …]
|
/openbmc/linux/arch/parisc/net/ |
H A D | bpf_jit_comp32.c | 115 static s8 lo(const s8 *r) in lo() function 159 REG_SET_SEEN(ctx, lo(rd)); in emit_imm32() 160 emit_imm(lo(rd), imm, ctx); in emit_imm32() 174 emit_imm(lo(rd), imm_lo, ctx); in emit_imm64() 203 emit_hppa_copy(lo(r0), HPPA_REG_RET0, ctx); in __build_epilogue() 229 emit(hppa_ldw(REG_SIZE * lo(reg) - offset_sp, HPPA_REG_SP, lo(tmp)), ctx); in bpf_get_reg64_offset() 233 REG_SET_SEEN(ctx, lo(reg)); in bpf_get_reg64_offset() 255 REG_SET_SEEN(ctx, lo(reg)); in bpf_get_reg64_ref() 265 emit(hppa_stw(lo(src), REG_SIZE * lo(reg), HPPA_REG_SP), ctx); in bpf_put_reg64() 283 if (is_stacked(lo(reg))) { in bpf_get_reg32() [all …]
|
/openbmc/qemu/include/qemu/ |
H A D | int128.h | 25 static inline Int128 int128_make128(uint64_t lo, uint64_t hi) in int128_make128() argument 27 return (__uint128_t)hi << 64 | lo; in int128_make128() 241 uint64_t lo; member 243 uint64_t lo; 250 return (Int128) { .lo = a, .hi = 0 }; in int128_make64() 255 return (Int128) { .lo = a, .hi = a >> 63 }; in int128_makes64() 258 static inline Int128 int128_make128(uint64_t lo, uint64_t hi) in int128_make128() argument 260 return (Int128) { .lo = lo, .hi = hi }; in int128_make128() 266 return a.lo; in int128_get64() 271 return a.lo; in int128_getlo() [all …]
|
/openbmc/linux/drivers/acpi/acpica/ |
H A D | utmath.c | 16 u32 lo; member 65 ACPI_MUL_64_BY_32(0, multiplicand_ovl.part.lo, multiplier, in acpi_ut_short_multiply() 66 product.part.lo, carry32); in acpi_ut_short_multiply() 100 operand_ovl.part.hi = operand_ovl.part.lo; in acpi_ut_short_shift_left() 101 operand_ovl.part.lo = 0; in acpi_ut_short_shift_left() 105 operand_ovl.part.lo, count); in acpi_ut_short_shift_left() 137 operand_ovl.part.lo = operand_ovl.part.hi; in acpi_ut_short_shift_right() 142 operand_ovl.part.lo, count); in acpi_ut_short_shift_right() 281 ACPI_DIV_64_BY_32(remainder32, dividend_ovl.part.lo, divisor, in acpi_ut_short_divide() 282 quotient.part.lo, remainder32); in acpi_ut_short_divide() [all …]
|
/openbmc/linux/arch/mips/net/ |
H A D | bpf_jit_comp32.c | 144 static inline u8 lo(const u8 reg[]) in lo() function 176 emit_mov_i(ctx, lo(dst), imm); in emit_mov_se_i64() 228 emit(ctx, addu, lo(dst), lo(dst), src); in emit_alu_i64() 229 emit(ctx, sltu, MIPS_R_T9, lo(dst), src); in emit_alu_i64() 236 emit(ctx, sltu, MIPS_R_T9, lo(dst), src); in emit_alu_i64() 237 emit(ctx, subu, lo(dst), lo(dst), src); in emit_alu_i64() 244 emit(ctx, or, lo(dst), lo(dst), src); in emit_alu_i64() 250 emit(ctx, and, lo(dst), lo(dst), src); in emit_alu_i64() 256 emit(ctx, xor, lo(dst), lo(dst), src); in emit_alu_i64() 274 emit(ctx, srl, MIPS_R_T9, lo(dst), 31); in emit_alu_r64() [all …]
|
/openbmc/linux/arch/csky/kernel/ |
H A D | perf_event.c | 92 uint32_t lo, hi, tmp; in csky_pmu_read_cc() local 97 lo = cprgr("<0, 0x2>"); in csky_pmu_read_cc() 102 result |= lo; in csky_pmu_read_cc() 116 uint32_t lo, hi, tmp; in csky_pmu_read_ic() local 121 lo = cprgr("<0, 0x4>"); in csky_pmu_read_ic() 126 result |= lo; in csky_pmu_read_ic() 140 uint32_t lo, hi, tmp; in csky_pmu_read_icac() local 145 lo = cprgr("<0, 0x6>"); in csky_pmu_read_icac() 150 result |= lo; in csky_pmu_read_icac() 164 uint32_t lo, hi, tmp; in csky_pmu_read_icmc() local [all …]
|
/openbmc/linux/drivers/char/hw_random/ |
H A D | via-rng.c | 132 u32 lo, hi, old_lo; in via_rng_init() local 153 rdmsr(MSR_VIA_RNG, lo, hi); in via_rng_init() 155 old_lo = lo; in via_rng_init() 156 lo &= ~(0x7f << VIA_STRFILT_CNT_SHIFT); in via_rng_init() 157 lo &= ~VIA_XSTORE_CNT_MASK; in via_rng_init() 158 lo &= ~(VIA_STRFILT_ENABLE | VIA_STRFILT_FAIL | VIA_RAWBITS_ENABLE); in via_rng_init() 159 lo |= VIA_RNG_ENABLE; in via_rng_init() 160 lo |= VIA_NOISESRC1; in via_rng_init() 166 lo |= VIA_NOISESRC2; in via_rng_init() 170 lo |= VIA_NOISESRC2; in via_rng_init() [all …]
|
/openbmc/linux/include/linux/ |
H A D | minmax.h | 60 #define __clamp(val, lo, hi) \ argument 61 ((val) >= (hi) ? (hi) : ((val) <= (lo) ? (lo) : (val))) 63 #define __clamp_once(val, lo, hi, unique_val, unique_lo, unique_hi) ({ \ argument 65 typeof(lo) unique_lo = (lo); \ 67 static_assert(__builtin_choose_expr(__is_constexpr((lo) > (hi)), \ 68 (lo) <= (hi), true), \ 69 "clamp() low limit " #lo " greater than high limit " #hi); \ 70 static_assert(__types_ok(val, lo), "clamp() 'lo' signedness error"); \ 74 #define __careful_clamp(val, lo, hi) ({ \ argument 75 __builtin_choose_expr(__is_constexpr((val) - (lo) + (hi)), \ [all …]
|
/openbmc/u-boot/arch/nios2/cpu/ |
H A D | start.S | 33 ori r4, r0, %lo(ICACHE_LINE_SIZE) 35 ori r5, r5, %lo(ICACHE_SIZE_MAX) 48 ori et, et, %lo(_exception) 62 ori r4, r0, %lo(DCACHE_LINE_SIZE_MIN) 64 ori r5, r5, %lo(DCACHE_SIZE_MAX) 78 ori r5, r5, %lo(_cur - _start) 82 ori r5, r5, %lo(_start) /* r5 <- linked _start */ 87 ori r6, r6, %lo(CONFIG_SYS_MONITOR_LEN) 98 ori r4, r4, %lo(_reloc) 111 ori r2, r2, %lo(debug_uart_init@h) [all …]
|
/openbmc/linux/drivers/cpufreq/ |
H A D | e_powersaver.c | 94 u32 lo, hi; in eps_get() local 103 rdmsr(MSR_IA32_PERF_STATUS, lo, hi); in eps_get() 104 return centaur->fsb * ((lo >> 8) & 0xff); in eps_get() 111 u32 lo, hi; in eps_set_state() local 115 rdmsr(MSR_IA32_PERF_STATUS, lo, hi); in eps_set_state() 117 while (lo & ((1 << 16) | (1 << 17))) { in eps_set_state() 119 rdmsr(MSR_IA32_PERF_STATUS, lo, hi); in eps_set_state() 131 rdmsr(MSR_IA32_PERF_STATUS, lo, hi); in eps_set_state() 136 } while (lo & ((1 << 16) | (1 << 17))); in eps_set_state() 143 rdmsr(MSR_IA32_PERF_STATUS, lo, hi); in eps_set_state() [all …]
|
/openbmc/qemu/tests/tcg/mips/user/isa/r5900/ |
H A D | test_r5900_maddu.c | 11 uint32_t lo = a; in maddu() local 22 : "=r" (rd), "=r" (lo), "=r" (hi) in maddu() 23 : "r" (rs), "r" (rt), "r" (lo), "r" (hi)); in maddu() 24 r = ((uint64_t)hi << 32) | (uint32_t)lo; in maddu() 27 assert(rd == lo); in maddu() 34 uint32_t lo = a; in maddu1() local 45 : "=r" (rd), "=r" (lo), "=r" (hi) in maddu1() 46 : "r" (rs), "r" (rt), "r" (lo), "r" (hi)); in maddu1() 47 r = ((uint64_t)hi << 32) | (uint32_t)lo; in maddu1() 50 assert(rd == lo); in maddu1()
|
/openbmc/linux/arch/x86/kernel/cpu/ |
H A D | centaur.c | 24 u32 lo, hi; in init_c3() local 32 rdmsr(MSR_VIA_FCR, lo, hi); in init_c3() 33 lo |= ACE_FCR; /* enable ACE unit */ in init_c3() 34 wrmsr(MSR_VIA_FCR, lo, hi); in init_c3() 40 rdmsr(MSR_VIA_RNG, lo, hi); in init_c3() 41 lo |= RNG_ENABLE; /* enable RNG unit */ in init_c3() 42 wrmsr(MSR_VIA_RNG, lo, hi); in init_c3() 54 rdmsr(MSR_VIA_FCR, lo, hi); in init_c3() 55 lo |= (1<<1 | 1<<7); in init_c3() 56 wrmsr(MSR_VIA_FCR, lo, hi); in init_c3() [all …]
|
/openbmc/openbmc/poky/meta/recipes-core/gettext/gettext/ |
H A D | 0001-intl-Fix-build-failure-with-make-j.patch | 9 * gettext-runtime/intl/Makefile.am (langprefs.lo, log.lo): Depend on gettextP.h 22 @@ -387,8 +387,8 @@ dngettext.lo: ../config.h $(srcdir)/gettextP.h libgnuintl.h $(srcdir)/gmo 23 …ngettext.lo: ../config.h $(srcdir)/gettextP.h libgnuintl.h $(srcdir)/gmo.h $(srcdir)/loadi… 24 plural.lo: ../config.h $(srcdir)/plural-exp.h $(PLURAL_DEPS) 25 plural-exp.lo: ../config.h $(srcdir)/plural-exp.h 26 -langprefs.lo: ../config.h 27 -log.lo: ../config.h 28 +langprefs.lo: ../config.h $(srcdir)/gettextP.h libgnuintl.h $(srcdir)/gmo.h $(srcdir)/loadi… 29 +log.lo: ../config.h $(srcdir)/gettextP.h libgnuintl.h $(srcdir)/gmo.h $(srcdir)/loadi… 30 printf.lo: ../config.h [all …]
|