| /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() 217 tmp64 = div_u64(main_bytes * DEFAULT_RP_PERCENT, 100); 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() 255 tmp64 -= ALIGN(ubifs_idx_node_sz(c, 1), c->min_io_size); in create_default_filesystem() 256 tmp64 -= ALIGN(UBIFS_INO_NODE_SZ, c->min_io_size); in create_default_filesystem() [all …]
|
| /linux/drivers/media/pci/cx88/ |
| H A D | cx88-core.c | 888 u64 tmp64; in cx88_set_tvnorm() local 958 tmp64 = adc_clock * (u64)(1 << 17); in cx88_set_tvnorm() 959 do_div(tmp64, vdec_clock); in cx88_set_tvnorm() 961 (u32)tmp64, cx_read(MO_SCONV_REG)); 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() [all …]
|
| /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()
|
| /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 | 1760 u64 tmp64; in interpolate_value() local 1782 tmp64 = value - segments[i].x; in interpolate_value() 1783 tmp64 *= dy; in interpolate_value() 1784 do_div(tmp64, dx); in interpolate_value() 1785 ret = segments[i].y + tmp64; in interpolate_value() 1794 u64 time_us, tmp64; in dib7000p_get_time_us() local 1879 tmp64 = time_us; in dib7000p_get_time_us() 1880 do_div(tmp64, guard); in dib7000p_get_time_us() 1881 time_us = time_us + tmp64; in dib7000p_get_time_us()
|
| H A D | mb86a20s.c | 1347 u64 tmp64; in interpolate_value() local 1367 tmp64 = value - segments[i].x; in interpolate_value() 1368 tmp64 *= dy; in interpolate_value() 1369 do_div(tmp64, dx); in interpolate_value() 1370 ret = segments[i].y - tmp64; in interpolate_value()
|
| H A D | stv0910.c | 60 u64 tmp64; in muldiv32() local 62 tmp64 = (u64)a * (u64)b; in muldiv32() 63 do_div(tmp64, c); in muldiv32() 65 return (u32)tmp64; in muldiv32()
|
| H A D | drxd_hard.c | 217 u64 tmp64; in MulDiv32() local 219 tmp64 = (u64)a * (u64)b; in MulDiv32() 220 do_div(tmp64, c); in MulDiv32() 222 return (u32) tmp64; in MulDiv32()
|
| /linux/arch/m68k/math-emu/ |
| H A D | multi_arith.h | 186 union fp_mant64 tmp64; in fp_dividemant() local 231 fp_mul64(tmp64.m32[0], tmp64.m32[1], *mantp, div->mant.m32[1]); in fp_dividemant() 232 fp_sub96c(tmp, 0, tmp64.m32[0], tmp64.m32[1]); in fp_dividemant()
|
| /linux/arch/x86/crypto/ |
| H A D | aes-ctr-avx-x86_64.S | 118 .macro _load_partial_block src, dst, tmp64, tmp32 148 shl %cl, \tmp64 149 or \tmp64, %rax // Combine the two parts 157 .macro _store_partial_block src, dst, tmp64, tmp32 166 mov %rax, (\dst, \tmp64) // Store last LEN - 8 bytes 179 mov %eax, (\dst, \tmp64) // Store last LEN - 4 bytes
|
| /linux/drivers/gpu/drm/amd/pm/swsmu/smu11/ |
| H A D | smu_v11_0.c | 1105 uint64_t tmp64; in smu_v11_0_set_fan_speed_pwm() local 1114 tmp64 = (uint64_t)speed * duty100; in smu_v11_0_set_fan_speed_pwm() 1115 do_div(tmp64, 255); in smu_v11_0_set_fan_speed_pwm() 1116 duty = (uint32_t)tmp64; in smu_v11_0_set_fan_speed_pwm() 1160 uint64_t tmp64; in smu_v11_0_get_fan_speed_pwm() local 1180 tmp64 = (uint64_t)duty * 255; in smu_v11_0_get_fan_speed_pwm() 1181 do_div(tmp64, duty100); in smu_v11_0_get_fan_speed_pwm() 1182 *speed = min_t(uint32_t, tmp64, 255); in smu_v11_0_get_fan_speed_pwm() 1193 uint64_t tmp64; in smu_v11_0_get_fan_speed_rpm() local 1206 tmp64 = (uint64_t)crystal_clock_freq * 60 * 10000; in smu_v11_0_get_fan_speed_rpm() [all …]
|
| /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()
|
| /linux/fs/afs/ |
| H A D | internal.h | 190 __be64 tmp64; member 1451 call->iov_len = sizeof(call->tmp64); in afs_extract_to_tmp64() 1452 afs_extract_begin(call, &call->tmp64, sizeof(call->tmp64)); in afs_extract_to_tmp64()
|
| /linux/drivers/w1/ |
| H A D | w1.c | 978 u64 last_rn, rn, tmp64; in w1_search() local 1045 tmp64 = (triplet_ret >> 2); in w1_search() 1046 rn |= (tmp64 << i); in w1_search()
|
| /linux/drivers/gpu/drm/msm/dsi/phy/ |
| H A D | dsi_phy_7nm.c | 576 u64 pll_freq, tmp64; in dsi_pll_7nm_vco_recalc_rate() local 594 tmp64 = (ref_clk * 2 * frac); in dsi_pll_7nm_vco_recalc_rate() 595 pll_freq += div_u64(tmp64, multiplier); in dsi_pll_7nm_vco_recalc_rate()
|
| /linux/drivers/gpu/drm/radeon/ |
| H A D | si_dpm.c | 5982 u64 tmp64; in si_thermal_setup_fan_table() local 5996 tmp64 = (u64)rdev->pm.dpm.fan.pwm_min * duty100; in si_thermal_setup_fan_table() 5997 do_div(tmp64, 10000); in si_thermal_setup_fan_table() 5998 fdo_min = (u16)tmp64; in si_thermal_setup_fan_table() 6083 u64 tmp64; in si_fan_ctrl_get_fan_speed_percent() local 6094 tmp64 = (u64)duty * 100; in si_fan_ctrl_get_fan_speed_percent() 6095 do_div(tmp64, duty100); in si_fan_ctrl_get_fan_speed_percent() 6096 *speed = (u32)tmp64; in si_fan_ctrl_get_fan_speed_percent() 6110 u64 tmp64; in si_fan_ctrl_set_fan_speed_percent() local 6126 tmp64 = (u64)speed * duty100; in si_fan_ctrl_set_fan_speed_percent() [all …]
|
| H A D | ci_dpm.c | 936 u64 tmp64; in ci_thermal_setup_fan_table() local 950 tmp64 = (u64)rdev->pm.dpm.fan.pwm_min * duty100; in ci_thermal_setup_fan_table() 951 do_div(tmp64, 10000); in ci_thermal_setup_fan_table() 952 fdo_min = (u16)tmp64; in ci_thermal_setup_fan_table() 1049 u64 tmp64; in ci_fan_ctrl_get_fan_speed_percent() local 1060 tmp64 = (u64)duty * 100; in ci_fan_ctrl_get_fan_speed_percent() 1061 do_div(tmp64, duty100); in ci_fan_ctrl_get_fan_speed_percent() 1062 *speed = (u32)tmp64; in ci_fan_ctrl_get_fan_speed_percent() 1075 u64 tmp64; in ci_fan_ctrl_set_fan_speed_percent() local 1092 tmp64 = (u64)speed * duty100; in ci_fan_ctrl_set_fan_speed_percent() [all …]
|
| /linux/drivers/gpu/drm/amd/pm/legacy-dpm/ |
| H A D | si_dpm.c | 6538 u64 tmp64; in si_thermal_setup_fan_table() local 6552 tmp64 = (u64)adev->pm.dpm.fan.pwm_min * duty100; in si_thermal_setup_fan_table() 6553 do_div(tmp64, 10000); in si_thermal_setup_fan_table() 6554 fdo_min = (u16)tmp64; in si_thermal_setup_fan_table() 6631 u64 tmp64; in si_dpm_get_fan_speed_pwm() local 6646 tmp64 = (u64)duty * 255; in si_dpm_get_fan_speed_pwm() 6647 do_div(tmp64, duty100); in si_dpm_get_fan_speed_pwm() 6648 *speed = min_t(u32, tmp64, 255); in si_dpm_get_fan_speed_pwm() 6660 u64 tmp64; in si_dpm_set_fan_speed_pwm() local 6676 tmp64 = (u64)speed * duty100; in si_dpm_set_fan_speed_pwm() [all …]
|
| /linux/drivers/gpu/drm/amd/pm/powerplay/smumgr/ |
| H A D | iceland_smumgr.c | 2094 uint64_t tmp64; in iceland_thermal_setup_fan_table() local 2117 tmp64 = hwmgr->thermal_controller.advanceFanControlParameters.usPWMMin * duty100; in iceland_thermal_setup_fan_table() 2118 do_div(tmp64, 10000); in iceland_thermal_setup_fan_table() 2119 fdo_min = (uint16_t)tmp64; in iceland_thermal_setup_fan_table()
|
| H A D | fiji_smumgr.c | 2138 uint64_t tmp64; in fiji_thermal_setup_fan_table() local 2161 tmp64 = hwmgr->thermal_controller.advanceFanControlParameters. in fiji_thermal_setup_fan_table() 2163 do_div(tmp64, 10000); in fiji_thermal_setup_fan_table() 2164 fdo_min = (uint16_t)tmp64; in fiji_thermal_setup_fan_table()
|
| H A D | polaris10_smumgr.c | 2176 uint64_t tmp64; in polaris10_thermal_setup_fan_table() local 2203 tmp64 = hwmgr->thermal_controller.advanceFanControlParameters. in polaris10_thermal_setup_fan_table() 2205 do_div(tmp64, 10000); in polaris10_thermal_setup_fan_table() 2206 fdo_min = (uint16_t)tmp64; in polaris10_thermal_setup_fan_table()
|
| H A D | tonga_smumgr.c | 2470 uint64_t tmp64; in tonga_thermal_setup_fan_table() local 2498 tmp64 = hwmgr->thermal_controller.advanceFanControlParameters.usPWMMin * duty100; in tonga_thermal_setup_fan_table() 2499 do_div(tmp64, 10000); in tonga_thermal_setup_fan_table() 2500 fdo_min = (uint16_t)tmp64; in tonga_thermal_setup_fan_table()
|
| H A D | ci_smumgr.c | 2142 uint64_t tmp64; in ci_thermal_setup_fan_table() local 2165 tmp64 = hwmgr->thermal_controller.advanceFanControlParameters.usPWMMin * duty100; in ci_thermal_setup_fan_table() 2166 do_div(tmp64, 10000); in ci_thermal_setup_fan_table() 2167 fdo_min = (uint16_t)tmp64; in ci_thermal_setup_fan_table()
|
| /linux/drivers/media/dvb-frontends/drx39xyj/ |
| H A D | drxj.c | 12039 u64 tmp64; in drx39xxj_read_snr() local 12046 tmp64 = p->cnr.stat[0].svalue; in drx39xxj_read_snr() 12047 do_div(tmp64, 10); in drx39xxj_read_snr() 12048 *snr = tmp64; in drx39xxj_read_snr()
|