Home
last modified time | relevance | path

Searched refs:low (Results 1 – 25 of 266) sorted by relevance

1234567891011

/drivers/net/ethernet/sfc/
Dbitfield.h126 #define EFX_EXTRACT_NATIVE(native_element, min, max, low, high) \ argument
127 ((low) > (max) || (high) < (min) ? 0 : \
128 (low) > (min) ? \
129 (native_element) >> ((low) - (min)) : \
130 (native_element) << ((min) - (low)))
136 #define EFX_EXTRACT64(element, min, max, low, high) \ argument
137 EFX_EXTRACT_NATIVE(le64_to_cpu(element), min, max, low, high)
143 #define EFX_EXTRACT32(element, min, max, low, high) \ argument
144 EFX_EXTRACT_NATIVE(le32_to_cpu(element), min, max, low, high)
146 #define EFX_EXTRACT_OWORD64(oword, low, high) \ argument
[all …]
/drivers/rtc/
Drtc-max8925.c116 unsigned char high, low; in data_calc() local
122 low = (tm->tm_year + 1900) / 100; in data_calc()
123 low = low - high * 10; in data_calc()
124 buf[RTC_YEAR2] = (high << 4) + low; in data_calc()
126 low = tm->tm_year + 1900; in data_calc()
127 low = low - high * 10; in data_calc()
129 buf[RTC_YEAR1] = (high << 4) + low; in data_calc()
131 low = tm->tm_mon; in data_calc()
132 low = low - high * 10; in data_calc()
133 buf[RTC_MONTH] = (high << 4) + low; in data_calc()
[all …]
/drivers/net/wireless/intel/iwlegacy/
D3945-rs.c547 u8 low = RATE_INVALID; in il3945_get_adjacent_rate() local
560 low = i; in il3945_get_adjacent_rate()
574 return (high << 8) | low; in il3945_get_adjacent_rate()
577 low = idx; in il3945_get_adjacent_rate()
578 while (low != RATE_INVALID) { in il3945_get_adjacent_rate()
580 low = il3945_rates[low].prev_rs_tgg; in il3945_get_adjacent_rate()
582 low = il3945_rates[low].prev_rs; in il3945_get_adjacent_rate()
583 if (low == RATE_INVALID) in il3945_get_adjacent_rate()
585 if (rate_mask & (1 << low)) in il3945_get_adjacent_rate()
587 D_RATE("Skipping masked lower rate: %d\n", low); in il3945_get_adjacent_rate()
[all …]
D4965-rs.c676 u8 low = RATE_INVALID; in il4965_rs_get_adjacent_rate() local
688 low = i; in il4965_rs_get_adjacent_rate()
702 return (high << 8) | low; in il4965_rs_get_adjacent_rate()
705 low = idx; in il4965_rs_get_adjacent_rate()
706 while (low != RATE_INVALID) { in il4965_rs_get_adjacent_rate()
707 low = il_rates[low].prev_rs; in il4965_rs_get_adjacent_rate()
708 if (low == RATE_INVALID) in il4965_rs_get_adjacent_rate()
710 if (rate_mask & (1 << low)) in il4965_rs_get_adjacent_rate()
712 D_RATE("Skipping masked lower rate: %d\n", low); in il4965_rs_get_adjacent_rate()
725 return (high << 8) | low; in il4965_rs_get_adjacent_rate()
[all …]
/drivers/gpu/drm/radeon/
Dbtc_dpm.c1797 if (state->low.mclk != ulv_pl->mclk) in btc_is_state_ulv_compatible()
1800 if (state->low.vddci != ulv_pl->vddci) in btc_is_state_ulv_compatible()
2133 if (ps->low.mclk > max_limits->mclk) in btc_apply_state_adjust_rules()
2134 ps->low.mclk = max_limits->mclk; in btc_apply_state_adjust_rules()
2135 if (ps->low.sclk > max_limits->sclk) in btc_apply_state_adjust_rules()
2136 ps->low.sclk = max_limits->sclk; in btc_apply_state_adjust_rules()
2137 if (ps->low.vddc > max_limits->vddc) in btc_apply_state_adjust_rules()
2138 ps->low.vddc = max_limits->vddc; in btc_apply_state_adjust_rules()
2139 if (ps->low.vddci > max_limits->vddci) in btc_apply_state_adjust_rules()
2140 ps->low.vddci = max_limits->vddci; in btc_apply_state_adjust_rules()
[all …]
Drv6xx_dpm.c241 u32 low, u32 high, in rv6xx_generate_steps() argument
249 rv6xx_convert_clock_to_stepping(rdev, low, &cur); in rv6xx_generate_steps()
440 state->low.sclk; in rv6xx_calculate_engine_speed_stepping_parameters()
463 state->low.mclk; in rv6xx_calculate_memory_clock_stepping_parameters()
474 if (state->medium.mclk == state->low.mclk) in rv6xx_calculate_memory_clock_stepping_parameters()
489 pi->hw.vddc[R600_POWER_LEVEL_LOW] = state->low.vddc; in rv6xx_calculate_voltage_stepping_parameters()
498 (state->low.flags & ATOM_PPLIB_R600_FLAGS_BACKBIASENABLE) ? true : false; in rv6xx_calculate_voltage_stepping_parameters()
505 (state->low.flags & ATOM_PPLIB_R600_FLAGS_PCIEGEN2) ? true : false; in rv6xx_calculate_voltage_stepping_parameters()
517 if ((state->medium.vddc == state->low.vddc) && in rv6xx_calculate_voltage_stepping_parameters()
519 (state->low.flags & ATOM_PPLIB_R600_FLAGS_BACKBIASENABLE))) in rv6xx_calculate_voltage_stepping_parameters()
[all …]
Dradeon_asic.h430 u32 rv6xx_dpm_get_sclk(struct radeon_device *rdev, bool low);
431 u32 rv6xx_dpm_get_mclk(struct radeon_device *rdev, bool low);
448 u32 rs780_dpm_get_sclk(struct radeon_device *rdev, bool low);
449 u32 rs780_dpm_get_mclk(struct radeon_device *rdev, bool low);
489 u32 rv770_dpm_get_sclk(struct radeon_device *rdev, bool low);
490 u32 rv770_dpm_get_mclk(struct radeon_device *rdev, bool low);
572 u32 btc_dpm_get_sclk(struct radeon_device *rdev, bool low);
573 u32 btc_dpm_get_mclk(struct radeon_device *rdev, bool low);
589 u32 sumo_dpm_get_sclk(struct radeon_device *rdev, bool low);
590 u32 sumo_dpm_get_mclk(struct radeon_device *rdev, bool low);
[all …]
Drv770_dpm.c273 (int)state->low.sclk * (R600_AH_DFLT - pi->rlp); in rv770_populate_smc_t()
274 a_d = (int)state->low.sclk * (100 - (int)pi->rlp) + in rv770_populate_smc_t()
685 &state->low, in rv770_convert_power_state_to_smc()
710 &state->low); in rv770_convert_power_state_to_smc()
748 if (state->high.sclk < (state->low.sclk * 0xFF / 0x40)) in rv770_program_memory_timing_parameters()
751 high_clock = (state->low.sclk * 0xFF / 0x40); in rv770_program_memory_timing_parameters()
758 STATE1(64 * high_clock / state->low.sclk) | in rv770_program_memory_timing_parameters()
765 POWERMODE1(rv770_calculate_memory_refresh_rate(rdev, state->low.sclk)) | in rv770_program_memory_timing_parameters()
1050 cpu_to_be32(initial_state->low.mclk); in rv770_populate_smc_initial_state()
1064 cpu_to_be32(initial_state->low.sclk); in rv770_populate_smc_initial_state()
[all …]
Drv730_dpm.c343 cpu_to_be32(initial_state->low.mclk); in rv730_populate_smc_initial_state()
357 cpu_to_be32(initial_state->low.sclk); in rv730_populate_smc_initial_state()
362 rv770_get_seq_value(rdev, &initial_state->low); in rv730_populate_smc_initial_state()
365 initial_state->low.vddc, in rv730_populate_smc_initial_state()
380 if (initial_state->low.flags & ATOM_PPLIB_R600_FLAGS_PCIEGEN2) in rv730_populate_smc_initial_state()
406 (POWERMODE1(rv770_calculate_memory_refresh_rate(rdev, state->low.sclk)) | in rv730_program_memory_timing_parameters()
436 state->low.sclk, in rv730_program_memory_timing_parameters()
437 state->low.mclk); in rv730_program_memory_timing_parameters()
/drivers/net/irda/
Dvia-ircc.h283 __u16 low, high; in SetMaxRxPacketSize() local
285 low = size & 0x00ff; in SetMaxRxPacketSize()
287 WriteReg(iobase, I_CF_L_2, low); in SetMaxRxPacketSize()
417 __u32 low, high; in SetSendByte() local
420 low = count & 0x00ff; in SetSendByte()
422 WriteReg(iobase, TX_C_L, low); in SetSendByte()
437 __u8 low, high; in CkRxRecv() local
440 low = ReadReg(iobase, RX_C_L); in CkRxRecv()
443 wTmp = (wTmp1 << 8) | low; in CkRxRecv()
445 low = ReadReg(iobase, RX_C_L); in CkRxRecv()
[all …]
/drivers/thermal/
Drockchip_thermal.c403 int high, low, mid; in rk_tsadcv2_temp_to_code() local
406 low = 0; in rk_tsadcv2_temp_to_code()
408 mid = (high + low) / 2; in rk_tsadcv2_temp_to_code()
411 if (temp < table.id[low].temp || temp > table.id[high].temp) { in rk_tsadcv2_temp_to_code()
416 while (low <= high) { in rk_tsadcv2_temp_to_code()
422 low = mid + 1; in rk_tsadcv2_temp_to_code()
423 mid = (low + high) / 2; in rk_tsadcv2_temp_to_code()
434 unsigned int low = 1; in rk_tsadcv2_code_to_temp() local
436 unsigned int mid = (low + high) / 2; in rk_tsadcv2_code_to_temp()
448 while (low <= high) { in rk_tsadcv2_code_to_temp()
[all …]
/drivers/cpufreq/
Dspeedstep-smi.c102 static int speedstep_smi_get_freqs(unsigned int *low, unsigned int *high) in speedstep_smi_get_freqs() argument
140 *low = low_mhz * 1000; in speedstep_smi_get_freqs()
234 unsigned int *low, *high; in speedstep_cpu_init() local
247 low = &speedstep_freqs[SPEEDSTEP_LOW].frequency; in speedstep_cpu_init()
250 result = speedstep_smi_get_freqs(low, high); in speedstep_cpu_init()
257 low, high, in speedstep_cpu_init()
/drivers/clk/
Dclk-axi-clkgen.c149 static void axi_clkgen_calc_clk_params(unsigned int divider, unsigned int *low, in axi_clkgen_calc_clk_params() argument
159 *low = divider - *high; in axi_clkgen_calc_clk_params()
259 unsigned int low; in axi_clkgen_set_rate() local
274 axi_clkgen_calc_clk_params(dout, &low, &high, &edge, &nocount); in axi_clkgen_set_rate()
276 (high << 6) | low, 0xefff); in axi_clkgen_set_rate()
280 axi_clkgen_calc_clk_params(d, &low, &high, &edge, &nocount); in axi_clkgen_set_rate()
282 (edge << 13) | (nocount << 12) | (high << 6) | low, 0x3fff); in axi_clkgen_set_rate()
284 axi_clkgen_calc_clk_params(m, &low, &high, &edge, &nocount); in axi_clkgen_set_rate()
286 (high << 6) | low, 0xefff); in axi_clkgen_set_rate()
/drivers/net/wireless/broadcom/b43legacy/
Dphy.c1294 value = (u8)(pair->low); in b43legacy_lo_write()
1299 if (pair->low < -8 || pair->low > 8 || in b43legacy_lo_write()
1304 pair->low, pair->high); in b43legacy_lo_write()
1382 { .high = 1, .low = 1, }, in b43legacy_phy_lo_g_state()
1383 { .high = 1, .low = 0, }, in b43legacy_phy_lo_g_state()
1384 { .high = 1, .low = -1, }, in b43legacy_phy_lo_g_state()
1385 { .high = 0, .low = -1, }, in b43legacy_phy_lo_g_state()
1386 { .high = -1, .low = -1, }, in b43legacy_phy_lo_g_state()
1387 { .high = -1, .low = 0, }, in b43legacy_phy_lo_g_state()
1388 { .high = -1, .low = 1, }, in b43legacy_phy_lo_g_state()
[all …]
/drivers/media/platform/vivid/
Dvivid-radio-rx.c162 unsigned low, high; in vivid_radio_rx_s_hw_freq_seek() local
191 low = a->rangelow; in vivid_radio_rx_s_hw_freq_seek()
200 low = vivid_radio_bands[band].rangelow; in vivid_radio_rx_s_hw_freq_seek()
204 freq = clamp(dev->radio_rx_freq, low, high); in vivid_radio_rx_s_hw_freq_seek()
211 freq = spacing * (low / spacing) + spacing; in vivid_radio_rx_s_hw_freq_seek()
217 if (freq < low) { in vivid_radio_rx_s_hw_freq_seek()
/drivers/scsi/fnic/
Dfnic_trace.h62 u32 low; member
92 trace_buf->timestamp.low = jiffies; \
93 trace_buf->fnaddr.low = (u32)(unsigned long)_fn; \
/drivers/net/ethernet/stmicro/stmmac/
Ddwmac_lib.c244 unsigned int high, unsigned int low) in stmmac_set_mac_addr() argument
255 writel(data, ioaddr + low); in stmmac_set_mac_addr()
272 unsigned int high, unsigned int low) in stmmac_get_mac_addr() argument
278 lo_addr = readl(ioaddr + low); in stmmac_get_mac_addr()
Ddwmac4_lib.c181 unsigned int high, unsigned int low) in stmmac_dwmac4_set_mac_addr() argument
193 writel(data, ioaddr + low); in stmmac_dwmac4_set_mac_addr()
210 unsigned int high, unsigned int low) in stmmac_dwmac4_get_mac_addr() argument
216 lo_addr = readl(ioaddr + low); in stmmac_dwmac4_get_mac_addr()
/drivers/hwmon/
Dntc_thermistor.c477 int low, high; in get_temp_mc() local
480 lookup_comp(data, ohm, &low, &high); in get_temp_mc()
481 if (low == high) { in get_temp_mc()
483 temp = data->comp[low].temp_c * 1000; in get_temp_mc()
485 temp = data->comp[low].temp_c * 1000 + in get_temp_mc()
486 ((data->comp[high].temp_c - data->comp[low].temp_c) * in get_temp_mc()
487 1000 * ((int)ohm - (int)data->comp[low].ohm)) / in get_temp_mc()
488 ((int)data->comp[high].ohm - (int)data->comp[low].ohm); in get_temp_mc()
/drivers/ntb/hw/amd/
Dntb_hw_amd.h72 u64 low, high; in _read64() local
74 low = readl(mmio); in _read64()
76 return low | (high << 32); in _read64()
/drivers/net/ethernet/hisilicon/hns/
Dhns_dsaf_main.c1431 (soft_mac_entry->tcam_key.low.val == mac_key->low.val)) in hns_dsaf_find_soft_mac_entry()
1489 mac_key->low.bits.mac_4 = addr[4]; in hns_dsaf_set_mac_key()
1490 mac_key->low.bits.mac_5 = addr[5]; in hns_dsaf_set_mac_key()
1491 mac_key->low.bits.vlan = vlan_id; in hns_dsaf_set_mac_key()
1492 mac_key->low.bits.port = port; in hns_dsaf_set_mac_key()
1534 mac_key.high.val, mac_key.low.val); in hns_dsaf_set_mac_uc_entry()
1542 mac_key.low.val, entry_index); in hns_dsaf_set_mac_uc_entry()
1559 soft_mac_entry->tcam_key.low.val = mac_key.low.val; in hns_dsaf_set_mac_uc_entry()
1603 mac_key.high.val, mac_key.low.val); in hns_dsaf_set_mac_mc_entry()
1624 mac_key.low.val, entry_index); in hns_dsaf_set_mac_mc_entry()
[all …]
/drivers/i2c/busses/
Di2c-ibm_iic.c105 unsigned int low; member
113 .low = 4700,
121 .low = 1300,
275 ndelay(t->low / 2); in iic_smbus_quick()
278 ndelay(t->low / 2); in iic_smbus_quick()
288 ndelay(t->low / 2); in iic_smbus_quick()
290 ndelay(t->low / 2); in iic_smbus_quick()
299 ndelay(t->low); in iic_smbus_quick()
/drivers/net/wireless/intel/iwlwifi/dvm/
Drs.c736 u8 low = IWL_RATE_INVALID; in rs_get_adjacent_rate() local
748 low = i; in rs_get_adjacent_rate()
762 return (high << 8) | low; in rs_get_adjacent_rate()
765 low = index; in rs_get_adjacent_rate()
766 while (low != IWL_RATE_INVALID) { in rs_get_adjacent_rate()
767 low = iwl_rates[low].prev_rs; in rs_get_adjacent_rate()
768 if (low == IWL_RATE_INVALID) in rs_get_adjacent_rate()
770 if (rate_mask & (1 << low)) in rs_get_adjacent_rate()
772 IWL_DEBUG_RATE(priv, "Skipping masked lower rate: %d\n", low); in rs_get_adjacent_rate()
785 return (high << 8) | low; in rs_get_adjacent_rate()
[all …]
/drivers/gpu/drm/vc4/
Dvc4_qpu_defines.h207 #define QPU_MASK(high, low) \ argument
208 ((((uint64_t)1 << ((high) - (low) + 1)) - 1) << (low))
/drivers/soc/rockchip/
DKconfig12 In order to meet high performance and low power requirements, a power
13 management unit is designed or saving power when RK3288 in low power

1234567891011