Home
last modified time | relevance | path

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

/linux/drivers/macintosh/
H A Dwindfarm_smu_sensors.c287 struct smu_cpu_power_sensor *pow = to_smu_cpu_power(sr); in smu_cpu_power_release() local
289 if (pow->volts) in smu_cpu_power_release()
290 wf_put_sensor(pow->volts); in smu_cpu_power_release()
291 if (pow->amps) in smu_cpu_power_release()
292 wf_put_sensor(pow->amps); in smu_cpu_power_release()
293 kfree(pow); in smu_cpu_power_release()
298 struct smu_cpu_power_sensor *pow = to_smu_cpu_power(sr); in smu_cpu_power_get() local
303 rc = pow->amps->ops->get_value(pow->amps, &amps); in smu_cpu_power_get()
307 if (pow->fake_volts) { in smu_cpu_power_get()
312 rc = pow->volts->ops->get_value(pow->volts, &volts); in smu_cpu_power_get()
[all …]
/linux/drivers/media/common/v4l2-tpg/
H A 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/drivers/mtd/spi-nor/
H A Dswp.c165 u8 pow, val; in spi_nor_sr_lock() local
205 pow = ilog2(lock_len) - ilog2(min_prot_len) + 1; in spi_nor_sr_lock()
206 val = pow << SR_BP_SHIFT; in spi_nor_sr_lock()
255 u8 pow, val; in spi_nor_sr_unlock() local
295 pow = ilog2(lock_len) - ilog2(min_prot_len) + 1; in spi_nor_sr_unlock()
296 val = pow << SR_BP_SHIFT; in spi_nor_sr_unlock()
/linux/drivers/clk/sunxi/
H A 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()
876 u8 pow; /* is it power-of-two based? */ member
895 { .shift = 0, .pow = 0, .critical = true }, /* M, DDR */
896 { .shift = 16, .pow = 1, }, /* P, other */
1052 flags = data->div[i].pow ? CLK_DIVIDER_POWER_OF_TWO : 0; in sunxi_divs_clk_setup()
/linux/Documentation/scheduler/
H A 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/arch/powerpc/sysdev/
H A Dfsl_pci.c168 out_be32(&pci->pow[index + i].potar, pci_addr >> 12); in setup_one_atmu()
169 out_be32(&pci->pow[index + i].potear, (u64)pci_addr >> 44); in setup_one_atmu()
170 out_be32(&pci->pow[index + i].powbar, phys_addr >> 12); in setup_one_atmu()
171 out_be32(&pci->pow[index + i].powar, flags | (bits - 1)); in setup_one_atmu()
244 out_be32(&pci->pow[i].powar, 0); in setup_pci_atmu()
280 out_be32(&pci->pow[j].potar, (hose->io_resource.start >> 12)); in setup_pci_atmu()
281 out_be32(&pci->pow[j].potear, 0); in setup_pci_atmu()
282 out_be32(&pci->pow[j].powbar, (hose->io_base_phys >> 12)); in setup_pci_atmu()
284 out_be32(&pci->pow[j].powar, 0x80088000 in setup_pci_atmu()
H A Dfsl_pci.h81 struct pci_outbound_window_regs pow[5]; member
/linux/tools/power/cpupower/bench/
H A Dbenchmark.h10 (void)(((int)(pow(rcnt, rcnt) * \
/linux/lib/crypto/mpi/
H A DMakefile27 mpi-pow.o \
/linux/arch/mips/include/asm/octeon/
H A 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;
H A Dcvmx-npei-defs.h3726 uint64_t pow:1; member
3752 uint64_t pow:1;
/linux/drivers/staging/octeon/
H A 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/drivers/net/ethernet/intel/ice/
H A Dice_lib.c988 u16 offset = 0, qmap = 0, tx_count = 0, rx_count = 0, pow = 0; in ice_vsi_setup_q_map() local
1009 pow = (u16)order_base_2(num_rxq_per_tc); in ice_vsi_setup_q_map()
1040 qmap |= FIELD_PREP(ICE_AQ_VSI_TC_Q_NUM_M, pow); in ice_vsi_setup_q_map()
1179 int pow; in ice_chnl_vsi_setup_q_map() local
1183 pow = order_base_2(qcount); in ice_chnl_vsi_setup_q_map()
1185 qmap |= FIELD_PREP(ICE_AQ_VSI_TC_Q_NUM_M, pow); in ice_chnl_vsi_setup_q_map()
3196 u16 pow, offset = 0, qcount_tx = 0, qcount_rx = 0, qmap; in ice_vsi_setup_q_map_mqprio() local
3205 pow = order_base_2(tc0_qcount); in ice_vsi_setup_q_map_mqprio()
3207 qmap |= FIELD_PREP(ICE_AQ_VSI_TC_Q_NUM_M, pow); in ice_vsi_setup_q_map_mqprio()
/linux/drivers/infiniband/hw/hfi1/
H A Dsdma.c871 unsigned int i, pow; in sdma_cleanup_sde_map() local
879 pow = roundup_pow_of_two(map->ctr ? : 1); in sdma_cleanup_sde_map()
880 map->mask = pow - 1; in sdma_cleanup_sde_map()
968 int ctr, pow; in sdma_set_cpu_to_sde_map() local
982 pow = roundup_pow_of_two(ctr); in sdma_set_cpu_to_sde_map()
983 rht_node->map[vl]->mask = pow - 1; in sdma_set_cpu_to_sde_map()
/linux/arch/arm64/boot/dts/amlogic/
H A Dmeson-g12b-w400.dtsi127 usb1_pow: regulator-usb1-pow {
/linux/arch/arm64/boot/dts/freescale/
H A Dimx8mp-beacon-som.dtsi22 regulator-name = "wl-bt-pow-dwn";
/linux/drivers/iio/adc/
H A Dmcp3564.c1087 unsigned int pow = adc->chip_info->resolution - 1; in mcp3564_fill_scale_tbls() local
1095 tmp1 = ((u64)ref * NANO) >> pow; in mcp3564_fill_scale_tbls()
H A Dad4130.c1712 unsigned int pow = ad4130_resolution(st) - st->bipolar; in ad4130_fill_scale_tbls() local
1726 st->scale_tbls[i][j][1] = div_u64(nv >> (pow + j), MILLI); in ad4130_fill_scale_tbls()
/linux/drivers/net/ethernet/intel/i40e/
H A Di40e_main.c1942 int i, override_q, pow, num_qps, ret; in i40e_vsi_setup_queue_map_mqprio() local
1954 pow = ilog2(num_qps); in i40e_vsi_setup_queue_map_mqprio()
1956 pow++; in i40e_vsi_setup_queue_map_mqprio()
1958 (pow << I40E_AQ_VSI_TC_QUE_NUMBER_SHIFT); in i40e_vsi_setup_queue_map_mqprio()
2097 int pow, num_qps; in i40e_vsi_setup_queue_map() local
2124 pow = 0; in i40e_vsi_setup_queue_map()
2125 while (num_qps && (BIT_ULL(pow) < qcount)) { in i40e_vsi_setup_queue_map()
2126 pow++; in i40e_vsi_setup_queue_map()
2133 (pow << I40E_AQ_VSI_TC_QUE_NUMBER_SHIFT); in i40e_vsi_setup_queue_map()
6271 int pow; in i40e_channel_setup_queue_map() local
[all …]
/linux/arch/arm64/boot/dts/rockchip/
H A Drk3588s-rock-5a.dts370 pow_en: pow-en {
/linux/tools/testing/selftests/net/openvswitch/
H A Dovs-dpctl.py226 return int(value, 0), pow(2, size) - 1