Searched refs:stat (Results 101 - 125 of 1632) sorted by relevance

1234567891011>>

/linux-master/drivers/gpu/drm/nouveau/nvkm/engine/mpeg/
H A Dnv50.c65 u32 stat = nvkm_rd32(device, 0x00b100); local
69 u32 show = stat;
71 if (stat & 0x01000000) {
81 stat, type, mthd, data);
84 nvkm_wr32(device, 0x00b100, stat);
/linux-master/drivers/gpu/drm/nouveau/nvkm/engine/cipher/
H A Dg84.c85 u32 stat = nvkm_rd32(device, 0x102130); local
93 if (stat) {
94 nvkm_snprintbf(msg, sizeof(msg), g84_cipher_intr_mask, stat);
96 "mthd %04x data %08x\n", stat, msg,
103 nvkm_wr32(device, 0x102130, stat);
/linux-master/fs/xfs/libxfs/
H A Dxfs_refcount.h17 enum xfs_refc_domain domain, xfs_agblock_t bno, int *stat);
19 enum xfs_refc_domain domain, xfs_agblock_t bno, int *stat);
21 enum xfs_refc_domain domain, xfs_agblock_t bno, int *stat);
23 struct xfs_refcount_irec *irec, int *stat);
123 struct xfs_refcount_irec *irec, int *stat);
/linux-master/arch/arm64/kernel/pi/
H A Drelacheck.c14 #include <sys/stat.h>
46 struct stat stat; local
60 ret = fstat(fd, &stat);
62 fprintf(stderr, "failed to stat() %s\n", argv[1]);
66 ehdr = mmap(0, stat.st_size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/
H A Dauxgm200.c83 u32 ctrl, stat, timeout, retries = 0; local
93 stat = nvkm_rd32(device, 0x00d958 + base);
94 if (!(stat & 0x10000000)) {
140 stat = nvkm_mask(device, 0x00d958 + base, 0, 0);
141 if ((stat & 0x000f0000) == 0x00080000 ||
142 (stat & 0x000f0000) == 0x00020000)
144 if ((stat & 0x00000100))
146 if ((stat & 0x00000e00))
149 AUX_TRACE(&aux->base, "%02d %08x %08x", retries, ctrl, stat);
158 *size = stat
[all...]
H A Dauxg94.c83 u32 ctrl, stat, timeout, retries = 0; local
93 stat = nvkm_rd32(device, 0x00e4e8 + base);
94 if (!(stat & 0x10000000)) {
140 stat = nvkm_mask(device, 0x00e4e8 + base, 0, 0);
141 if ((stat & 0x000f0000) == 0x00080000 ||
142 (stat & 0x000f0000) == 0x00020000)
144 if ((stat & 0x00000100))
146 if ((stat & 0x00000e00))
149 AUX_TRACE(&aux->base, "%02d %08x %08x", retries, ctrl, stat);
158 *size = stat
[all...]
/linux-master/fs/9p/
H A Dvfs_inode_dotl.c14 #include <linux/stat.h>
82 * initialize the inode with the stat info
377 const struct path *path, struct kstat *stat,
389 generic_fillattr(&nop_mnt_idmap, request_mask, inode, stat);
404 /* Ask for all the fields in stat structure. Server will return
414 generic_fillattr(&nop_mnt_idmap, request_mask, d_inode(dentry), stat);
416 stat->blksize = st->st_blksize;
565 * v9fs_stat2inode_dotl - populate an inode structure with stat info
566 * @stat: stat structur
376 v9fs_vfs_getattr_dotl(struct mnt_idmap *idmap, const struct path *path, struct kstat *stat, u32 request_mask, unsigned int flags) argument
573 v9fs_stat2inode_dotl(struct p9_stat_dotl *stat, struct inode *inode, unsigned int flags) argument
[all...]
/linux-master/tools/net/ynl/samples/
H A Dpage-pool.c13 struct stat { struct
26 struct stat *s;
29 static struct stat *find_ifc(struct stats_array *a, unsigned int ifindex)
47 static void count(struct stat *s, unsigned int l,
81 struct stat *s = find_ifc(&a, pp->ifindex);
94 struct stat *s = find_ifc(&a, pp->info.ifindex);
111 struct stat *s = &a.s[i];
/linux-master/arch/mips/cavium-octeon/executive/
H A Dcvmx-spi.c433 union cvmx_spxx_clk_stat stat; local
449 stat.u64 = cvmx_read_csr(CVMX_SPXX_CLK_STAT(interface));
450 if (stat.s.s4clk0 && stat.s.s4clk1 && clock_transitions) {
456 cvmx_write_csr(CVMX_SPXX_CLK_STAT(interface), stat.u64);
457 stat.s.s4clk0 = 0;
458 stat.s.s4clk1 = 0;
464 } while (stat.s.s4clk0 == 0 || stat.s.s4clk1 == 0);
474 stat
511 union cvmx_spxx_clk_stat stat; local
596 union cvmx_spxx_clk_stat stat; local
[all...]
/linux-master/arch/powerpc/platforms/cell/
H A Dspu_base.c282 unsigned long stat, mask; local
288 stat = spu_int_stat_get(spu, 0) & mask;
290 spu->class_0_pending |= stat;
296 spu_int_stat_clear(spu, 0, stat);
306 unsigned long stat, mask, dar, dsisr; local
313 stat = spu_int_stat_get(spu, 1) & mask;
316 if (stat & CLASS1_STORAGE_FAULT_INTR)
318 spu_int_stat_clear(spu, 1, stat);
320 pr_debug("%s: %lx %lx %lx %lx\n", __func__, mask, stat,
323 if (stat
341 unsigned long stat; local
[all...]
/linux-master/drivers/net/dsa/mv88e6xxx/
H A Dserdes.c138 struct mv88e6352_serdes_hw_stat *stat; local
146 stat = &mv88e6352_serdes_hw_stats[i];
147 memcpy(data + i * ETH_GSTRING_LEN, stat->string,
154 struct mv88e6352_serdes_hw_stat *stat)
160 err = mv88e6352_serdes_read(chip, stat->reg, &reg);
168 if (stat->sizeof_stat == 32) {
169 err = mv88e6352_serdes_read(chip, stat->reg + 1, &reg);
184 struct mv88e6352_serdes_hw_stat *stat; local
196 stat = &mv88e6352_serdes_hw_stats[i];
197 value = mv88e6352_serdes_get_stat(chip, stat);
153 mv88e6352_serdes_get_stat(struct mv88e6xxx_chip *chip, struct mv88e6352_serdes_hw_stat *stat) argument
400 struct mv88e6390_serdes_hw_stat *stat; local
414 mv88e6390_serdes_get_stat(struct mv88e6xxx_chip *chip, int lane, struct mv88e6390_serdes_hw_stat *stat) argument
435 struct mv88e6390_serdes_hw_stat *stat; local
[all...]
/linux-master/tools/power/cpupower/utils/helpers/
H A Dsysfs.c12 #include <sys/stat.h>
55 struct stat statbuf;
59 if (stat(path, &statbuf) != 0)
67 if (stat(path, &statbuf) != 0)
108 struct stat statbuf;
113 if (stat(path, &statbuf) != 0)
357 struct stat statbuf;
362 if (stat(file, &statbuf) != 0 || !S_ISDIR(statbuf.st_mode))
366 if (stat(file, &statbuf) != 0 || !S_ISDIR(statbuf.st_mode))
369 while (stat(fil
[all...]
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dpinning.c4 #include <sys/stat.h>
37 struct stat statbuf = {};
66 err = stat(pinpath, &statbuf);
67 if (CHECK(err, "stat pinpath", "err %d errno %d\n", err, errno))
71 err = stat(nopinpath, &statbuf);
72 if (CHECK(!err || errno != ENOENT, "stat nopinpath",
77 err = stat(nopinpath2, &statbuf);
78 if (CHECK(!err || errno != ENOENT, "stat nopinpath2",
152 err = stat(custpinpath, &statbuf);
153 if (CHECK(err, "stat custpinpat
[all...]
H A Dtest_bpffs.c7 #include <sys/stat.h>
36 struct stat a, b, c;
98 err = stat(TDIR "/fs1/a", &a);
99 if (!ASSERT_OK(err, "stat(" TDIR "/fs1/a)"))
104 err = stat(TDIR "/fs1/b", &b);
105 if (!ASSERT_OK(err, "stat(" TDIR "/fs1/b)"))
114 err = stat(TDIR "/fs1/c", &c);
115 if (!ASSERT_OK(err, "stat(" TDIR "/fs1/map)"))
120 err = stat(TDIR "/fs1/b", &b);
121 if (!ASSERT_OK(err, "stat(" TDI
[all...]
/linux-master/net/mac80211/
H A Dairtime.c507 struct ieee80211_rx_status *stat, u8 band,
516 stat->bw = ri->bw;
517 stat->nss = ri->nss;
518 stat->rate_idx = ri->mcs;
521 stat->encoding = RX_ENC_HE;
523 stat->encoding = RX_ENC_VHT;
525 stat->encoding = RX_ENC_HT;
527 stat->encoding = RX_ENC_LEGACY;
530 stat->enc_flags |= RX_ENC_FLAG_SHORT_GI;
532 stat
506 ieee80211_fill_rate_info(struct ieee80211_hw *hw, struct ieee80211_rx_status *stat, u8 band, struct rate_info *ri) argument
549 ieee80211_fill_rx_status(struct ieee80211_rx_status *stat, struct ieee80211_hw *hw, struct ieee80211_tx_rate *rate, struct rate_info *ri, u8 band, int len) argument
597 struct ieee80211_rx_status stat; local
650 struct ieee80211_rx_status stat; local
[all...]
/linux-master/drivers/media/dvb-frontends/
H A Dmxl5xx.c150 int stat; local
157 stat = i2cwrite(state, data,
159 if (stat)
161 if (!stat)
162 stat = i2cread(state, (u8 *) val,
165 if (stat)
167 return stat;
175 int stat; local
196 stat = i2cwrite(state, buf, size);
198 return stat;
203 int stat; local
220 int stat; local
242 int stat; local
266 int stat; local
291 int stat; local
308 int stat; local
434 int stat; local
515 int stat; local
593 int stat; local
1317 int stat = 0; local
1348 int stat = 0; local
1585 int stat = 0; local
[all...]
/linux-master/fs/netfs/
H A Dinternal.h136 static inline void netfs_stat(atomic_t *stat) argument
138 atomic_inc(stat);
141 static inline void netfs_stat_d(atomic_t *stat) argument
143 atomic_dec(stat);
298 static inline void fscache_stat(atomic_t *stat) argument
300 atomic_inc(stat);
303 static inline void fscache_stat_d(atomic_t *stat) argument
305 atomic_dec(stat);
308 #define __fscache_stat(stat) (stat)
[all...]
/linux-master/block/
H A Dblk-iolatency.c38 * on every submit and complete so we can do the appropriate stat recording and
78 #include "blk-stat.h"
199 struct latency_stat *stat)
202 stat->ps.total = 0;
203 stat->ps.missed = 0;
205 blk_rq_stat_init(&stat->rqs);
210 struct latency_stat *stat)
213 sum->ps.total += stat->ps.total;
214 sum->ps.missed += stat->ps.missed;
216 blk_rq_stat_sum(&sum->rqs, &stat
198 latency_stat_init(struct iolatency_grp *iolat, struct latency_stat *stat) argument
208 latency_stat_sum(struct iolatency_grp *iolat, struct latency_stat *sum, struct latency_stat *stat) argument
222 struct latency_stat *stat = get_cpu_ptr(iolat->stats); local
232 latency_sum_ok(struct iolatency_grp *iolat, struct latency_stat *stat) argument
243 latency_stat_samples(struct iolatency_grp *iolat, struct latency_stat *stat) argument
251 iolat_update_total_lat_avg(struct iolatency_grp *iolat, struct latency_stat *stat) argument
528 struct latency_stat stat; local
920 struct latency_stat stat; local
997 struct latency_stat *stat; local
[all...]
H A Dgenhd.c101 struct disk_stats *stat)
105 memset(stat, 0, sizeof(struct disk_stats));
111 stat->nsecs[group] += ptr->nsecs[group];
112 stat->sectors[group] += ptr->sectors[group];
113 stat->ios[group] += ptr->ios[group];
114 stat->merges[group] += ptr->merges[group];
117 stat->io_ticks += ptr->io_ticks;
958 struct disk_stats stat; local
971 part_stat_read_all(bdev, &stat);
979 stat
100 part_stat_read_all(struct block_device *part, struct disk_stats *stat) argument
1239 struct disk_stats stat; local
[all...]
/linux-master/drivers/net/ethernet/cavium/thunder/
H A Dnicvf_ethtool.c26 #define NICVF_HW_STAT(stat) { \
27 .name = #stat, \
28 .index = offsetof(struct nicvf_hw_stats, stat) / sizeof(u64), \
31 #define NICVF_DRV_STAT(stat) { \
32 .name = #stat, \
33 .index = offsetof(struct nicvf_drv_stats, stat) / sizeof(u64), \
301 int stat, qidx; local
308 for (stat = 0; stat < nicvf_n_queue_stats; stat
325 int stat, tmp_stats; local
369 int mbox, key, stat, q; local
[all...]
/linux-master/drivers/media/pci/ddbridge/
H A Dddbridge-mci.c58 unsigned long stat; local
69 stat = wait_for_completion_timeout(&state->base->completion, HZ);
70 if (stat == 0) {
84 int stat; local
87 stat = _mci_cmd_unlocked(state,
91 return stat;
/linux-master/fs/nfsd/
H A Dnfsxdr.c207 * @stat: Attributes to encode
215 const struct svc_fh *fhp, const struct kstat *stat)
219 int type = stat->mode & S_IFMT;
229 *p++ = cpu_to_be32((u32)stat->mode);
230 *p++ = cpu_to_be32((u32)stat->nlink);
231 *p++ = cpu_to_be32((u32)from_kuid_munged(userns, stat->uid));
232 *p++ = cpu_to_be32((u32)from_kgid_munged(userns, stat->gid));
234 if (S_ISLNK(type) && stat->size > NFS_MAXPATHLEN)
237 *p++ = cpu_to_be32((u32) stat->size);
238 *p++ = cpu_to_be32((u32) stat
214 svcxdr_encode_fattr(struct svc_rqst *rqstp, struct xdr_stream *xdr, const struct svc_fh *fhp, const struct kstat *stat) argument
533 struct kstatfs *stat = &resp->stats; local
[all...]
/linux-master/drivers/gpu/drm/nouveau/nvkm/engine/fifo/
H A Dga100.c127 u32 stat = nvkm_rd32(device, runl->addr + 0x200 + engn->id * 0x40); local
129 ENGN_DEBUG(engn, "status %08x", stat);
132 switch ((stat & 0x0000e000) >> 13) {
135 case 5 /* SAVE */: return (stat & 0x00000fff);
136 case 6 /* LOAD */: return (stat & 0x0fff0000) >> 16;
139 return (stat & 0x0fff0000) >> 16;
140 return (stat & 0x00000fff);
190 u32 stat = intr & inte; local
192 if (!stat) {
197 if (stat
228 u32 stat = intr & inte; local
338 u32 stat = intr & inte; local
[all...]
/linux-master/include/soc/fsl/
H A Ddpaa2-global.h22 u8 stat; member in struct:dpaa2_dq::__anon12452::dq
36 u8 stat; member in struct:dpaa2_dq::__anon12452::scn
65 * dpaa2_dq_flags() - Get the stat field of dequeue response
70 return dq->dq.stat;
/linux-master/tools/testing/selftests/nsfs/
H A Downer.c10 #include <sys/stat.h>
29 struct stat st1, st2;
68 if (stat(path, &st2))
69 return pr_err("stat");

Completed in 285 milliseconds

1234567891011>>