Home
last modified time | relevance | path

Searched refs:high (Results 1 – 25 of 287) sorted by relevance

12345678910>>...12

/drivers/net/ethernet/sfc/falcon/
Dbitfield.h123 #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/
Dbitfield.h123 #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/rtc/
Drtc-max8925.c113 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/staging/android/ion/heaps/
Dion_page_pool.c44 static struct page *ion_page_pool_remove(struct ion_page_pool *pool, bool high) in ion_page_pool_remove() argument
48 if (high) { in ion_page_pool_remove()
92 static int ion_page_pool_total(struct ion_page_pool *pool, bool high) in ion_page_pool_total() argument
96 if (high) in ion_page_pool_total()
118 bool high; in ion_page_pool_shrink() local
121 high = true; in ion_page_pool_shrink()
123 high = !!(gfp_mask & __GFP_HIGHMEM); in ion_page_pool_shrink()
126 return ion_page_pool_total(pool, high); in ion_page_pool_shrink()
134 } else if (high && pool->high_count) { in ion_page_pool_shrink()
/drivers/net/wireless/intel/iwlegacy/
D3945-rs.c527 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/
Dthermal_helpers.c132 int high = INT_MAX; in thermal_zone_set_trips() local
152 if (trip_temp > tz->temperature && trip_temp < high) in thermal_zone_set_trips()
153 high = trip_temp; in thermal_zone_set_trips()
157 if (tz->prev_low_trip == low && tz->prev_high_trip == high) in thermal_zone_set_trips()
161 tz->prev_high_trip = high; in thermal_zone_set_trips()
164 "new temperature boundaries: %d < x < %d\n", low, high); in thermal_zone_set_trips()
170 ret = tz->ops->set_trips(tz, low, high); in thermal_zone_set_trips()
Drockchip_thermal.c480 int high, low, mid; in rk_tsadcv2_temp_to_code() local
486 high = (table->length - 1) - 1; /* ignore the last check for table */ in rk_tsadcv2_temp_to_code()
487 mid = (high + low) / 2; in rk_tsadcv2_temp_to_code()
490 if (temp < table->id[low].temp || temp > table->id[high].temp) in rk_tsadcv2_temp_to_code()
493 while (low <= high) { in rk_tsadcv2_temp_to_code()
497 high = mid - 1; in rk_tsadcv2_temp_to_code()
500 mid = (low + high) / 2; in rk_tsadcv2_temp_to_code()
533 unsigned int high = table->length - 1; in rk_tsadcv2_code_to_temp() local
534 unsigned int mid = (low + high) / 2; in rk_tsadcv2_code_to_temp()
543 if (code <= table->id[high].code) in rk_tsadcv2_code_to_temp()
[all …]
/drivers/gpu/drm/radeon/
Dbtc_dpm.c2116 if (ps->high.mclk > max_limits->mclk) in btc_apply_state_adjust_rules()
2117 ps->high.mclk = max_limits->mclk; in btc_apply_state_adjust_rules()
2118 if (ps->high.sclk > max_limits->sclk) in btc_apply_state_adjust_rules()
2119 ps->high.sclk = max_limits->sclk; in btc_apply_state_adjust_rules()
2120 if (ps->high.vddc > max_limits->vddc) in btc_apply_state_adjust_rules()
2121 ps->high.vddc = max_limits->vddc; in btc_apply_state_adjust_rules()
2122 if (ps->high.vddci > max_limits->vddci) in btc_apply_state_adjust_rules()
2123 ps->high.vddci = max_limits->vddci; in btc_apply_state_adjust_rules()
2148 mclk = ps->high.mclk; in btc_apply_state_adjust_rules()
2150 vddci = ps->high.vddci; in btc_apply_state_adjust_rules()
[all …]
/drivers/thermal/broadcom/
Dbrcmstb_thermal.c238 int low, high, intr; in brcmstb_tmon_irq_thread() local
241 high = avs_tmon_get_trip_temp(priv, TMON_TRIP_TYPE_HIGH); in brcmstb_tmon_irq_thread()
245 low, intr, high); in brcmstb_tmon_irq_thread()
248 if (intr >= high) in brcmstb_tmon_irq_thread()
263 static int brcmstb_set_trips(void *data, int low, int high) in brcmstb_set_trips() argument
267 dev_dbg(priv->dev, "set trips %d <--> %d\n", low, high); in brcmstb_set_trips()
281 if (high == INT_MAX) { in brcmstb_set_trips()
284 avs_tmon_set_trip_temp(priv, TMON_TRIP_TYPE_HIGH, high); in brcmstb_set_trips()
/drivers/cpufreq/
Dspeedstep-smi.c100 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/irqchip/
Dirq-lpc32xx.c75 bool high, edge; in lpc32xx_irq_set_type() local
80 high = true; in lpc32xx_irq_set_type()
84 high = false; in lpc32xx_irq_set_type()
88 high = true; in lpc32xx_irq_set_type()
92 high = false; in lpc32xx_irq_set_type()
102 if (high) in lpc32xx_irq_set_type()
/drivers/dma-buf/heaps/
Dpage_pool.c117 static int dmabuf_page_pool_total(struct dmabuf_page_pool *pool, bool high) in dmabuf_page_pool_total() argument
121 if (high) in dmabuf_page_pool_total()
182 bool high; in dmabuf_page_pool_do_shrink() local
185 high = true; in dmabuf_page_pool_do_shrink()
187 high = !!(gfp_mask & __GFP_HIGHMEM); in dmabuf_page_pool_do_shrink()
190 return dmabuf_page_pool_total(pool, high); in dmabuf_page_pool_do_shrink()
/drivers/block/paride/
DKconfig9 comment "Parallel IDE high-level drivers"
16 This option enables the high-level driver for IDE-type disk devices
32 This option enables the high-level driver for ATAPI CD-ROM devices
48 This option enables the high-level driver for ATAPI disk devices
62 This option enables the high-level driver for ATAPI tape devices
75 This option enables a special high-level driver for generic ATAPI
108 have a high-level driver for the type of device that you want to
126 called bpck. You must also have a high-level driver for the type
145 called bpck6. You must also have a high-level driver for the type
157 a high-level driver for the type of device that you want to support.
[all …]
/drivers/gpu/drm/amd/pm/powerplay/hwmgr/
Dvega12_thermal.c177 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()
Dsmu7_thermal.c317 int high = SMU7_THERMAL_MAXIMUM_ALERT_TEMP * in smu7_thermal_set_temperature_range() local
322 if (high > high_temp) in smu7_thermal_set_temperature_range()
323 high = high_temp; in smu7_thermal_set_temperature_range()
325 if (low > high) in smu7_thermal_set_temperature_range()
330 (high / PP_TEMPERATURE_UNITS_PER_CENTIGRADES)); in smu7_thermal_set_temperature_range()
336 (high / PP_TEMPERATURE_UNITS_PER_CENTIGRADES)); in smu7_thermal_set_temperature_range()
Dvega20_thermal.c247 int high = VEGA20_THERMAL_MAXIMUM_ALERT_TEMP; in vega20_thermal_set_temperature_range() local
253 if (high > pptable_information->us_software_shutdown_temp) in vega20_thermal_set_temperature_range()
254 high = pptable_information->us_software_shutdown_temp; in vega20_thermal_set_temperature_range()
256 if (low > high) in vega20_thermal_set_temperature_range()
263 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/
Dphy.c1270 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/
Dvivid-radio-rx.c151 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/lightnvm/
Dpblk-rl.c115 if (free_blocks >= rl->high) { in __pblk_rl_update_rates()
128 } else if (free_blocks < rl->high) { in __pblk_rl_update_rates()
189 return rl->high; in pblk_rl_high_thrs()
224 rl->high = pblk->op_blks - blk_meta - lm->blk_per_line; in pblk_rl_init()
225 rl->high_pw = get_count_order(rl->high); in pblk_rl_init()
/drivers/clk/
Dclk-axi-clkgen.c165 unsigned int high; member
187 params->high = divider / 2; in axi_clkgen_calc_clk_params()
189 params->low = divider - params->high; in axi_clkgen_calc_clk_params()
194 params->high = divider / 2; in axi_clkgen_calc_clk_params()
196 params->low = params->high; in axi_clkgen_calc_clk_params()
199 params->high--; in axi_clkgen_calc_clk_params()
307 (params->high << 6) | params->low, 0xefff); in axi_clkgen_set_div()
351 (params.high << 6) | params.low, 0x3fff); in axi_clkgen_set_rate()
/drivers/ide/
Dide-lib.c13 u32 high, low; in ide_get_lba_addr() local
18 high = (tf->lbah << 16) | (tf->lbam << 8) | tf->lbal; in ide_get_lba_addr()
20 high = tf->device & 0xf; in ide_get_lba_addr()
22 return ((u64)high << 24) | low; in ide_get_lba_addr()
/drivers/clocksource/
Dtimer-microchip-pit64b.c86 u32 low, high; in mchp_pit64b_cnt_read() local
96 high = readl_relaxed(base + MCHP_PIT64B_TMSBR); in mchp_pit64b_cnt_read()
100 return (((u64)high << 32) | low); in mchp_pit64b_cnt_read()
106 u32 low, high; in mchp_pit64b_reset() local
109 high = cycles >> 32; in mchp_pit64b_reset()
113 writel_relaxed(high, timer->base + MCHP_PIT64B_MSB_PR); in mchp_pit64b_reset()
/drivers/gpio/
Dgpio-mt7621.c115 u32 rise, fall, high, low; in mediatek_gpio_irq_unmask() local
120 high = mtk_gpio_r32(rg, GPIO_REG_HLVL); in mediatek_gpio_irq_unmask()
124 mtk_gpio_w32(rg, GPIO_REG_HLVL, high | (BIT(pin) & rg->hlevel)); in mediatek_gpio_irq_unmask()
136 u32 rise, fall, high, low; in mediatek_gpio_irq_mask() local
141 high = mtk_gpio_r32(rg, GPIO_REG_HLVL); in mediatek_gpio_irq_mask()
145 mtk_gpio_w32(rg, GPIO_REG_HLVL, high & ~BIT(pin)); in mediatek_gpio_irq_mask()
/drivers/net/ethernet/hisilicon/hns/
Dhns_dsaf_main.c1020 addr[0] = mac_key->high.bits.mac_0; in hns_dsaf_tcam_addr_get()
1021 addr[1] = mac_key->high.bits.mac_1; in hns_dsaf_tcam_addr_get()
1022 addr[2] = mac_key->high.bits.mac_2; in hns_dsaf_tcam_addr_get()
1023 addr[3] = mac_key->high.bits.mac_3; in hns_dsaf_tcam_addr_get()
1518 (soft_mac_entry->tcam_key.high.val == mac_key->high.val) && in hns_dsaf_find_soft_mac_entry()
1594 mac_key->high.bits.mac_0 = addr[0]; in hns_dsaf_set_mac_key()
1595 mac_key->high.bits.mac_1 = addr[1]; in hns_dsaf_set_mac_key()
1596 mac_key->high.bits.mac_2 = addr[2]; in hns_dsaf_set_mac_key()
1597 mac_key->high.bits.mac_3 = addr[3]; in hns_dsaf_set_mac_key()
1647 mac_key.high.val, mac_key.low.val); in hns_dsaf_set_mac_uc_entry()
[all …]
/drivers/iio/adc/
Denvelope-detector.c63 int high; member
142 env->level = (env->high + env->low + !env->invert) / 2; in envelope_detector_setup_compare()
144 if (env->high == env->low + 1) { in envelope_detector_setup_compare()
181 env->high = env->level; in envelope_detector_timeout()
207 env->high = env->dac_max + env->invert; in envelope_detector_read_raw()

12345678910>>...12