Home
last modified time | relevance | path

Searched refs:stat (Results 1 – 25 of 291) sorted by relevance

12345678910>>...12

/linux-4.19.296/fs/
Dstat.c33 void generic_fillattr(struct inode *inode, struct kstat *stat) in generic_fillattr() argument
35 stat->dev = inode->i_sb->s_dev; in generic_fillattr()
36 stat->ino = inode->i_ino; in generic_fillattr()
37 stat->mode = inode->i_mode; in generic_fillattr()
38 stat->nlink = inode->i_nlink; in generic_fillattr()
39 stat->uid = inode->i_uid; in generic_fillattr()
40 stat->gid = inode->i_gid; in generic_fillattr()
41 stat->rdev = inode->i_rdev; in generic_fillattr()
42 stat->size = i_size_read(inode); in generic_fillattr()
43 stat->atime = inode->i_atime; in generic_fillattr()
[all …]
/linux-4.19.296/fs/nfs/
Diostat.h27 enum nfs_stat_eventcounters stat) in nfs_inc_server_stats() argument
29 this_cpu_inc(server->io_stats->events[stat]); in nfs_inc_server_stats()
33 enum nfs_stat_eventcounters stat) in nfs_inc_stats() argument
35 nfs_inc_server_stats(NFS_SERVER(inode), stat); in nfs_inc_stats()
39 enum nfs_stat_bytecounters stat, in nfs_add_server_stats() argument
42 this_cpu_add(server->io_stats->bytes[stat], addend); in nfs_add_server_stats()
46 enum nfs_stat_bytecounters stat, in nfs_add_stats() argument
49 nfs_add_server_stats(NFS_SERVER(inode), stat, addend); in nfs_add_stats()
54 enum nfs_stat_fscachecounters stat, in nfs_add_fscache_stats() argument
57 this_cpu_add(NFS_SERVER(inode)->io_stats->fscache[stat], addend); in nfs_add_fscache_stats()
[all …]
/linux-4.19.296/drivers/i2c/busses/
Di2c-designware-slave.c106 u32 stat; in i2c_dw_read_clear_intrbits_slave() local
120 stat = dw_readl(dev, DW_IC_INTR_STAT); in i2c_dw_read_clear_intrbits_slave()
129 if (stat & DW_IC_INTR_TX_ABRT) in i2c_dw_read_clear_intrbits_slave()
131 if (stat & DW_IC_INTR_RX_UNDER) in i2c_dw_read_clear_intrbits_slave()
133 if (stat & DW_IC_INTR_RX_OVER) in i2c_dw_read_clear_intrbits_slave()
135 if (stat & DW_IC_INTR_TX_OVER) in i2c_dw_read_clear_intrbits_slave()
137 if (stat & DW_IC_INTR_RX_DONE) in i2c_dw_read_clear_intrbits_slave()
139 if (stat & DW_IC_INTR_ACTIVITY) in i2c_dw_read_clear_intrbits_slave()
141 if (stat & DW_IC_INTR_STOP_DET) in i2c_dw_read_clear_intrbits_slave()
143 if (stat & DW_IC_INTR_START_DET) in i2c_dw_read_clear_intrbits_slave()
[all …]
Di2c-designware-master.c515 u32 stat; in i2c_dw_read_clear_intrbits() local
529 stat = dw_readl(dev, DW_IC_INTR_STAT); in i2c_dw_read_clear_intrbits()
538 if (stat & DW_IC_INTR_RX_UNDER) in i2c_dw_read_clear_intrbits()
540 if (stat & DW_IC_INTR_RX_OVER) in i2c_dw_read_clear_intrbits()
542 if (stat & DW_IC_INTR_TX_OVER) in i2c_dw_read_clear_intrbits()
544 if (stat & DW_IC_INTR_RD_REQ) in i2c_dw_read_clear_intrbits()
546 if (stat & DW_IC_INTR_TX_ABRT) { in i2c_dw_read_clear_intrbits()
554 if (stat & DW_IC_INTR_RX_DONE) in i2c_dw_read_clear_intrbits()
556 if (stat & DW_IC_INTR_ACTIVITY) in i2c_dw_read_clear_intrbits()
558 if (stat & DW_IC_INTR_STOP_DET) in i2c_dw_read_clear_intrbits()
[all …]
Di2c-omap.c555 u16 stat, systest; in omap_i2c_wait_for_bb_valid() local
562 stat = omap_i2c_read_reg(omap, OMAP_I2C_STAT_REG); in omap_i2c_wait_for_bb_valid()
568 if (stat & (OMAP_I2C_STAT_BB | OMAP_I2C_STAT_BF)) in omap_i2c_wait_for_bb_valid()
831 omap_i2c_ack_stat(struct omap_i2c_dev *omap, u16 stat) in omap_i2c_ack_stat() argument
833 omap_i2c_write_reg(omap, OMAP_I2C_STAT_REG, stat); in omap_i2c_ack_stat()
836 static inline void i2c_omap_errata_i207(struct omap_i2c_dev *omap, u16 stat) in i2c_omap_errata_i207() argument
845 if (stat & OMAP_I2C_STAT_RDR) { in i2c_omap_errata_i207()
933 u16 stat; in errata_omap3_i462() local
936 stat = omap_i2c_read_reg(omap, OMAP_I2C_STAT_REG); in errata_omap3_i462()
937 if (stat & OMAP_I2C_STAT_XUDF) in errata_omap3_i462()
[all …]
/linux-4.19.296/block/
Dblk-stat.c20 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()
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()
46 stat->batch += value; in blk_rq_stat_add()
47 stat->nr_samples++; in blk_rq_stat_add()
54 struct blk_rq_stat *stat; in blk_stat_add() local
[all …]
/linux-4.19.296/drivers/media/common/siano/
Dsmsdvb-main.c147 c->strength.stat[0].scale = FE_SCALE_DECIBEL; in smsdvb_stats_not_ready()
148 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in smsdvb_stats_not_ready()
161 c->post_bit_error.stat[i].scale = FE_SCALE_NOT_AVAILABLE; in smsdvb_stats_not_ready()
162 c->post_bit_count.stat[i].scale = FE_SCALE_NOT_AVAILABLE; in smsdvb_stats_not_ready()
163 c->block_error.stat[i].scale = FE_SCALE_NOT_AVAILABLE; in smsdvb_stats_not_ready()
164 c->block_count.stat[i].scale = FE_SCALE_NOT_AVAILABLE; in smsdvb_stats_not_ready()
251 c->strength.stat[0].uvalue = p->in_band_power * 1000; in smsdvb_update_per_slices()
254 c->cnr.stat[0].svalue = p->snr * 1000; in smsdvb_update_per_slices()
261 client->last_per = c->block_error.stat[0].uvalue; in smsdvb_update_per_slices()
262 c->block_error.stat[0].scale = FE_SCALE_COUNTER; in smsdvb_update_per_slices()
[all …]
/linux-4.19.296/drivers/media/dvb-frontends/
Dmxl5xx.c160 int stat; in read_register_unlocked() local
167 stat = i2cwrite(state, data, in read_register_unlocked()
169 if (stat) in read_register_unlocked()
171 if (!stat) in read_register_unlocked()
172 stat = i2cread(state, (u8 *) val, in read_register_unlocked()
175 if (stat) in read_register_unlocked()
177 return stat; in read_register_unlocked()
185 int stat; in send_command() local
206 stat = i2cwrite(state, buf, size); in send_command()
208 return stat; in send_command()
[all …]
Dmb86a20s.c335 return c->strength.stat[0].uvalue; in mb86a20s_read_signal_strength()
338 c->strength.stat[0].uvalue = 0; in mb86a20s_read_signal_strength()
376 c->strength.stat[0].uvalue = rf; in mb86a20s_read_signal_strength()
1423 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in mb86a20s_get_main_CNR()
1424 c->cnr.stat[0].svalue = cnr; in mb86a20s_get_main_CNR()
1467 c->cnr.stat[1 + layer].scale = FE_SCALE_NOT_AVAILABLE; in mb86a20s_get_blk_error_layer_CNR()
1511 c->cnr.stat[1 + layer].scale = FE_SCALE_DECIBEL; in mb86a20s_get_blk_error_layer_CNR()
1512 c->cnr.stat[1 + layer].svalue = cnr; in mb86a20s_get_blk_error_layer_CNR()
1563 c->strength.stat[0].scale = FE_SCALE_RELATIVE; in mb86a20s_stats_not_ready()
1564 c->strength.stat[0].uvalue = 0; in mb86a20s_stats_not_ready()
[all …]
Dmn88473.c333 c->strength.stat[0].scale = FE_SCALE_RELATIVE; in mn88473_read_status()
334 c->strength.stat[0].uvalue = utmp1; in mn88473_read_status()
336 c->strength.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in mn88473_read_status()
357 c->cnr.stat[0].svalue = stmp; in mn88473_read_status()
358 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in mn88473_read_status()
391 c->cnr.stat[0].svalue = stmp; in mn88473_read_status()
392 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in mn88473_read_status()
413 c->cnr.stat[0].svalue = stmp; in mn88473_read_status()
414 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in mn88473_read_status()
416 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in mn88473_read_status()
[all …]
Dlgdt330x.c300 p->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in lgdt330x_init()
302 p->block_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in lgdt330x_init()
304 p->block_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in lgdt330x_init()
690 p->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in lgdt3302_read_status()
691 p->block_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in lgdt3302_read_status()
692 p->block_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in lgdt3302_read_status()
704 p->cnr.stat[0].scale = FE_SCALE_DECIBEL; in lgdt3302_read_status()
705 p->cnr.stat[0].svalue = (((u64)state->snr) * 1000) >> 24; in lgdt3302_read_status()
707 p->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in lgdt3302_read_status()
717 p->block_error.stat[0].uvalue += state->ucblocks; in lgdt3302_read_status()
[all …]
Dstv6111.c427 int stat = 0; in set_bandwidth() local
439 stat = fe->ops.i2c_gate_ctrl(fe, 1); in set_bandwidth()
440 if (!stat) { in set_bandwidth()
444 if (fe->ops.i2c_gate_ctrl && !stat) in set_bandwidth()
446 return stat; in set_bandwidth()
524 int stat = 0; in set_params() local
533 stat = fe->ops.i2c_gate_ctrl(fe, 1); in set_params()
534 if (!stat) in set_params()
536 if (fe->ops.i2c_gate_ctrl && !stat) in set_params()
583 int stat = 0; in get_rf_strength() local
[all …]
Dmn88443x.c286 c->strength.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in mn88443x_s_read_status()
295 c->strength.stat[0].scale = FE_SCALE_RELATIVE; in mn88443x_s_read_status()
296 c->strength.stat[0].uvalue = agc; in mn88443x_s_read_status()
300 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in mn88443x_s_read_status()
334 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in mn88443x_s_read_status()
335 c->cnr.stat[0].uvalue = cnr; in mn88443x_s_read_status()
340 c->post_bit_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in mn88443x_s_read_status()
341 c->post_bit_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in mn88443x_s_read_status()
355 c->post_bit_error.stat[0].scale = FE_SCALE_COUNTER; in mn88443x_s_read_status()
356 c->post_bit_error.stat[0].uvalue = bit_err; in mn88443x_s_read_status()
[all …]
Drtl2830.c131 c->strength.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in rtl2830_init()
133 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in rtl2830_init()
135 c->post_bit_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in rtl2830_init()
137 c->post_bit_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in rtl2830_init()
433 c->strength.stat[0].scale = FE_SCALE_RELATIVE; in rtl2830_read_status()
434 c->strength.stat[0].uvalue = utmp; in rtl2830_read_status()
436 c->strength.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in rtl2830_read_status()
475 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in rtl2830_read_status()
476 c->cnr.stat[0].svalue = stmp; in rtl2830_read_status()
478 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in rtl2830_read_status()
[all …]
/linux-4.19.296/drivers/irqchip/
Dirq-bcm2835.c207 u32 stat = readl_relaxed(intc.pending[bank]); in armctrl_translate_bank() local
209 return MAKE_HWIRQ(bank, ffs(stat) - 1); in armctrl_translate_bank()
212 static u32 armctrl_translate_shortcut(int bank, u32 stat) in armctrl_translate_shortcut() argument
214 return MAKE_HWIRQ(bank, shortcuts[ffs(stat >> SHORTCUT_SHIFT) - 1]); in armctrl_translate_shortcut()
219 u32 stat = readl_relaxed(intc.pending[0]) & BANK0_VALID_MASK; in get_next_armctrl_hwirq() local
221 if (stat == 0) in get_next_armctrl_hwirq()
223 else if (stat & BANK0_HWIRQ_MASK) in get_next_armctrl_hwirq()
224 return MAKE_HWIRQ(0, ffs(stat & BANK0_HWIRQ_MASK) - 1); in get_next_armctrl_hwirq()
225 else if (stat & SHORTCUT1_MASK) in get_next_armctrl_hwirq()
226 return armctrl_translate_shortcut(1, stat & SHORTCUT1_MASK); in get_next_armctrl_hwirq()
[all …]
Dirq-orion.c41 u32 stat = readl_relaxed(gc->reg_base + ORION_IRQ_CAUSE) & in orion_handle_irq() local
43 while (stat) { in orion_handle_irq()
44 u32 hwirq = __fls(stat); in orion_handle_irq()
47 stat &= ~(1 << hwirq); in orion_handle_irq()
114 u32 stat = readl_relaxed(gc->reg_base + ORION_BRIDGE_IRQ_CAUSE) & in orion_bridge_irq_handler() local
117 while (stat) { in orion_bridge_irq_handler()
118 u32 hwirq = __fls(stat); in orion_bridge_irq_handler()
121 stat &= ~(1 << hwirq); in orion_bridge_irq_handler()
/linux-4.19.296/fs/nfsd/
Dnfsxdr.c130 struct kstat *stat) in encode_fattr() argument
137 type = (stat->mode & S_IFMT); in encode_fattr()
140 *p++ = htonl((u32) stat->mode); in encode_fattr()
141 *p++ = htonl((u32) stat->nlink); in encode_fattr()
142 *p++ = htonl((u32) from_kuid(&init_user_ns, stat->uid)); in encode_fattr()
143 *p++ = htonl((u32) from_kgid(&init_user_ns, stat->gid)); in encode_fattr()
145 if (S_ISLNK(type) && stat->size > NFS_MAXPATHLEN) { in encode_fattr()
148 *p++ = htonl((u32) stat->size); in encode_fattr()
150 *p++ = htonl((u32) stat->blksize); in encode_fattr()
152 *p++ = htonl(new_encode_dev(stat->rdev)); in encode_fattr()
[all …]
/linux-4.19.296/fs/9p/
Dvfs_inode_dotl.c473 v9fs_vfs_getattr_dotl(const struct path *path, struct kstat *stat, in v9fs_vfs_getattr_dotl() argument
484 generic_fillattr(d_inode(dentry), stat); in v9fs_vfs_getattr_dotl()
500 generic_fillattr(d_inode(dentry), stat); in v9fs_vfs_getattr_dotl()
502 stat->blksize = st->st_blksize; in v9fs_vfs_getattr_dotl()
615 v9fs_stat2inode_dotl(struct p9_stat_dotl *stat, struct inode *inode, in v9fs_stat2inode_dotl() argument
621 if ((stat->st_result_mask & P9_STATS_BASIC) == P9_STATS_BASIC) { in v9fs_stat2inode_dotl()
622 inode->i_atime.tv_sec = stat->st_atime_sec; in v9fs_stat2inode_dotl()
623 inode->i_atime.tv_nsec = stat->st_atime_nsec; in v9fs_stat2inode_dotl()
624 inode->i_mtime.tv_sec = stat->st_mtime_sec; in v9fs_stat2inode_dotl()
625 inode->i_mtime.tv_nsec = stat->st_mtime_nsec; in v9fs_stat2inode_dotl()
[all …]
/linux-4.19.296/fs/xfs/
Dxfs_itable.c34 int *stat) /* BULKSTAT_RV_... */ in xfs_bulkstat_one_int() argument
42 *stat = BULKSTAT_RV_NOTHING; in xfs_bulkstat_one_int()
121 *stat = BULKSTAT_RV_DIDONE; in xfs_bulkstat_one_int()
152 int *stat) /* BULKSTAT_RV_... */ in xfs_bulkstat_one() argument
155 xfs_bulkstat_one_fmt, ubused, stat); in xfs_bulkstat_one()
203 int stat; in xfs_bulkstat_grab_ichunk() local
207 error = xfs_inobt_lookup(cur, agino, XFS_LOOKUP_LE, &stat); in xfs_bulkstat_grab_ichunk()
210 if (!stat) { in xfs_bulkstat_grab_ichunk()
216 error = xfs_inobt_get_rec(cur, irec, &stat); in xfs_bulkstat_grab_ichunk()
219 XFS_WANT_CORRUPTED_RETURN(cur->bc_mp, stat == 1); in xfs_bulkstat_grab_ichunk()
[all …]
/linux-4.19.296/include/trace/events/
Dwbt.h17 TP_PROTO(struct backing_dev_info *bdi, struct blk_rq_stat *stat),
19 TP_ARGS(bdi, stat),
38 __entry->rmean = stat[0].mean;
39 __entry->rmin = stat[0].min;
40 __entry->rmax = stat[0].max;
41 __entry->rnr_samples = stat[0].nr_samples;
42 __entry->wmean = stat[1].mean;
43 __entry->wmin = stat[1].min;
44 __entry->wmax = stat[1].max;
45 __entry->wnr_samples = stat[1].nr_samples;
/linux-4.19.296/fs/overlayfs/
Dcopy_up.c184 static int ovl_set_size(struct dentry *upperdentry, struct kstat *stat) in ovl_set_size() argument
188 .ia_size = stat->size, in ovl_set_size()
194 static int ovl_set_timestamps(struct dentry *upperdentry, struct kstat *stat) in ovl_set_timestamps() argument
199 .ia_atime = stat->atime, in ovl_set_timestamps()
200 .ia_mtime = stat->mtime, in ovl_set_timestamps()
206 int ovl_set_attr(struct dentry *upperdentry, struct kstat *stat) in ovl_set_attr() argument
210 if (!S_ISLNK(stat->mode)) { in ovl_set_attr()
213 .ia_mode = stat->mode, in ovl_set_attr()
220 .ia_uid = stat->uid, in ovl_set_attr()
221 .ia_gid = stat->gid, in ovl_set_attr()
[all …]
/linux-4.19.296/drivers/bluetooth/
Dbtqcomsmd.c44 hdev->stat.err_rx++; in btqcomsmd_recv()
59 btq->hdev->stat.byte_rx += count; in btqcomsmd_acl_callback()
68 btq->hdev->stat.byte_rx += count; in btqcomsmd_cmd_callback()
81 hdev->stat.err_tx++; in btqcomsmd_send()
84 hdev->stat.acl_tx++; in btqcomsmd_send()
85 hdev->stat.byte_tx += skb->len; in btqcomsmd_send()
90 hdev->stat.err_tx++; in btqcomsmd_send()
93 hdev->stat.cmd_tx++; in btqcomsmd_send()
94 hdev->stat.byte_tx += skb->len; in btqcomsmd_send()
/linux-4.19.296/fs/xfs/libxfs/
Dxfs_refcount.h10 xfs_agblock_t bno, int *stat);
12 xfs_agblock_t bno, int *stat);
14 xfs_agblock_t bno, int *stat);
16 struct xfs_refcount_irec *irec, int *stat);
77 struct xfs_refcount_irec *irec, int *stat);
/linux-4.19.296/drivers/media/dvb-frontends/cxd2880/
Dcxd2880_top.c1049 c->pre_bit_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in cxd2880_set_frontend()
1050 c->pre_bit_error.stat[0].uvalue = 0; in cxd2880_set_frontend()
1052 c->pre_bit_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in cxd2880_set_frontend()
1053 c->pre_bit_count.stat[0].uvalue = 0; in cxd2880_set_frontend()
1055 c->post_bit_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in cxd2880_set_frontend()
1056 c->post_bit_error.stat[0].uvalue = 0; in cxd2880_set_frontend()
1058 c->post_bit_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in cxd2880_set_frontend()
1059 c->post_bit_count.stat[0].uvalue = 0; in cxd2880_set_frontend()
1061 c->block_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in cxd2880_set_frontend()
1062 c->block_error.stat[0].uvalue = 0; in cxd2880_set_frontend()
[all …]
/linux-4.19.296/drivers/rtc/
Drtc-ds3232.c65 int control, stat; in ds3232_check_rtc_status() local
67 ret = regmap_read(ds3232->regmap, DS3232_REG_SR, &stat); in ds3232_check_rtc_status()
71 if (stat & DS3232_REG_SR_OSF) in ds3232_check_rtc_status()
76 stat &= ~(DS3232_REG_SR_OSF | DS3232_REG_SR_A1F | DS3232_REG_SR_A2F); in ds3232_check_rtc_status()
78 ret = regmap_write(ds3232->regmap, DS3232_REG_SR, stat); in ds3232_check_rtc_status()
184 int control, stat; in ds3232_read_alarm() local
188 ret = regmap_read(ds3232->regmap, DS3232_REG_SR, &stat); in ds3232_read_alarm()
204 alarm->pending = !!(stat & DS3232_REG_SR_A1F); in ds3232_read_alarm()
218 int control, stat; in ds3232_set_alarm() local
240 ret = regmap_read(ds3232->regmap, DS3232_REG_SR, &stat); in ds3232_set_alarm()
[all …]

12345678910>>...12