/Linux-v5.4/drivers/clk/imx/ |
D | clk-frac-pll.c | 100 u64 temp64 = parent_rate; in clk_pll_recalc_rate() local 109 temp64 *= 8; in clk_pll_recalc_rate() 110 temp64 *= divff; in clk_pll_recalc_rate() 111 do_div(temp64, PLL_FRAC_DENOM); in clk_pll_recalc_rate() 112 do_div(temp64, divq); in clk_pll_recalc_rate() 116 rate += temp64; in clk_pll_recalc_rate() 126 u64 temp64; in clk_pll_round_rate() local 130 temp64 = rate; in clk_pll_round_rate() 131 do_div(temp64, parent_rate); in clk_pll_round_rate() 132 divfi = temp64; in clk_pll_round_rate() [all …]
|
D | clk-pllv4.c | 72 u64 temp64; in clk_pllv4_recalc_rate() local 80 temp64 = parent_rate; in clk_pllv4_recalc_rate() 81 temp64 *= mfn; in clk_pllv4_recalc_rate() 82 do_div(temp64, mfd); in clk_pllv4_recalc_rate() 84 return (parent_rate * mult) + (u32)temp64; in clk_pllv4_recalc_rate() 94 u64 temp64; in clk_pllv4_round_rate() local 113 temp64 = (u64)(rate - round_rate); in clk_pllv4_round_rate() 114 temp64 *= mfd; in clk_pllv4_round_rate() 115 do_div(temp64, parent_rate); in clk_pllv4_round_rate() 116 mfn = temp64; in clk_pllv4_round_rate() [all …]
|
D | clk-pllv3.c | 223 u64 temp64 = (u64)parent_rate; in clk_pllv3_av_recalc_rate() local 225 temp64 *= mfn; in clk_pllv3_av_recalc_rate() 226 do_div(temp64, mfd); in clk_pllv3_av_recalc_rate() 228 return parent_rate * div + (unsigned long)temp64; in clk_pllv3_av_recalc_rate() 240 u64 temp64; in clk_pllv3_av_round_rate() local 251 temp64 = (u64) (rate - div * parent_rate); in clk_pllv3_av_round_rate() 252 temp64 *= mfd; in clk_pllv3_av_round_rate() 253 do_div(temp64, parent_rate); in clk_pllv3_av_round_rate() 254 mfn = temp64; in clk_pllv3_av_round_rate() 256 temp64 = (u64)parent_rate; in clk_pllv3_av_round_rate() [all …]
|
D | clk-sccg-pll.c | 341 u64 temp64; in clk_sccg_pll_recalc_rate() local 350 temp64 = parent_rate; in clk_sccg_pll_recalc_rate() 354 temp64 = parent_rate; in clk_sccg_pll_recalc_rate() 356 temp64 *= divf2; in clk_sccg_pll_recalc_rate() 357 do_div(temp64, (divr2 + 1) * (divq + 1)); in clk_sccg_pll_recalc_rate() 359 temp64 *= 2; in clk_sccg_pll_recalc_rate() 360 temp64 *= (divf1 + 1) * (divf2 + 1); in clk_sccg_pll_recalc_rate() 361 do_div(temp64, (divr1 + 1) * (divr2 + 1) * (divq + 1)); in clk_sccg_pll_recalc_rate() 364 return temp64; in clk_sccg_pll_recalc_rate()
|
D | clk-pllv2.c | 131 u64 temp64; in __clk_pllv2_set_rate() local 142 temp64 = rate * (pdf + 1) - quad_parent_rate * mfi; in __clk_pllv2_set_rate() 143 do_div(temp64, quad_parent_rate / 1000000); in __clk_pllv2_set_rate() 144 mfn = (long)temp64; in __clk_pllv2_set_rate()
|
/Linux-v5.4/drivers/thermal/ |
D | imx_thermal.c | 489 u64 temp64; in imx_init_calib() local 526 temp64 = 10000000; /* use 10^7 as fixed point constant for values in formula */ in imx_init_calib() 527 temp64 *= 1000; /* to get result in °mC */ in imx_init_calib() 528 do_div(temp64, 15423 * n1 - 4148468); in imx_init_calib() 529 data->c1 = temp64; in imx_init_calib()
|
/Linux-v5.4/drivers/crypto/ccree/ |
D | cc_aead.c | 1868 __be64 temp64; in config_gcm_context() local 1870 temp64 = cpu_to_be64(req_ctx->assoclen * 8); in config_gcm_context() 1871 memcpy(&req_ctx->gcm_len_block.len_a, &temp64, sizeof(temp64)); in config_gcm_context() 1872 temp64 = cpu_to_be64(cryptlen * 8); in config_gcm_context() 1873 memcpy(&req_ctx->gcm_len_block.len_c, &temp64, 8); in config_gcm_context() 1878 __be64 temp64; in config_gcm_context() local 1880 temp64 = cpu_to_be64((req_ctx->assoclen + in config_gcm_context() 1882 memcpy(&req_ctx->gcm_len_block.len_a, &temp64, sizeof(temp64)); in config_gcm_context() 1883 temp64 = 0; in config_gcm_context() 1884 memcpy(&req_ctx->gcm_len_block.len_c, &temp64, 8); in config_gcm_context()
|
/Linux-v5.4/drivers/staging/comedi/drivers/ |
D | ni_tio.c | 812 u64 temp64 = 0; in ni_tio_get_clock_src() local 818 ret = ni_tio_clock_period_ps(counter, *clock_source, &temp64); in ni_tio_get_clock_src() 821 do_div(temp64, 1000); /* ps to ns */ in ni_tio_get_clock_src() 822 *period_ns = temp64; in ni_tio_get_clock_src()
|
/Linux-v5.4/drivers/net/ethernet/neterion/ |
D | s2io.c | 1837 u64 temp64; in do_s2io_write_bits() local 1839 temp64 = readq(addr); in do_s2io_write_bits() 1842 temp64 &= ~((u64)value); in do_s2io_write_bits() 1844 temp64 |= ((u64)value); in do_s2io_write_bits() 1845 writeq(temp64, addr); in do_s2io_write_bits() 1989 register u64 temp64 = 0, intr_mask = 0; in en_dis_able_nic_intrs() local 2055 temp64 = readq(&bar0->general_int_mask); in en_dis_able_nic_intrs() 2057 temp64 &= ~((u64)intr_mask); in en_dis_able_nic_intrs() 2059 temp64 = DISABLE_ALL_INTRS; in en_dis_able_nic_intrs() 2060 writeq(temp64, &bar0->general_int_mask); in en_dis_able_nic_intrs() [all …]
|
/Linux-v5.4/drivers/scsi/ |
D | hpsa.c | 2251 u64 temp64; in hpsa_map_ioaccel2_sg_chain_block() local 2256 temp64 = dma_map_single(&h->pdev->dev, chain_block, chain_size, in hpsa_map_ioaccel2_sg_chain_block() 2258 if (dma_mapping_error(&h->pdev->dev, temp64)) { in hpsa_map_ioaccel2_sg_chain_block() 2263 cp->sg->address = cpu_to_le64(temp64); in hpsa_map_ioaccel2_sg_chain_block() 2271 u64 temp64; in hpsa_unmap_ioaccel2_sg_chain_block() local 2275 temp64 = le64_to_cpu(chain_sg->address); in hpsa_unmap_ioaccel2_sg_chain_block() 2277 dma_unmap_single(&h->pdev->dev, temp64, chain_size, DMA_TO_DEVICE); in hpsa_unmap_ioaccel2_sg_chain_block() 2284 u64 temp64; in hpsa_map_sg_chain_block() local 2293 temp64 = dma_map_single(&h->pdev->dev, chain_block, chain_len, in hpsa_map_sg_chain_block() 2295 if (dma_mapping_error(&h->pdev->dev, temp64)) { in hpsa_map_sg_chain_block() [all …]
|