/drivers/net/ethernet/intel/i40e/ |
D | i40e_ptp.c | 68 high, enumerator 83 {off, off, off, high, high, high, high}, 84 {off, in_A, off, high, high, high, low}, 85 {off, out_A, off, high, low, high, high}, 86 {off, in_B, off, high, high, high, low}, 87 {off, out_B, off, high, low, high, high}, 88 {in_A, off, off, high, high, high, low}, 89 {in_A, in_B, off, high, high, high, low}, 90 {in_A, out_B, off, high, low, high, high}, 91 {out_A, off, off, high, low, high, high}, [all …]
|
/drivers/net/ethernet/sfc/falcon/ |
D | bitfield.h | 123 #define EF4_EXTRACT_NATIVE(native_element, min, max, low, high) \ argument 124 ((low) > (max) || (high) < (min) ? 0 : \ 133 #define EF4_EXTRACT64(element, min, max, low, high) \ argument 134 EF4_EXTRACT_NATIVE(le64_to_cpu(element), min, max, low, high) 140 #define EF4_EXTRACT32(element, min, max, low, high) \ argument 141 EF4_EXTRACT_NATIVE(le32_to_cpu(element), min, max, low, high) 143 #define EF4_EXTRACT_OWORD64(oword, low, high) \ argument 144 ((EF4_EXTRACT64((oword).u64[0], 0, 63, low, high) | \ 145 EF4_EXTRACT64((oword).u64[1], 64, 127, low, high)) & \ 146 EF4_MASK64((high) + 1 - (low))) [all …]
|
/drivers/net/ethernet/sfc/siena/ |
D | bitfield.h | 123 #define EFX_EXTRACT_NATIVE(native_element, min, max, low, high) \ argument 124 ((low) > (max) || (high) < (min) ? 0 : \ 133 #define EFX_EXTRACT64(element, min, max, low, high) \ argument 134 EFX_EXTRACT_NATIVE(le64_to_cpu(element), min, max, low, high) 140 #define EFX_EXTRACT32(element, min, max, low, high) \ argument 141 EFX_EXTRACT_NATIVE(le32_to_cpu(element), min, max, low, high) 143 #define EFX_EXTRACT_OWORD64(oword, low, high) \ argument 144 ((EFX_EXTRACT64((oword).u64[0], 0, 63, low, high) | \ 145 EFX_EXTRACT64((oword).u64[1], 64, 127, low, high)) & \ 146 EFX_MASK64((high) + 1 - (low))) [all …]
|
/drivers/net/ethernet/sfc/ |
D | bitfield.h | 125 #define EFX_EXTRACT_NATIVE(native_element, min, max, low, high) \ argument 126 ((low) > (max) || (high) < (min) ? 0 : \ 135 #define EFX_EXTRACT64(element, min, max, low, high) \ argument 136 EFX_EXTRACT_NATIVE(le64_to_cpu(element), min, max, low, high) 142 #define EFX_EXTRACT32(element, min, max, low, high) \ argument 143 EFX_EXTRACT_NATIVE(le32_to_cpu(element), min, max, low, high) 145 #define EFX_EXTRACT_OWORD64(oword, low, high) \ argument 146 ((EFX_EXTRACT64((oword).u64[0], 0, 63, low, high) | \ 147 EFX_EXTRACT64((oword).u64[1], 64, 127, low, high)) & \ 148 EFX_MASK64((high) + 1 - (low))) [all …]
|
/drivers/thermal/intel/ |
D | intel_tcc.c | 22 u32 low, high; in intel_tcc_get_tjmax() local 26 err = rdmsr_safe(MSR_IA32_TEMPERATURE_TARGET, &low, &high); in intel_tcc_get_tjmax() 28 err = rdmsr_safe_on_cpu(cpu, MSR_IA32_TEMPERATURE_TARGET, &low, &high); in intel_tcc_get_tjmax() 49 u32 low, high; in intel_tcc_get_offset() local 53 err = rdmsr_safe(MSR_IA32_TEMPERATURE_TARGET, &low, &high); in intel_tcc_get_offset() 55 err = rdmsr_safe_on_cpu(cpu, MSR_IA32_TEMPERATURE_TARGET, &low, &high); in intel_tcc_get_offset() 76 u32 low, high; in intel_tcc_set_offset() local 83 err = rdmsr_safe(MSR_IA32_TEMPERATURE_TARGET, &low, &high); in intel_tcc_set_offset() 85 err = rdmsr_safe_on_cpu(cpu, MSR_IA32_TEMPERATURE_TARGET, &low, &high); in intel_tcc_set_offset() 97 return wrmsr_safe(MSR_IA32_TEMPERATURE_TARGET, low, high); in intel_tcc_set_offset() [all …]
|
/drivers/rtc/ |
D | rtc-max8925.c | 113 unsigned char high, low; in data_calc() local 118 high = (tm->tm_year + 1900) / 1000; in data_calc() 120 low = low - high * 10; in data_calc() 121 buf[RTC_YEAR2] = (high << 4) + low; in data_calc() 122 high = (tm->tm_year + 1900) / 10; in data_calc() 124 low = low - high * 10; in data_calc() 125 high = high - (high / 10) * 10; in data_calc() 126 buf[RTC_YEAR1] = (high << 4) + low; in data_calc() 127 high = tm->tm_mon / 10; in data_calc() 129 low = low - high * 10; in data_calc() [all …]
|
/drivers/net/ethernet/engleder/ |
D | tsnep_ptp.c | 10 u32 high; in tsnep_get_system_time() local 13 high = ioread32(adapter->addr + ECM_SYSTEM_TIME_HIGH); in tsnep_get_system_time() 16 high_before = high; in tsnep_get_system_time() 17 high = ioread32(adapter->addr + ECM_SYSTEM_TIME_HIGH); in tsnep_get_system_time() 18 } while (high != high_before); in tsnep_get_system_time() 19 *time = (((u64)high) << 32) | ((u64)low); in tsnep_get_system_time() 137 u32 high; in tsnep_ptp_gettimex64() local 141 high = ioread32(adapter->addr + ECM_SYSTEM_TIME_HIGH); in tsnep_ptp_gettimex64() 146 high_before = high; in tsnep_ptp_gettimex64() 147 high = ioread32(adapter->addr + ECM_SYSTEM_TIME_HIGH); in tsnep_ptp_gettimex64() [all …]
|
/drivers/net/wireless/intel/iwlegacy/ |
D | 3945-rs.c | 527 u8 high = RATE_INVALID; in il3945_get_adjacent_rate() local 550 high = i; in il3945_get_adjacent_rate() 555 return (high << 8) | low; in il3945_get_adjacent_rate() 571 high = idx; in il3945_get_adjacent_rate() 572 while (high != RATE_INVALID) { in il3945_get_adjacent_rate() 574 high = il3945_rates[high].next_rs_tgg; in il3945_get_adjacent_rate() 576 high = il3945_rates[high].next_rs; in il3945_get_adjacent_rate() 577 if (high == RATE_INVALID) in il3945_get_adjacent_rate() 579 if (rate_mask & (1 << high)) in il3945_get_adjacent_rate() 581 D_RATE("Skipping masked higher rate: %d\n", high); in il3945_get_adjacent_rate() [all …]
|
/drivers/thermal/ |
D | loongson2_thermal.c | 39 int low, int high, bool enable) in loongson2_thermal_set() argument 44 low = clamp(-40, low, high); in loongson2_thermal_set() 45 high = clamp(125, low, high); in loongson2_thermal_set() 48 high += HECTO; in loongson2_thermal_set() 54 reg_ctrl = high; in loongson2_thermal_set() 85 static int loongson2_thermal_set_trips(struct thermal_zone_device *tz, int low, int high) in loongson2_thermal_set_trips() argument 89 return loongson2_thermal_set(data, low/MILLI, high/MILLI, true); in loongson2_thermal_set_trips()
|
D | thermal_trip.c | 54 int low = -INT_MAX, high = INT_MAX; in __thermal_zone_set_trips() local 75 trip.temperature < high) in __thermal_zone_set_trips() 76 high = trip.temperature; in __thermal_zone_set_trips() 80 if (tz->prev_low_trip == low && tz->prev_high_trip == high) in __thermal_zone_set_trips() 84 tz->prev_high_trip = high; in __thermal_zone_set_trips() 87 "new temperature boundaries: %d < x < %d\n", low, high); in __thermal_zone_set_trips() 93 ret = tz->ops->set_trips(tz, low, high); in __thermal_zone_set_trips()
|
D | rockchip_thermal.c | 551 int high, low, mid; in rk_tsadcv2_temp_to_code() local 557 high = (table->length - 1) - 1; /* ignore the last check for table */ in rk_tsadcv2_temp_to_code() 558 mid = (high + low) / 2; in rk_tsadcv2_temp_to_code() 561 if (temp < table->id[low].temp || temp > table->id[high].temp) in rk_tsadcv2_temp_to_code() 564 while (low <= high) { in rk_tsadcv2_temp_to_code() 568 high = mid - 1; in rk_tsadcv2_temp_to_code() 571 mid = (low + high) / 2; in rk_tsadcv2_temp_to_code() 604 unsigned int high = table->length - 1; in rk_tsadcv2_code_to_temp() local 605 unsigned int mid = (low + high) / 2; in rk_tsadcv2_code_to_temp() 614 if (code <= table->id[high].code) in rk_tsadcv2_code_to_temp() [all …]
|
/drivers/pwm/ |
D | pwm-keembay.c | 96 unsigned long long high, low; in keembay_pwm_get_state() local 112 high = FIELD_GET(KMB_PWM_HIGH_MASK, highlow) * NSEC_PER_SEC; in keembay_pwm_get_state() 113 state->duty_cycle = DIV_ROUND_UP_ULL(high, clk_rate); in keembay_pwm_get_state() 114 state->period = DIV_ROUND_UP_ULL(high + low, clk_rate); in keembay_pwm_get_state() 128 u16 high, low; in keembay_pwm_apply() local 160 high = div; in keembay_pwm_apply() 163 div = div - high; in keembay_pwm_apply() 169 pwm_count = FIELD_PREP(KMB_PWM_HIGH_MASK, high) | in keembay_pwm_apply()
|
/drivers/gpu/drm/radeon/ |
D | btc_dpm.c | 2114 if (ps->high.mclk > max_limits->mclk) in btc_apply_state_adjust_rules() 2115 ps->high.mclk = max_limits->mclk; in btc_apply_state_adjust_rules() 2116 if (ps->high.sclk > max_limits->sclk) in btc_apply_state_adjust_rules() 2117 ps->high.sclk = max_limits->sclk; in btc_apply_state_adjust_rules() 2118 if (ps->high.vddc > max_limits->vddc) in btc_apply_state_adjust_rules() 2119 ps->high.vddc = max_limits->vddc; in btc_apply_state_adjust_rules() 2120 if (ps->high.vddci > max_limits->vddci) in btc_apply_state_adjust_rules() 2121 ps->high.vddci = max_limits->vddci; in btc_apply_state_adjust_rules() 2146 mclk = ps->high.mclk; in btc_apply_state_adjust_rules() 2148 vddci = ps->high.vddci; in btc_apply_state_adjust_rules() [all …]
|
/drivers/md/bcache/ |
D | bcache_ondisk.h | 24 __u64 high; member 45 KEY_FIELD(KEY_PTRS, high, 60, 3) 46 KEY_FIELD(__PAD0, high, 58, 2) 47 KEY_FIELD(KEY_CSUM, high, 56, 2) 48 KEY_FIELD(__PAD1, high, 55, 1) 49 KEY_FIELD(KEY_DIRTY, high, 36, 1) 51 KEY_FIELD(KEY_SIZE, high, 20, KEY_SIZE_BITS) 52 KEY_FIELD(KEY_INODE, high, 0, 20) 73 .high = (1ULL << 63) | ((__u64) (size) << 20) | (inode), \
|
/drivers/thermal/broadcom/ |
D | brcmstb_thermal.c | 236 int low, high, intr; in brcmstb_tmon_irq_thread() local 239 high = avs_tmon_get_trip_temp(priv, TMON_TRIP_TYPE_HIGH); in brcmstb_tmon_irq_thread() 243 low, intr, high); in brcmstb_tmon_irq_thread() 246 if (intr >= high) in brcmstb_tmon_irq_thread() 261 static int brcmstb_set_trips(struct thermal_zone_device *tz, int low, int high) in brcmstb_set_trips() argument 265 dev_dbg(priv->dev, "set trips %d <--> %d\n", low, high); in brcmstb_set_trips() 279 if (high == INT_MAX) { in brcmstb_set_trips() 282 avs_tmon_set_trip_temp(priv, TMON_TRIP_TYPE_HIGH, high); in brcmstb_set_trips()
|
/drivers/cpufreq/ |
D | speedstep-smi.c | 100 static int speedstep_smi_get_freqs(unsigned int *low, unsigned int *high) in speedstep_smi_get_freqs() argument 137 *high = high_mhz * 1000; in speedstep_smi_get_freqs() 232 unsigned int *low, *high; in speedstep_cpu_init() local 246 high = &speedstep_freqs[SPEEDSTEP_HIGH].frequency; in speedstep_cpu_init() 248 result = speedstep_smi_get_freqs(low, high); in speedstep_cpu_init() 255 low, high, in speedstep_cpu_init()
|
/drivers/dma-buf/heaps/ |
D | page_pool.c | 143 static int dmabuf_page_pool_total(struct dmabuf_page_pool *pool, bool high) in dmabuf_page_pool_total() argument 147 if (high) in dmabuf_page_pool_total() 216 bool high; in dmabuf_page_pool_do_shrink() local 219 high = true; in dmabuf_page_pool_do_shrink() 221 high = !!(gfp_mask & __GFP_HIGHMEM); in dmabuf_page_pool_do_shrink() 224 return dmabuf_page_pool_total(pool, high); in dmabuf_page_pool_do_shrink()
|
/drivers/irqchip/ |
D | irq-lpc32xx.c | 76 bool high, edge; in lpc32xx_irq_set_type() local 81 high = true; in lpc32xx_irq_set_type() 85 high = false; in lpc32xx_irq_set_type() 89 high = true; in lpc32xx_irq_set_type() 93 high = false; in lpc32xx_irq_set_type() 103 if (high) in lpc32xx_irq_set_type()
|
/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ |
D | vega12_thermal.c | 177 int high = VEGA12_THERMAL_MAXIMUM_ALERT_TEMP; in vega12_thermal_set_temperature_range() local 183 if (high > pptable_information->us_software_shutdown_temp) in vega12_thermal_set_temperature_range() 184 high = pptable_information->us_software_shutdown_temp; in vega12_thermal_set_temperature_range() 186 if (low > high) in vega12_thermal_set_temperature_range() 193 val = REG_SET_FIELD(val, THM_THERMAL_INT_CTRL, DIG_THERM_INTH, high); in vega12_thermal_set_temperature_range()
|
D | smu7_thermal.c | 324 int high = SMU7_THERMAL_MAXIMUM_ALERT_TEMP * in smu7_thermal_set_temperature_range() local 329 if (high > high_temp) in smu7_thermal_set_temperature_range() 330 high = high_temp; in smu7_thermal_set_temperature_range() 332 if (low > high) in smu7_thermal_set_temperature_range() 337 (high / PP_TEMPERATURE_UNITS_PER_CENTIGRADES)); in smu7_thermal_set_temperature_range() 343 (high / PP_TEMPERATURE_UNITS_PER_CENTIGRADES)); in smu7_thermal_set_temperature_range()
|
D | vega20_thermal.c | 248 int high = VEGA20_THERMAL_MAXIMUM_ALERT_TEMP; in vega20_thermal_set_temperature_range() local 254 if (high > pptable_information->us_software_shutdown_temp) in vega20_thermal_set_temperature_range() 255 high = pptable_information->us_software_shutdown_temp; in vega20_thermal_set_temperature_range() 257 if (low > high) in vega20_thermal_set_temperature_range() 264 val = CGS_REG_SET_FIELD(val, THM_THERMAL_INT_CTRL, DIG_THERM_INTH, high); in vega20_thermal_set_temperature_range()
|
/drivers/net/wireless/broadcom/b43legacy/ |
D | phy.c | 1270 value |= ((u8)(pair->high)) << 8; in b43legacy_lo_write() 1275 pair->high < -8 || pair->high > 8) { in b43legacy_lo_write() 1279 pair->low, pair->high); in b43legacy_lo_write() 1357 { .high = 1, .low = 1, }, in b43legacy_phy_lo_g_state() 1358 { .high = 1, .low = 0, }, in b43legacy_phy_lo_g_state() 1359 { .high = 1, .low = -1, }, in b43legacy_phy_lo_g_state() 1360 { .high = 0, .low = -1, }, in b43legacy_phy_lo_g_state() 1361 { .high = -1, .low = -1, }, in b43legacy_phy_lo_g_state() 1362 { .high = -1, .low = 0, }, in b43legacy_phy_lo_g_state() 1363 { .high = -1, .low = 1, }, in b43legacy_phy_lo_g_state() [all …]
|
/drivers/media/test-drivers/vivid/ |
D | vivid-radio-rx.c | 151 unsigned low, high; in vivid_radio_rx_s_hw_freq_seek() local 181 high = a->rangehigh; in vivid_radio_rx_s_hw_freq_seek() 190 high = vivid_radio_bands[band].rangehigh; in vivid_radio_rx_s_hw_freq_seek() 193 freq = clamp(dev->radio_rx_freq, low, high); in vivid_radio_rx_s_hw_freq_seek() 197 if (freq > high) { in vivid_radio_rx_s_hw_freq_seek() 209 freq = spacing * ((high + spacing - 1) / spacing) - spacing; in vivid_radio_rx_s_hw_freq_seek()
|
/drivers/power/supply/ |
D | power_supply_core.c | 1064 int i, high, low; in power_supply_temp2resist_simple() local 1072 high = low = i; in power_supply_temp2resist_simple() 1074 high = low = i - 1; in power_supply_temp2resist_simple() 1076 high = (low = i) - 1; in power_supply_temp2resist_simple() 1080 table[high].temp, in power_supply_temp2resist_simple() 1081 table[high].resistance, in power_supply_temp2resist_simple() 1104 int i, high, low; in power_supply_vbat2ri() local 1137 high = i; in power_supply_vbat2ri() 1139 high = i - 1; in power_supply_vbat2ri() 1144 vbat2ri[high].vbat_uv, in power_supply_vbat2ri() [all …]
|
/drivers/clk/ |
D | clk-axi-clkgen.c | 183 unsigned int high; member 205 params->high = divider / 2; in axi_clkgen_calc_clk_params() 207 params->low = divider - params->high; in axi_clkgen_calc_clk_params() 212 params->high = divider / 2; in axi_clkgen_calc_clk_params() 214 params->low = params->high; in axi_clkgen_calc_clk_params() 217 params->high--; in axi_clkgen_calc_clk_params() 325 (params->high << 6) | params->low, 0xefff); in axi_clkgen_set_div() 370 (params.high << 6) | params.low, 0x3fff); in axi_clkgen_set_rate()
|