Home
last modified time | relevance | path

Searched refs:sysinfo (Results 1 – 25 of 71) sorted by relevance

123

/linux-6.1.9/tools/perf/arch/s390/util/
Dheader.c38 FILE *sysinfo; in get_cpuid() local
56 sysinfo = fopen(SYSINFO, "r"); in get_cpuid()
57 if (sysinfo == NULL) in get_cpuid()
60 while ((read = getline(&line, &line_sz, sysinfo)) != -1) { in get_cpuid()
89 fclose(sysinfo); in get_cpuid()
100 sysinfo = fopen(SRVLVL, "r"); in get_cpuid()
101 if (sysinfo == NULL) in get_cpuid()
103 while ((read = getline(&line, &line_sz, sysinfo)) != -1) { in get_cpuid()
125 fclose(sysinfo); in get_cpuid()
/linux-6.1.9/arch/mips/cavium-octeon/
Dsetup.c334 struct cvmx_sysinfo *sysinfo = cvmx_sysinfo_get(); in octeon_get_clock_rate() local
336 return sysinfo->cpu_clock_hz; in octeon_get_clock_rate()
661 struct cvmx_sysinfo *sysinfo; in prom_init() local
676 sysinfo = cvmx_sysinfo_get(); in prom_init()
677 memset(sysinfo, 0, sizeof(*sysinfo)); in prom_init()
678 sysinfo->system_dram_size = octeon_bootinfo->dram_size << 20; in prom_init()
679 sysinfo->phy_mem_desc_addr = (u64)phys_to_virt(octeon_bootinfo->phy_mem_desc_addr); in prom_init()
684 cvmx_coremask_copy(&sysinfo->core_mask, in prom_init()
687 cvmx_coremask_set64(&sysinfo->core_mask, in prom_init()
693 cvmx_coremask_clear_core(&sysinfo->core_mask, i); in prom_init()
[all …]
Dsmp.c144 struct cvmx_sysinfo *sysinfo = cvmx_sysinfo_get(); in octeon_smp_setup() local
163 if ((id != coreid) && cvmx_coremask_is_core_set(&sysinfo->core_mask, id)) { in octeon_smp_setup()
/linux-6.1.9/arch/s390/kernel/
Dsthyi.c184 struct sysinfo_1_1_1 *sysinfo) in fill_stsi_mac() argument
190 if (stsi(sysinfo, 1, 1, 1)) in fill_stsi_mac()
193 memcpy(sctns->mac.infmtype, sysinfo->type, sizeof(sctns->mac.infmtype)); in fill_stsi_mac()
194 memcpy(sctns->mac.infmmanu, sysinfo->manufacturer, sizeof(sctns->mac.infmmanu)); in fill_stsi_mac()
195 memcpy(sctns->mac.infmpman, sysinfo->plant, sizeof(sctns->mac.infmpman)); in fill_stsi_mac()
196 memcpy(sctns->mac.infmseq, sysinfo->sequence, sizeof(sctns->mac.infmseq)); in fill_stsi_mac()
202 struct sysinfo_2_2_2 *sysinfo) in fill_stsi_par() argument
204 if (stsi(sysinfo, 2, 2, 2)) in fill_stsi_par()
207 sctns->par.infppnum = sysinfo->lpar_number; in fill_stsi_par()
208 memcpy(sctns->par.infppnam, sysinfo->name, sizeof(sctns->par.infppnam)); in fill_stsi_par()
[all …]
Dsysinfo.c27 static inline int __stsi(void *sysinfo, int fc, int sel1, int sel2, int *lvl) in __stsi() argument
42 [sysinfo] "a" (sysinfo), in __stsi()
55 int stsi(void *sysinfo, int fc, int sel1, int sel2) in stsi() argument
59 rc = __stsi(sysinfo, fc, sel1, sel2, &lvl); in stsi()
DMakefile39 obj-y += sysinfo.o lgr.o os_info.o machine_kexec.o
/linux-6.1.9/tools/testing/selftests/syscall_user_dispatch/
Dsud_test.c62 struct sysinfo info; in TEST_SIGNAL()
65 ret = sysinfo(&info); in TEST_SIGNAL()
75 sysinfo(&info); in TEST_SIGNAL()
223 struct sysinfo info; in TEST_SIGNAL()
250 sysinfo(&info); in TEST_SIGNAL()
264 struct sysinfo info; in TEST()
292 struct sysinfo info; in TEST()
306 ret = sysinfo(&info); in TEST()
Dsud_benchmark.c71 struct sysinfo info; in one_sysinfo_step()
75 sysinfo(&info); in one_sysinfo_step()
/linux-6.1.9/tools/testing/selftests/x86/
Dunwind_vdso.c59 static unsigned long sysinfo; variable
113 if (!got_sysinfo && ip == sysinfo) { in sigtrap()
141 sysinfo = getauxval(AT_SYSINFO); in main()
142 printf("\tAT_SYSINFO is 0x%lx\n", sysinfo); in main()
145 if (!dladdr((void *)sysinfo, &info)) { in main()
/linux-6.1.9/arch/mips/cavium-octeon/executive/
Dcvmx-sysinfo.c40 static struct cvmx_sysinfo sysinfo; /* system information */ variable
50 return &sysinfo; in cvmx_sysinfo_get()
DMakefile12 obj-y += cvmx-bootmem.o cvmx-l2c.o cvmx-sysinfo.o octeon-model.o
/linux-6.1.9/tools/thermal/lib/
Duptimeofday.c13 struct sysinfo info; in uptimeofday_init()
15 if (sysinfo(&info)) in uptimeofday_init()
/linux-6.1.9/include/uapi/linux/
Dsysinfo.h8 struct sysinfo { struct
/linux-6.1.9/drivers/input/touchscreen/
Dcyttsp4_core.c86 struct cyttsp4_sysinfo *si = &cd->sysinfo; in cyttsp4_load_status_regs()
166 struct cyttsp4_sysinfo *si = &cd->sysinfo; in cyttsp4_si_data_offsets()
202 struct cyttsp4_sysinfo *si = &cd->sysinfo; in cyttsp4_si_get_cydata()
281 struct cyttsp4_sysinfo *si = &cd->sysinfo; in cyttsp4_si_get_test_data()
340 struct cyttsp4_sysinfo *si = &cd->sysinfo; in cyttsp4_si_get_pcfg_data()
388 struct cyttsp4_sysinfo *si = &cd->sysinfo; in cyttsp4_si_get_opcfg_data()
488 struct cyttsp4_sysinfo *si = &cd->sysinfo; in cyttsp4_si_get_ddata()
515 struct cyttsp4_sysinfo *si = &cd->sysinfo; in cyttsp4_si_get_mdata()
542 struct cyttsp4_sysinfo *si = &cd->sysinfo; in cyttsp4_si_get_btn_data()
595 struct cyttsp4_sysinfo *si = &cd->sysinfo; in cyttsp4_si_get_op_data_ptrs()
[all …]
Dcyttsp4_core.h331 struct cyttsp4_sysinfo sysinfo; member
/linux-6.1.9/tools/testing/selftests/size/
Dget_size.c87 struct sysinfo info; in _start()
/linux-6.1.9/arch/s390/include/asm/
Dsysinfo.h187 int stsi(void *sysinfo, int fc, int sel1, int sel2);
/linux-6.1.9/arch/s390/appldata/
Dappldata_mem.c78 static struct sysinfo val; in appldata_get_mem_data()
/linux-6.1.9/include/linux/
Dswap.h174 struct sysinfo;
491 extern void si_swapinfo(struct sysinfo *);
/linux-6.1.9/fs/proc/
Dmeminfo.c34 struct sysinfo i; in meminfo_proc_show()
/linux-6.1.9/kernel/
Dsys.c2655 static int do_sysinfo(struct sysinfo *info) in do_sysinfo()
2661 memset(info, 0, sizeof(struct sysinfo)); in do_sysinfo()
2718 SYSCALL_DEFINE1(sysinfo, struct sysinfo __user *, info) in SYSCALL_DEFINE1() argument
2720 struct sysinfo val; in SYSCALL_DEFINE1()
2724 if (copy_to_user(info, &val, sizeof(struct sysinfo))) in SYSCALL_DEFINE1()
2748 COMPAT_SYSCALL_DEFINE1(sysinfo, struct compat_sysinfo __user *, info) in COMPAT_SYSCALL_DEFINE1() argument
2750 struct sysinfo s; in COMPAT_SYSCALL_DEFINE1()
/linux-6.1.9/drivers/gpu/drm/ttm/
Dttm_device.c70 struct sysinfo si; in ttm_global_init()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx4/
Dprofile.c85 struct sysinfo si; in mlx4_make_profile()
/linux-6.1.9/tools/perf/arch/mips/entry/syscalls/
Dsyscall_n64.tbl107 97 n64 sysinfo sys_sysinfo
/linux-6.1.9/drivers/gpu/drm/amd/amdgpu/
Damdgpu_amdkfd.c48 struct sysinfo si; in amdgpu_amdkfd_init()

123