Home
last modified time | relevance | path

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

12

/linux-6.12.1/arch/parisc/kernel/
Dperf.c556 uint64_t tmp64; in perf_stop_counters() local
564 tmp64 = (userbuf[21] << 22) & 0x00000000ffc00000; in perf_stop_counters()
565 tmp64 |= (userbuf[22] >> 42) & 0x00000000003fffff; in perf_stop_counters()
567 tmp64 |= (userbuf[22] >> 10) & 0x0000000080000000; in perf_stop_counters()
568 raddr[0] = (uint32_t)tmp64; in perf_stop_counters()
571 tmp64 = (userbuf[22] >> 9) & 0x00000000ffffffff; in perf_stop_counters()
573 tmp64 |= (userbuf[22] << 23) & 0x0000000080000000; in perf_stop_counters()
574 raddr[1] = (uint32_t)tmp64; in perf_stop_counters()
577 tmp64 = (userbuf[22] << 24) & 0x00000000ff000000; in perf_stop_counters()
578 tmp64 |= (userbuf[23] >> 40) & 0x0000000000ffffff; in perf_stop_counters()
[all …]
/linux-6.12.1/drivers/gpu/drm/amd/pm/powerplay/hwmgr/
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()
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()
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()
/linux-6.12.1/drivers/media/pci/cx88/
Dcx88-core.c888 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-6.12.1/fs/ubifs/
Dsb.c88 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 …]
Dsuper.c676 long long tmp64; in init_constants_sb() local
703 tmp64 = c->max_bud_bytes + c->leb_size - 1; in init_constants_sb()
704 c->max_bud_cnt = div_u64(tmp64, c->leb_size); in init_constants_sb()
740 tmp64 = (long long)(c->jhead_cnt + 1) * c->leb_size + 1; in init_constants_sb()
741 if (c->bg_bud_bytes < tmp64) in init_constants_sb()
742 c->bg_bud_bytes = tmp64; in init_constants_sb()
743 if (c->max_bud_bytes < tmp64 + c->leb_size) in init_constants_sb()
744 c->max_bud_bytes = tmp64 + c->leb_size; in init_constants_sb()
765 long long tmp64; in init_constants_master() local
779 tmp64 = c->main_lebs - 1 - 1 - MIN_INDEX_LEBS - c->jhead_cnt + 1; in init_constants_master()
[all …]
/linux-6.12.1/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()
/linux-6.12.1/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.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()
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()
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()
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()
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()
/linux-6.12.1/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()
/linux-6.12.1/arch/m68k/math-emu/
Dmulti_arith.h186 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-6.12.1/drivers/gpu/drm/amd/pm/swsmu/smu11/
Dsmu_v11_0.c1171 uint64_t tmp64; in smu_v11_0_set_fan_speed_pwm() local
1180 tmp64 = (uint64_t)speed * duty100; in smu_v11_0_set_fan_speed_pwm()
1181 do_div(tmp64, 255); in smu_v11_0_set_fan_speed_pwm()
1182 duty = (uint32_t)tmp64; in smu_v11_0_set_fan_speed_pwm()
1226 uint64_t tmp64; in smu_v11_0_get_fan_speed_pwm() local
1246 tmp64 = (uint64_t)duty * 255; in smu_v11_0_get_fan_speed_pwm()
1247 do_div(tmp64, duty100); in smu_v11_0_get_fan_speed_pwm()
1248 *speed = min_t(uint32_t, tmp64, 255); in smu_v11_0_get_fan_speed_pwm()
1259 uint64_t tmp64; in smu_v11_0_get_fan_speed_rpm() local
1272 tmp64 = (uint64_t)crystal_clock_freq * 60 * 10000; in smu_v11_0_get_fan_speed_rpm()
[all …]
Darcturus_ppt.c1195 uint64_t tmp64; in arcturus_get_fan_speed_rpm() local
1219 tmp64 = (uint64_t)crystal_clock_freq * 60 * 10000; in arcturus_get_fan_speed_rpm()
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()
1284 uint64_t tmp64; in arcturus_get_fan_speed_pwm() local
1303 tmp64 = (uint64_t)duty * 255; in arcturus_get_fan_speed_pwm()
[all …]
/linux-6.12.1/include/net/
Dnetlink.h1430 u64 tmp64 = value; in nla_put_uint() local
1433 if (tmp64 == tmp32) in nla_put_uint()
1435 return nla_put(skb, attrtype, sizeof(u64), &tmp64); in nla_put_uint()
1600 s64 tmp64 = value; in nla_put_sint() local
1603 if (tmp64 == tmp32) in nla_put_sint()
1605 return nla_put(skb, attrtype, sizeof(s64), &tmp64); in nla_put_sint()
/linux-6.12.1/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()
/linux-6.12.1/arch/x86/crypto/
Daes-gcm-aesni-x86_64.S210 .macro _load_partial_block src, dst, tmp64, tmp32
240 shl %cl, \tmp64
241 or \tmp64, %rax // Combine the two parts
/linux-6.12.1/drivers/gpu/drm/msm/dsi/phy/
Ddsi_phy_10nm.c417 u64 pll_freq, tmp64; in dsi_pll_10nm_vco_recalc_rate() local
434 tmp64 = (ref_clk * 2 * frac); in dsi_pll_10nm_vco_recalc_rate()
435 pll_freq += div_u64(tmp64, multiplier); in dsi_pll_10nm_vco_recalc_rate()
/linux-6.12.1/drivers/net/ethernet/neterion/
Ds2io.c3973 u64 tmp64; in s2io_close() local
3985 tmp64 = do_s2io_read_unicast_mc(sp, offset); in s2io_close()
3986 if (tmp64 != S2IO_DISABLE_MAC_ENTRY) in s2io_close()
3987 do_s2io_delete_unicast_mc(sp, tmp64); in s2io_close()
5104 u64 tmp64; in do_s2io_add_mc() local
5105 tmp64 = do_s2io_read_unicast_mc(sp, i); in do_s2io_add_mc()
5106 if (tmp64 == S2IO_DISABLE_MAC_ENTRY) /* CAM entry is empty */ in do_s2io_add_mc()
5109 if (tmp64 == mac_addr) in do_s2io_add_mc()
5149 u64 dis_addr = S2IO_DISABLE_MAC_ENTRY, tmp64; in do_s2io_delete_unicast_mc() local
5154 tmp64 = do_s2io_read_unicast_mc(sp, offset); in do_s2io_delete_unicast_mc()
[all …]
/linux-6.12.1/fs/afs/
Dinternal.h187 __be64 tmp64; member
1380 call->iov_len = sizeof(call->tmp64); in afs_extract_to_tmp64()
1381 afs_extract_begin(call, &call->tmp64, sizeof(call->tmp64)); in afs_extract_to_tmp64()
/linux-6.12.1/drivers/w1/
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()

12