/Linux-v5.4/include/net/ |
D | codel_impl.h | 60 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 …]
|
/Linux-v5.4/net/sched/ |
D | sch_pie.c | 65 struct pie_vars vars; member 82 static void pie_vars_init(struct pie_vars *vars) in pie_vars_init() argument 84 vars->dq_count = DQCOUNT_INVALID; in pie_vars_init() 85 vars->accu_prob = 0; in pie_vars_init() 86 vars->avg_dq_rate = 0; in pie_vars_init() 88 vars->burst_time = PSCHED_NS2TICKS(150 * NSEC_PER_MSEC); in pie_vars_init() 89 vars->accu_prob_overflows = 0; in pie_vars_init() 96 u64 local_prob = q->vars.prob; in drop_early() 100 if (q->vars.burst_time > 0) in drop_early() 106 if ((q->vars.qdelay < q->params.target / 2) && in drop_early() [all …]
|
D | sch_choke.c | 56 struct red_vars vars; member 227 q->vars.qavg = red_calc_qavg(p, &q->vars, sch->q.qlen); in choke_enqueue() 228 if (red_is_idling(&q->vars)) in choke_enqueue() 229 red_end_of_idle_period(&q->vars); in choke_enqueue() 232 if (q->vars.qavg <= p->qth_min) in choke_enqueue() 233 q->vars.qcount = -1; in choke_enqueue() 245 if (q->vars.qavg > p->qth_max) { in choke_enqueue() 246 q->vars.qcount = -1; in choke_enqueue() 256 } else if (++q->vars.qcount) { in choke_enqueue() 257 if (red_mark_probability(p, &q->vars, q->vars.qavg)) { in choke_enqueue() [all …]
|
D | sch_codel.c | 60 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 …]
|
D | sch_cake.c | 373 static void cobalt_newton_step(struct cobalt_vars *vars) in cobalt_newton_step() argument 378 invsqrt = vars->rec_inv_sqrt; in cobalt_newton_step() 380 val = (3LL << 32) - ((u64)vars->count * invsqrt2); in cobalt_newton_step() 385 vars->rec_inv_sqrt = val; in cobalt_newton_step() 388 static void cobalt_invsqrt(struct cobalt_vars *vars) in cobalt_invsqrt() argument 390 if (vars->count < REC_INV_SQRT_CACHE) in cobalt_invsqrt() 391 vars->rec_inv_sqrt = cobalt_rec_inv_sqrt_cache[vars->count]; in cobalt_invsqrt() 393 cobalt_newton_step(vars); in cobalt_invsqrt() 424 static void cobalt_vars_init(struct cobalt_vars *vars) in cobalt_vars_init() argument 426 memset(vars, 0, sizeof(*vars)); in cobalt_vars_init() [all …]
|
D | sch_red.c | 42 struct red_vars vars; member 64 q->vars.qavg = red_calc_qavg(&q->parms, in red_enqueue() 65 &q->vars, in red_enqueue() 68 if (red_is_idling(&q->vars)) in red_enqueue() 69 red_end_of_idle_period(&q->vars); in red_enqueue() 71 switch (red_action(&q->parms, &q->vars, q->vars.qavg)) { in red_enqueue() 124 if (!red_is_idling(&q->vars)) in red_dequeue() 125 red_start_of_idle_period(&q->vars); in red_dequeue() 145 red_restart(&q->vars); in red_reset() 243 red_set_vars(&q->vars); in red_change() [all …]
|
D | sch_gred.c | 43 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 …]
|
/Linux-v5.4/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_link.c | 216 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 …]
|
D | bnx2x_link.h | 131 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-v5.4/tools/perf/util/ |
D | setup.py | 11 vars = get_config_vars() variable 13 vars[var] = sub("-specs=[^ ]+", "", vars[var]) 15 vars[var] = sub("-mcet", "", vars[var]) 17 vars[var] = sub("-fcf-protection", "", vars[var]) 19 vars[var] = sub("-fstack-clash-protection", "", vars[var]) 21 vars[var] = sub("-fstack-protector-strong", "", vars[var])
|
/Linux-v5.4/tools/testing/selftests/bpf/prog_tests/ |
D | map_lock.c | 7 int vars[17], i, j, rnd, key = 0; in parallel_map_access() local 10 err = bpf_map_lookup_elem_flags(map_fd, &key, vars, BPF_F_LOCK); in parallel_map_access() 15 if (CHECK_FAIL(vars[0] != 0)) { in parallel_map_access() 16 printf("lookup #%d var[0]=%d\n", i, vars[0]); in parallel_map_access() 19 rnd = vars[1]; in parallel_map_access() 21 if (vars[j] == rnd) in parallel_map_access() 24 i, rnd, j, vars[j]); in parallel_map_access() 25 CHECK_FAIL(vars[j] != rnd); in parallel_map_access() 36 int prog_fd, map_fd[2], vars[17] = {}; in test_map_lock() local 54 bpf_map_update_elem(map_fd[0], &key, vars, BPF_F_LOCK); in test_map_lock()
|
/Linux-v5.4/drivers/misc/altera-stapl/ |
D | altera.c | 226 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-v5.4/drivers/parport/ |
D | procfs.c | 260 struct ctl_table vars[12]; member 374 struct ctl_table vars[2]; member 427 struct ctl_table vars[3]; member 461 .child = parport_default_sysctl_table.vars 488 t->vars[i].extra1 = port; in parport_proc_register() 490 t->vars[0].data = &port->spintime; in parport_proc_register() 491 t->vars[5].child = t->device_dir; in parport_proc_register() 494 t->vars[6 + i].extra2 = &port->probe_info[i]; in parport_proc_register() 498 t->port_dir[0].child = t->vars; in parport_proc_register() 538 t->device_dir[0].child = t->vars; in parport_device_proc_register() [all …]
|
/Linux-v5.4/drivers/staging/speakup/ |
D | speakup_bns.c | 19 static struct var_t vars[] = { variable 90 .vars = vars,
|
D | speakup_dummy.c | 21 static struct var_t vars[] = { variable 93 .vars = vars,
|
D | speakup_txprt.c | 19 static struct var_t vars[] = { variable 89 .vars = vars,
|
D | speakup_acntsa.c | 22 static struct var_t vars[] = { variable 93 .vars = vars,
|
D | speakup_spkout.c | 21 static struct var_t vars[] = { variable 95 .vars = vars,
|
D | speakup_audptr.c | 22 static struct var_t vars[] = { variable 97 .vars = vars,
|
D | speakup_ltlk.c | 21 static struct var_t vars[] = { variable 104 .vars = vars,
|
D | speakup_apollo.c | 27 static struct var_t vars[] = { variable 102 .vars = vars,
|
/Linux-v5.4/arch/um/os-Linux/ |
D | mem.c | 49 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()
|
/Linux-v5.4/tools/perf/include/bpf/ |
D | bpf.h | 52 #define probe(function, vars) \ argument 53 SEC(#function "=" #function " " #vars) function
|
/Linux-v5.4/Documentation/ABI/testing/ |
D | sysfs-firmware-gsmi | 19 /sys/firmware/gsmi/vars: 22 underlying implementation as /sys/firmware/efi/vars. 23 See Documentation/ABI/*/sysfs-firmware-efi-vars
|
/Linux-v5.4/kernel/trace/ |
D | tracing_map.c | 72 atomic64_set(&elt->vars[i], n); in tracing_map_set_var() 104 return (u64)atomic64_read(&elt->vars[i]); in tracing_map_read_var() 124 return (u64)atomic64_read(&elt->vars[i]); in tracing_map_read_var_once() 364 atomic64_set(&elt->vars[i], 0); in tracing_map_elt_clear() 394 kfree(elt->vars); in tracing_map_elt_free() 423 elt->vars = kcalloc(map->n_vars, sizeof(*elt->vars), GFP_KERNEL); in tracing_map_elt_alloc() 424 if (!elt->vars) { in tracing_map_elt_alloc()
|