Home
last modified time | relevance | path

Searched refs:max (Results 1 - 25 of 155) sorted by relevance

1234567

/device/soc/rockchip/common/vendor/drivers/gpu/arm/mali400/mali/linux/
H A Dmali_osk_bitmap.c37 obj = find_next_zero_bit(bitmap->table, bitmap->max, bitmap->reserve); in _mali_osk_bitmap_alloc()
38 if (obj < bitmap->max) { in _mali_osk_bitmap_alloc()
74 obj = bitmap_find_next_zero_area(bitmap->table, bitmap->max, bitmap->last, cnt, 0); in _mali_osk_bitmap_alloc_range()
75 if (obj >= bitmap->max) { in _mali_osk_bitmap_alloc_range()
76 obj = bitmap_find_next_zero_area(bitmap->table, bitmap->max, bitmap->reserve, cnt, 0); in _mali_osk_bitmap_alloc_range()
79 if (obj < bitmap->max) { in _mali_osk_bitmap_alloc_range()
83 if (bitmap->last >= bitmap->max) { in _mali_osk_bitmap_alloc_range()
125 bitmap->max = num; in _mali_osk_bitmap_init()
131 bitmap->table = kzalloc(BITS_TO_LONGS(bitmap->max) * sizeof(long), GFP_KERNEL); in _mali_osk_bitmap_init()
/device/soc/rockchip/common/kernel/drivers/gpu/arm/mali400/mali/linux/
H A Dmali_osk_bitmap.c33 obj = find_next_zero_bit(bitmap->table, bitmap->max, bitmap->reserve); in _mali_osk_bitmap_alloc()
35 if (obj < bitmap->max) { in _mali_osk_bitmap_alloc()
70 obj = bitmap_find_next_zero_area(bitmap->table, bitmap->max, in _mali_osk_bitmap_alloc_range()
73 if (obj >= bitmap->max) { in _mali_osk_bitmap_alloc_range()
74 obj = bitmap_find_next_zero_area(bitmap->table, bitmap->max, in _mali_osk_bitmap_alloc_range()
78 if (obj < bitmap->max) { in _mali_osk_bitmap_alloc_range()
82 if (bitmap->last >= bitmap->max) { in _mali_osk_bitmap_alloc_range()
124 bitmap->max = num; in _mali_osk_bitmap_init()
130 bitmap->table = kzalloc(BITS_TO_LONGS(bitmap->max) * in _mali_osk_bitmap_init()
/device/soc/hisilicon/common/platform/wifi/hi3881v100/driver/mac/hmac/
H A Dhmac_traffic_classify.c72 static hi_u32 hmac_tx_add_cfm_traffic(hmac_user_stru *hmac_user, hi_u8 tid, const hmac_tx_major_flow_stru *max) in hmac_tx_add_cfm_traffic() argument
107 if (memcpy_s(&cfm_info->cfm_flow_info, sizeof(hmac_tx_flow_info_stru), &max->flow_info, in hmac_tx_add_cfm_traffic()
193 hmac_tx_major_flow_stru max = { 0 }; in hmac_tx_find_major_traffic() local
229 if (mark.wait_check_num <= max.wait_check_num) { in hmac_tx_find_major_traffic()
232 if (memcpy_s(&max, sizeof(hmac_tx_major_flow_stru), &mark, sizeof(hmac_tx_major_flow_stru)) != EOK) { in hmac_tx_find_major_traffic()
236 if (max.wait_check_num >= (MAX_JUDGE_CACHE_LENGTH >> 1)) { in hmac_tx_find_major_traffic()
238 max.average_len = max.average_len / max.wait_check_num; in hmac_tx_find_major_traffic()
239 return hmac_tx_traffic_judge(hmac_user, &max, puc_ti in hmac_tx_find_major_traffic()
[all...]
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/mpp/cbb/include/adapt/
H A Dhi_math_adapt.h56 * clip3(x,min,max) clip x within [min,max]
57 * wrap_max(x,max,min) wrap to min if x equal max
58 * wrap_min(x,min,max) wrap to max if x equal min
59 * value_between(x,min.max) True if x is between [min,max] inclusively.
62 #define clip3(x, min, max) ((x) < (min) ? (min) : ((x) > (max)
[all...]
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/mpp/cbb/include/
H A Dhi_math.h55 * CLIP3(x,min,max) clip x within [min,max]
56 * WRAP_MAX(x,max,min) wrap to min if x equal max
57 * WRAP_MIN(x,min,max) wrap to max if x equal min
58 * VALUE_BETWEEN(x,min.max) True if x is between [min,max] inclusively.
61 #define CLIP3(x, min, max) ((x) < (min) ? (min) : ((x) > (max)
[all...]
/device/soc/hisilicon/hi3516dv300/sdk_linux/include/adapt/
H A Dhi_math_adapt.h53 * clip3(x,min,max) clip x within [min,max]
54 * wrap_max(x,max,min) wrap to min if x equal max
55 * wrap_min(x,min,max) wrap to max if x equal min
56 * value_between(x,min.max) True if x is between [min,max] inclusively.
59 #define clip3(x, min, max) ((x) < (min) ? (min) : ((x) > (max)
[all...]
/device/soc/hisilicon/hi3516dv300/sdk_linux/include/
H A Dhi_math.h52 * CLIP3(x,min,max) clip x within [min,max]
53 * WRAP_MAX(x,max,min) wrap to min if x equal max
54 * WRAP_MIN(x,min,max) wrap to max if x equal min
55 * VALUE_BETWEEN(x,min.max) True if x is between [min,max] inclusively.
58 #define CLIP3(x, min, max) ((x) < (min) ? (min) : ((x) > (max)
[all...]
/device/soc/hisilicon/hi3516dv300/sdk_liteos/include/adapt/
H A Dhi_math_adapt.h53 * clip3(x,min,max) clip x within [min,max]
54 * wrap_max(x,max,min) wrap to min if x equal max
55 * wrap_min(x,min,max) wrap to max if x equal min
56 * value_between(x,min.max) True if x is between [min,max] inclusively.
59 #define clip3(x, min, max) ((x) < (min) ? (min) : ((x) > (max)
[all...]
/device/soc/hisilicon/hi3516dv300/sdk_liteos/include/
H A Dhi_math.h54 * CLIP3(x,min,max) clip x within [min,max]
55 * WRAP_MAX(x,max,min) wrap to min if x equal max
56 * WRAP_MIN(x,min,max) wrap to max if x equal min
57 * VALUE_BETWEEN(x,min.max) True if x is between [min,max] inclusively.
60 #define CLIP3(x, min, max) ((x) < (min) ? (min) : ((x) > (max)
[all...]
/device/soc/rockchip/common/kernel/drivers/gpu/arm/bifrost/csf/
H A Dmali_kbase_csf_firmware_cfg.c44 * @max: The maximum legal value of the configuration option
60 u32 max; member
71 static FW_CFG_ATTR(max, S_IRUGO);
94 val = config->max; in show_fw_cfg()
138 if ((val < config->min) || (val > config->max)) in store_fw_cfg()
297 config->max = entry[2]; in kbase_csf_firmware_cfg_option_entry_parse()
306 config->min, config->max); in kbase_csf_firmware_cfg_option_entry_parse()
/device/soc/rockchip/common/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_wifi6/
H A Ddhd_flowring.h118 uint16 max; /* maximum or min budget (used in cumm) */ member
128 #define DHD_FLOW_QUEUE_MAX(queue) ((int)(queue)->max)
134 #define DHD_FLOW_QUEUE_AVAIL(queue) ((int)((queue)->max - (queue)->len))
135 #define DHD_FLOW_QUEUE_FULL(queue) ((queue)->len >= (queue)->max)
141 ((queue)->max) = ((budget) - 1)
250 extern void dhd_flow_queue_init(dhd_pub_t *dhdp, flow_queue_t *queue, int max);
251 extern void dhd_flow_queue_reinit(dhd_pub_t *dhdp, flow_queue_t *queue, int max);
/device/soc/rockchip/rk3588/kernel/include/trace/hooks/
H A Dtopology.h16 unsigned long max, unsigned long *scale),
17 TP_ARGS(cpus, freq, max, scale));
/device/soc/rockchip/common/sdk_linux/drivers/cpufreq/
H A Dcpufreq_userspace.c106 policy->max, policy->cur, *setspeed); in cpufreq_userspace_policy_limits()
108 if (policy->max < *setspeed) { in cpufreq_userspace_policy_limits()
109 __cpufreq_driver_target(policy, policy->max, CPUFREQ_RELATION_H); in cpufreq_userspace_policy_limits()
/device/soc/rockchip/common/kernel/drivers/gpu/arm/mali400/mali/platform/arm/
H A Darm_core_scaling.c90 #define PERCENT_OF(percent, max) ((int) ((percent)*(max)/100.0 + 0.5))
/device/soc/rockchip/common/vendor/drivers/rockchip/
H A Drockchip_ipa.c24 u32 min = data->lkg_range[0], max = data->lkg_range[1]; in calculate_static_coefficient() local
32 lkg = (min + max) / 0x02; in calculate_static_coefficient()
42 if (lkg > max) { in calculate_static_coefficient()
43 lkg = max; in calculate_static_coefficient()
/device/soc/rockchip/rk3588/kernel/drivers/soc/rockchip/
H A Drockchip_ipa.c24 u32 min = data->lkg_range[0], max = data->lkg_range[1]; in calculate_static_coefficient() local
32 lkg = (min + max) / 2; in calculate_static_coefficient()
40 if (lkg > max) in calculate_static_coefficient()
41 lkg = max; in calculate_static_coefficient()
/device/soc/rockchip/common/vendor/drivers/gpu/arm/bifrost/ipa/
H A Dmali_kbase_ipa_vinstr_common.c185 /* Range: 0 (GPU not used at all), to the max sampling interval, say in kbase_ipa_vinstr_dynamic_coeff()
186 * 1s, * max GPU frequency (GPU 100% utilized). in kbase_ipa_vinstr_dynamic_coeff()
191 if (active_cycles < (u32)max(model_data->min_sample_cycles, 0)) { in kbase_ipa_vinstr_dynamic_coeff()
197 active_cycles = max(1u, active_cycles); in kbase_ipa_vinstr_dynamic_coeff()
239 coeff = div_u64(coeff * DEFAULT_MIN_SAMPLE_CYCLES, max(model_data->reference_voltage, 1)); in kbase_ipa_vinstr_dynamic_coeff()
241 coeff = div_u64(coeff * DEFAULT_MIN_SAMPLE_CYCLES, max(model_data->reference_voltage, 1)); in kbase_ipa_vinstr_dynamic_coeff()
/device/soc/rockchip/common/kernel/drivers/gpu/arm/bifrost/ipa/backend/
H A Dmali_kbase_ipa_counter_common_csf.c41 * - max sampling interval of 1 second.
42 * - max GPU frequency of 2 GHz.
43 * - max number of cores as 32.
44 * - max increment of 4 in per core counter value at every clock cycle.
46 * So max increment = 2 * 10^9 * 32 * 4 = ~2^38.
206 * maximum per clock cycle. This is because max number of shader in calculate_coeff()
207 * cores is expected to be 32 (max number of L2 slices is expected to in calculate_coeff()
233 coeff = div_u64(coeff * 1000, max(model_data->reference_voltage, 1)); in calculate_coeff()
235 coeff = div_u64(coeff * 1000, max(model_data->reference_voltage, 1)); in calculate_coeff()
302 /* Range: 0 (GPU not used at all), to the max samplin in kbase_ipa_counter_dynamic_coeff()
[all...]
H A Dmali_kbase_ipa_counter_common_jm.c197 /* Range: 0 (GPU not used at all), to the max sampling interval, say in kbase_ipa_vinstr_dynamic_coeff()
198 * 1s, * max GPU frequency (GPU 100% utilized). in kbase_ipa_vinstr_dynamic_coeff()
204 if (active_cycles < (u32) max(model_data->min_sample_cycles, 0)) { in kbase_ipa_vinstr_dynamic_coeff()
210 active_cycles = max(1u, active_cycles); in kbase_ipa_vinstr_dynamic_coeff()
252 coeff = div_u64(coeff * 1000, max(model_data->reference_voltage, 1)); in kbase_ipa_vinstr_dynamic_coeff()
254 coeff = div_u64(coeff * 1000, max(model_data->reference_voltage, 1)); in kbase_ipa_vinstr_dynamic_coeff()
/device/soc/rockchip/common/vendor/drivers/gpu/arm/mali400/mali/common/
H A Dmali_dvfs_policy.c34 /** The max fps the same as display vsync default 60, can set by module insert parameter */
57 u64 max = time_period; in calculate_window_render_fps() local
69 max = tmp; in calculate_window_render_fps()
77 leading_zeroes = _mali_osk_clz((u32)(max >> MALI_OSK_CLZ_START)); in calculate_window_render_fps()
/device/soc/rockchip/common/kernel/drivers/gpu/arm/mali400/mali/common/
H A Dmali_dvfs_policy.c23 /** The max fps the same as display vsync default 60, can set by module insert parameter */
46 u64 max = time_period; in calculate_window_render_fps() local
58 max = tmp; in calculate_window_render_fps()
66 leading_zeroes = _mali_osk_clz((u32)(max >> 32)); in calculate_window_render_fps()
/device/soc/rockchip/common/sdk_linux/drivers/hid/
H A Dhid-input.c56 #define map_abs(c) hid_map_usage(hidinput, usage, &bit, &max, EV_ABS, (c))
57 #define map_rel(c) hid_map_usage(hidinput, usage, &bit, &max, EV_REL, (c))
58 #define map_key(c) hid_map_usage(hidinput, usage, &bit, &max, EV_KEY, (c))
59 #define map_led(c) hid_map_usage(hidinput, usage, &bit, &max, EV_LED, (c))
61 #define map_abs_clear(c) hid_map_usage_clear(hidinput, usage, &bit, &max, EV_ABS, (c))
62 #define map_key_clear(c) hid_map_usage_clear(hidinput, usage, &bit, &max, EV_KEY, (c))
418 s32 min, max; in hidinput_setup_battery() local
451 max = field->logical_maximum; in hidinput_setup_battery()
455 max = 0x64; in hidinput_setup_battery()
463 dev->battery_max = max; in hidinput_setup_battery()
542 int max = 0, code; hidinput_configure_usage() local
[all...]
/device/soc/hisilicon/hi3861v100/sdk_liteos/third_party/paho.mqtt.c/include/mqtt/
H A DSocket.h85 #if !defined(max)
86 #define max(A,B) ( (A) > (B) ? (A):(B)) macro
118 int maxfdp1; /**< max descriptor used +1 (again see select doc) */
/device/soc/rockchip/common/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_wifi6/include/
H A Dbcmutils.h85 #define CIRCULAR_ARRAY_FULL(rd_idx, wr_idx, max) ((wr_idx + 1)%max == rd_idx)
136 #define UP_TABLE_MAX ((IPV4_TOS_DSCP_MASK >> IPV4_TOS_DSCP_SHIFT) + 1) /* 64 max */
530 /* limit to [min, max] */
532 #define LIMIT_TO_RANGE(x, min, max) \
533 ((x) < (min) ? (min) : ((x) > (max) ? (max) : (x)))
536 /* limit to max */
538 #define LIMIT_TO_MAX(x, max) \
539 (((x) > (max)
[all...]
/device/soc/rockchip/common/sdk_linux/drivers/devfreq/event/
H A Drockchip-dfi.c207 u32 tmp, max = 0; in rk3288_dfi_get_busier_ch() local
224 if (tmp > max) { in rk3288_dfi_get_busier_ch()
226 max = tmp; in rk3288_dfi_get_busier_ch()
355 u32 tmp, max = 0; in rockchip_dfi_get_busier_ch() local
378 if (tmp > max) { in rockchip_dfi_get_busier_ch()
380 max = tmp; in rockchip_dfi_get_busier_ch()

Completed in 15 milliseconds

1234567