Home
last modified time | relevance | path

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

12345678910>>...17

/linux/drivers/iio/adc/
A Denvelope-detector.c86 env->comp = 0; in envelope_detector_comp_latch()
142 env->level = (env->high + env->low + !env->invert) / 2; in envelope_detector_setup_compare()
144 if (env->high == env->low + 1) { in envelope_detector_setup_compare()
150 ret = iio_write_channel_raw(env->dac, env->invert ? 0 : env->dac_max); in envelope_detector_setup_compare()
158 ret = iio_write_channel_raw(env->dac, env->level); in envelope_detector_setup_compare()
178 if (!envelope_detector_comp_latch(env) ^ !env->invert) in envelope_detector_timeout()
179 env->low = env->level; in envelope_detector_timeout()
181 env->high = env->level; in envelope_detector_timeout()
207 env->high = env->dac_max + env->invert; in envelope_detector_read_raw()
208 env->low = -1 + env->invert; in envelope_detector_read_raw()
[all …]
/linux/tools/perf/util/
A Denv.c189 zfree(&env->arch); in perf_env__exit()
198 zfree(&env->cpu); in perf_env__exit()
300 env->cpu = calloc(nr_cpus, sizeof(env->cpu[0])); in perf_env__read_cpu_topology_map()
361 free(env->cpuid); in perf_env__read_cpuid()
372 if (env->arch) in perf_env__read_arch()
391 return env && !perf_env__read_arch(env) ? env->arch : "unknown"; in perf_env__raw_arch()
396 return env && !perf_env__read_nr_cpus_avail(env) ? env->nr_cpus_avail : 0; in perf_env__nr_cpus_avail()
440 if (!env || !env->arch) { /* Assume local operation */ in perf_env__arch()
455 if (!env || !env->cpuid) { /* Assume local operation */ in perf_env__cpuid()
468 if (!env || !env->nr_pmu_mappings) { /* Assume local operation */ in perf_env__nr_pmu_mappings()
[all …]
A Denv.h145 void perf_env__exit(struct perf_env *env);
147 int perf_env__kernel_is_64_bit(struct perf_env *env);
151 int perf_env__read_cpuid(struct perf_env *env);
152 int perf_env__read_pmu_mappings(struct perf_env *env);
153 int perf_env__nr_pmu_mappings(struct perf_env *env);
160 const char *perf_env__arch(struct perf_env *env);
161 const char *perf_env__cpuid(struct perf_env *env);
162 const char *perf_env__raw_arch(struct perf_env *env);
163 int perf_env__nr_cpus_avail(struct perf_env *env);
165 void perf_env__init(struct perf_env *env);
[all …]
A Dheader.c990 struct perf_env *env = &ff->ph->env; in write_bpf_prog_info() local
1032 struct perf_env *env = &ff->ph->env; in write_bpf_btf() local
1724 struct perf_env *env = &ff->ph->env; in print_bpf_prog_info() local
1748 struct perf_env *env = &ff->ph->env; in print_bpf_btf() local
2000 ff->ph->env.comp_level, ff->ph->env.comp_ratio); in print_compressed()
2482 ph->env.cpu = calloc(cpu_nr, sizeof(*ph->env.cpu)); in process_cpu_topology()
2540 if (ph->env.arch && (!strncmp(ph->env.arch, "s390", 4) in process_cpu_topology()
3024 struct perf_env *env = &ff->ph->env; in process_bpf_prog_info() local
3092 struct perf_env *env = &ff->ph->env; in process_bpf_btf() local
4014 session->evlist->env = &header->env; in perf_session__read_header()
[all …]
A Dbpf-event.c78 struct perf_env *env = machine->env; in machine__process_bpf_event_load() local
84 if (env == NULL) in machine__process_bpf_event_load()
101 map->dso->bpf_prog.env = env; in machine__process_bpf_event_load()
149 if (!perf_env__insert_btf(env, node)) { in perf_env__fetch_btf()
213 struct perf_env *env; in perf_event__synthesize_one_bpf_prog() local
222 env = session->data ? &session->header.env : &perf_env; in perf_event__synthesize_one_bpf_prog()
273 perf_env__fetch_btf(env, info->btf_id, btf); in perf_event__synthesize_one_bpf_prog()
528 perf_env__fetch_btf(env, btf_id, btf); in perf_env__add_bpf_info()
537 struct perf_env *env = data; in bpf_event__sb_cb() local
544 perf_env__add_bpf_info(env, event->bpf.id); in bpf_event__sb_cb()
[all …]
A Ddata-convert-json.c247 output_json_key_string(out, true, 2, "hostname", header->env.hostname); in output_headers()
249 output_json_key_string(out, true, 2, "arch", header->env.arch); in output_headers()
251 output_json_key_string(out, true, 2, "cpu-desc", header->env.cpu_desc); in output_headers()
252 output_json_key_string(out, true, 2, "cpuid", header->env.cpuid); in output_headers()
256 if (header->env.clock.enabled) { in output_headers()
258 "%u", header->env.clock.clockid); in output_headers()
260 "%" PRIu64, header->env.clock.clockid_ns); in output_headers()
262 "%" PRIu64, header->env.clock.tod_ns); in output_headers()
268 for (i = 0; i < header->env.nr_cmdline; i++) { in output_headers()
270 output_json_string(c->out, header->env.cmdline_argv[i]); in output_headers()
[all …]
/linux/tools/testing/selftests/bpf/
A Dtest_progs.c116 env.log_buf[env.log_cnt] = '\0'; in dump_test_log()
117 fprintf(env.stdout, "%s", env.log_buf); in dump_test_log()
118 if (env.log_buf[env.log_cnt - 1] != '\n') in dump_test_log()
226 env.test->old_error_cnt = env.test->error_cnt; in test__start_subtest()
254 env.test->test_num, env.test->test_name); in test__join_cgroup()
724 stdout = open_memstream(&env.log_buf, &env.log_cnt); in stdio_hijack()
1202 env.succ_cnt, env.sub_succ_cnt, env.skip_cnt, env.fail_cnt); in server_main()
1387 if (env.get_test_cnt || env.list_test_names) in main()
1488 env.succ_cnt, env.sub_succ_cnt, env.skip_cnt, env.fail_cnt); in main()
1494 if (!env.list_test_names && env.has_testmod) in main()
[all …]
A Dbench.c16 struct env env = { variable
187 env.verbose = true; in parse_arg()
190 env.list = true; in parse_arg()
221 env.affinity = true; in parse_arg()
263 if (!env.list && !env.bench_name) { in parse_cmdline_args()
423 state.results = calloc(env.duration_sec + env.warmup_sec + 2, in setup_benchmark()
441 if (env.affinity) in setup_benchmark()
450 env.prod_cpus.next_cpu = env.cons_cpus.next_cpu; in setup_benchmark()
460 if (env.affinity) in setup_benchmark()
480 if (iter == env.duration_sec + env.warmup_sec) { in collect_measurements()
[all …]
/linux/kernel/bpf/
A Dverifier.c1639 sort(env->subprog_info, env->subprog_cnt, in add_subprog()
3089 verbose_linfo(env, env->insn_idx, "; "); in check_stack_read_fixed_off()
4796 env, in check_helper_mem_access()
6852 return &env->insn_aux_data[env->insn_idx]; in cur_aux()
7065 env->insn_aux_data[env->insn_idx].seen = env->pass_cnt; in sanitize_mark_insn_seen()
9783 if (env->cfg.cur_stack >= env->prog->len) in push_insn()
11133 env->prev_insn_idx, env->insn_idx, in do_check()
11151 verbose(env, "%d:", env->insn_idx); in do_check()
11154 env->prev_insn_idx, env->insn_idx, in do_check()
11168 verbose_linfo(env, env->insn_idx, "; "); in do_check()
[all …]
A Dbtf.c1599 kfree(env); in btf_verifier_env_free()
1652 v = &env->stack[env->top_stack++]; in env_stack_push()
1670 env->stack[env->top_stack - 1].next_member = next_member; in env_stack_set_next_member()
1677 u32 type_id = env->stack[--(env->top_stack)].type_id; in env_stack_pop_resolved()
1688 return env->top_stack ? &env->stack[env->top_stack - 1] : NULL; in env_stack_peak()
4449 env = kzalloc(sizeof(*env), GFP_KERNEL | __GFP_NOWARN); in btf_parse()
4450 if (!env) in btf_parse()
4673 env = kzalloc(sizeof(*env), GFP_KERNEL | __GFP_NOWARN); in BTF_ID()
4674 if (!env) in BTF_ID()
4749 env = kzalloc(sizeof(*env), GFP_KERNEL | __GFP_NOWARN); in btf_parse_module()
[all …]
/linux/drivers/net/ethernet/netronome/nfp/bpf/
A Dverifier.c16 #define pr_vlog(env, fmt, ...) \ argument
171 struct bpf_verifier_env *env, in nfp_bpf_check_helper_call() argument
261 reg1 = cur_regs(env) + BPF_REG_4; in nfp_bpf_check_helper_call()
312 struct bpf_verifier_env *env) in nfp_bpf_check_exit() argument
346 struct bpf_verifier_env *env) in nfp_bpf_check_stack_access() argument
503 struct bpf_verifier_env *env) in nfp_bpf_check_store() argument
527 struct bpf_verifier_env *env) in nfp_bpf_check_atomic() argument
557 struct bpf_verifier_env *env) in nfp_bpf_check_alu() argument
560 cur_regs(env) + meta->insn.src_reg; in nfp_bpf_check_alu()
562 cur_regs(env) + meta->insn.dst_reg; in nfp_bpf_check_alu()
[all …]
/linux/lib/
A Dkobject_uevent.c128 env = kzalloc(sizeof(*env), GFP_KERNEL); in kobject_action_args()
129 if (!env) in kobject_action_args()
254 int buffer_size = sizeof(env->buf) - env->buflen; in init_uevent_argv()
265 env->argv[1] = &env->buf[env->buflen]; in init_uevent_argv()
298 skb_put_data(skb, env->buf, env->buflen); in alloc_uevent_skb()
435 memmove(env->envp[i], env->envp[i + 1], in zap_modalias_env()
439 env->envp[j] = env->envp[j + 1] - len; in zap_modalias_env()
659 if (env->envp_idx >= ARRAY_SIZE(env->envp)) { in add_uevent_var()
665 len = vsnprintf(&env->buf[env->buflen], in add_uevent_var()
666 sizeof(env->buf) - env->buflen, in add_uevent_var()
[all …]
/linux/arch/x86/kernel/fpu/
A Dregset.c263 env->fip = fxsave->rip; in __convert_from_fxsr()
264 env->foo = fxsave->rdp; in __convert_from_fxsr()
275 env->fos |= 0xffff0000; in __convert_from_fxsr()
277 env->fip = fxsave->fip; in __convert_from_fxsr()
279 env->foo = fxsave->foo; in __convert_from_fxsr()
280 env->fos = fxsave->fos; in __convert_from_fxsr()
301 fxsave->cwd = env->cwd; in convert_to_fxsr()
302 fxsave->swd = env->swd; in convert_to_fxsr()
306 fxsave->rip = env->fip; in convert_to_fxsr()
348 return membuf_write(&to, &env, sizeof(env)); in fpregs_get()
[all …]
/linux/tools/perf/arch/
A Dcommon.c97 char *env = getenv("PATH"); in lookup_path() local
99 if (!env) in lookup_path()
102 env = strdup(env); in lookup_path()
103 if (!env) in lookup_path()
106 path = strtok_r(env, ":", &tmp); in lookup_path()
115 free(env); in lookup_path()
136 const char *arch = perf_env__arch(env), *cross_env; in perf_env__lookup_binutils_path()
211 if (env->arch == NULL) in perf_env__lookup_objdump()
214 return perf_env__lookup_binutils_path(env, "objdump", path); in perf_env__lookup_objdump()
222 bool perf_env__single_address_space(struct perf_env *env) in perf_env__single_address_space() argument
[all …]
/linux/kernel/sched/
A Dfair.c1629 if (env->best_cpu != -1 && env->best_cpu != env->dst_cpu) { in task_numa_assign()
1641 env->best_cpu = env->dst_cpu; in task_numa_assign()
1969 dist = env.dist = node_distance(env.src_nid, env.dst_nid); in task_numa_migrate()
1972 update_numa_stats(&env, &env.src_stats, env.src_nid, false); in task_numa_migrate()
1975 update_numa_stats(&env, &env.dst_stats, env.dst_nid, true); in task_numa_migrate()
2008 update_numa_stats(&env, &env.dst_stats, env.dst_nid, true); in task_numa_migrate()
2046 ret = migrate_swap(p, env.best_task, env.best_cpu, env.src_cpu); in task_numa_migrate()
2050 trace_sched_stick_numa(p, env.src_cpu, env.best_task, env.best_cpu); in task_numa_migrate()
7921 if (env->loop > env->loop_max) in detach_tasks()
7925 if (env->loop > env->loop_break) { in detach_tasks()
[all …]
/linux/drivers/net/wireless/realtek/rtw89/
A Dphy.c2118 i + 1, env->ifs_clm_th_l[i], env->ifs_clm_th_h[i]); in rtw89_phy_ifs_clm_set_th_reg()
2232 env->ifs_clm_tx_ratio, env->ifs_clm_edcca_excl_cca_ratio); in rtw89_phy_ifs_clm_get_utility()
2235 env->ifs_clm_cck_fa_ratio, env->ifs_clm_ofdm_fa_ratio); in rtw89_phy_ifs_clm_get_utility()
2238 env->ifs_clm_cck_fa_permil, env->ifs_clm_ofdm_fa_permil); in rtw89_phy_ifs_clm_get_utility()
2247 i + 1, env->ifs_clm_his[i], env->ifs_clm_ifs_avg[i], in rtw89_phy_ifs_clm_get_utility()
2315 env->ifs_clm_tx, env->ifs_clm_edcca_excl_cca); in rtw89_phy_ifs_clm_get_result()
2318 env->ifs_clm_cckfa, env->ifs_clm_ofdmfa); in rtw89_phy_ifs_clm_get_result()
2321 env->ifs_clm_cckcca_excl_fa, env->ifs_clm_ofdmcca_excl_fa); in rtw89_phy_ifs_clm_get_result()
2327 env->ifs_clm_avg[i], env->ifs_clm_cca[i]); in rtw89_phy_ifs_clm_get_result()
2656 env->ifs_clm_cck_fa_permil, env->ifs_clm_ofdm_fa_permil, in rtw89_phy_dig_igi_offset_by_env()
[all …]
/linux/arch/mips/alchemy/common/
A Dprom.c66 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/security/tomoyo/
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/Documentation/sphinx/
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 = env.srcdir + "/" + env.docname + ":" + str(self.lineno)
[all …]
/linux/tools/objtool/
A Dbuiltin-check.c54 char *env; in cmd_parse_options() local
57 env = getenv("OBJTOOL_ARGS"); in cmd_parse_options()
58 if (env) { in cmd_parse_options()
61 envv[envc++] = env; in cmd_parse_options()
62 env = strchr(env, ' '); in cmd_parse_options()
63 if (!env) in cmd_parse_options()
65 *env = '\0'; in cmd_parse_options()
66 env++; in cmd_parse_options()
/linux/drivers/of/
A Ddevice.c338 add_uevent_var(env, "OF_NAME=%pOFn", dev->of_node); in of_device_uevent()
339 add_uevent_var(env, "OF_FULLNAME=%pOF", dev->of_node); in of_device_uevent()
342 add_uevent_var(env, "OF_TYPE=%s", type); in of_device_uevent()
348 add_uevent_var(env, "OF_COMPATIBLE_%d=%s", seen, compat); in of_device_uevent()
351 add_uevent_var(env, "OF_COMPATIBLE_N=%d", seen); in of_device_uevent()
357 add_uevent_var(env, "OF_ALIAS_%d=%s", seen, in of_device_uevent()
373 if (add_uevent_var(env, "MODALIAS=")) in of_device_uevent_modalias()
376 sl = of_device_get_modalias(dev, &env->buf[env->buflen-1], in of_device_uevent_modalias()
377 sizeof(env->buf) - env->buflen); in of_device_uevent_modalias()
378 if (sl >= (sizeof(env->buf) - env->buflen)) in of_device_uevent_modalias()
[all …]
/linux/tools/perf/tests/
A Dtopology.c107 if (!session->header.env.cpu in check_cpu_topology()
108 && strncmp(session->header.env.arch, "s390", 4) in check_cpu_topology()
109 && strncmp(session->header.env.arch, "aarch64", 7)) in check_cpu_topology()
114 for (i = 0; i < session->header.env.nr_cpus_avail; i++) { in check_cpu_topology()
118 session->header.env.cpu[i].core_id, in check_cpu_topology()
119 session->header.env.cpu[i].socket_id); in check_cpu_topology()
126 session->header.env.cpu[map->map[i]].core_id == id.core); in check_cpu_topology()
129 session->header.env.cpu[map->map[i]].socket_id == id.socket); in check_cpu_topology()
132 session->header.env.cpu[map->map[i]].die_id == id.die); in check_cpu_topology()
141 session->header.env.cpu[map->map[i]].socket_id == id.socket); in check_cpu_topology()
[all …]
/linux/tools/bpf/runqslower/
A Drunqslower.c14 struct env { struct
18 } env = { variable
52 env.verbose = true; in parse_arg()
61 env.pid = pid; in parse_arg()
75 env.min_us = min_us; in parse_arg()
86 if (level == LIBBPF_DEBUG && !env.verbose) in libbpf_print_fn()
150 obj->rodata->targ_pid = env.pid; in main()
151 obj->rodata->min_us = env.min_us; in main()
165 printf("Tracing run queue latency higher than %llu us\n", env.min_us); in main()
/linux/sound/aoa/soundbus/
A Dcore.c58 static int soundbus_uevent(struct device *dev, struct kobj_uevent_env *env) in soundbus_uevent() argument
76 retval = add_uevent_var(env, "OF_NAME=%pOFn", of->dev.of_node); in soundbus_uevent()
80 retval = add_uevent_var(env, "OF_TYPE=%s", of_node_get_device_type(of->dev.of_node)); in soundbus_uevent()
90 int tmp = env->buflen; in soundbus_uevent()
91 retval = add_uevent_var(env, "OF_COMPATIBLE_%d=%s", seen, compat); in soundbus_uevent()
94 compat += env->buflen - tmp; in soundbus_uevent()
95 cplen -= env->buflen - tmp; in soundbus_uevent()
99 retval = add_uevent_var(env, "OF_COMPATIBLE_N=%d", seen); in soundbus_uevent()
102 retval = add_uevent_var(env, "MODALIAS=%s", soundbus_dev->modalias); in soundbus_uevent()
/linux/tools/perf/arch/x86/util/
A Devsel.c15 struct perf_env env = { .total_mem = 0, } ; in arch_evsel__fixup_new_cycles() local
17 if (!perf_env__cpuid(&env)) in arch_evsel__fixup_new_cycles()
27 if (env.cpuid && strstarts(env.cpuid, "AuthenticAMD")) in arch_evsel__fixup_new_cycles()
30 free(env.cpuid); in arch_evsel__fixup_new_cycles()

Completed in 462 milliseconds

12345678910>>...17