Home
last modified time | relevance | path

Searched refs:env (Results 1 – 25 of 476) sorted by relevance

12345678910>>...20

/linux/drivers/iio/adc/
H A Denvelope-detector.c79 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/tools/perf/util/
H A Denv.c4 #include "env.h"
27 void perf_env__insert_bpf_prog_info(struct perf_env *env, in perf_env__insert_bpf_prog_info()
30 down_write(&env->bpf_progs.lock); in perf_env__insert_bpf_prog_info()
31 __perf_env__insert_bpf_prog_info(env, info_node); in perf_env__insert_bpf_prog_info()
32 up_write(&env->bpf_progs.lock);
35 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()
42 p = &env->bpf_progs.infos.rb_node; in __perf_env__insert_bpf_prog_info()
58 rb_insert_color(&info_node->rb_node, &env->bpf_progs.infos); in __perf_env__insert_bpf_prog_info()
59 env->bpf_progs.infos_cnt++;
62 struct bpf_prog_info_node *perf_env__find_bpf_prog_info(struct perf_env *env, in perf_env__find_bpf_prog_info()
25 perf_env__insert_bpf_prog_info(struct perf_env * env,struct bpf_prog_info_node * info_node) perf_env__insert_bpf_prog_info() argument
33 __perf_env__insert_bpf_prog_info(struct perf_env * env,struct bpf_prog_info_node * info_node) __perf_env__insert_bpf_prog_info() argument
60 perf_env__find_bpf_prog_info(struct perf_env * env,__u32 prog_id) perf_env__find_bpf_prog_info() argument
85 perf_env__insert_btf(struct perf_env * env,struct btf_node * btf_node) perf_env__insert_btf() argument
95 __perf_env__insert_btf(struct perf_env * env,struct btf_node * btf_node) __perf_env__insert_btf() argument
123 perf_env__find_btf(struct perf_env * env,__u32 btf_id) perf_env__find_btf() argument
133 __perf_env__find_btf(struct perf_env * env,__u32 btf_id) __perf_env__find_btf() argument
153 perf_env__purge_bpf(struct perf_env * env) perf_env__purge_bpf() argument
197 perf_env__exit(struct perf_env * env) perf_env__exit() argument
248 perf_env__init(struct perf_env * env) perf_env__init() argument
258 perf_env__init_kernel_mode(struct perf_env * env) perf_env__init_kernel_mode() argument
271 perf_env__kernel_is_64_bit(struct perf_env * env) perf_env__kernel_is_64_bit() argument
279 perf_env__set_cmdline(struct perf_env * env,int argc,const char * argv[]) perf_env__set_cmdline() argument
307 perf_env__read_cpu_topology_map(struct perf_env * env) perf_env__read_cpu_topology_map() argument
337 perf_env__read_pmu_mappings(struct perf_env * env) perf_env__read_pmu_mappings() argument
372 perf_env__read_cpuid(struct perf_env * env) perf_env__read_cpuid() argument
387 perf_env__read_arch(struct perf_env * env) perf_env__read_arch() argument
400 perf_env__read_nr_cpus_avail(struct perf_env * env) perf_env__read_nr_cpus_avail() argument
408 perf_env__raw_arch(struct perf_env * env) perf_env__raw_arch() argument
413 perf_env__nr_cpus_avail(struct perf_env * env) perf_env__nr_cpus_avail() argument
457 perf_env__arch(struct perf_env * env) perf_env__arch() argument
484 perf_env__cpuid(struct perf_env * env) perf_env__cpuid() argument
497 perf_env__nr_pmu_mappings(struct perf_env * env) perf_env__nr_pmu_mappings() argument
510 perf_env__pmu_mappings(struct perf_env * env) perf_env__pmu_mappings() argument
523 perf_env__numa_node(struct perf_env * env,struct perf_cpu cpu) perf_env__numa_node() argument
562 perf_env__has_pmu_mapping(struct perf_env * env,const char * pmu_name) perf_env__has_pmu_mapping() argument
580 perf_env__find_pmu_cap(struct perf_env * env,const char * pmu_name,const char * cap) perf_env__find_pmu_cap() argument
628 perf_env__find_br_cntr_info(struct perf_env * env,unsigned int * nr,unsigned int * width) perf_env__find_br_cntr_info() argument
[all...]
H A Denv.h157 void perf_env__exit(struct perf_env *env);
159 int perf_env__kernel_is_64_bit(struct perf_env *env);
161 int perf_env__set_cmdline(struct perf_env *env, int argc, const char *argv[]);
163 int perf_env__read_cpuid(struct perf_env *env);
164 int perf_env__read_pmu_mappings(struct perf_env *env);
165 int perf_env__nr_pmu_mappings(struct perf_env *env);
166 const char *perf_env__pmu_mappings(struct perf_env *env);
168 int perf_env__read_cpu_topology_map(struct perf_env *env);
172 const char *perf_env__arch(struct perf_env *env);
173 const char *perf_env__arch_strerrno(struct perf_env *env, in
[all...]
H A Dheader.c924 return do_write(ff, &ff->ph->env.clock.clockid_res_ns, in write_clock_data()
925 sizeof(ff->ph->env.clock.clockid_res_ns)); in write_clock_data()
943 data32 = ff->ph->env.clock.clockid; in write_hybrid_topology()
950 data64 = &ff->ph->env.clock.tod_ns; in write_hybrid_topology()
957 data64 = &ff->ph->env.clock.clockid_ns; in write_hybrid_topology()
1015 struct perf_env *env = &ff->ph->env; in is_cpu_online()
1020 down_read(&env->bpf_progs.lock); in is_cpu_online()
1022 ret = do_write(ff, &env->bpf_progs.infos_cnt, in is_cpu_online()
1023 sizeof(env in is_cpu_online()
1045 struct perf_env *env = &ff->ph->env; write_bpf_prog_info() local
1087 struct perf_env *env = &ff->ph->env; write_bpf_btf() local
1837 struct perf_env *env = &ff->ph->env; print_bpf_prog_info() local
1861 struct perf_env *env = &ff->ph->env; print_bpf_btf() local
3137 struct perf_env *env = &ff->ph->env; process_bpf_prog_info() local
3205 struct perf_env *env = &ff->ph->env; process_bpf_btf() local
[all...]
/linux/kernel/bpf/
H A Dverifier.c199 static int acquire_reference_state(struct bpf_verifier_env *env, int insn_idx);
200 static int release_reference(struct bpf_verifier_env *env, int ref_obj_id);
201 static void invalidate_non_owning_refs(struct bpf_verifier_env *env);
202 static bool in_rbtree_lock_required_cb(struct bpf_verifier_env *env);
203 static int ref_set_non_owning(struct bpf_verifier_env *env,
205 static void specialize_kfunc(struct bpf_verifier_env *env,
358 struct bpf_verifier_env *env = private_data; in verbose() local
361 if (!bpf_verifier_log_needed(&env->log)) in verbose()
365 bpf_verifier_vlog(&env->log, fmt, args); in verbose()
369 static void verbose_invalid_scalar(struct bpf_verifier_env *env, in verbose_invalid_scalar() argument
[all …]
H A Dlog.c14 #define verbose(env, fmt, args...) bpf_verifier_log_write(env, fmt, ##args) argument
304 __printf(2, 3) void bpf_verifier_log_write(struct bpf_verifier_env *env, in bpf_verifier_log_write() argument
309 if (!bpf_verifier_log_needed(&env->log)) in bpf_verifier_log_write()
313 bpf_verifier_vlog(&env->log, fmt, args); in bpf_verifier_log_write()
333 find_linfo(const struct bpf_verifier_env *env, u32 insn_off) in find_linfo() argument
340 prog = env->prog; in find_linfo()
381 __printf(3, 4) void verbose_linfo(struct bpf_verifier_env *env, in verbose_linfo() argument
389 if (!bpf_verifier_log_needed(&env->log)) in verbose_linfo()
392 prev_linfo = env->prev_linfo; in verbose_linfo()
393 linfo = find_linfo(env, insn_off); in verbose_linfo()
[all …]
H A Dbtf.c443 s32 (*check_meta)(struct btf_verifier_env *env,
446 int (*resolve)(struct btf_verifier_env *env,
448 int (*check_member)(struct btf_verifier_env *env,
452 int (*check_kflag_member)(struct btf_verifier_env *env,
456 void (*log_details)(struct btf_verifier_env *env,
466 static int btf_resolve(struct btf_verifier_env *env,
469 static int btf_func_check(struct btf_verifier_env *env,
1420 __printf(2, 3) static void btf_verifier_log(struct btf_verifier_env *env, in btf_verifier_log() argument
1423 struct bpf_verifier_log *log = &env->log; in btf_verifier_log()
1434 __printf(4, 5) static void __btf_verifier_log_type(struct btf_verifier_env *env, in __btf_verifier_log_type() argument
[all …]
/linux/tools/testing/selftests/bpf/
H A Dtest_progs.c46 return env.verbosity > VERBOSE_NONE; in verbose()
52 if (verbose() && env.worker_id == -1) { in stdio_hijack_init()
62 stdout = env.stdout_saved; in stdio_hijack_init()
67 if (env.subtest_state) in stdio_hijack_init()
68 env.subtest_state->stdout_saved = stdout; in stdio_hijack_init()
70 env.test_state->stdout_saved = stdout; in stdio_hijack_init()
79 if (verbose() && env.worker_id == -1) { in stdio_hijack()
84 env.stdout_saved = stdout; in stdio_hijack()
85 env.stderr_saved = stderr; in stdio_hijack()
94 if (verbose() && env.worker_id == -1) { in stdio_restore_cleanup()
[all …]
H A Dveristat.c143 static struct env { struct
184 } env; argument
188 if (!env.verbose) in libbpf_print_fn()
190 if (level == LIBBPF_DEBUG && !env.debug) in libbpf_print_fn()
251 env.show_version = true; in parse_arg()
254 env.verbose = true; in parse_arg()
257 env.debug = true; in parse_arg()
258 env.verbose = true; in parse_arg()
261 env.quiet = true; in parse_arg()
264 err = parse_stats(arg, &env.output_spec); in parse_arg()
[all …]
H A Dxdp_features.c26 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 …]
H A Dbench.c16 struct env env = { variable
28 if (level == LIBBPF_DEBUG && !env.verbose) in libbpf_print_fn()
74 hits_per_prod = hits_per_sec / env.producer_cnt; in hits_drops_report_progress()
152 hits_mean, hits_stddev, hits_mean / env.producer_cnt); in hits_drops_report_final()
164 hits_per_prod = hits_per_sec / env.producer_cnt; in ops_report_progress()
188 hits_mean, hits_stddev, hits_mean / env.producer_cnt); in ops_report_final()
189 printf("latency %8.3lf ns/op\n", 1000.0 / hits_mean * env.producer_cnt); in ops_report_final()
310 env.verbose = true; in parse_arg()
313 env.list = true; in parse_arg()
316 env.duration_sec = strtol(arg, NULL, 10); in parse_arg()
[all …]
/linux/drivers/net/ethernet/netronome/nfp/bpf/
H A Dverifier.c16 #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/lib/
H A Dkobject_uevent.c116 struct kobj_uevent_env *env = NULL; in kobject_action_args() local
127 env = kzalloc(sizeof(*env), GFP_KERNEL); in kobject_action_args()
128 if (!env) in kobject_action_args()
133 add_uevent_var(env, "SYNTH_UUID=%.*s", UUID_STRING_LEN, buf)) in kobject_action_args()
167 if (add_uevent_var(env, "SYNTH_ARG_%.*s=%.*s", in kobject_action_args()
175 kfree(env); in kobject_action_args()
177 *ret_env = env; in kobject_action_args()
196 struct kobj_uevent_env *env; in kobject_synth_uevent() local
212 count - (action_args - buf), &env); in kobject_synth_uevent()
221 r = kobject_uevent_env(kobj, action, env->envp); in kobject_synth_uevent()
[all …]
/linux/arch/x86/kernel/fpu/
H A Dregset.c330 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/include/linux/
H A Dbpf_verifier.h672 struct bpf_verifier_env *env; member
784 static inline struct bpf_func_info_aux *subprog_aux(struct bpf_verifier_env *env, int subprog) in subprog_aux() argument
786 return &env->prog->aux->func_info_aux[subprog]; in subprog_aux()
789 static inline struct bpf_subprog_info *subprog_info(struct bpf_verifier_env *env, int subprog) in subprog_info() argument
791 return &env->subprog_info[subprog]; in subprog_info()
796 __printf(2, 3) void bpf_verifier_log_write(struct bpf_verifier_env *env,
805 __printf(3, 4) void verbose_linfo(struct bpf_verifier_env *env,
809 static inline struct bpf_func_state *cur_func(struct bpf_verifier_env *env) in cur_func() argument
811 struct bpf_verifier_state *cur = env->cur_state; in cur_func()
816 static inline struct bpf_reg_state *cur_regs(struct bpf_verifier_env *env) in cur_regs() argument
[all …]
/linux/tools/perf/arch/
H A Dcommon.c109 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/tools/testing/selftests/drivers/net/lib/py/
H A Denv.py14 env = os.environ.copy()
18 return ksft_setup(env)
33 env[pair[0]] = pair[1]
34 return ksft_setup(env)
44 self.env = _load_env_file(src_path)
46 if 'NETIF' in self.env:
47 self.dev = ip("link show dev " + self.env['NETIF'], json=True)[0]
85 self.env = _load_env_file(src_path)
96 if "NETIF" in self.env:
101 self.dev = ip("link show dev " + self.env['NETIF'], json=True)[0]
[all …]
/linux/arch/mips/alchemy/common/
H A Dprom.c67 char **env = prom_envp; in prom_getenv() local
69 int yamon = (*env && strchr(*env, '=') == NULL); in prom_getenv()
71 while (*env) { in prom_getenv()
73 if (strcmp(envname, *env++) == 0) in prom_getenv()
74 return *env; in prom_getenv()
75 } else if (strncmp(envname, *env, i) == 0 && (*env)[i] == '=') in prom_getenv()
76 return *env + i + 1; in prom_getenv()
77 env++; in prom_getenv()
/linux/security/tomoyo/
H A Denviron.c24 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/tools/perf/tests/
H A Dtopology.c98 if (!session->header.env.cpu in check_cpu_topology()
99 && strncmp(session->header.env.arch, "s390", 4) in check_cpu_topology()
100 && strncmp(session->header.env.arch, "aarch64", 7)) in check_cpu_topology()
109 if (!strncmp(session->header.env.arch, "ppc64le", 7)) { in check_cpu_topology()
114 TEST_ASSERT_VAL("Session header CPU map not set", session->header.env.cpu); in check_cpu_topology()
116 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[cpu.cpu].core_id == id.core); in check_cpu_topology()
134 session->header.env in check_cpu_topology()
[all...]
/linux/drivers/of/
H A Ddevice.c219 void of_device_uevent(const struct device *dev, struct kobj_uevent_env *env) in of_device_uevent() argument
229 add_uevent_var(env, "OF_NAME=%pOFn", dev->of_node); in of_device_uevent()
230 add_uevent_var(env, "OF_FULLNAME=%pOF", dev->of_node); in of_device_uevent()
233 add_uevent_var(env, "OF_TYPE=%s", type); in of_device_uevent()
239 add_uevent_var(env, "OF_COMPATIBLE_%d=%s", seen, compat); in of_device_uevent()
242 add_uevent_var(env, "OF_COMPATIBLE_N=%d", seen); in of_device_uevent()
248 add_uevent_var(env, "OF_ALIAS_%d=%s", seen, in of_device_uevent()
257 int of_device_uevent_modalias(const struct device *dev, struct kobj_uevent_env *env) in of_device_uevent_modalias() argument
265 if (add_uevent_var(env, "MODALIAS=")) in of_device_uevent_modalias()
268 sl = of_modalias(dev->of_node, &env->buf[env->buflen-1], in of_device_uevent_modalias()
[all …]
/linux/kernel/sched/
H A Dfair.c2118 static void update_numa_stats(struct task_numa_env *env, in update_numa_stats() argument
2139 !cpumask_test_cpu(cpu, env->p->cpus_ptr)) in update_numa_stats()
2152 ns->node_type = numa_classify(env->imbalance_pct, ns); in update_numa_stats()
2158 static void task_numa_assign(struct task_numa_env *env, in task_numa_assign() argument
2161 struct rq *rq = cpu_rq(env->dst_cpu); in task_numa_assign()
2164 if (env->best_cpu != env->dst_cpu && xchg(&rq->numa_migrate_on, 1)) { in task_numa_assign()
2166 int start = env->dst_cpu; in task_numa_assign()
2169 for_each_cpu_wrap(cpu, cpumask_of_node(env->dst_nid), start + 1) { in task_numa_assign()
2170 if (cpu == env->best_cpu || !idle_cpu(cpu) || in task_numa_assign()
2171 !cpumask_test_cpu(cpu, env->p->cpus_ptr)) { in task_numa_assign()
[all …]
/linux/Documentation/sphinx/
H A Dkerneldoc.py61 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 = str(env.srcdir) + "/" + env.docname + ":" + str(self.lineno)
[all …]
/linux/tools/objtool/
H A Dbuiltin-check.c104 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/drivers/net/ethernet/mellanox/mlxsw/
H A Dcore_env.c1240 static int mlxsw_env_line_cards_alloc(struct mlxsw_env *env) in mlxsw_env_line_cards_alloc() argument
1245 for (i = 0; i < env->num_of_slots; i++) { in mlxsw_env_line_cards_alloc()
1246 env->line_cards[i] = kzalloc(struct_size(env->line_cards[i], in mlxsw_env_line_cards_alloc()
1248 env->max_module_count), in mlxsw_env_line_cards_alloc()
1250 if (!env->line_cards[i]) in mlxsw_env_line_cards_alloc()
1256 for (j = 0; j < env->max_module_count; j++) { in mlxsw_env_line_cards_alloc()
1257 module_info = &env->line_cards[i]->module_info[j]; in mlxsw_env_line_cards_alloc()
1267 kfree(env->line_cards[i]); in mlxsw_env_line_cards_alloc()
1271 static void mlxsw_env_line_cards_free(struct mlxsw_env *env) in mlxsw_env_line_cards_free() argument
1273 int i = env->num_of_slots; in mlxsw_env_line_cards_free()
[all …]

12345678910>>...20