Home
last modified time | relevance | path

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

123

/kernel/linux/linux-5.10/include/net/
Dcodel_impl.h60 static void codel_vars_init(struct codel_vars *vars) in codel_vars_init() argument
62 memset(vars, 0, sizeof(*vars)); in codel_vars_init()
76 static void codel_Newton_step(struct codel_vars *vars) in codel_Newton_step() argument
78 u32 invsqrt = ((u32)vars->rec_inv_sqrt) << REC_INV_SQRT_SHIFT; in codel_Newton_step()
80 u64 val = (3LL << 32) - ((u64)vars->count * invsqrt2); in codel_Newton_step()
85 vars->rec_inv_sqrt = val >> REC_INV_SQRT_SHIFT; in codel_Newton_step()
102 struct codel_vars *vars, in codel_should_drop() argument
114 vars->first_above_time = 0; in codel_should_drop()
119 vars->ldelay = now - skb_time_func(skb); in codel_should_drop()
124 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,
/kernel/linux/linux-5.10/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
221 q->vars.qavg = red_calc_qavg(p, &q->vars, sch->q.qlen); in choke_enqueue()
222 if (red_is_idling(&q->vars)) in choke_enqueue()
223 red_end_of_idle_period(&q->vars); in choke_enqueue()
226 if (q->vars.qavg <= p->qth_min) in choke_enqueue()
227 q->vars.qcount = -1; in choke_enqueue()
239 if (q->vars.qavg > p->qth_max) { in choke_enqueue()
240 q->vars.qcount = -1; in choke_enqueue()
250 } else if (++q->vars.qcount) { in choke_enqueue()
251 if (red_mark_probability(p, &q->vars, q->vars.qavg)) { in choke_enqueue()
[all …]
Dsch_codel.c60 struct codel_vars vars; member
69 static struct sk_buff *dequeue_func(struct codel_vars *vars, void *ctx) in dequeue_func() argument
94 skb = codel_dequeue(sch, &sch->qstats.backlog, &q->params, &q->vars, in codel_qdisc_dequeue()
197 codel_vars_init(&q->vars); in codel_init()
250 .count = q->vars.count, in codel_dump_stats()
251 .lastcount = q->vars.lastcount, in codel_dump_stats()
253 .ldelay = codel_time_to_us(q->vars.ldelay), in codel_dump_stats()
254 .dropping = q->vars.dropping, in codel_dump_stats()
259 if (q->vars.dropping) { in codel_dump_stats()
260 codel_tdiff_t delta = q->vars.drop_next - codel_get_time(); in codel_dump_stats()
[all …]
Dsch_cake.c372 static void cobalt_newton_step(struct cobalt_vars *vars) in cobalt_newton_step() argument
377 invsqrt = vars->rec_inv_sqrt; in cobalt_newton_step()
379 val = (3LL << 32) - ((u64)vars->count * invsqrt2); in cobalt_newton_step()
384 vars->rec_inv_sqrt = val; in cobalt_newton_step()
387 static void cobalt_invsqrt(struct cobalt_vars *vars) in cobalt_invsqrt() argument
389 if (vars->count < REC_INV_SQRT_CACHE) in cobalt_invsqrt()
390 vars->rec_inv_sqrt = cobalt_rec_inv_sqrt_cache[vars->count]; in cobalt_invsqrt()
392 cobalt_newton_step(vars); in cobalt_invsqrt()
423 static void cobalt_vars_init(struct cobalt_vars *vars) in cobalt_vars_init() argument
425 memset(vars, 0, sizeof(*vars)); in cobalt_vars_init()
[all …]
Dsch_red.c46 struct red_vars vars; member
78 q->vars.qavg = red_calc_qavg(&q->parms, in red_enqueue()
79 &q->vars, in red_enqueue()
82 if (red_is_idling(&q->vars)) in red_enqueue()
83 red_end_of_idle_period(&q->vars); in red_enqueue()
85 switch (red_action(&q->parms, &q->vars, q->vars.qavg)) { in red_enqueue()
162 if (!red_is_idling(&q->vars)) in red_dequeue()
163 red_start_of_idle_period(&q->vars); in red_dequeue()
181 red_restart(&q->vars); in red_reset()
296 red_set_vars(&q->vars); in __red_change()
[all …]
Dsch_gred.c43 struct red_vars vars; member
130 q->vars.qavg = table->wred_set.qavg; in gred_load_wred_set()
131 q->vars.qidlestart = table->wred_set.qidlestart; in gred_load_wred_set()
137 table->wred_set.qavg = q->vars.qavg; in gred_store_wred_set()
138 table->wred_set.qidlestart = q->vars.qidlestart; in gred_store_wred_set()
199 !red_is_idling(&t->tab[i]->vars)) in gred_enqueue()
200 qavg += t->tab[i]->vars.qavg; in gred_enqueue()
211 q->vars.qavg = red_calc_qavg(&q->parms, in gred_enqueue()
212 &q->vars, in gred_enqueue()
215 if (red_is_idling(&q->vars)) in gred_enqueue()
[all …]
/kernel/linux/linux-5.10/tools/perf/util/
Dsetup.py15 vars = get_config_vars() variable
17 vars[var] = sub("-specs=[^ ]+", "", vars[var])
19 vars[var] = sub("-mcet", "", vars[var])
21 vars[var] = sub("-fcf-protection", "", vars[var])
23 vars[var] = sub("-fstack-clash-protection", "", vars[var])
25 vars[var] = sub("-fstack-protector-strong", "", vars[var])
27 vars[var] = sub("-fno-semantic-interposition", "", vars[var])
29 vars[var] = sub("-ffat-lto-objects", "", vars[var])
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/amdgpu_dm/
Damdgpu_dm_mst_types.c506 struct dsc_mst_fairness_vars *vars, in set_dsc_configs_from_fairness_vars() argument
513 if (vars[i].dsc_enabled && dc_dsc_compute_config( in set_dsc_configs_from_fairness_vars()
525 params[i].timing->dsc_cfg.bits_per_pixel = vars[i].bpp_x16; in set_dsc_configs_from_fairness_vars()
556 struct dsc_mst_fairness_vars *vars, in increase_dsc_bpp() argument
572 if (vars[i].dsc_enabled) { in increase_dsc_bpp()
573 initial_slack[i] = kbps_to_peak_pbn(params[i].bw_range.max_kbps) - vars[i].pbn; in increase_dsc_bpp()
600 link_timeslots_used += DIV_ROUND_UP(vars[i].pbn, pbn_per_timeslot); in increase_dsc_bpp()
605 vars[next_index].pbn += fair_pbn_alloc; in increase_dsc_bpp()
609 vars[next_index].pbn, in increase_dsc_bpp()
613 vars[next_index].bpp_x16 = bpp_x16_from_pbn(params[next_index], vars[next_index].pbn); in increase_dsc_bpp()
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
Dmap_lock.c21 int vars[17], i, j, rnd, key = 0; in parallel_map_access() local
24 err = bpf_map_lookup_elem_flags(map_fd, &key, vars, BPF_F_LOCK); in parallel_map_access()
29 if (CHECK_FAIL(vars[0] != 0)) { in parallel_map_access()
30 printf("lookup #%d var[0]=%d\n", i, vars[0]); in parallel_map_access()
33 rnd = vars[1]; in parallel_map_access()
35 if (vars[j] == rnd) in parallel_map_access()
38 i, rnd, j, vars[j]); in parallel_map_access()
39 CHECK_FAIL(vars[j] != rnd); in parallel_map_access()
50 int prog_fd, map_fd[2], vars[17] = {}; in test_map_lock() local
68 bpf_map_update_elem(map_fd[0], &key, vars, BPF_F_LOCK); in test_map_lock()
/kernel/linux/linux-5.10/fs/cifs/
Dsmb2inode.c69 struct cop_vars *vars = NULL; in smb2_compound_op() local
87 vars = kzalloc(sizeof(*vars), GFP_ATOMIC); in smb2_compound_op()
88 if (vars == NULL) in smb2_compound_op()
90 rqst = &vars->rqst[0]; in smb2_compound_op()
91 rsp_iov = &vars->rsp_iov[0]; in smb2_compound_op()
111 vars->oparms.tcon = tcon; in smb2_compound_op()
112 vars->oparms.desired_access = desired_access; in smb2_compound_op()
113 vars->oparms.disposition = create_disposition; in smb2_compound_op()
114 vars->oparms.create_options = cifs_create_options(cifs_sb, create_options); in smb2_compound_op()
115 vars->oparms.fid = &fid; in smb2_compound_op()
[all …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/drivers/parport/
Dprocfs.c261 struct ctl_table vars[12]; member
375 struct ctl_table vars[2]; member
428 struct ctl_table vars[3]; member
462 .child = parport_default_sysctl_table.vars
489 t->vars[i].extra1 = port; in parport_proc_register()
491 t->vars[0].data = &port->spintime; in parport_proc_register()
492 t->vars[5].child = t->device_dir; in parport_proc_register()
495 t->vars[6 + i].extra2 = &port->probe_info[i]; in parport_proc_register()
499 t->port_dir[0].child = t->vars; in parport_proc_register()
539 t->device_dir[0].child = t->vars; in parport_device_proc_register()
[all …]
/kernel/linux/linux-5.10/Documentation/ABI/testing/
Dsysfs-secvar8 What: /sys/firmware/secvar/vars
21 What: /sys/firmware/secvar/vars/<variable name>
29 What: /sys/firmware/secvar/vars/<variable_name>/size
35 What: /sys/firmware/secvar/vars/<variable_name>/data
41 What: /sys/firmware/secvar/vars/<variable_name>/update
/kernel/liteos_a/net/lwip-2.1/porting/include/arch/
Dcc.h68 #define LWIP_PLATFORM_DIAG(vars) dprintf vars argument
/kernel/linux/linux-5.10/drivers/accessibility/speakup/
Dspeakup_txprt.c19 static struct var_t vars[] = { variable
89 .vars = vars,
Dspeakup_bns.c19 static struct var_t vars[] = { variable
90 .vars = vars,
Dspeakup_spkout.c21 static struct var_t vars[] = { variable
95 .vars = vars,
Dspeakup_dummy.c21 static struct var_t vars[] = { variable
97 .vars = vars,
Dspeakup_acntsa.c22 static struct var_t vars[] = { variable
93 .vars = vars,
/kernel/linux/linux-5.10/arch/um/os-Linux/
Dmem.c49 static const char * const vars[] = { in choose_tempdir() local
65 for (i = 0; vars[i]; i++) { in choose_tempdir()
66 dir = getenv(vars[i]); in choose_tempdir()
/kernel/uniproton/src/net/lwip-2.1/include/arch/
Dcc.h85 #define LWIP_PLATFORM_DIAG(vars) OsLwipLogPrintf vars argument

123