Home
last modified time | relevance | path

Searched refs:pow (Results 1 – 19 of 19) sorted by relevance

/Linux-v5.10/fs/reiserfs/
Dhashes.c130 int j, pow; in yura_hash() local
134 for (pow = 1, i = 1; i < len; i++) in yura_hash()
135 pow = pow * 10; in yura_hash()
140 a = (msg[0] - 48) * pow; in yura_hash()
144 for (pow = 1, j = i; j < len - 1; j++) in yura_hash()
145 pow = pow * 10; in yura_hash()
146 a = a + c * pow; in yura_hash()
151 for (pow = 1, j = i; j < len - 1; j++) in yura_hash()
152 pow = pow * 10; in yura_hash()
153 a = a + c * pow; in yura_hash()
[all …]
/Linux-v5.10/drivers/macintosh/
Dwindfarm_smu_sensors.c286 struct smu_cpu_power_sensor *pow = to_smu_cpu_power(sr); in smu_cpu_power_release() local
288 if (pow->volts) in smu_cpu_power_release()
289 wf_put_sensor(pow->volts); in smu_cpu_power_release()
290 if (pow->amps) in smu_cpu_power_release()
291 wf_put_sensor(pow->amps); in smu_cpu_power_release()
292 kfree(pow); in smu_cpu_power_release()
297 struct smu_cpu_power_sensor *pow = to_smu_cpu_power(sr); in smu_cpu_power_get() local
302 rc = pow->amps->ops->get_value(pow->amps, &amps); in smu_cpu_power_get()
306 if (pow->fake_volts) { in smu_cpu_power_get()
311 rc = pow->volts->ops->get_value(pow->volts, &volts); in smu_cpu_power_get()
[all …]
/Linux-v5.10/drivers/media/common/v4l2-tpg/
Dv4l2-tpg-colors.c1168 return pow((-v + 0.055) / 1.055, 2.4); in transfer_srgb_to_rgb()
1169 return (v <= 0.04045) ? v / 12.92 : pow((v + 0.055) / 1.055, 2.4); in transfer_srgb_to_rgb()
1175 return -1.055 * pow(-v, 1.0 / 2.4) + 0.055; in transfer_rgb_to_srgb()
1178 return 1.055 * pow(v, 1.0 / 2.4) - 0.055; in transfer_rgb_to_srgb()
1183 return (v <= 0.0228) ? v * 4.0 : 1.1115 * pow(v, 0.45) - 0.1115; in transfer_rgb_to_smpte240m()
1189 return -1.099 * pow(-v, 0.45) + 0.099; in transfer_rgb_to_rec709()
1190 return (v < 0.018) ? v * 4.5 : 1.099 * pow(v, 0.45) - 0.099; in transfer_rgb_to_rec709()
1195 return (v < 0.081) ? v / 4.5 : pow((v + 0.099) / 1.099, 1.0 / 0.45); in transfer_rec709_to_rgb()
1200 return pow(v, 1.0 / 2.19921875); in transfer_rgb_to_oprgb()
1205 return pow(v, 1.0 / 2.6); in transfer_rgb_to_dcip3()
[all …]
/Linux-v5.10/Documentation/scheduler/
Dsched-pelt.c26 x = ((1UL<<32)-1)*pow(y, i); in calc_runnable_avg_yN_inv()
103 y = pow(0.5, 1/(double)HALFLIFE); in main()
/Linux-v5.10/drivers/clk/sunxi/
Dclk-sunxi.c726 u8 pow; member
733 .pow = 0,
756 .pow = 1,
770 .pow = 1,
799 data->pow ? CLK_DIVIDER_POWER_OF_TWO : 0, in sunxi_divider_clk_setup()
887 u8 pow; /* is it power-of-two based? */ member
906 { .shift = 0, .pow = 0, .critical = true }, /* M, DDR */
907 { .shift = 16, .pow = 1, }, /* P, other */
1063 flags = data->div[i].pow ? CLK_DIVIDER_POWER_OF_TWO : 0; in sunxi_divs_clk_setup()
/Linux-v5.10/Documentation/devicetree/bindings/sound/
Drt5677.txt20 - realtek,pow-ldo2-gpio : The GPIO that controls the CODEC's POW_LDO2 pin.
72 realtek,pow-ldo2-gpio =
/Linux-v5.10/arch/powerpc/sysdev/
Dfsl_pci.c166 out_be32(&pci->pow[index + i].potar, pci_addr >> 12); in setup_one_atmu()
167 out_be32(&pci->pow[index + i].potear, (u64)pci_addr >> 44); in setup_one_atmu()
168 out_be32(&pci->pow[index + i].powbar, phys_addr >> 12); in setup_one_atmu()
169 out_be32(&pci->pow[index + i].powar, flags | (bits - 1)); in setup_one_atmu()
238 out_be32(&pci->pow[i].powar, 0); in setup_pci_atmu()
274 out_be32(&pci->pow[j].potar, (hose->io_resource.start >> 12)); in setup_pci_atmu()
275 out_be32(&pci->pow[j].potear, 0); in setup_pci_atmu()
276 out_be32(&pci->pow[j].powbar, (hose->io_base_phys >> 12)); in setup_pci_atmu()
278 out_be32(&pci->pow[j].powar, 0x80088000 in setup_pci_atmu()
Dfsl_pci.h80 struct pci_outbound_window_regs pow[5]; member
/Linux-v5.10/tools/power/cpupower/bench/
Dbenchmark.h10 (void)(((int)(pow(rcnt, rcnt) * \
/Linux-v5.10/lib/mpi/
DMakefile29 mpi-pow.o \
/Linux-v5.10/arch/mips/include/asm/octeon/
Dcvmx-npi-defs.h2234 uint64_t pow:1; member
2260 uint64_t pow:1;
2303 uint64_t pow:1; member
2329 uint64_t pow:1;
2374 uint64_t pow:1; member
2400 uint64_t pow:1;
2441 uint64_t pow:1; member
2467 uint64_t pow:1;
Dcvmx-npei-defs.h3726 uint64_t pow:1; member
3752 uint64_t pow:1;
/Linux-v5.10/drivers/staging/octeon/
Docteon-stubs.h1025 uint64_t pow:1; member
1060 uint64_t pow:1; member
1095 uint64_t pow:1; member
1126 uint64_t pow:1; member
/Linux-v5.10/drivers/net/caif/
Dcaif_hsi.c31 #define PAD_POW2(x, pow) ((((x)&((pow)-1)) == 0) ? 0 :\ argument
32 (((pow)-((x)&((pow)-1)))))
/Linux-v5.10/drivers/mtd/spi-nor/
Dcore.c1684 u8 pow, val; in spi_nor_sr_lock() local
1724 pow = ilog2(lock_len) - ilog2(min_prot_len) + 1; in spi_nor_sr_lock()
1725 val = pow << SR_BP_SHIFT; in spi_nor_sr_lock()
1769 u8 pow, val; in spi_nor_sr_unlock() local
1809 pow = ilog2(lock_len) - ilog2(min_prot_len) + 1; in spi_nor_sr_unlock()
1810 val = pow << SR_BP_SHIFT; in spi_nor_sr_unlock()
/Linux-v5.10/drivers/infiniband/hw/hfi1/
Dsdma.c913 unsigned int i, pow; in sdma_cleanup_sde_map() local
921 pow = roundup_pow_of_two(map->ctr ? : 1); in sdma_cleanup_sde_map()
922 map->mask = pow - 1; in sdma_cleanup_sde_map()
1010 int ctr, pow; in sdma_set_cpu_to_sde_map() local
1024 pow = roundup_pow_of_two(ctr); in sdma_set_cpu_to_sde_map()
1025 rht_node->map[vl]->mask = pow - 1; in sdma_set_cpu_to_sde_map()
/Linux-v5.10/arch/arm64/boot/dts/amlogic/
Dmeson-g12b-w400.dtsi127 usb1_pow: regulator-usb1-pow {
/Linux-v5.10/drivers/net/ethernet/intel/i40e/
Di40e_main.c1701 int i, override_q, pow, num_qps, ret; in i40e_vsi_setup_queue_map_mqprio() local
1713 pow = ilog2(num_qps); in i40e_vsi_setup_queue_map_mqprio()
1715 pow++; in i40e_vsi_setup_queue_map_mqprio()
1717 (pow << I40E_AQ_VSI_TC_QUE_NUMBER_SHIFT); in i40e_vsi_setup_queue_map_mqprio()
1831 int pow, num_qps; in i40e_vsi_setup_queue_map() local
1856 pow = 0; in i40e_vsi_setup_queue_map()
1857 while (num_qps && (BIT_ULL(pow) < qcount)) { in i40e_vsi_setup_queue_map()
1858 pow++; in i40e_vsi_setup_queue_map()
1865 (pow << I40E_AQ_VSI_TC_QUE_NUMBER_SHIFT); in i40e_vsi_setup_queue_map()
5840 int pow; in i40e_channel_setup_queue_map() local
[all …]
/Linux-v5.10/drivers/net/ethernet/intel/ice/
Dice_lib.c732 u16 pow = 0, max_rss = 0; in ice_vsi_setup_q_map() local
786 pow = (u16)order_base_2(qcount_rx); in ice_vsi_setup_q_map()
807 ((pow << ICE_AQ_VSI_TC_Q_NUM_S) & in ice_vsi_setup_q_map()