Home
last modified time | relevance | path

Searched refs:tmp64 (Results 1 – 25 of 30) sorted by relevance

12

/drivers/gpu/drm/amd/pm/powerplay/hwmgr/
A Dvega20_thermal.c122 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 Dsmu7_thermal.c59 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 Dvega10_thermal.c72 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 Dcx88-core.c888 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 Dhdpvr-core.c72 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 Dtda10086.c455 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 Dstv6111.c287 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 Ddib7000p.c1760 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 Dmb86a20s.c1347 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 Ddib8000.c3981 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 Dstv0910.c60 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 Ddrxd_hard.c217 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 Dmtdconcat.c814 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 Darcturus_ppt.c1195 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 Dsmu_v11_0.c1176 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 Dnfp_cppcore.c289 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 Ds2io.c3973 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 Ddsi_phy_10nm.c418 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 Ddsi_phy_7nm.c535 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 Dw1.c980 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 Dsi_dpm.c5975 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 Dci_dpm.c936 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 Dsmu_v13_0.c1102 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 Dsi_dpm.c6513 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 Dfiji_smumgr.c2138 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()

Completed in 165 milliseconds

12