/openbmc/linux/arch/parisc/kernel/ |
H A D | perf.c | 557 uint64_t tmp64; in perf_stop_counters() local 569 raddr[0] = (uint32_t)tmp64; in perf_stop_counters() 572 tmp64 = (userbuf[22] >> 9) & 0x00000000ffffffff; in perf_stop_counters() 575 raddr[1] = (uint32_t)tmp64; in perf_stop_counters() 581 tmp64 |= (userbuf[23] >> 8) & 0x0000000080000000; in perf_stop_counters() 582 raddr[2] = (uint32_t)tmp64; in perf_stop_counters() 588 raddr[3] = (uint32_t)tmp64; in perf_stop_counters() 742 uint64_t tmp64; in perf_write_image() local 771 tmp64 = *intrigue_bitmask & *memaddr++; in perf_write_image() 772 tmp64 |= (~(*intrigue_bitmask++)) & *bptr; in perf_write_image() [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ |
H A D | vega20_thermal.c | 122 uint64_t tmp64; in vega20_fan_ctrl_get_fan_speed_pwm() local 132 tmp64 = (uint64_t)duty * 255; in vega20_fan_ctrl_get_fan_speed_pwm() 133 do_div(tmp64, duty100); in vega20_fan_ctrl_get_fan_speed_pwm() 134 *speed = MIN((uint32_t)tmp64, 255); in vega20_fan_ctrl_get_fan_speed_pwm() 145 uint64_t tmp64; in vega20_fan_ctrl_set_fan_speed_pwm() local 158 tmp64 = (uint64_t)speed * duty100; in vega20_fan_ctrl_set_fan_speed_pwm() 159 do_div(tmp64, 255); in vega20_fan_ctrl_set_fan_speed_pwm() 160 duty = (uint32_t)tmp64; in vega20_fan_ctrl_set_fan_speed_pwm()
|
H A D | smu7_thermal.c | 59 uint64_t tmp64; in smu7_fan_ctrl_get_fan_speed_pwm() local 73 tmp64 = (uint64_t)duty * 255; in smu7_fan_ctrl_get_fan_speed_pwm() 74 do_div(tmp64, duty100); in smu7_fan_ctrl_get_fan_speed_pwm() 75 *speed = MIN((uint32_t)tmp64, 255); in smu7_fan_ctrl_get_fan_speed_pwm() 208 uint64_t tmp64; in smu7_fan_ctrl_set_fan_speed_pwm() local 224 tmp64 = (uint64_t)speed * duty100; in smu7_fan_ctrl_set_fan_speed_pwm() 225 do_div(tmp64, 255); in smu7_fan_ctrl_set_fan_speed_pwm() 226 duty = (uint32_t)tmp64; in smu7_fan_ctrl_set_fan_speed_pwm()
|
H A D | vega10_thermal.c | 72 uint64_t tmp64; in vega10_fan_ctrl_get_fan_speed_pwm() local 82 tmp64 = (uint64_t)duty * 255; in vega10_fan_ctrl_get_fan_speed_pwm() 83 do_div(tmp64, duty100); in vega10_fan_ctrl_get_fan_speed_pwm() 84 *speed = MIN((uint32_t)tmp64, 255); in vega10_fan_ctrl_get_fan_speed_pwm() 253 uint64_t tmp64; in vega10_fan_ctrl_set_fan_speed_pwm() local 269 tmp64 = (uint64_t)speed * duty100; in vega10_fan_ctrl_set_fan_speed_pwm() 270 do_div(tmp64, 255); in vega10_fan_ctrl_set_fan_speed_pwm() 271 duty = (uint32_t)tmp64; in vega10_fan_ctrl_set_fan_speed_pwm()
|
/openbmc/u-boot/fs/ubifs/ |
H A D | sb.c | 82 long long tmp64, main_bytes; in create_default_filesystem() local 160 tmp64 = (long long)max_buds * c->leb_size; in create_default_filesystem() 171 sup->max_bud_bytes = cpu_to_le64(tmp64); in create_default_filesystem() 189 if (tmp64 > DEFAULT_MAX_RP_SIZE) in create_default_filesystem() 190 tmp64 = DEFAULT_MAX_RP_SIZE; in create_default_filesystem() 191 sup->rp_size = cpu_to_le64(tmp64); in create_default_filesystem() 232 tmp64 = main_bytes; in create_default_filesystem() 235 mst->total_free = cpu_to_le64(tmp64); in create_default_filesystem() 240 tmp64 += ino_waste; in create_default_filesystem() 242 mst->total_dirty = cpu_to_le64(tmp64); in create_default_filesystem() [all …]
|
H A D | super.c | 836 long long tmp64; in init_constants_sb() local 863 tmp64 = c->max_bud_bytes + c->leb_size - 1; in init_constants_sb() 864 c->max_bud_cnt = div_u64(tmp64, c->leb_size); in init_constants_sb() 901 if (c->bg_bud_bytes < tmp64) in init_constants_sb() 902 c->bg_bud_bytes = tmp64; in init_constants_sb() 903 if (c->max_bud_bytes < tmp64 + c->leb_size) in init_constants_sb() 904 c->max_bud_bytes = tmp64 + c->leb_size; in init_constants_sb() 925 long long tmp64; in init_constants_master() local 940 tmp64 *= (long long)c->leb_size - c->leb_overhead; in init_constants_master() 941 tmp64 = ubifs_reported_space(c, tmp64); in init_constants_master() [all …]
|
/openbmc/linux/fs/ubifs/ |
H A D | sb.c | 88 long long tmp64, main_bytes; in create_default_filesystem() local 177 tmp64 = (long long)max_buds * c->leb_size; in create_default_filesystem() 200 sup->max_bud_bytes = cpu_to_le64(tmp64); in create_default_filesystem() 218 if (tmp64 > DEFAULT_MAX_RP_SIZE) in create_default_filesystem() 219 tmp64 = DEFAULT_MAX_RP_SIZE; in create_default_filesystem() 220 sup->rp_size = cpu_to_le64(tmp64); in create_default_filesystem() 254 tmp64 = main_bytes; in create_default_filesystem() 257 mst->total_free = cpu_to_le64(tmp64); in create_default_filesystem() 262 tmp64 += ino_waste; in create_default_filesystem() 264 mst->total_dirty = cpu_to_le64(tmp64); in create_default_filesystem() [all …]
|
H A D | super.c | 680 long long tmp64; in init_constants_sb() local 707 tmp64 = c->max_bud_bytes + c->leb_size - 1; in init_constants_sb() 708 c->max_bud_cnt = div_u64(tmp64, c->leb_size); in init_constants_sb() 745 if (c->bg_bud_bytes < tmp64) in init_constants_sb() 746 c->bg_bud_bytes = tmp64; in init_constants_sb() 747 if (c->max_bud_bytes < tmp64 + c->leb_size) in init_constants_sb() 748 c->max_bud_bytes = tmp64 + c->leb_size; in init_constants_sb() 769 long long tmp64; in init_constants_master() local 784 tmp64 *= (long long)c->leb_size - c->leb_overhead; in init_constants_master() 785 tmp64 = ubifs_reported_space(c, tmp64); in init_constants_master() [all …]
|
/openbmc/linux/drivers/media/pci/cx88/ |
H A D | cx88-core.c | 888 u64 tmp64; in cx88_set_tvnorm() local 959 do_div(tmp64, vdec_clock); in cx88_set_tvnorm() 962 cx_write(MO_SCONV_REG, (u32)tmp64); in cx88_set_tvnorm() 965 tmp64 = step_db * (u64)(1 << 22); in cx88_set_tvnorm() 966 do_div(tmp64, vdec_clock); in cx88_set_tvnorm() 968 (u32)tmp64, cx_read(MO_SUB_STEP)); in cx88_set_tvnorm() 969 cx_write(MO_SUB_STEP, (u32)tmp64); in cx88_set_tvnorm() 972 tmp64 = step_dr * (u64)(1 << 22); in cx88_set_tvnorm() 973 do_div(tmp64, vdec_clock); in cx88_set_tvnorm() 989 do_div(tmp64, fsc8); in cx88_set_tvnorm() [all …]
|
/openbmc/linux/drivers/media/usb/hdpvr/ |
H A D | hdpvr-core.c | 72 u64 tmp64; in challenge() local 101 tmp64 = le64_to_cpup(i64P); in challenge() 102 tmp64 = tmp64 + (tmp64 << (bytes[7] & 0x0f)); in challenge() 103 *i64P = cpu_to_le64(tmp64); in challenge()
|
/openbmc/u-boot/lib/ |
H A D | uuid.c | 148 uint64_t tmp64; in uuid_str_to_bin() local 181 tmp64 = cpu_to_be64(simple_strtoull(uuid_str + 24, NULL, 16)); in uuid_str_to_bin() 182 memcpy(uuid_bin + 10, (char *)&tmp64 + 2, 6); in uuid_str_to_bin()
|
/openbmc/u-boot/drivers/w1/ |
H A D | w1-uclass.c | 32 u64 last_rn, rn = w1->search_id, tmp64; in w1_enumerate() local 83 tmp64 = (triplet_ret >> 2); in w1_enumerate() 84 rn |= (tmp64 << i); in w1_enumerate()
|
/openbmc/linux/drivers/media/dvb-frontends/ |
H A D | tda10086.c | 455 u64 tmp64; in tda10086_get_frontend() local 464 tmp64 = ((u64)tda10086_read_byte(state, 0x52) in tda10086_get_frontend() 466 if (tmp64 & 0x8000) in tda10086_get_frontend() 467 tmp64 |= 0xffffffffffff0000ULL; in tda10086_get_frontend() 468 tmp64 = (tmp64 * (SACLK/1000ULL)); in tda10086_get_frontend() 469 do_div(tmp64, (1ULL<<15) * (1ULL<<1)); in tda10086_get_frontend() 470 fe_params->frequency = (int) state->frequency + (int) tmp64; in tda10086_get_frontend()
|
H A D | stv6111.c | 287 u64 tmp64; in muldiv32() local 289 tmp64 = (u64)a * (u64)b; in muldiv32() 290 do_div(tmp64, c); in muldiv32() 292 return (u32)tmp64; in muldiv32()
|
H A D | dib7000p.c | 1765 u64 tmp64; in interpolate_value() local 1787 tmp64 = value - segments[i].x; in interpolate_value() 1788 tmp64 *= dy; in interpolate_value() 1789 do_div(tmp64, dx); in interpolate_value() 1790 ret = segments[i].y + tmp64; in interpolate_value() 1799 u64 time_us, tmp64; in dib7000p_get_time_us() local 1884 tmp64 = time_us; in dib7000p_get_time_us() 1885 do_div(tmp64, guard); in dib7000p_get_time_us() 1886 time_us = time_us + tmp64; in dib7000p_get_time_us()
|
/openbmc/linux/arch/m68k/math-emu/ |
H A D | multi_arith.h | 184 union fp_mant64 tmp64; in fp_dividemant() local 229 fp_mul64(tmp64.m32[0], tmp64.m32[1], *mantp, div->mant.m32[1]); in fp_dividemant() 230 fp_sub96c(tmp, 0, tmp64.m32[0], tmp64.m32[1]); in fp_dividemant()
|
/openbmc/u-boot/drivers/mtd/ |
H A D | mtdconcat.c | 869 uint64_t tmp64; in mtd_concat_create() local 908 tmp64 = position - begin; in mtd_concat_create() 909 do_div(tmp64, curr_erasesize); in mtd_concat_create() 910 erase_region_p->numblocks = tmp64; in mtd_concat_create() 927 tmp64 = position - begin; in mtd_concat_create() 928 do_div(tmp64, curr_erasesize); in mtd_concat_create() 929 erase_region_p->numblocks = tmp64; in mtd_concat_create() 946 tmp64 = position - begin; in mtd_concat_create() 947 do_div(tmp64, curr_erasesize); in mtd_concat_create() 948 erase_region_p->numblocks = tmp64; in mtd_concat_create()
|
/openbmc/linux/drivers/mtd/ |
H A D | mtdconcat.c | 814 uint64_t tmp64; in mtd_concat_create() local 854 tmp64 = position - begin; in mtd_concat_create() 855 do_div(tmp64, curr_erasesize); in mtd_concat_create() 856 erase_region_p->numblocks = tmp64; in mtd_concat_create() 873 tmp64 = position - begin; in mtd_concat_create() 874 do_div(tmp64, curr_erasesize); in mtd_concat_create() 875 erase_region_p->numblocks = tmp64; in mtd_concat_create() 892 tmp64 = position - begin; in mtd_concat_create() 893 do_div(tmp64, curr_erasesize); in mtd_concat_create() 894 erase_region_p->numblocks = tmp64; in mtd_concat_create()
|
/openbmc/openbmc/meta-arm/meta-arm-bsp/recipes-bsp/u-boot/u-boot/corstone1000/ |
H A D | 0002-FF-A-v15-lib-uuid-introduce-uuid_str_to_le_bin-funct.patch | 90 + u64 tmp64; 107 + tmp64 = cpu_to_le64(simple_strtoull(uuid_str + 24, NULL, 16)); 108 + memcpy(uuid_bin + 10, &tmp64, 6);
|
/openbmc/qemu/tcg/ |
H A D | tci.c | 380 uint64_t tmp64, taddr; in tcg_qemu_tb_exec() local 696 tci_write_reg64(regs, r1, r0, tmp64); in tcg_qemu_tb_exec() 703 tci_write_reg64(regs, r1, r0, tmp64); in tcg_qemu_tb_exec() 962 tmp64 = tci_qemu_ld(env, taddr, oi, tb_ptr); in tcg_qemu_tb_exec() 964 tci_write_reg64(regs, r1, r0, tmp64); in tcg_qemu_tb_exec() 966 regs[r0] = tmp64; in tcg_qemu_tb_exec() 990 tmp64 = regs[r0]; in tcg_qemu_tb_exec() 994 tmp64 = tci_uint64(regs[r1], regs[r0]); in tcg_qemu_tb_exec() 1002 tmp64 = regs[r0]; in tcg_qemu_tb_exec() 1006 tmp64 = tci_uint64(regs[r1], regs[r0]); in tcg_qemu_tb_exec() [all …]
|
/openbmc/qemu/target/microblaze/ |
H A D | mmu.c | 235 uint64_t tmp64; in mmu_write() local 264 tmp64 = env->mmu.rams[rn & 1][i]; in mmu_write() 265 env->mmu.rams[rn & 1][i] = deposit64(tmp64, ext * 32, 32, v); in mmu_write()
|
/openbmc/linux/drivers/gpu/drm/amd/pm/swsmu/smu11/ |
H A D | smu_v11_0.c | 1174 uint64_t tmp64; in smu_v11_0_set_fan_speed_pwm() local 1183 tmp64 = (uint64_t)speed * duty100; in smu_v11_0_set_fan_speed_pwm() 1184 do_div(tmp64, 255); in smu_v11_0_set_fan_speed_pwm() 1185 duty = (uint32_t)tmp64; in smu_v11_0_set_fan_speed_pwm() 1229 uint64_t tmp64; in smu_v11_0_get_fan_speed_pwm() local 1249 tmp64 = (uint64_t)duty * 255; in smu_v11_0_get_fan_speed_pwm() 1250 do_div(tmp64, duty100); in smu_v11_0_get_fan_speed_pwm() 1251 *speed = MIN((uint32_t)tmp64, 255); in smu_v11_0_get_fan_speed_pwm() 1262 uint64_t tmp64; in smu_v11_0_get_fan_speed_rpm() local 1279 do_div(tmp64, tach_status); in smu_v11_0_get_fan_speed_rpm() [all …]
|
H A D | arcturus_ppt.c | 1202 uint64_t tmp64; in arcturus_get_fan_speed_rpm() local 1229 do_div(tmp64, tach_status); in arcturus_get_fan_speed_rpm() 1230 *speed = (uint32_t)tmp64; in arcturus_get_fan_speed_rpm() 1246 uint64_t tmp64; in arcturus_set_fan_speed_pwm() local 1255 tmp64 = (uint64_t)speed * duty100; in arcturus_set_fan_speed_pwm() 1256 do_div(tmp64, 255); in arcturus_set_fan_speed_pwm() 1257 duty = (uint32_t)tmp64; in arcturus_set_fan_speed_pwm() 1291 uint64_t tmp64; in arcturus_get_fan_speed_pwm() local 1310 tmp64 = (uint64_t)duty * 255; in arcturus_get_fan_speed_pwm() 1311 do_div(tmp64, duty100); in arcturus_get_fan_speed_pwm() [all …]
|
/openbmc/qemu/target/hexagon/ |
H A D | genptr.c | 1149 TCGv_i64 tmp64 = tcg_temp_new_i64(); in gen_asr_r_svw_trun() local 1161 tcg_gen_sextract_i64(tmp64, RssV, i * 32, 32); in gen_asr_r_svw_trun() 1162 tcg_gen_sar_i64(tmp64, tmp64, shift_amt64); in gen_asr_r_svw_trun() 1163 tcg_gen_extrl_i64_i32(tmp32, tmp64); in gen_asr_r_svw_trun() 1174 tcg_gen_sextract_i64(tmp64, RssV, i * 32, 32); in gen_asr_r_svw_trun() 1175 tcg_gen_shl_i64(tmp64, tmp64, shift_amt64); in gen_asr_r_svw_trun() 1176 tcg_gen_extrl_i64_i32(tmp32, tmp64); in gen_asr_r_svw_trun()
|
/openbmc/linux/drivers/net/ethernet/netronome/nfp/nfpcore/ |
H A D | nfp_cppcore.c | 289 u64 tmp64 = address; in nfp_cpp_area_alloc_with_name() local 293 err = nfp_target_cpp(dest, tmp64, &dest, &tmp64, cpp->imb_cat_table); in nfp_cpp_area_alloc_with_name() 297 address = tmp64; in nfp_cpp_area_alloc_with_name()
|