Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/arch/parisc/kernel/
Dperf.c557 uint64_t tmp64; in perf_stop_counters() local
565 tmp64 = (userbuf[21] << 22) & 0x00000000ffc00000; in perf_stop_counters()
566 tmp64 |= (userbuf[22] >> 42) & 0x00000000003fffff; in perf_stop_counters()
568 tmp64 |= (userbuf[22] >> 10) & 0x0000000080000000; in perf_stop_counters()
569 raddr[0] = (uint32_t)tmp64; in perf_stop_counters()
572 tmp64 = (userbuf[22] >> 9) & 0x00000000ffffffff; in perf_stop_counters()
574 tmp64 |= (userbuf[22] << 23) & 0x0000000080000000; in perf_stop_counters()
575 raddr[1] = (uint32_t)tmp64; in perf_stop_counters()
578 tmp64 = (userbuf[22] << 24) & 0x00000000ff000000; in perf_stop_counters()
579 tmp64 |= (userbuf[23] >> 40) & 0x0000000000ffffff; in perf_stop_counters()
[all …]
/kernel/linux/linux-5.10/arch/c6x/include/asm/
Duaccess.h20 u64 tmp64; in raw_copy_from_user() local
39 : "=&a"(tmp64) in raw_copy_from_user()
56 u64 tmp64; in raw_copy_to_user() local
75 : "=&a"(tmp64) in raw_copy_to_user()
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/pm/powerplay/hwmgr/
Dsmu7_thermal.c59 uint64_t tmp64; in smu7_fan_ctrl_get_fan_speed_percent() local
73 tmp64 = (uint64_t)duty * 100; in smu7_fan_ctrl_get_fan_speed_percent()
74 do_div(tmp64, duty100); in smu7_fan_ctrl_get_fan_speed_percent()
75 *speed = (uint32_t)tmp64; in smu7_fan_ctrl_get_fan_speed_percent()
201 uint64_t tmp64; in smu7_fan_ctrl_set_fan_speed_percent() local
218 tmp64 = (uint64_t)speed * duty100; in smu7_fan_ctrl_set_fan_speed_percent()
219 do_div(tmp64, 100); in smu7_fan_ctrl_set_fan_speed_percent()
220 duty = (uint32_t)tmp64; in smu7_fan_ctrl_set_fan_speed_percent()
Dvega20_thermal.c142 uint64_t tmp64; in vega20_fan_ctrl_set_fan_speed_percent() local
156 tmp64 = (uint64_t)speed * duty100; in vega20_fan_ctrl_set_fan_speed_percent()
157 do_div(tmp64, 100); in vega20_fan_ctrl_set_fan_speed_percent()
158 duty = (uint32_t)tmp64; in vega20_fan_ctrl_set_fan_speed_percent()
Dvega10_thermal.c256 uint64_t tmp64; in vega10_fan_ctrl_set_fan_speed_percent() local
273 tmp64 = (uint64_t)speed * duty100; in vega10_fan_ctrl_set_fan_speed_percent()
274 do_div(tmp64, 100); in vega10_fan_ctrl_set_fan_speed_percent()
275 duty = (uint32_t)tmp64; in vega10_fan_ctrl_set_fan_speed_percent()
/kernel/linux/linux-5.10/drivers/media/pci/cx88/
Dcx88-core.c874 u64 tmp64; in cx88_set_tvnorm() local
944 tmp64 = adc_clock * (u64)(1 << 17); in cx88_set_tvnorm()
945 do_div(tmp64, vdec_clock); in cx88_set_tvnorm()
947 (u32)tmp64, cx_read(MO_SCONV_REG)); in cx88_set_tvnorm()
948 cx_write(MO_SCONV_REG, (u32)tmp64); in cx88_set_tvnorm()
951 tmp64 = step_db * (u64)(1 << 22); in cx88_set_tvnorm()
952 do_div(tmp64, vdec_clock); in cx88_set_tvnorm()
954 (u32)tmp64, cx_read(MO_SUB_STEP)); in cx88_set_tvnorm()
955 cx_write(MO_SUB_STEP, (u32)tmp64); in cx88_set_tvnorm()
958 tmp64 = step_dr * (u64)(1 << 22); in cx88_set_tvnorm()
[all …]
/kernel/linux/linux-5.10/fs/ubifs/
Dsb.c85 long long tmp64, main_bytes; in create_default_filesystem() local
174 tmp64 = (long long)max_buds * c->leb_size; in create_default_filesystem()
197 sup->max_bud_bytes = cpu_to_le64(tmp64); in create_default_filesystem()
214 tmp64 = div_u64(main_bytes * DEFAULT_RP_PERCENT, 100); in create_default_filesystem()
215 if (tmp64 > DEFAULT_MAX_RP_SIZE) in create_default_filesystem()
216 tmp64 = DEFAULT_MAX_RP_SIZE; in create_default_filesystem()
217 sup->rp_size = cpu_to_le64(tmp64); in create_default_filesystem()
251 tmp64 = main_bytes; in create_default_filesystem()
252 tmp64 -= ALIGN(ubifs_idx_node_sz(c, 1), c->min_io_size); in create_default_filesystem()
253 tmp64 -= ALIGN(UBIFS_INO_NODE_SZ, c->min_io_size); in create_default_filesystem()
[all …]
Dsuper.c680 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()
744 tmp64 = (long long)(c->jhead_cnt + 1) * c->leb_size + 1; 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
783 tmp64 = c->main_lebs - 1 - 1 - MIN_INDEX_LEBS - c->jhead_cnt + 1; in init_constants_master()
[all …]
/kernel/linux/linux-5.10/drivers/clk/zte/
Dclk.c192 u64 tmp64 = (u64)parent_rate * BPAR; in calc_reg() local
194 do_div(tmp64, rate); in calc_reg()
195 integ = (u32)tmp64 / BPAR; in calc_reg()
198 tmp = (u32)tmp64 % BPAR; in calc_reg()
215 u64 tmp64 = (u64)parent_rate * BPAR; in calc_rate() local
226 do_div(tmp64, tmp); in calc_rate()
228 return (u32)tmp64; in calc_rate()
/kernel/linux/linux-5.10/drivers/media/usb/hdpvr/
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()
/kernel/linux/linux-5.10/drivers/media/dvb-frontends/
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()
Dstv6111.c296 u64 tmp64; in muldiv32() local
298 tmp64 = (u64)a * (u64)b; in muldiv32()
299 do_div(tmp64, c); in muldiv32()
301 return (u32)tmp64; in muldiv32()
Ddib7000p.c1765 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()
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()
Dstv0910.c69 u64 tmp64; in muldiv32() local
71 tmp64 = (u64)a * (u64)b; in muldiv32()
72 do_div(tmp64, c); in muldiv32()
74 return (u32)tmp64; in muldiv32()
Ddib8000.c3977 u64 tmp64; in interpolate_value() local
3999 tmp64 = value - segments[i].x; in interpolate_value()
4000 tmp64 *= dy; in interpolate_value()
4001 do_div(tmp64, dx); in interpolate_value()
4002 ret = segments[i].y + tmp64; in interpolate_value()
4012 u64 time_us, tmp64; in dib8000_get_time_us() local
4109 tmp64 = time_us; in dib8000_get_time_us()
4110 do_div(tmp64, guard); in dib8000_get_time_us()
4111 time_us = time_us + tmp64; in dib8000_get_time_us()
/kernel/linux/linux-5.10/arch/m68k/math-emu/
Dmulti_arith.h184 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()
/kernel/linux/linux-5.10/drivers/mtd/
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()
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/pm/swsmu/smu11/
Dsmu_v11_0.c1130 uint64_t tmp64; in smu_v11_0_set_fan_speed_percent() local
1143 tmp64 = (uint64_t)speed * duty100; in smu_v11_0_set_fan_speed_percent()
1144 do_div(tmp64, 100); in smu_v11_0_set_fan_speed_percent()
1145 duty = (uint32_t)tmp64; in smu_v11_0_set_fan_speed_percent()
1218 uint64_t tmp64; in smu_v11_0_get_fan_speed_rpm() local
1227 tmp64 = (uint64_t)crystal_clock_freq * 60 * 10000; in smu_v11_0_get_fan_speed_rpm()
1228 do_div(tmp64, (tach_period * 8)); in smu_v11_0_get_fan_speed_rpm()
1229 *speed = (uint32_t)tmp64; in smu_v11_0_get_fan_speed_rpm()
/kernel/linux/linux-5.10/drivers/net/ethernet/netronome/nfp/nfpcore/
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()
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/dsi/pll/
Ddsi_pll_10nm.c492 u64 pll_freq, tmp64; in dsi_pll_10nm_vco_recalc_rate() local
510 tmp64 = (ref_clk * 2 * frac); in dsi_pll_10nm_vco_recalc_rate()
511 pll_freq += div_u64(tmp64, multiplier); in dsi_pll_10nm_vco_recalc_rate()
Ddsi_pll_7nm.c518 u64 pll_freq, tmp64; in dsi_pll_7nm_vco_recalc_rate() local
536 tmp64 = (ref_clk * 2 * frac); in dsi_pll_7nm_vco_recalc_rate()
537 pll_freq += div_u64(tmp64, multiplier); in dsi_pll_7nm_vco_recalc_rate()
/kernel/linux/linux-5.10/drivers/net/ethernet/neterion/
Ds2io.c3968 u64 tmp64; in s2io_close() local
3980 tmp64 = do_s2io_read_unicast_mc(sp, offset); in s2io_close()
3981 if (tmp64 != S2IO_DISABLE_MAC_ENTRY) in s2io_close()
3982 do_s2io_delete_unicast_mc(sp, tmp64); in s2io_close()
5095 u64 tmp64; in do_s2io_add_mc() local
5096 tmp64 = do_s2io_read_unicast_mc(sp, i); in do_s2io_add_mc()
5097 if (tmp64 == S2IO_DISABLE_MAC_ENTRY) /* CAM entry is empty */ in do_s2io_add_mc()
5100 if (tmp64 == mac_addr) in do_s2io_add_mc()
5140 u64 dis_addr = S2IO_DISABLE_MAC_ENTRY, tmp64; in do_s2io_delete_unicast_mc() local
5145 tmp64 = do_s2io_read_unicast_mc(sp, offset); in do_s2io_delete_unicast_mc()
[all …]
/kernel/linux/linux-5.10/drivers/w1/
Dw1.c956 u64 last_rn, rn, tmp64; in w1_search() local
1023 tmp64 = (triplet_ret >> 2); in w1_search()
1024 rn |= (tmp64 << i); in w1_search()
/kernel/linux/linux-5.10/fs/afs/
Dinternal.h149 __be64 tmp64; member
1285 afs_extract_begin(call, &call->tmp64, sizeof(call->tmp64)); in afs_extract_to_tmp64()

12