/linux-6.6.21/drivers/iio/adc/ |
D | envelope-detector.c | 79 static int envelope_detector_comp_latch(struct envelope *env) in envelope_detector_comp_latch() argument 83 spin_lock_irq(&env->comp_lock); in envelope_detector_comp_latch() 84 comp = env->comp; in envelope_detector_comp_latch() 85 env->comp = 0; in envelope_detector_comp_latch() 86 spin_unlock_irq(&env->comp_lock); in envelope_detector_comp_latch() 98 enable_irq(env->comp_irq); in envelope_detector_comp_latch() 101 synchronize_irq(env->comp_irq); in envelope_detector_comp_latch() 104 spin_lock_irq(&env->comp_lock); in envelope_detector_comp_latch() 105 comp = env->comp; in envelope_detector_comp_latch() 106 env->comp = 0; in envelope_detector_comp_latch() [all …]
|
/linux-6.6.21/tools/perf/util/ |
D | env.c | 23 void perf_env__insert_bpf_prog_info(struct perf_env *env, in perf_env__insert_bpf_prog_info() argument 26 down_write(&env->bpf_progs.lock); in perf_env__insert_bpf_prog_info() 27 __perf_env__insert_bpf_prog_info(env, info_node); in perf_env__insert_bpf_prog_info() 28 up_write(&env->bpf_progs.lock); in perf_env__insert_bpf_prog_info() 31 void __perf_env__insert_bpf_prog_info(struct perf_env *env, struct bpf_prog_info_node *info_node) in __perf_env__insert_bpf_prog_info() argument 38 p = &env->bpf_progs.infos.rb_node; in __perf_env__insert_bpf_prog_info() 54 rb_insert_color(&info_node->rb_node, &env->bpf_progs.infos); in __perf_env__insert_bpf_prog_info() 55 env->bpf_progs.infos_cnt++; in __perf_env__insert_bpf_prog_info() 58 struct bpf_prog_info_node *perf_env__find_bpf_prog_info(struct perf_env *env, in perf_env__find_bpf_prog_info() argument 64 down_read(&env->bpf_progs.lock); in perf_env__find_bpf_prog_info() [all …]
|
D | env.h | 146 void perf_env__exit(struct perf_env *env); 148 int perf_env__kernel_is_64_bit(struct perf_env *env); 150 int perf_env__set_cmdline(struct perf_env *env, int argc, const char *argv[]); 152 int perf_env__read_cpuid(struct perf_env *env); 153 int perf_env__read_pmu_mappings(struct perf_env *env); 154 int perf_env__nr_pmu_mappings(struct perf_env *env); 155 const char *perf_env__pmu_mappings(struct perf_env *env); 157 int perf_env__read_cpu_topology_map(struct perf_env *env); 161 const char *perf_env__arch(struct perf_env *env); 162 const char *perf_env__cpuid(struct perf_env *env); [all …]
|
D | header.c | 903 return do_write(ff, &ff->ph->env.clock.clockid_res_ns, in write_clockid() 904 sizeof(ff->ph->env.clock.clockid_res_ns)); in write_clockid() 922 data32 = ff->ph->env.clock.clockid; in write_clock_data() 929 data64 = &ff->ph->env.clock.tod_ns; in write_clock_data() 936 data64 = &ff->ph->env.clock.clockid_ns; in write_clock_data() 1045 struct perf_env *env = &ff->ph->env; in write_bpf_prog_info() local 1050 down_read(&env->bpf_progs.lock); in write_bpf_prog_info() 1052 ret = do_write(ff, &env->bpf_progs.infos_cnt, in write_bpf_prog_info() 1053 sizeof(env->bpf_progs.infos_cnt)); in write_bpf_prog_info() 1057 root = &env->bpf_progs.infos; in write_bpf_prog_info() [all …]
|
/linux-6.6.21/kernel/bpf/ |
D | verifier.c | 194 static int acquire_reference_state(struct bpf_verifier_env *env, int insn_idx); 195 static int release_reference(struct bpf_verifier_env *env, int ref_obj_id); 196 static void invalidate_non_owning_refs(struct bpf_verifier_env *env); 197 static bool in_rbtree_lock_required_cb(struct bpf_verifier_env *env); 198 static int ref_set_non_owning(struct bpf_verifier_env *env, 200 static void specialize_kfunc(struct bpf_verifier_env *env, 341 find_linfo(const struct bpf_verifier_env *env, u32 insn_off) in find_linfo() argument 347 prog = env->prog; in find_linfo() 363 struct bpf_verifier_env *env = private_data; in verbose() local 366 if (!bpf_verifier_log_needed(&env->log)) in verbose() [all …]
|
D | btf.c | 433 s32 (*check_meta)(struct btf_verifier_env *env, 436 int (*resolve)(struct btf_verifier_env *env, 438 int (*check_member)(struct btf_verifier_env *env, 442 int (*check_kflag_member)(struct btf_verifier_env *env, 446 void (*log_details)(struct btf_verifier_env *env, 456 static int btf_resolve(struct btf_verifier_env *env, 459 static int btf_func_check(struct btf_verifier_env *env, 1394 __printf(2, 3) static void btf_verifier_log(struct btf_verifier_env *env, in btf_verifier_log() argument 1397 struct bpf_verifier_log *log = &env->log; in btf_verifier_log() 1408 __printf(4, 5) static void __btf_verifier_log_type(struct btf_verifier_env *env, in __btf_verifier_log_type() argument [all …]
|
/linux-6.6.21/drivers/net/ethernet/netronome/nfp/bpf/ |
D | verifier.c | 16 #define pr_vlog(env, fmt, ...) \ argument 17 bpf_verifier_log_write(env, "[nfp] " fmt, ##__VA_ARGS__) 83 static bool nfp_bpf_map_update_value_ok(struct bpf_verifier_env *env) in nfp_bpf_map_update_value_ok() argument 85 const struct bpf_reg_state *reg1 = cur_regs(env) + BPF_REG_1; in nfp_bpf_map_update_value_ok() 86 const struct bpf_reg_state *reg3 = cur_regs(env) + BPF_REG_3; in nfp_bpf_map_update_value_ok() 92 state = env->cur_state->frame[reg3->frameno]; in nfp_bpf_map_update_value_ok() 113 …pr_vlog(env, "value at offset %d/%d may be non-zero, bpf_map_update_elem() is required to initiali… in nfp_bpf_map_update_value_ok() 124 nfp_bpf_stack_arg_ok(const char *fname, struct bpf_verifier_env *env, in nfp_bpf_stack_arg_ok() argument 131 pr_vlog(env, "%s: unsupported ptr type %d\n", in nfp_bpf_stack_arg_ok() 136 pr_vlog(env, "%s: variable pointer\n", fname); in nfp_bpf_stack_arg_ok() [all …]
|
/linux-6.6.21/tools/testing/selftests/bpf/ |
D | test_progs.c | 24 return env.verbosity > VERBOSE_NONE; in verbose() 30 if (verbose() && env.worker_id == -1) { in stdio_hijack_init() 40 stdout = env.stdout; in stdio_hijack_init() 45 if (env.subtest_state) in stdio_hijack_init() 46 env.subtest_state->stdout = stdout; in stdio_hijack_init() 48 env.test_state->stdout = stdout; in stdio_hijack_init() 57 if (verbose() && env.worker_id == -1) { in stdio_hijack() 62 env.stdout = stdout; in stdio_hijack() 63 env.stderr = stderr; in stdio_hijack() 72 if (verbose() && env.worker_id == -1) { in stdio_restore_cleanup() [all …]
|
D | veristat.c | 138 static struct env { struct 176 } env; argument 180 if (!env.verbose) in libbpf_print_fn() 182 if (level == LIBBPF_DEBUG && !env.debug) in libbpf_print_fn() 239 env.show_version = true; in parse_arg() 242 env.verbose = true; in parse_arg() 245 env.debug = true; in parse_arg() 246 env.verbose = true; in parse_arg() 249 env.quiet = true; in parse_arg() 252 err = parse_stats(arg, &env.output_spec); in parse_arg() [all …]
|
D | xdp_features.c | 26 static struct env { struct 38 } env; argument 47 if (level == LIBBPF_DEBUG && !env.verbosity) in libbpf_print_fn() 90 env.feature.action = XDP_PASS; in get_xdp_feature() 91 env.feature.drv_feature = NETDEV_XDP_ACT_BASIC; in get_xdp_feature() 93 env.feature.drv_feature = NETDEV_XDP_ACT_BASIC; in get_xdp_feature() 94 env.feature.action = XDP_DROP; in get_xdp_feature() 96 env.feature.drv_feature = NETDEV_XDP_ACT_BASIC; in get_xdp_feature() 97 env.feature.action = XDP_ABORTED; in get_xdp_feature() 99 env.feature.drv_feature = NETDEV_XDP_ACT_BASIC; in get_xdp_feature() [all …]
|
D | bench.c | 15 struct env env = { variable 27 if (level == LIBBPF_DEBUG && !env.verbose) in libbpf_print_fn() 73 hits_per_prod = hits_per_sec / env.producer_cnt; in hits_drops_report_progress() 151 hits_mean, hits_stddev, hits_mean / env.producer_cnt); in hits_drops_report_final() 163 hits_per_prod = hits_per_sec / env.producer_cnt; in ops_report_progress() 187 hits_mean, hits_stddev, hits_mean / env.producer_cnt); in ops_report_final() 188 printf("latency %8.3lf ns/op\n", 1000.0 / hits_mean * env.producer_cnt); in ops_report_final() 305 env.verbose = true; in parse_arg() 308 env.list = true; in parse_arg() 311 env.duration_sec = strtol(arg, NULL, 10); in parse_arg() [all …]
|
/linux-6.6.21/lib/ |
D | kobject_uevent.c | 117 struct kobj_uevent_env *env = NULL; in kobject_action_args() local 128 env = kzalloc(sizeof(*env), GFP_KERNEL); in kobject_action_args() 129 if (!env) in kobject_action_args() 134 add_uevent_var(env, "SYNTH_UUID=%.*s", UUID_STRING_LEN, buf)) in kobject_action_args() 168 if (add_uevent_var(env, "SYNTH_ARG_%.*s=%.*s", in kobject_action_args() 176 kfree(env); in kobject_action_args() 178 *ret_env = env; in kobject_action_args() 197 struct kobj_uevent_env *env; in kobject_synth_uevent() local 213 count - (action_args - buf), &env); in kobject_synth_uevent() 222 r = kobject_uevent_env(kobj, action, env->envp); in kobject_synth_uevent() [all …]
|
/linux-6.6.21/arch/x86/kernel/fpu/ |
D | regset.c | 330 static void __convert_from_fxsr(struct user_i387_ia32_struct *env, in __convert_from_fxsr() argument 334 struct _fpreg *to = (struct _fpreg *) &env->st_space[0]; in __convert_from_fxsr() 338 env->cwd = fxsave->cwd | 0xffff0000u; in __convert_from_fxsr() 339 env->swd = fxsave->swd | 0xffff0000u; in __convert_from_fxsr() 340 env->twd = twd_fxsr_to_i387(fxsave); in __convert_from_fxsr() 343 env->fip = fxsave->rip; in __convert_from_fxsr() 344 env->foo = fxsave->rdp; in __convert_from_fxsr() 349 env->fcs = task_pt_regs(tsk)->cs; in __convert_from_fxsr() 351 savesegment(ds, env->fos); in __convert_from_fxsr() 353 env->fos = tsk->thread.ds; in __convert_from_fxsr() [all …]
|
/linux-6.6.21/tools/perf/arch/ |
D | common.c | 109 char *env = getenv("PATH"); in lookup_path() local 111 if (!env) in lookup_path() 114 env = strdup(env); in lookup_path() 115 if (!env) in lookup_path() 118 path = strtok_r(env, ":", &tmp); in lookup_path() 127 free(env); in lookup_path() 144 static int perf_env__lookup_binutils_path(struct perf_env *env, in perf_env__lookup_binutils_path() argument 148 const char *arch = perf_env__arch(env), *cross_env; in perf_env__lookup_binutils_path() 221 int perf_env__lookup_objdump(struct perf_env *env, char **path) in perf_env__lookup_objdump() argument 227 if (env->arch == NULL) in perf_env__lookup_objdump() [all …]
|
/linux-6.6.21/arch/mips/alchemy/common/ |
D | prom.c | 66 char **env = prom_envp; in prom_getenv() local 68 int yamon = (*env && strchr(*env, '=') == NULL); in prom_getenv() 70 while (*env) { in prom_getenv() 72 if (strcmp(envname, *env++) == 0) in prom_getenv() 73 return *env; in prom_getenv() 74 } else if (strncmp(envname, *env, i) == 0 && (*env)[i] == '=') in prom_getenv() 75 return *env + i + 1; in prom_getenv() 76 env++; in prom_getenv()
|
/linux-6.6.21/security/tomoyo/ |
D | environ.c | 24 return tomoyo_path_matches_pattern(r->param.environ.name, acl->env); in tomoyo_check_env_acl() 50 int tomoyo_env_perm(struct tomoyo_request_info *r, const char *env) in tomoyo_env_perm() argument 55 if (!env || !*env) in tomoyo_env_perm() 57 environ.name = env; in tomoyo_env_perm() 82 return p1->env == p2->env; in tomoyo_same_env_acl() 102 e.env = tomoyo_get_name(data); in tomoyo_write_env() 103 if (!e.env) in tomoyo_write_env() 107 tomoyo_put_name(e.env); in tomoyo_write_env()
|
/linux-6.6.21/kernel/sched/ |
D | fair.c | 2042 static void update_numa_stats(struct task_numa_env *env, in update_numa_stats() argument 2063 !cpumask_test_cpu(cpu, env->p->cpus_ptr)) in update_numa_stats() 2076 ns->node_type = numa_classify(env->imbalance_pct, ns); in update_numa_stats() 2082 static void task_numa_assign(struct task_numa_env *env, in task_numa_assign() argument 2085 struct rq *rq = cpu_rq(env->dst_cpu); in task_numa_assign() 2088 if (env->best_cpu != env->dst_cpu && xchg(&rq->numa_migrate_on, 1)) { in task_numa_assign() 2090 int start = env->dst_cpu; in task_numa_assign() 2093 for_each_cpu_wrap(cpu, cpumask_of_node(env->dst_nid), start + 1) { in task_numa_assign() 2094 if (cpu == env->best_cpu || !idle_cpu(cpu) || in task_numa_assign() 2095 !cpumask_test_cpu(cpu, env->p->cpus_ptr)) { in task_numa_assign() [all …]
|
/linux-6.6.21/tools/perf/tests/ |
D | topology.c | 97 if (!session->header.env.cpu in check_cpu_topology() 98 && strncmp(session->header.env.arch, "s390", 4) in check_cpu_topology() 99 && strncmp(session->header.env.arch, "aarch64", 7)) in check_cpu_topology() 108 if (!strncmp(session->header.env.arch, "ppc64le", 7)) { in check_cpu_topology() 113 TEST_ASSERT_VAL("Session header CPU map not set", session->header.env.cpu); in check_cpu_topology() 115 for (i = 0; i < session->header.env.nr_cpus_avail; i++) { in check_cpu_topology() 121 session->header.env.cpu[i].core_id, in check_cpu_topology() 122 session->header.env.cpu[i].socket_id); in check_cpu_topology() 132 session->header.env.cpu[perf_cpu_map__cpu(map, i).cpu].core_id == id.core); in check_cpu_topology() 134 session->header.env.cpu[perf_cpu_map__cpu(map, i).cpu].socket_id == in check_cpu_topology() [all …]
|
/linux-6.6.21/drivers/of/ |
D | device.c | 247 void of_device_uevent(const struct device *dev, struct kobj_uevent_env *env) in of_device_uevent() argument 257 add_uevent_var(env, "OF_NAME=%pOFn", dev->of_node); in of_device_uevent() 258 add_uevent_var(env, "OF_FULLNAME=%pOF", dev->of_node); in of_device_uevent() 261 add_uevent_var(env, "OF_TYPE=%s", type); in of_device_uevent() 267 add_uevent_var(env, "OF_COMPATIBLE_%d=%s", seen, compat); in of_device_uevent() 270 add_uevent_var(env, "OF_COMPATIBLE_N=%d", seen); in of_device_uevent() 276 add_uevent_var(env, "OF_ALIAS_%d=%s", seen, in of_device_uevent() 285 int of_device_uevent_modalias(const struct device *dev, struct kobj_uevent_env *env) in of_device_uevent_modalias() argument 293 if (add_uevent_var(env, "MODALIAS=")) in of_device_uevent_modalias() 296 sl = of_modalias(dev->of_node, &env->buf[env->buflen-1], in of_device_uevent_modalias() [all …]
|
/linux-6.6.21/Documentation/sphinx/ |
D | kerneldoc.py | 61 env = self.state.document.settings.env 62 cmd = [env.config.kerneldoc_bin, '-rst', '-enable-lineno'] 69 filename = env.config.kerneldoc_srctree + '/' + self.arguments[0] 73 env.note_dependency(os.path.abspath(filename)) 105 for f in glob.glob(env.config.kerneldoc_srctree + '/' + pattern): 106 env.note_dependency(os.path.abspath(f)) 112 kernellog.verbose(env.app, 123 kernellog.warn(env.app, 126 elif env.config.kerneldoc_verbosity > 0: 141 doc = env.srcdir + "/" + env.docname + ":" + str(self.lineno) [all …]
|
/linux-6.6.21/tools/objtool/ |
D | builtin-check.c | 104 char *env; in cmd_parse_options() local 107 env = getenv("OBJTOOL_ARGS"); in cmd_parse_options() 108 if (env) { in cmd_parse_options() 111 envv[envc++] = env; in cmd_parse_options() 112 env = strchr(env, ' '); in cmd_parse_options() 113 if (!env) in cmd_parse_options() 115 *env = '\0'; in cmd_parse_options() 116 env++; in cmd_parse_options() 122 env = getenv("OBJTOOL_VERBOSE"); in cmd_parse_options() 123 if (env && !strcmp(env, "1")) in cmd_parse_options()
|
/linux-6.6.21/drivers/net/ethernet/mellanox/mlxsw/ |
D | core_env.c | 1183 static int mlxsw_env_line_cards_alloc(struct mlxsw_env *env) in mlxsw_env_line_cards_alloc() argument 1188 for (i = 0; i < env->num_of_slots; i++) { in mlxsw_env_line_cards_alloc() 1189 env->line_cards[i] = kzalloc(struct_size(env->line_cards[i], in mlxsw_env_line_cards_alloc() 1191 env->max_module_count), in mlxsw_env_line_cards_alloc() 1193 if (!env->line_cards[i]) in mlxsw_env_line_cards_alloc() 1199 for (j = 0; j < env->max_module_count; j++) { in mlxsw_env_line_cards_alloc() 1200 module_info = &env->line_cards[i]->module_info[j]; in mlxsw_env_line_cards_alloc() 1210 kfree(env->line_cards[i]); in mlxsw_env_line_cards_alloc() 1214 static void mlxsw_env_line_cards_free(struct mlxsw_env *env) in mlxsw_env_line_cards_free() argument 1216 int i = env->num_of_slots; in mlxsw_env_line_cards_free() [all …]
|
/linux-6.6.21/Documentation/devicetree/bindings/nvmem/ |
D | u-boot,env.yaml | 4 $id: http://devicetree.org/schemas/nvmem/u-boot,env.yaml# 21 This binding allows marking storage device (as containing env data) and 35 - description: A standalone env data block 36 const: u-boot,env 38 const: u-boot,env-redundant-bool 40 const: u-boot,env-redundant-count 42 const: brcm,env 74 env: partition@40000 { 75 compatible = "u-boot,env"; 94 partition-u-boot-env { [all …]
|
/linux-6.6.21/tools/bpf/runqslower/ |
D | runqslower.c | 13 struct env { struct 17 } env = { argument 51 env.verbose = true; in parse_arg() 60 env.pid = pid; in parse_arg() 74 env.min_us = min_us; in parse_arg() 85 if (level == LIBBPF_DEBUG && !env.verbose) in libbpf_print_fn() 135 obj->rodata->targ_pid = env.pid; in main() 136 obj->rodata->min_us = env.min_us; in main() 150 printf("Tracing run queue latency higher than %llu us\n", env.min_us); in main()
|
/linux-6.6.21/tools/perf/arch/x86/util/ |
D | env.c | 8 struct perf_env env = { .total_mem = 0, }; in x86__is_amd_cpu() local 14 perf_env__cpuid(&env); in x86__is_amd_cpu() 15 is_amd = env.cpuid && strstarts(env.cpuid, "AuthenticAMD") ? 1 : -1; in x86__is_amd_cpu() 16 perf_env__exit(&env); in x86__is_amd_cpu()
|