Home
last modified time | relevance | path

Searched full:stat (Results 1 – 25 of 1569) sorted by relevance

12345678910>>...63

/linux/drivers/media/platform/ti/omap3isp/
H A Dispstat.c22 #define ISP_STAT_USES_DMAENGINE(stat) ((stat)->dma_ch != NULL) argument
56 #define IS_H3A_AF(stat) ((stat) == &(stat)->isp->isp_af) argument
57 #define IS_H3A_AEWB(stat) ((stat) == &(stat)->isp->isp_aewb) argument
58 #define IS_H3A(stat) (IS_H3A_AF(stat) || IS_H3A_AEWB(stat)) argument
60 static void __isp_stat_buf_sync_magic(struct ispstat *stat, in __isp_stat_buf_sync_magic() argument
68 dma_sync(stat->isp->dev, buf->dma_addr, 0, MAGIC_SIZE, dir); in __isp_stat_buf_sync_magic()
69 dma_sync(stat->isp->dev, buf->dma_addr + (buf_size & PAGE_MASK), in __isp_stat_buf_sync_magic()
73 static void isp_stat_buf_sync_magic_for_device(struct ispstat *stat, in isp_stat_buf_sync_magic_for_device() argument
78 if (ISP_STAT_USES_DMAENGINE(stat)) in isp_stat_buf_sync_magic_for_device()
81 __isp_stat_buf_sync_magic(stat, buf, buf_size, dir, in isp_stat_buf_sync_magic_for_device()
[all …]
H A Dispstat.h52 int (*validate_params)(struct ispstat *stat, void *new_conf);
56 * stat->priv->buf_size value must be set to the exact buffer size for
58 * stat->update is set to 1 if new configuration is different than
61 void (*set_params)(struct ispstat *stat, void *new_conf);
64 void (*setup_regs)(struct ispstat *stat, void *priv);
67 void (*enable)(struct ispstat *stat, int enable);
70 int (*busy)(struct ispstat *stat);
73 int (*buf_process)(struct ispstat *stat);
127 int omap3isp_stat_config(struct ispstat *stat, void *new_conf);
128 int omap3isp_stat_request_statistics(struct ispstat *stat,
[all …]
/linux/fs/
H A Dstat.c3 * linux/fs/stat.c
33 * @stat: where to store the resulting values
38 * in @stat. When fetching the value, flag it as QUERIED (if not already)
45 void fill_mg_cmtime(struct kstat *stat, u32 request_mask, struct inode *inode) in fill_mg_cmtime() argument
51 stat->result_mask &= ~(STATX_CTIME|STATX_MTIME); in fill_mg_cmtime()
55 stat->mtime = inode_get_mtime(inode); in fill_mg_cmtime()
56 stat->ctime.tv_sec = inode->i_ctime_sec; in fill_mg_cmtime()
57 stat->ctime.tv_nsec = (u32)atomic_read(pcn); in fill_mg_cmtime()
58 if (!(stat->ctime.tv_nsec & I_CTIME_QUERIED)) in fill_mg_cmtime()
59 stat->ctime.tv_nsec = ((u32)atomic_fetch_or(I_CTIME_QUERIED, pcn)); in fill_mg_cmtime()
[all …]
/linux/kernel/
H A Dkallsyms_selftest.c159 struct test_stat *stat = (struct test_stat *)data; in lookup_name() local
166 if (t < stat->min) in lookup_name()
167 stat->min = t; in lookup_name()
169 if (t > stat->max) in lookup_name()
170 stat->max = t; in lookup_name()
172 stat->real_cnt++; in lookup_name()
173 stat->sum += t; in lookup_name()
180 struct test_stat stat; in test_perf_kallsyms_lookup_name() local
182 memset(&stat, 0, sizeof(stat)); in test_perf_kallsyms_lookup_name()
183 stat.min = INT_MAX; in test_perf_kallsyms_lookup_name()
[all …]
/linux/tools/perf/tests/attr/
H A Dtest-stat-detailed-2
H A Dtest-stat-detailed-3
H A Dtest-stat-detailed-1
H A Dtest-stat-default
/linux/tools/perf/tests/shell/
H A Dstat.sh2 # perf stat tests
9 echo "Basic stat command test"
10 if ! perf stat true 2>&1 | grep -E -q "Performance counter stats for 'true':"
12 echo "Basic stat command test [Failed]"
16 echo "Basic stat command test [Success]"
20 echo "stat record and report test"
21 if ! perf stat record -o - true | perf stat report -i - 2>&1 | \
24 echo "stat record and report test [Failed]"
28 echo "stat recor
[all...]
/linux/arch/x86/kernel/
H A Dsys_ia32.c36 #include <linux/stat.h>
129 * Another set for IA32/LFS -- x86_64 struct stat is different due to
132 static int cp_stat64(struct stat64 __user *ubuf, struct kstat *stat) in cp_stat64() argument
136 SET_UID(uid, from_kuid_munged(current_user_ns(), stat->uid)); in cp_stat64()
137 SET_GID(gid, from_kgid_munged(current_user_ns(), stat->gid)); in cp_stat64()
140 unsafe_put_user(huge_encode_dev(stat->dev), &ubuf->st_dev, Efault); in cp_stat64()
141 unsafe_put_user(stat->ino, &ubuf->__st_ino, Efault); in cp_stat64()
142 unsafe_put_user(stat->ino, &ubuf->st_ino, Efault); in cp_stat64()
143 unsafe_put_user(stat->mode, &ubuf->st_mode, Efault); in cp_stat64()
144 unsafe_put_user(stat->nlink, &ubuf->st_nlink, Efault); in cp_stat64()
[all …]
/linux/block/
H A Dblk-stat.c3 * Block stat tracking code
10 #include "blk-stat.h"
20 void blk_rq_stat_init(struct blk_rq_stat *stat) in blk_rq_stat_init() argument
22 stat->min = -1ULL; in blk_rq_stat_init()
23 stat->max = stat->nr_samples = stat->mean = 0; in blk_rq_stat_init()
24 stat->batch = 0; in blk_rq_stat_init()
27 /* src is a per-cpu stat, mean isn't initialized */
42 void blk_rq_stat_add(struct blk_rq_stat *stat, u64 value) in blk_rq_stat_add() argument
44 stat->min = min(stat->min, value); in blk_rq_stat_add()
45 stat->max = max(stat->max, value); in blk_rq_stat_add()
[all …]
/linux/arch/sparc/kernel/
H A Dsys_sparc32.c28 #include <linux/stat.h>
64 static int cp_compat_stat64(struct kstat *stat, in cp_compat_stat64() argument
69 err = put_user(huge_encode_dev(stat->dev), &statbuf->st_dev); in cp_compat_stat64()
70 err |= put_user(stat->ino, &statbuf->st_ino); in cp_compat_stat64()
71 err |= put_user(stat->mode, &statbuf->st_mode); in cp_compat_stat64()
72 err |= put_user(stat->nlink, &statbuf->st_nlink); in cp_compat_stat64()
73 err |= put_user(from_kuid_munged(current_user_ns(), stat->uid), &statbuf->st_uid); in cp_compat_stat64()
74 err |= put_user(from_kgid_munged(current_user_ns(), stat->gid), &statbuf->st_gid); in cp_compat_stat64()
75 err |= put_user(huge_encode_dev(stat->rdev), &statbuf->st_rdev); in cp_compat_stat64()
77 err |= put_user(stat->size, &statbuf->st_size); in cp_compat_stat64()
[all …]
/linux/arch/mips/sgi-ip32/
H A Dcrime.c46 unsigned long stat, addr; in crime_memerr_intr() local
49 stat = crime->mem_error_stat & CRIME_MEM_ERROR_STAT_MASK; in crime_memerr_intr()
52 printk("CRIME memory error at 0x%08lx ST 0x%08lx<", addr, stat); in crime_memerr_intr()
54 if (stat & CRIME_MEM_ERROR_INV) in crime_memerr_intr()
56 if (stat & CRIME_MEM_ERROR_ECC) { in crime_memerr_intr()
63 if (stat & CRIME_MEM_ERROR_MULTIPLE) { in crime_memerr_intr()
67 if (stat & CRIME_MEM_ERROR_HARD_ERR) { in crime_memerr_intr()
71 if (stat & CRIME_MEM_ERROR_SOFT_ERR) in crime_memerr_intr()
73 if (stat & CRIME_MEM_ERROR_CPU_ACCESS) in crime_memerr_intr()
75 if (stat & CRIME_MEM_ERROR_VICE_ACCESS) in crime_memerr_intr()
[all …]
/linux/drivers/media/firewire/
H A Dfiredtv-ci.c23 static int fdtv_ca_ready(struct firedtv_tuner_status *stat) in fdtv_ca_ready() argument
25 return stat->ca_initialization_status == 1 && in fdtv_ca_ready()
26 stat->ca_error_flag == 0 && in fdtv_ca_ready()
27 stat->ca_dvb_flag == 1 && in fdtv_ca_ready()
28 stat->ca_module_present_status == 1; in fdtv_ca_ready()
31 static int fdtv_get_ca_flags(struct firedtv_tuner_status *stat) in fdtv_get_ca_flags() argument
35 if (stat->ca_module_present_status == 1) in fdtv_get_ca_flags()
37 if (stat->ca_initialization_status == 1 && in fdtv_get_ca_flags()
38 stat->ca_error_flag == 0 && in fdtv_get_ca_flags()
39 stat->ca_dvb_flag == 1) in fdtv_get_ca_flags()
[all …]
/linux/drivers/media/common/siano/
H A Dsmsdvb-main.c136 c->strength.stat[0].scale = FE_SCALE_DECIBEL; in smsdvb_stats_not_ready()
137 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in smsdvb_stats_not_ready()
150 c->post_bit_error.stat[i].scale = FE_SCALE_NOT_AVAILABLE; in smsdvb_stats_not_ready()
151 c->post_bit_count.stat[i].scale = FE_SCALE_NOT_AVAILABLE; in smsdvb_stats_not_ready()
152 c->block_error.stat[i].scale = FE_SCALE_NOT_AVAILABLE; in smsdvb_stats_not_ready()
153 c->block_count.stat[i].scale = FE_SCALE_NOT_AVAILABLE; in smsdvb_stats_not_ready()
268 c->strength.stat[0].uvalue = p->in_band_power * 1000; in smsdvb_update_per_slices()
271 c->cnr.stat[0].svalue = p->snr * 1000; in smsdvb_update_per_slices()
278 client->last_per = c->block_error.stat[0].uvalue; in smsdvb_update_per_slices()
279 c->block_error.stat[0].scale = FE_SCALE_COUNTER; in smsdvb_update_per_slices()
[all …]
/linux/Documentation/userspace-api/media/dvb/
H A Dfrontend-stat-properties.rst3 .. _frontend-stat-properties:
9 The values are returned via ``dtv_property.stat``. If the property is
10 supported, ``dtv_property.stat.len`` is bigger than zero.
12 For most delivery systems, ``dtv_property.stat.len`` will be 1 if the
19 ``dtv_property.stat.len`` is updated to reflect the "global" metrics,
23 value at :c:type:`dtv_property.stat.dtv_stats <dtv_stats>` array refers
27 The number of filled elements are stored at ``dtv_property.stat.len``.
29 Each element of the ``dtv_property.stat.dtv_stats`` array consists on
53 .. _DTV-STAT-SIGNAL-STRENGTH:
73 .. _DTV-STAT-CNR:
[all …]
/linux/arch/s390/kernel/
H A Dcompat_linux.c34 #include <linux/stat.h>
126 static int cp_stat64(struct stat64_emu31 __user *ubuf, struct kstat *stat) in cp_stat64() argument
132 tmp.st_dev = huge_encode_dev(stat->dev); in cp_stat64()
133 tmp.st_ino = stat->ino; in cp_stat64()
134 tmp.__st_ino = (u32)stat->ino; in cp_stat64()
135 tmp.st_mode = stat->mode; in cp_stat64()
136 tmp.st_nlink = (unsigned int)stat->nlink; in cp_stat64()
137 tmp.st_uid = from_kuid_munged(current_user_ns(), stat->uid); in cp_stat64()
138 tmp.st_gid = from_kgid_munged(current_user_ns(), stat->gid); in cp_stat64()
139 tmp.st_rdev = huge_encode_dev(stat->rdev); in cp_stat64()
[all …]
/linux/drivers/devfreq/
H A Dgovernor_simpleondemand.c22 struct devfreq_dev_status *stat; in devfreq_simple_ondemand_func() local
32 stat = &df->last_status; in devfreq_simple_ondemand_func()
45 if (stat->total_time == 0) { in devfreq_simple_ondemand_func()
51 if (stat->busy_time >= (1 << 24) || stat->total_time >= (1 << 24)) { in devfreq_simple_ondemand_func()
52 stat->busy_time >>= 7; in devfreq_simple_ondemand_func()
53 stat->total_time >>= 7; in devfreq_simple_ondemand_func()
57 if (stat->busy_time * 100 > in devfreq_simple_ondemand_func()
58 stat->total_time * dfso_upthreshold) { in devfreq_simple_ondemand_func()
64 if (stat->current_frequency == 0) { in devfreq_simple_ondemand_func()
70 if (stat->busy_time * 100 > in devfreq_simple_ondemand_func()
[all …]
/linux/drivers/comedi/drivers/
H A Ddt2801.c229 int stat = 0; in dt2801_readdata() local
233 stat = inb_p(dev->iobase + DT2801_STATUS); in dt2801_readdata()
234 if (stat & (DT_S_COMPOSITE_ERROR | DT_S_READY)) in dt2801_readdata()
235 return stat; in dt2801_readdata()
236 if (stat & DT_S_DATA_OUT_READY) { in dt2801_readdata()
264 int stat = 0; in dt2801_writedata() local
268 stat = inb_p(dev->iobase + DT2801_STATUS); in dt2801_writedata()
270 if (stat & DT_S_COMPOSITE_ERROR) in dt2801_writedata()
271 return stat; in dt2801_writedata()
272 if (!(stat & DT_S_DATA_IN_FULL)) { in dt2801_writedata()
[all …]
/linux/drivers/media/pci/ddbridge/
H A Dddbridge-sx8.c61 int stat; in get_info() local
68 stat = ddb_mci_cmd(&state->mci, &cmd, &state->signal_info); in get_info()
69 return stat; in get_info()
78 p->cnr.stat[0].scale = FE_SCALE_DECIBEL; in get_snr()
79 p->cnr.stat[0].svalue = in get_snr()
95 p->strength.stat[0].scale = FE_SCALE_DECIBEL; in get_strength()
96 p->strength.stat[0].svalue = str; in get_strength()
102 int stat; in read_status() local
109 stat = ddb_mci_cmd(&state->mci, &cmd, &res); in read_status()
110 if (stat) in read_status()
[all …]
H A Dddbridge-main.c96 int stat; in ddb_irq_msi() local
99 stat = pci_alloc_irq_vectors(dev->pdev, 1, nr, in ddb_irq_msi()
101 if (stat >= 1) { in ddb_irq_msi()
102 dev->msi = stat; in ddb_irq_msi()
114 int stat; in ddb_irq_init() local
132 stat = request_irq(pci_irq_vector(dev->pdev, 0), in ddb_irq_init()
135 if (stat < 0) in ddb_irq_init()
136 return stat; in ddb_irq_init()
137 stat = request_irq(pci_irq_vector(dev->pdev, 1), in ddb_irq_init()
140 if (stat < 0) { in ddb_irq_init()
[all …]
/linux/arch/arm/mach-mv78xx0/
H A Dirq.c29 u32 stat; in mv78xx0_legacy_handle_irq() local
31 stat = readl_relaxed(mv78xx0_irq_base + IRQ_CAUSE_LOW_OFF); in mv78xx0_legacy_handle_irq()
32 stat &= readl_relaxed(mv78xx0_irq_base + IRQ_MASK_LOW_OFF); in mv78xx0_legacy_handle_irq()
33 if (stat) { in mv78xx0_legacy_handle_irq()
34 unsigned int hwirq = __fls(stat); in mv78xx0_legacy_handle_irq()
38 stat = readl_relaxed(mv78xx0_irq_base + IRQ_CAUSE_HIGH_OFF); in mv78xx0_legacy_handle_irq()
39 stat &= readl_relaxed(mv78xx0_irq_base + IRQ_MASK_HIGH_OFF); in mv78xx0_legacy_handle_irq()
40 if (stat) { in mv78xx0_legacy_handle_irq()
41 unsigned int hwirq = 32 + __fls(stat); in mv78xx0_legacy_handle_irq()
45 stat = readl_relaxed(mv78xx0_irq_base + IRQ_CAUSE_ERR_OFF); in mv78xx0_legacy_handle_irq()
[all …]
/linux/arch/powerpc/kvm/
H A Dtiming.h48 vcpu->stat.ext_intr_exits++; in kvmppc_account_exit_stat()
51 vcpu->stat.dec_exits++; in kvmppc_account_exit_stat()
54 vcpu->stat.emulated_inst_exits++; in kvmppc_account_exit_stat()
57 vcpu->stat.dsi_exits++; in kvmppc_account_exit_stat()
60 vcpu->stat.isi_exits++; in kvmppc_account_exit_stat()
63 vcpu->stat.syscall_exits++; in kvmppc_account_exit_stat()
66 vcpu->stat.dtlb_real_miss_exits++; in kvmppc_account_exit_stat()
69 vcpu->stat.dtlb_virt_miss_exits++; in kvmppc_account_exit_stat()
72 vcpu->stat.mmio_exits++; in kvmppc_account_exit_stat()
75 vcpu->stat.itlb_real_miss_exits++; in kvmppc_account_exit_stat()
[all …]
/linux/drivers/media/pci/mantis/
H A Dhopper_cards.c56 u32 stat = 0, mask = 0; in hopper_irq_handler() local
67 stat = mmread(MANTIS_INT_STAT); in hopper_irq_handler()
69 if (!(stat & mask)) in hopper_irq_handler()
81 mantis->mantis_int_stat = stat; in hopper_irq_handler()
83 dprintk(MANTIS_DEBUG, 0, "\n-- Stat=<%02x> Mask=<%02x> --", stat, mask); in hopper_irq_handler()
84 if (stat & MANTIS_INT_RISCEN) { in hopper_irq_handler()
87 if (stat & MANTIS_INT_IRQ0) { in hopper_irq_handler()
93 if (stat & MANTIS_INT_IRQ1) { in hopper_irq_handler()
101 if (stat & MANTIS_INT_OCERR) { in hopper_irq_handler()
104 if (stat & MANTIS_INT_PABORT) { in hopper_irq_handler()
[all …]
/linux/kernel/trace/
H A Dtrace_stat.c22 * List of stat red-black nodes from a tracer
23 * We use a such tree to sort quickly the stat
28 void *stat; member
31 /* A stat session is the stats output in one file */
40 /* All of the sessions currently in use. Each stat file embed one session */
44 /* The root directory for all stat files */
53 session->ts->stat_release(snode->stat); in __reset_stat_session()
75 static int insert_stat(struct rb_root *root, void *stat, cmp_func_t cmp) in insert_stat() argument
83 data->stat = stat; in insert_stat()
94 result = cmp(data->stat, this->stat); in insert_stat()
[all …]

12345678910>>...63