Home
last modified time | relevance | path

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

123

/linux-6.6.21/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.6.21/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.c145 struct cvmx_sysinfo *sysinfo = cvmx_sysinfo_get(); in octeon_smp_setup() local
164 if ((id != coreid) && cvmx_coremask_is_core_set(&sysinfo->core_mask, id)) { in octeon_smp_setup()
/linux-6.6.21/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()
DMakefile40 obj-y += sysinfo.o lgr.o os_info.o
/linux-6.6.21/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.6.21/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.6.21/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.6.21/tools/thermal/lib/ !
Duptimeofday.c13 struct sysinfo info; in uptimeofday_init()
15 if (sysinfo(&info)) in uptimeofday_init()
/linux-6.6.21/drivers/input/touchscreen/ !
Dcyttsp5.c199 struct cyttsp5_sysinfo sysinfo; member
280 struct cyttsp5_sysinfo *si = &ts->sysinfo; in cyttsp5_get_touch_record()
294 struct cyttsp5_sysinfo *si = &ts->sysinfo; in cyttsp5_get_mt_touches()
347 struct cyttsp5_sysinfo *si = &ts->sysinfo; in cyttsp5_mt_attention()
378 struct cyttsp5_sysinfo *si = &ts->sysinfo; in cyttsp5_setup_input_device()
413 struct cyttsp5_sysinfo *si = &ts->sysinfo; in cyttsp5_parse_dt_key_code()
428 struct cyttsp5_sysinfo *si = &ts->sysinfo; in cyttsp5_btn_attention()
515 struct cyttsp5_sysinfo *si = &ts->sysinfo; in cyttsp5_si_get_btn_data()
524 struct cyttsp5_sensing_conf_data *scd = &ts->sysinfo.sensing_conf_data; in cyttsp5_get_sysinfo_regs()
755 struct cyttsp5_sysinfo *si = &ts->sysinfo; in cyttsp5_fill_all_touch()
[all …]
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 …]
/linux-6.6.21/include/uapi/linux/ !
Dsysinfo.h8 struct sysinfo { struct
/linux-6.6.21/tools/testing/selftests/cgroup/ !
Dtest_zswap.c155 struct sysinfo sys_info; in test_no_kmem_bypass()
162 if (sysinfo(&sys_info) != 0) in test_no_kmem_bypass()
/linux-6.6.21/tools/testing/selftests/size/ !
Dget_size.c87 struct sysinfo info; in _start()
/linux-6.6.21/arch/s390/include/asm/ !
Dsysinfo.h187 int stsi(void *sysinfo, int fc, int sel1, int sel2);
/linux-6.6.21/arch/s390/appldata/ !
Dappldata_mem.c78 static struct sysinfo val; in appldata_get_mem_data()
/linux-6.6.21/mm/ !
Dshow_mem.c78 void si_meminfo(struct sysinfo *val) in si_meminfo()
92 void si_meminfo_node(struct sysinfo *val, int nid) in si_meminfo_node()
/linux-6.6.21/include/linux/ !
Dswap.h181 struct sysinfo;
472 extern void si_swapinfo(struct sysinfo *);
/linux-6.6.21/fs/proc/ !
Dmeminfo.c36 struct sysinfo i; in meminfo_proc_show()
/linux-6.6.21/kernel/ !
Dsys.c2771 static int do_sysinfo(struct sysinfo *info) in do_sysinfo()
2777 memset(info, 0, sizeof(struct sysinfo)); in do_sysinfo()
2834 SYSCALL_DEFINE1(sysinfo, struct sysinfo __user *, info) in SYSCALL_DEFINE1() argument
2836 struct sysinfo val; in SYSCALL_DEFINE1()
2840 if (copy_to_user(info, &val, sizeof(struct sysinfo))) in SYSCALL_DEFINE1()
2864 COMPAT_SYSCALL_DEFINE1(sysinfo, struct compat_sysinfo __user *, info) in COMPAT_SYSCALL_DEFINE1() argument
2866 struct sysinfo s; in COMPAT_SYSCALL_DEFINE1()
/linux-6.6.21/net/handshake/ !
Dnetlink.c177 struct sysinfo si; in handshake_net_init()
/linux-6.6.21/drivers/gpu/drm/ttm/ !
Dttm_device.c70 struct sysinfo si; in ttm_global_init()

123