/drivers/net/ethernet/sfc/ |
D | bitfield.h | 126 #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/ |
D | rtc-max8925.c | 116 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/ |
D | 3945-rs.c | 547 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 …]
|
D | 4965-rs.c | 676 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/ |
D | btc_dpm.c | 1797 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 …]
|
D | rv6xx_dpm.c | 241 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 …]
|
D | radeon_asic.h | 430 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 …]
|
D | rv770_dpm.c | 273 (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 …]
|
D | rv730_dpm.c | 343 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/ |
D | via-ircc.h | 283 __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/ |
D | rockchip_thermal.c | 403 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/ |
D | speedstep-smi.c | 102 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/ |
D | clk-axi-clkgen.c | 149 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/ |
D | phy.c | 1294 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/ |
D | vivid-radio-rx.c | 162 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/ |
D | fnic_trace.h | 62 u32 low; member 92 trace_buf->timestamp.low = jiffies; \ 93 trace_buf->fnaddr.low = (u32)(unsigned long)_fn; \
|
/drivers/net/ethernet/stmicro/stmmac/ |
D | dwmac_lib.c | 244 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()
|
D | dwmac4_lib.c | 181 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/ |
D | ntc_thermistor.c | 477 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/ |
D | ntb_hw_amd.h | 72 u64 low, high; in _read64() local 74 low = readl(mmio); in _read64() 76 return low | (high << 32); in _read64()
|
/drivers/net/ethernet/hisilicon/hns/ |
D | hns_dsaf_main.c | 1431 (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/ |
D | i2c-ibm_iic.c | 105 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/ |
D | rs.c | 736 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/ |
D | vc4_qpu_defines.h | 207 #define QPU_MASK(high, low) \ argument 208 ((((uint64_t)1 << ((high) - (low) + 1)) - 1) << (low))
|
/drivers/soc/rockchip/ |
D | Kconfig | 12 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
|