Home
last modified time | relevance | path

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

/drivers/macintosh/
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 …]
/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 …]
/drivers/thermal/
Dk3_j72xx_bandgap.c280 int i, tmp, pow; in get_efuse_values() local
302 pow = tmp & 0x80; in get_efuse_values()
307 pow = tmp & 0x100; in get_efuse_values()
314 pow = ct_bm[id][i] >> __ffs(ct_bm[id][i]); in get_efuse_values()
315 pow += 1; in get_efuse_values()
316 pow /= 2; in get_efuse_values()
320 if (tmp & pow) { in get_efuse_values()
/drivers/mtd/spi-nor/
Dswp.c161 u8 pow, val; in spi_nor_sr_lock() local
201 pow = ilog2(lock_len) - ilog2(min_prot_len) + 1; in spi_nor_sr_lock()
202 val = pow << SR_BP_SHIFT; in spi_nor_sr_lock()
251 u8 pow, val; in spi_nor_sr_unlock() local
291 pow = ilog2(lock_len) - ilog2(min_prot_len) + 1; in spi_nor_sr_unlock()
292 val = pow << SR_BP_SHIFT; in spi_nor_sr_unlock()
/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()
/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
/drivers/net/ethernet/intel/ice/
Dice_lib.c1011 u16 offset = 0, qmap = 0, tx_count = 0, rx_count = 0, pow = 0; in ice_vsi_setup_q_map() local
1032 pow = (u16)order_base_2(num_rxq_per_tc); in ice_vsi_setup_q_map()
1064 ((pow << ICE_AQ_VSI_TC_Q_NUM_S) & in ice_vsi_setup_q_map()
1206 int pow; in ice_chnl_vsi_setup_q_map() local
1210 pow = order_base_2(qcount); in ice_chnl_vsi_setup_q_map()
1213 ((pow << ICE_AQ_VSI_TC_Q_NUM_S) & in ice_chnl_vsi_setup_q_map()
3335 u16 pow, offset = 0, qcount_tx = 0, qcount_rx = 0, qmap; in ice_vsi_setup_q_map_mqprio() local
3344 pow = order_base_2(tc0_qcount); in ice_vsi_setup_q_map_mqprio()
3347 ((pow << ICE_AQ_VSI_TC_Q_NUM_S) & ICE_AQ_VSI_TC_Q_NUM_M); in ice_vsi_setup_q_map_mqprio()
/drivers/infiniband/hw/hfi1/
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()
/drivers/net/ethernet/intel/i40e/
Di40e_main.c1946 int i, override_q, pow, num_qps, ret; in i40e_vsi_setup_queue_map_mqprio() local
1958 pow = ilog2(num_qps); in i40e_vsi_setup_queue_map_mqprio()
1960 pow++; in i40e_vsi_setup_queue_map_mqprio()
1962 (pow << I40E_AQ_VSI_TC_QUE_NUMBER_SHIFT); in i40e_vsi_setup_queue_map_mqprio()
2101 int pow, num_qps; in i40e_vsi_setup_queue_map() local
2126 pow = 0; in i40e_vsi_setup_queue_map()
2127 while (num_qps && (BIT_ULL(pow) < qcount)) { in i40e_vsi_setup_queue_map()
2128 pow++; in i40e_vsi_setup_queue_map()
2135 (pow << I40E_AQ_VSI_TC_QUE_NUMBER_SHIFT); in i40e_vsi_setup_queue_map()
6253 int pow; in i40e_channel_setup_queue_map() local
[all …]
/drivers/iio/adc/
Dad4130.c1742 unsigned int pow = ad4130_resolution(st) - st->bipolar; in ad4130_fill_scale_tbls() local
1756 st->scale_tbls[i][j][1] = div_u64(nv >> (pow + j), MILLI); in ad4130_fill_scale_tbls()