| /drivers/gpu/drm/amd/pm/powerplay/hwmgr/ |
| 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_t(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()
|
| 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_t(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()
|
| 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_t(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()
|
| /drivers/media/pci/cx88/ |
| 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 …]
|
| /drivers/media/usb/hdpvr/ |
| 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()
|
| /drivers/media/dvb-frontends/ |
| 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()
|
| 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()
|
| 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()
|
| 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()
|
| A D | dib8000.c | 3981 u64 tmp64; in interpolate_value() local 4003 tmp64 = value - segments[i].x; in interpolate_value() 4004 tmp64 *= dy; in interpolate_value() 4005 do_div(tmp64, dx); in interpolate_value() 4006 ret = segments[i].y + tmp64; in interpolate_value() 4016 u64 time_us, tmp64; in dib8000_get_time_us() local 4113 tmp64 = time_us; in dib8000_get_time_us() 4114 do_div(tmp64, guard); in dib8000_get_time_us() 4115 time_us = time_us + tmp64; in dib8000_get_time_us()
|
| 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()
|
| 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()
|
| /drivers/mtd/ |
| 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()
|
| /drivers/gpu/drm/amd/pm/swsmu/smu11/ |
| A D | arcturus_ppt.c | 1195 uint64_t tmp64; in arcturus_get_fan_speed_rpm() local 1222 do_div(tmp64, tach_status); in arcturus_get_fan_speed_rpm() 1223 *speed = (uint32_t)tmp64; in arcturus_get_fan_speed_rpm() 1239 uint64_t tmp64; in arcturus_set_fan_speed_pwm() local 1248 tmp64 = (uint64_t)speed * duty100; in arcturus_set_fan_speed_pwm() 1249 do_div(tmp64, 255); in arcturus_set_fan_speed_pwm() 1250 duty = (uint32_t)tmp64; in arcturus_set_fan_speed_pwm() 1287 uint64_t tmp64; in arcturus_get_fan_speed_pwm() local 1306 tmp64 = (uint64_t)duty * 255; in arcturus_get_fan_speed_pwm() 1307 do_div(tmp64, duty100); in arcturus_get_fan_speed_pwm() [all …]
|
| A D | smu_v11_0.c | 1176 uint64_t tmp64; in smu_v11_0_set_fan_speed_pwm() local 1185 tmp64 = (uint64_t)speed * duty100; in smu_v11_0_set_fan_speed_pwm() 1186 do_div(tmp64, 255); in smu_v11_0_set_fan_speed_pwm() 1187 duty = (uint32_t)tmp64; in smu_v11_0_set_fan_speed_pwm() 1231 uint64_t tmp64; in smu_v11_0_get_fan_speed_pwm() local 1251 tmp64 = (uint64_t)duty * 255; in smu_v11_0_get_fan_speed_pwm() 1252 do_div(tmp64, duty100); in smu_v11_0_get_fan_speed_pwm() 1253 *speed = min_t(uint32_t, tmp64, 255); in smu_v11_0_get_fan_speed_pwm() 1264 uint64_t tmp64; in smu_v11_0_get_fan_speed_rpm() local 1281 do_div(tmp64, tach_status); in smu_v11_0_get_fan_speed_rpm() [all …]
|
| /drivers/net/ethernet/netronome/nfp/nfpcore/ |
| 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()
|
| /drivers/net/ethernet/neterion/ |
| A D | s2io.c | 3973 u64 tmp64; in s2io_close() local 5104 u64 tmp64; in do_s2io_add_mc() local 5109 if (tmp64 == mac_addr) in do_s2io_add_mc() 5155 if (tmp64 == addr) { in do_s2io_delete_unicast_mc() 5172 u64 tmp64, val64; in do_s2io_read_unicast_mc() local 5189 return tmp64 >> 16; in do_s2io_read_unicast_mc() 5223 u64 tmp64; in do_s2io_prog_unicast() local 5244 if (tmp64 == mac_addr) { in do_s2io_prog_unicast() 7666 u64 val64 = 0, tmp64 = 0; in s2io_init_nic() local 7940 mac_down = (u32)tmp64; in s2io_init_nic() [all …]
|
| /drivers/gpu/drm/msm/dsi/phy/ |
| A D | dsi_phy_10nm.c | 418 u64 pll_freq, tmp64; in dsi_pll_10nm_vco_recalc_rate() local 435 tmp64 = (ref_clk * 2 * frac); in dsi_pll_10nm_vco_recalc_rate() 436 pll_freq += div_u64(tmp64, multiplier); in dsi_pll_10nm_vco_recalc_rate()
|
| A D | dsi_phy_7nm.c | 535 u64 pll_freq, tmp64; in dsi_pll_7nm_vco_recalc_rate() local 552 tmp64 = (ref_clk * 2 * frac); in dsi_pll_7nm_vco_recalc_rate() 553 pll_freq += div_u64(tmp64, multiplier); in dsi_pll_7nm_vco_recalc_rate()
|
| /drivers/w1/ |
| A D | w1.c | 980 u64 last_rn, rn, tmp64; in w1_search() local 1047 tmp64 = (triplet_ret >> 2); in w1_search() 1048 rn |= (tmp64 << i); in w1_search()
|
| /drivers/gpu/drm/radeon/ |
| A D | si_dpm.c | 5975 u64 tmp64; in si_thermal_setup_fan_table() local 5990 do_div(tmp64, 10000); in si_thermal_setup_fan_table() 5991 fdo_min = (u16)tmp64; in si_thermal_setup_fan_table() 6076 u64 tmp64; in si_fan_ctrl_get_fan_speed_percent() local 6087 tmp64 = (u64)duty * 100; in si_fan_ctrl_get_fan_speed_percent() 6088 do_div(tmp64, duty100); in si_fan_ctrl_get_fan_speed_percent() 6089 *speed = (u32)tmp64; in si_fan_ctrl_get_fan_speed_percent() 6103 u64 tmp64; in si_fan_ctrl_set_fan_speed_percent() local 6119 tmp64 = (u64)speed * duty100; in si_fan_ctrl_set_fan_speed_percent() 6120 do_div(tmp64, 100); in si_fan_ctrl_set_fan_speed_percent() [all …]
|
| A D | ci_dpm.c | 936 u64 tmp64; in ci_thermal_setup_fan_table() local 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() 1093 do_div(tmp64, 100); in ci_fan_ctrl_set_fan_speed_percent() [all …]
|
| /drivers/gpu/drm/amd/pm/swsmu/smu13/ |
| A D | smu_v13_0.c | 1102 uint64_t tmp64; in smu_v13_0_set_fan_speed_pwm() local 1114 tmp64 = (uint64_t)speed * duty100; in smu_v13_0_set_fan_speed_pwm() 1115 do_div(tmp64, 255); in smu_v13_0_set_fan_speed_pwm() 1116 duty = (uint32_t)tmp64; in smu_v13_0_set_fan_speed_pwm()
|
| /drivers/gpu/drm/amd/pm/legacy-dpm/ |
| A D | si_dpm.c | 6513 u64 tmp64; in si_thermal_setup_fan_table() local 6528 do_div(tmp64, 10000); in si_thermal_setup_fan_table() 6529 fdo_min = (u16)tmp64; in si_thermal_setup_fan_table() 6606 u64 tmp64; in si_dpm_get_fan_speed_pwm() local 6621 tmp64 = (u64)duty * 255; in si_dpm_get_fan_speed_pwm() 6622 do_div(tmp64, duty100); in si_dpm_get_fan_speed_pwm() 6623 *speed = min_t(u32, tmp64, 255); in si_dpm_get_fan_speed_pwm() 6635 u64 tmp64; in si_dpm_set_fan_speed_pwm() local 6651 tmp64 = (u64)speed * duty100; in si_dpm_set_fan_speed_pwm() 6652 do_div(tmp64, 255); in si_dpm_set_fan_speed_pwm() [all …]
|
| /drivers/gpu/drm/amd/pm/powerplay/smumgr/ |
| 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()
|