/kernel/linux/linux-5.10/tools/perf/util/ |
H A D | hist.c | 315 u64 prev_period = he->stat.period; in hists__decay_entry() 321 he_stat__decay(&he->stat); in hists__decay_entry() 326 diff = prev_period - he->stat.period; in hists__decay_entry() 346 return he->stat.period == 0; in hists__decay_entry() 435 he->stat_acc = malloc(sizeof(he->stat)); in hist_entry__init() 438 memcpy(he->stat_acc, &he->stat, sizeof(he->stat)); in hist_entry__init() 440 memset(&he->stat, 0, sizeof(he->stat)); in hist_entry__init() 588 u64 period = entry->stat in hists__findnew_entry() [all...] |
H A D | stat-shadow.c | 4 #include "stat.h" 31 struct runtime_stat *stat; member 51 * are cpu/type/ctx/stat (evsel is NULL). For generic metrics in saved_value_cmp() 52 * case, the keys are still evsel/cpu (type/ctx/stat are 0 or NULL). in saved_value_cmp() 61 if (a->stat == b->stat) in saved_value_cmp() 64 if ((char *)a->stat < (char *)b->stat) in saved_value_cmp() 112 .stat = st, in saved_value_lookup() 396 * perf stat does in perf_stat__collect_metric_expr() 725 td_metric_ratio(int ctx, int cpu, enum stat_type type, struct runtime_stat *stat) td_metric_ratio() argument 745 full_td(int ctx, int cpu, struct runtime_stat *stat) full_td() argument [all...] |
/kernel/linux/linux-5.10/drivers/media/dvb-frontends/ |
H A D | stv0910.c | 1287 int stat = 0; in set_parameters() local 1295 stat = start(state, p); in set_parameters() 1296 return stat; in set_parameters() 1327 p->cnr.stat[0].scale = FE_SCALE_DECIBEL; in read_snr() 1328 p->cnr.stat[0].svalue = 100 * snrval; /* fix scale */ in read_snr() 1330 p->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in read_snr() 1344 p->pre_bit_error.stat[0].scale = FE_SCALE_COUNTER; in read_ber() 1345 p->pre_bit_error.stat[0].uvalue = n; in read_ber() 1346 p->pre_bit_count.stat[0].scale = FE_SCALE_COUNTER; in read_ber() 1347 p->pre_bit_count.stat[ in read_ber() 1665 u8 stat; wait_dis() local [all...] |
/kernel/linux/linux-6.6/drivers/media/dvb-frontends/ |
H A D | stv0910.c | 1278 int stat = 0; in set_parameters() local 1286 stat = start(state, p); in set_parameters() 1287 return stat; in set_parameters() 1318 p->cnr.stat[0].scale = FE_SCALE_DECIBEL; in read_snr() 1319 p->cnr.stat[0].svalue = 100 * snrval; /* fix scale */ in read_snr() 1321 p->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in read_snr() 1335 p->pre_bit_error.stat[0].scale = FE_SCALE_COUNTER; in read_ber() 1336 p->pre_bit_error.stat[0].uvalue = n; in read_ber() 1337 p->pre_bit_count.stat[0].scale = FE_SCALE_COUNTER; in read_ber() 1338 p->pre_bit_count.stat[ in read_ber() 1656 u8 stat; wait_dis() local [all...] |
/kernel/linux/linux-5.10/drivers/media/dvb-frontends/drx39xyj/ |
H A D | drxj.c | 1913 int stat = -EIO; in drxj_dap_read_aud_reg16() local 1917 stat = -EINVAL; in drxj_dap_read_aud_reg16() 1928 stat = drxj_dap_read_modify_write_reg16(dev_addr, in drxj_dap_read_aud_reg16() 1933 if (stat != 0) in drxj_dap_read_aud_reg16() 1939 stat = -EIO; in drxj_dap_read_aud_reg16() 1950 if (stat == 0) { in drxj_dap_read_aud_reg16() 1955 stat = drxj_dap_read_reg16(dev_addr, in drxj_dap_read_aud_reg16() 1958 if (stat != 0) in drxj_dap_read_aud_reg16() 1964 stat = -EIO; in drxj_dap_read_aud_reg16() 1971 if (stat in drxj_dap_read_aud_reg16() 1985 int stat = -EIO; drxj_dap_read_reg16() local 2016 int stat = -EIO; drxj_dap_write_aud_reg16() local 2063 int stat = -EIO; drxj_dap_write_reg16() local [all...] |
/kernel/linux/linux-6.6/drivers/media/dvb-frontends/drx39xyj/ |
H A D | drxj.c | 1913 int stat = -EIO; in drxj_dap_read_aud_reg16() local 1917 stat = -EINVAL; in drxj_dap_read_aud_reg16() 1928 stat = drxj_dap_read_modify_write_reg16(dev_addr, in drxj_dap_read_aud_reg16() 1933 if (stat != 0) in drxj_dap_read_aud_reg16() 1939 stat = -EIO; in drxj_dap_read_aud_reg16() 1950 if (stat == 0) { in drxj_dap_read_aud_reg16() 1955 stat = drxj_dap_read_reg16(dev_addr, in drxj_dap_read_aud_reg16() 1958 if (stat != 0) in drxj_dap_read_aud_reg16() 1964 stat = -EIO; in drxj_dap_read_aud_reg16() 1971 if (stat in drxj_dap_read_aud_reg16() 1985 int stat = -EIO; drxj_dap_read_reg16() local 2016 int stat = -EIO; drxj_dap_write_aud_reg16() local 2063 int stat = -EIO; drxj_dap_write_reg16() local [all...] |
/kernel/linux/linux-6.6/tools/perf/util/ |
H A D | hist.c | 7 #include "kvm-stat.h" 325 u64 prev_period = he->stat.period; in hists__decay_entry() 331 he_stat__decay(&he->stat); in hists__decay_entry() 336 diff = prev_period - he->stat.period; in hists__decay_entry() 356 return he->stat.period == 0; in hists__decay_entry() 445 he->stat_acc = malloc(sizeof(he->stat)); in hist_entry__init() 448 memcpy(he->stat_acc, &he->stat, sizeof(he->stat)); in hist_entry__init() 450 memset(&he->stat, 0, sizeof(he->stat)); in hist_entry__init() [all...] |
/kernel/linux/linux-6.6/arch/powerpc/platforms/pseries/ |
H A D | papr_scm.c | 122 /* length of the stat buffer as expected by phyp */ 316 /* Check if the error was due to an unknown stat-id */ in drc_pmem_query_stats() 334 /* Handle case where stat buffer size was requested */ in drc_pmem_query_stats() 371 struct papr_scm_perf_stat *stat; in papr_scm_pmu_get_value() local 380 /* Allocate request buffer enough to hold single performance stat */ in papr_scm_pmu_get_value() 391 stat = &stats->scm_statistic[0]; in papr_scm_pmu_get_value() 392 memcpy(&stat->stat_id, in papr_scm_pmu_get_value() 394 sizeof(stat->stat_id)); in papr_scm_pmu_get_value() 395 stat->stat_val = 0; in papr_scm_pmu_get_value() 403 *count = be64_to_cpu(stat in papr_scm_pmu_get_value() 769 struct papr_scm_perf_stat *stat; papr_pdsm_fuel_gauge() local 1115 struct papr_scm_perf_stat *stat; perf_stats_show() local [all...] |
/kernel/liteos_m/components/fs/vfs/ |
H A D | vfs_fs.c | 690 int stat(const char *path, struct stat *stat) in stat() argument 700 if (stat == NULL) { in stat() 717 if (mp->mFs->fsFops->stat != NULL) { in stat() 718 ret = mp->mFs->fsFops->stat(mp, pathInMp, stat); in stat() 727 FUNC_ALIAS(stat, _stat, (const char *path, struct stat *stat), in [all...] |
/third_party/ltp/testcases/kernel/syscalls/symlink/ |
H A D | symlink01.c | 48 * TEST IDENTIFIER : stat04 (stat) 147 * For stat 215 #include <sys/stat.h> /* stat(2) and lstat(2) system calls */ 285 "Getting stat info about object file through symbolic link file is ok", 461 STAT, "stat", 3, &test_objects[9], 504 struct stat asymlink, statter; 765 else if ((stat(path3, &statter) == -1) && (errno == ENOENT)) { in ck_both() 768 "stat(2) Failure when accessing %s object file ", in ck_both() 771 } else if ((stat(path in ck_both() [all...] |
/kernel/linux/linux-5.10/fs/btrfs/ |
H A D | scrub.c | 181 struct btrfs_scrub_progress stat; member 850 ++sctx->stat.super_errors; in scrub_handle_errored_block() 884 sctx->stat.malloc_errors++; in scrub_handle_errored_block() 885 sctx->stat.read_errors++; in scrub_handle_errored_block() 886 sctx->stat.uncorrectable_errors++; in scrub_handle_errored_block() 924 sctx->stat.malloc_errors++; in scrub_handle_errored_block() 925 sctx->stat.read_errors++; in scrub_handle_errored_block() 926 sctx->stat.uncorrectable_errors++; in scrub_handle_errored_block() 936 sctx->stat.read_errors++; in scrub_handle_errored_block() 937 sctx->stat in scrub_handle_errored_block() [all...] |
/kernel/linux/linux-5.10/drivers/tty/serial/ |
H A D | mxs-auart.c | 646 u32 stat; in mxs_auart_rx_char() local 650 stat = mxs_read(s, REG_STAT); in mxs_auart_rx_char() 655 if (stat & AUART_STAT_BERR) { in mxs_auart_rx_char() 659 } else if (stat & AUART_STAT_PERR) { in mxs_auart_rx_char() 661 } else if (stat & AUART_STAT_FERR) { in mxs_auart_rx_char() 668 stat &= s->port.read_status_mask; in mxs_auart_rx_char() 670 if (stat & AUART_STAT_BERR) { in mxs_auart_rx_char() 672 } else if (stat & AUART_STAT_PERR) in mxs_auart_rx_char() 674 else if (stat & AUART_STAT_FERR) in mxs_auart_rx_char() 677 if (stat in mxs_auart_rx_char() 690 u32 stat = 0; mxs_auart_rx_chars() local 776 u32 stat = mxs_read(s, REG_STAT); mxs_auart_get_mctrl() local 849 u32 stat; dma_rx_callback() local 1128 u32 stat = mxs_read(s, REG_STAT); mxs_auart_irq_handle() local [all...] |
/third_party/libfuse/test/ |
H A D | test_syscalls.c | 16 #include <sys/stat.h> 57 struct stat stat; member 128 static int st_check_size(struct stat *st, int len) in st_check_size() 140 struct stat stbuf; in check_size() 141 int res = stat(path, &stbuf); in check_size() 143 PERROR("stat"); in check_size() 151 this_test->stat.st_size = len; in check_testfile_size() 155 static int st_check_type(struct stat *st, mode_t type) in st_check_type() 166 struct stat stbu in check_type() [all...] |
/kernel/linux/linux-5.10/drivers/devfreq/ |
H A D | tegra30-devfreq.c | 646 struct devfreq_dev_status *stat) in tegra_devfreq_get_dev_status() 655 stat->private_data = tegra; in tegra_devfreq_get_dev_status() 658 stat->current_frequency = cur_freq; in tegra_devfreq_get_dev_status() 663 stat->busy_time = device_readl(actmon_dev, ACTMON_DEV_AVG_COUNT); in tegra_devfreq_get_dev_status() 666 stat->busy_time *= 100 / BUS_SATURATION_RATIO; in tegra_devfreq_get_dev_status() 669 stat->total_time = tegra->devfreq->profile->polling_ms * cur_freq; in tegra_devfreq_get_dev_status() 671 stat->busy_time = min(stat->busy_time, stat->total_time); in tegra_devfreq_get_dev_status() 685 struct devfreq_dev_status *stat; in tegra_governor_get_target() local 645 tegra_devfreq_get_dev_status(struct device *dev, struct devfreq_dev_status *stat) tegra_devfreq_get_dev_status() argument [all...] |
/kernel/linux/linux-5.10/drivers/firmware/ |
H A D | arm_scpi.c | 563 int stat; in scpi_clk_set_val() local 570 &stat, sizeof(stat)); in scpi_clk_set_val() 575 int stat; in legacy_scpi_clk_set_val() local 582 &stat, sizeof(stat)); in legacy_scpi_clk_set_val() 598 int stat; in scpi_dvfs_set_idx() local 602 &stat, sizeof(stat)); in scpi_dvfs_set_idx() 772 int stat; in scpi_device_set_power_state() local [all...] |
/kernel/linux/linux-6.6/drivers/regulator/ |
H A D | bd9576-regulator.c | 807 struct regulator_err_state *stat; in bd9576_uvd_handler() local 810 stat = &rid->states[i]; in bd9576_uvd_handler() 812 stat->notifs = rdata->uvd_notif; in bd9576_uvd_handler() 813 stat->errors = rdata->uvd_err; in bd9576_uvd_handler() 844 struct regulator_err_state *stat; in bd9576_ovd_handler() local 847 stat = &rid->states[i]; in bd9576_ovd_handler() 849 stat->notifs = rdata->ovd_notif; in bd9576_ovd_handler() 850 stat->errors = rdata->ovd_err; in bd9576_ovd_handler() 881 struct regulator_err_state *stat; in bd9576_thermal_handler() local 884 stat in bd9576_thermal_handler() [all...] |
/kernel/linux/linux-6.6/drivers/firmware/ |
H A D | arm_scpi.c | 563 int stat; in scpi_clk_set_val() local 570 &stat, sizeof(stat)); in scpi_clk_set_val() 575 int stat; in legacy_scpi_clk_set_val() local 582 &stat, sizeof(stat)); in legacy_scpi_clk_set_val() 598 int stat; in scpi_dvfs_set_idx() local 602 &stat, sizeof(stat)); in scpi_dvfs_set_idx() 772 int stat; in scpi_device_set_power_state() local [all...] |
/kernel/linux/linux-6.6/drivers/devfreq/ |
H A D | tegra30-devfreq.c | 656 struct devfreq_dev_status *stat) in tegra_devfreq_get_dev_status() 665 stat->private_data = tegra; in tegra_devfreq_get_dev_status() 668 stat->current_frequency = cur_freq * KHZ; in tegra_devfreq_get_dev_status() 673 stat->busy_time = device_readl(actmon_dev, ACTMON_DEV_AVG_COUNT); in tegra_devfreq_get_dev_status() 676 stat->busy_time *= 100 / BUS_SATURATION_RATIO; in tegra_devfreq_get_dev_status() 679 stat->total_time = tegra->devfreq->profile->polling_ms * cur_freq; in tegra_devfreq_get_dev_status() 681 stat->busy_time = min(stat->busy_time, stat->total_time); in tegra_devfreq_get_dev_status() 696 struct devfreq_dev_status *stat; in tegra_governor_get_target() local 655 tegra_devfreq_get_dev_status(struct device *dev, struct devfreq_dev_status *stat) tegra_devfreq_get_dev_status() argument [all...] |
/kernel/linux/linux-5.10/samples/hck/ |
H A D | register.c | 12 .stat = 999, 28 pr_info("hck data: stat = %d, name = %s\n", hdata->stat, hdata->name); in set_boot_stat()
|
/kernel/linux/linux-6.6/samples/hck/ |
H A D | register.c | 12 .stat = 999, 28 pr_info("hck data: stat = %d, name = %s\n", hdata->stat, hdata->name); in set_boot_stat()
|
/third_party/eudev/src/udev/ |
H A D | udevadm-util.c | 31 struct stat statbuf; in find_device() 34 if (stat(id, &statbuf) < 0) in find_device()
|
/third_party/NuttX/fs/vfs/ |
H A D | fs_stat.c | 28 #include "sys/stat.h" 37 * Name: stat 52 int stat(const char *path, struct stat *buf) in stat() function 80 /* The way we handle the stat depends on the type of vnode that we in stat()
|
/third_party/ltp/include/ |
H A D | tst_device.h | 11 #include <sys/stat.h> 98 * Reads test block device stat file and returns the bytes written since the 120 void tst_stat_mount_dev(const char *const mnt_path, struct stat *const st);
|
/third_party/node/test/sequential/ |
H A D | test-require-cache-without-stat.js | 33 // Switch out the two stat implementations so that they increase a counter 37 const _stat = fs.stat; 44 fs.stat = function() { 59 // stat should not be called.
|
/third_party/musl/porting/linux/user/src/dirent/ |
H A D | fdopendir.c | 3 #include <sys/stat.h> 14 struct stat st; in fdopendir()
|