Home
last modified time | relevance | path

Searched refs:vars (Results 1 – 25 of 75) sorted by relevance

123

/linux-6.12.1/include/net/
Dcodel_impl.h64 static void codel_vars_init(struct codel_vars *vars) in codel_vars_init() argument
66 memset(vars, 0, sizeof(*vars)); in codel_vars_init()
80 static void codel_Newton_step(struct codel_vars *vars) in codel_Newton_step() argument
82 u32 invsqrt = ((u32)vars->rec_inv_sqrt) << REC_INV_SQRT_SHIFT; in codel_Newton_step()
84 u64 val = (3LL << 32) - ((u64)vars->count * invsqrt2); in codel_Newton_step()
89 vars->rec_inv_sqrt = val >> REC_INV_SQRT_SHIFT; in codel_Newton_step()
106 struct codel_vars *vars, in codel_should_drop() argument
118 vars->first_above_time = 0; in codel_should_drop()
123 vars->ldelay = now - skb_time_func(skb); in codel_should_drop()
128 if (codel_time_before(vars->ldelay, params->target) || in codel_should_drop()
[all …]
Dpie.h101 static inline void pie_vars_init(struct pie_vars *vars) in pie_vars_init() argument
103 vars->burst_time = PSCHED_NS2TICKS(150 * NSEC_PER_MSEC); /* 150 ms */ in pie_vars_init()
104 vars->dq_tstamp = DTIME_INVALID; in pie_vars_init()
105 vars->accu_prob = 0; in pie_vars_init()
106 vars->dq_count = DQCOUNT_INVALID; in pie_vars_init()
107 vars->avg_dq_rate = 0; in pie_vars_init()
127 struct pie_vars *vars, u32 backlog, u32 packet_size);
130 struct pie_vars *vars, u32 backlog);
132 void pie_calculate_probability(struct pie_params *params, struct pie_vars *vars,
/linux-6.12.1/net/sched/
Dsch_pie.c26 struct pie_vars vars; member
34 struct pie_vars *vars, u32 backlog, u32 packet_size) in pie_drop_early() argument
37 u64 local_prob = vars->prob; in pie_drop_early()
41 if (vars->burst_time > 0) in pie_drop_early()
47 if ((vars->qdelay < params->target / 2) && in pie_drop_early()
48 (vars->prob < MAX_PROB / 5)) in pie_drop_early()
63 local_prob = vars->prob; in pie_drop_early()
66 vars->accu_prob = 0; in pie_drop_early()
68 vars->accu_prob += local_prob; in pie_drop_early()
70 if (vars->accu_prob < (MAX_PROB / 100) * 85) in pie_drop_early()
[all …]
Dsch_choke.c56 struct red_vars vars; member
220 q->vars.qavg = red_calc_qavg(p, &q->vars, sch->q.qlen); in choke_enqueue()
221 if (red_is_idling(&q->vars)) in choke_enqueue()
222 red_end_of_idle_period(&q->vars); in choke_enqueue()
225 if (q->vars.qavg <= p->qth_min) in choke_enqueue()
226 q->vars.qcount = -1; in choke_enqueue()
238 if (q->vars.qavg > p->qth_max) { in choke_enqueue()
239 q->vars.qcount = -1; in choke_enqueue()
249 } else if (++q->vars.qcount) { in choke_enqueue()
250 if (red_mark_probability(p, &q->vars, q->vars.qavg)) { in choke_enqueue()
[all …]
Dsch_codel.c30 struct codel_vars vars; member
39 static struct sk_buff *dequeue_func(struct codel_vars *vars, void *ctx) in dequeue_func() argument
64 skb = codel_dequeue(sch, &sch->qstats.backlog, &q->params, &q->vars, in codel_qdisc_dequeue()
169 codel_vars_init(&q->vars); in codel_init()
224 .count = q->vars.count, in codel_dump_stats()
225 .lastcount = q->vars.lastcount, in codel_dump_stats()
227 .ldelay = codel_time_to_us(q->vars.ldelay), in codel_dump_stats()
228 .dropping = q->vars.dropping, in codel_dump_stats()
233 if (q->vars.dropping) { in codel_dump_stats()
234 codel_tdiff_t delta = q->vars.drop_next - codel_get_time(); in codel_dump_stats()
[all …]
Dsch_cake.c389 static void cobalt_newton_step(struct cobalt_vars *vars) in cobalt_newton_step() argument
394 invsqrt = vars->rec_inv_sqrt; in cobalt_newton_step()
396 val = (3LL << 32) - ((u64)vars->count * invsqrt2); in cobalt_newton_step()
401 vars->rec_inv_sqrt = val; in cobalt_newton_step()
404 static void cobalt_invsqrt(struct cobalt_vars *vars) in cobalt_invsqrt() argument
406 if (vars->count < REC_INV_SQRT_CACHE) in cobalt_invsqrt()
407 vars->rec_inv_sqrt = inv_sqrt_cache[vars->count]; in cobalt_invsqrt()
409 cobalt_newton_step(vars); in cobalt_invsqrt()
412 static void cobalt_vars_init(struct cobalt_vars *vars) in cobalt_vars_init() argument
414 memset(vars, 0, sizeof(*vars)); in cobalt_vars_init()
[all …]
/linux-6.12.1/tools/perf/util/
Dsetup.py24 vars = get_config_vars() variable
26 vars[var] = sub("-specs=[^ ]+", "", vars[var])
28 vars[var] = sub("-mcet", "", vars[var])
30 vars[var] = sub("-fcf-protection", "", vars[var])
32 vars[var] = sub("-fstack-clash-protection", "", vars[var])
34 vars[var] = sub("-fstack-protector-strong", "", vars[var])
36 vars[var] = sub("-fno-semantic-interposition", "", vars[var])
38 vars[var] = sub("-ffat-lto-objects", "", vars[var])
40 vars[var] = sub("-ftree-loop-distribute-patterns", "", vars[var])
42 vars[var] = sub("-gno-variable-location-views", "", vars[var])
/linux-6.12.1/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_link.c216 struct link_vars *vars, u8 notify);
498 static u32 bnx2x_ets_get_min_w_val_nig(const struct link_vars *vars) in bnx2x_ets_get_min_w_val_nig() argument
502 if (vars->link_up) { in bnx2x_ets_get_min_w_val_nig()
503 if (vars->line_speed == SPEED_20000) in bnx2x_ets_get_min_w_val_nig()
570 const struct link_vars *vars) in bnx2x_ets_e3b0_nig_disabled() argument
574 const u32 min_w_val = bnx2x_ets_get_min_w_val_nig(vars); in bnx2x_ets_e3b0_nig_disabled()
745 const struct link_vars *vars) in bnx2x_ets_e3b0_disabled() argument
755 bnx2x_ets_e3b0_nig_disabled(params, vars); in bnx2x_ets_e3b0_disabled()
768 struct link_vars *vars) in bnx2x_ets_disabled() argument
776 bnx2x_status = bnx2x_ets_e3b0_disabled(params, vars); in bnx2x_ets_disabled()
[all …]
Dbnx2x_link.h131 struct link_vars *vars);
133 struct link_vars *vars);
378 int bnx2x_phy_init(struct link_params *params, struct link_vars *vars);
383 int bnx2x_link_reset(struct link_params *params, struct link_vars *vars,
385 int bnx2x_lfa_reset(struct link_params *params, struct link_vars *vars);
387 int bnx2x_link_update(struct link_params *params, struct link_vars *vars);
412 struct link_vars *vars, u8 mode, u32 speed);
424 int bnx2x_test_link(struct link_params *params, struct link_vars *vars,
520 struct link_vars *vars,
526 struct link_vars *vars);
[all …]
/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/
Dmap_lock.c24 int vars[17], i, j, rnd, key = 0; in parallel_map_access() local
27 err = bpf_map_lookup_elem_flags(map_fd, &key, vars, BPF_F_LOCK); in parallel_map_access()
32 if (CHECK_FAIL(vars[0] != 0)) { in parallel_map_access()
33 printf("lookup #%d var[0]=%d\n", i, vars[0]); in parallel_map_access()
36 rnd = vars[1]; in parallel_map_access()
38 if (vars[j] == rnd) in parallel_map_access()
41 i, rnd, j, vars[j]); in parallel_map_access()
42 CHECK_FAIL(vars[j] != rnd); in parallel_map_access()
53 int prog_fd, map_fd[2], vars[17] = {}; in test_map_lock() local
71 bpf_map_update_elem(map_fd[0], &key, vars, BPF_F_LOCK); in test_map_lock()
/linux-6.12.1/drivers/gpu/drm/amd/display/amdgpu_dm/
Damdgpu_dm_mst_types.c832 struct dsc_mst_fairness_vars *vars, in set_dsc_configs_from_fairness_vars() argument
847 if (vars[i + k].dsc_enabled && dc_dsc_compute_config( in set_dsc_configs_from_fairness_vars()
860 params[i].timing->dsc_cfg.bits_per_pixel = vars[i + k].bpp_x16; in set_dsc_configs_from_fairness_vars()
870 params[i].timing->dsc_cfg.mst_pbn = vars[i + k].pbn; in set_dsc_configs_from_fairness_vars()
884 vars[i + k].pbn); in set_dsc_configs_from_fairness_vars()
915 struct dsc_mst_fairness_vars *vars, in increase_dsc_bpp() argument
931 if (vars[i + k].dsc_enabled) { in increase_dsc_bpp()
933 kbps_to_peak_pbn(params[i].bw_range.max_kbps, fec_overhead_multiplier_x1000) - vars[i + k].pbn; in increase_dsc_bpp()
960 link_timeslots_used += DIV_ROUND_UP(vars[i + k].pbn, dfixed_trunc(mst_state->pbn_div)); in increase_dsc_bpp()
966 vars[next_index].pbn += fair_pbn_alloc; in increase_dsc_bpp()
[all …]
/linux-6.12.1/drivers/accessibility/speakup/
Dspeakup_dummy.c34 static struct var_t vars[NB_ID] = { variable
119 .vars = vars,
145 module_param_named(rate, vars[RATE_ID].u.n.default_val, int, 0444);
146 module_param_named(pitch, vars[PITCH_ID].u.n.default_val, int, 0444);
147 module_param_named(inflection, vars[INFLECTION_ID].u.n.default_val, int, 0444);
148 module_param_named(vol, vars[VOL_ID].u.n.default_val, int, 0444);
149 module_param_named(tone, vars[TONE_ID].u.n.default_val, int, 0444);
150 module_param_named(punct, vars[PUNCT_ID].u.n.default_val, int, 0444);
151 module_param_named(direct, vars[DIRECT_ID].u.n.default_val, int, 0444);
Dspeakup_ltlk.c32 static struct var_t vars[NB_ID] = { variable
115 .vars = vars,
174 module_param_named(rate, vars[RATE_ID].u.n.default_val, int, 0444);
175 module_param_named(pitch, vars[PITCH_ID].u.n.default_val, int, 0444);
176 module_param_named(vol, vars[VOL_ID].u.n.default_val, int, 0444);
177 module_param_named(tone, vars[TONE_ID].u.n.default_val, int, 0444);
178 module_param_named(punct, vars[PUNCT_ID].u.n.default_val, int, 0444);
179 module_param_named(voice, vars[VOICE_ID].u.n.default_val, int, 0444);
180 module_param_named(frequency, vars[FREQUENCY_ID].u.n.default_val, int, 0444);
181 module_param_named(direct, vars[DIRECT_ID].u.n.default_val, int, 0444);
Dspeakup_bns.c28 static struct var_t vars[NB_ID] = { variable
99 .vars = vars,
125 module_param_named(rate, vars[RATE_ID].u.n.default_val, int, 0444);
126 module_param_named(pitch, vars[PITCH_ID].u.n.default_val, int, 0444);
127 module_param_named(vol, vars[VOL_ID].u.n.default_val, int, 0444);
128 module_param_named(tone, vars[TONE_ID].u.n.default_val, int, 0444);
129 module_param_named(direct, vars[DIRECT_ID].u.n.default_val, int, 0444);
Dspeakup_txprt.c34 static struct var_t vars[NB_ID] = { variable
104 .vars = vars,
130 module_param_named(rate, vars[RATE_ID].u.n.default_val, int, 0444);
131 module_param_named(pitch, vars[PITCH_ID].u.n.default_val, int, 0444);
132 module_param_named(vol, vars[VOL_ID].u.n.default_val, int, 0444);
133 module_param_named(tone, vars[TONE_ID].u.n.default_val, int, 0444);
134 module_param_named(direct, vars[DIRECT_ID].u.n.default_val, int, 0444);
Dspeakup_audptr.c31 static struct var_t vars[NB_ID] = { variable
106 .vars = vars,
170 module_param_named(rate, vars[RATE_ID].u.n.default_val, int, 0444);
171 module_param_named(pitch, vars[PITCH_ID].u.n.default_val, int, 0444);
172 module_param_named(vol, vars[VOL_ID].u.n.default_val, int, 0444);
173 module_param_named(tone, vars[TONE_ID].u.n.default_val, int, 0444);
174 module_param_named(punct, vars[PUNCT_ID].u.n.default_val, int, 0444);
175 module_param_named(direct, vars[DIRECT_ID].u.n.default_val, int, 0444);
Dspeakup_spkout.c32 static struct var_t vars[NB_ID] = { variable
106 .vars = vars,
138 module_param_named(rate, vars[RATE_ID].u.n.default_val, int, 0444);
139 module_param_named(vol, vars[PITCH_ID].u.n.default_val, int, 0444);
140 module_param_named(tone, vars[TONE_ID].u.n.default_val, int, 0444);
141 module_param_named(punct, vars[PUNCT_ID].u.n.default_val, int, 0444);
142 module_param_named(direct, vars[DIRECT_ID].u.n.default_val, int, 0444);
Dspeakup_acntsa.c32 static struct var_t vars[NB_ID] = { variable
103 .vars = vars,
142 module_param_named(rate, vars[RATE_ID].u.n.default_val, int, 0444);
143 module_param_named(pitch, vars[PITCH_ID].u.n.default_val, int, 0444);
144 module_param_named(vol, vars[VOL_ID].u.n.default_val, int, 0444);
145 module_param_named(tone, vars[TONE_ID].u.n.default_val, int, 0444);
146 module_param_named(direct, vars[DIRECT_ID].u.n.default_val, int, 0444);
Dspeakup_decext.c50 static struct var_t vars[NB_ID] = { variable
130 .vars = vars,
237 module_param_named(rate, vars[RATE_ID].u.n.default_val, int, 0444);
238 module_param_named(pitch, vars[PITCH_ID].u.n.default_val, int, 0444);
239 module_param_named(inflection, vars[INFLECTION_ID].u.n.default_val, int, 0444);
240 module_param_named(vol, vars[VOL_ID].u.n.default_val, int, 0444);
241 module_param_named(punct, vars[PUNCT_ID].u.n.default_val, int, 0444);
242 module_param_named(voice, vars[VOICE_ID].u.n.default_val, int, 0444);
243 module_param_named(direct, vars[DIRECT_ID].u.n.default_val, int, 0444);
Dspeakup_apollo.c40 static struct var_t vars[NB_ID] = { variable
115 .vars = vars,
209 module_param_named(rate, vars[RATE_ID].u.n.default_val, int, 0444);
210 module_param_named(pitch, vars[PITCH_ID].u.n.default_val, int, 0444);
211 module_param_named(vol, vars[VOL_ID].u.n.default_val, int, 0444);
212 module_param_named(voice, vars[VOICE_ID].u.n.default_val, int, 0444);
213 module_param_named(lang, vars[LANG_ID].u.n.default_val, int, 0444);
214 module_param_named(direct, vars[DIRECT_ID].u.n.default_val, int, 0444);
Dspeakup_soft.c46 static struct var_t vars[NB_ID] = { variable
140 .vars = vars,
175 var = synth_soft.vars; in get_initstring()
463 module_param_named(direct, vars[DIRECT_ID].u.n.default_val, int, 0444);
464 module_param_named(rate, vars[RATE_ID].u.n.default_val, int, 0444);
465 module_param_named(pitch, vars[PITCH_ID].u.n.default_val, int, 0444);
466 module_param_named(inflection, vars[INFLECTION_ID].u.n.default_val, int, 0444);
467 module_param_named(vol, vars[VOL_ID].u.n.default_val, int, 0444);
468 module_param_named(tone, vars[TONE_ID].u.n.default_val, int, 0444);
469 module_param_named(punct, vars[PUNCT_ID].u.n.default_val, int, 0444);
[all …]
Dspeakup_dectlk.c51 static struct var_t vars[NB_ID] = { variable
137 .vars = vars,
317 module_param_named(rate, vars[RATE_ID].u.n.default_val, int, 0444);
318 module_param_named(pitch, vars[PITCH_ID].u.n.default_val, int, 0444);
319 module_param_named(inflection, vars[INFLECTION_ID].u.n.default_val, int, 0444);
320 module_param_named(vol, vars[VOL_ID].u.n.default_val, int, 0444);
321 module_param_named(punct, vars[PUNCT_ID].u.n.default_val, int, 0444);
322 module_param_named(voice, vars[VOICE_ID].u.n.default_val, int, 0444);
323 module_param_named(direct, vars[DIRECT_ID].u.n.default_val, int, 0444);
/linux-6.12.1/drivers/misc/altera-stapl/
Daltera.c226 long *vars = NULL; in altera_execute() local
293 vars = kcalloc(sym_count, sizeof(long), GFP_KERNEL); in altera_execute()
295 if (vars == NULL) in altera_execute()
353 vars[i] = value; in altera_execute()
359 vars[i] = (long)kzalloc(uncomp_size, GFP_KERNEL); in altera_execute()
360 if (vars[i] == 0L) in altera_execute()
369 (u8 *)vars[i], in altera_execute()
380 vars[i] = value + data_sect + (long)p; in altera_execute()
383 vars[i] = value + data_sect; in altera_execute()
400 vars[i] = (long)kzalloc(size, GFP_KERNEL); in altera_execute()
[all …]
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/
Dcmd.c165 ret = find_first_bit(&cmd->vars.bitmask, cmd->vars.max_reg_cmds); in cmd_alloc_index()
166 if (ret < cmd->vars.max_reg_cmds) { in cmd_alloc_index()
167 clear_bit(ret, &cmd->vars.bitmask); in cmd_alloc_index()
173 return ret < cmd->vars.max_reg_cmds ? ret : -ENOMEM; in cmd_alloc_index()
179 set_bit(idx, &cmd->vars.bitmask); in cmd_free_index()
198 up(ent->page_queue ? &cmd->vars.pages_sem : &cmd->vars.sem); in cmd_ent_put()
208 return cmd->cmd_buf + (idx << cmd->vars.log_stride); in get_inst()
988 if (down_timeout(&cmd->vars.sem, timeout)) { in cmd_work_handler()
1015 up(&cmd->vars.sem); in cmd_work_handler()
1019 down(&cmd->vars.pages_sem); in cmd_work_handler()
[all …]
/linux-6.12.1/drivers/parport/
Dprocfs.c256 struct ctl_table vars[10]; member
258 struct ctl_table vars[5]; member
356 struct ctl_table vars[1]; member
387 struct ctl_table vars[2]; member
427 t->vars[0].data = &port->spintime; in parport_proc_register()
429 t->vars[i].extra1 = port; in parport_proc_register()
431 t->vars[5 + i].extra2 = &port->probe_info[i]; in parport_proc_register()
455 t->port_header = register_sysctl(tmp_dir_path, t->vars); in parport_proc_register()
507 t->vars[0].data = &device->timeslice; in parport_device_proc_register()
509 t->sysctl_header = register_sysctl(tmp_dir_path, t->vars); in parport_device_proc_register()
[all …]

123