Home
last modified time | relevance | path

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

12345678910>>...199

/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/engine/fifo/
H A Dgk104.c58 u32 stat = nvkm_rd32(device, 0x002640 + (engn * 0x08)); in gk104_fifo_engine_status() local
60 status->busy = !!(stat & 0x80000000); in gk104_fifo_engine_status()
61 status->faulted = !!(stat & 0x40000000); in gk104_fifo_engine_status()
62 status->next.tsg = !!(stat & 0x10000000); in gk104_fifo_engine_status()
63 status->next.id = (stat & 0x0fff0000) >> 16; in gk104_fifo_engine_status()
64 status->chsw = !!(stat & 0x00008000); in gk104_fifo_engine_status()
65 status->save = !!(stat & 0x00004000); in gk104_fifo_engine_status()
66 status->load = !!(stat & 0x00002000); in gk104_fifo_engine_status()
67 status->prev.tsg = !!(stat & 0x00001000); in gk104_fifo_engine_status()
68 status->prev.id = (stat in gk104_fifo_engine_status()
361 const u32 stat = nvkm_rd32(device, 0x800004 + (chid * 0x08)); gk104_fifo_recover_chan() local
635 u32 stat = nvkm_rd32(device, 0x00256c); gk104_fifo_intr_chsw() local
645 u32 stat = nvkm_rd32(device, 0x00259c); gk104_fifo_intr_dropped_fault() local
689 u32 stat = nvkm_rd32(device, 0x040108 + (unit * 0x2000)) & mask; gk104_fifo_intr_pbdma_0() local
738 u32 stat = nvkm_rd32(device, 0x040148 + (unit * 0x2000)) & mask; gk104_fifo_intr_pbdma_1() local
779 u32 stat = nvkm_rd32(device, 0x002100) & mask; gk104_fifo_intr() local
[all...]
/kernel/linux/linux-5.10/fs/nfsd/
H A Dnfsxdr.c130 struct kstat *stat) in encode_fattr()
138 type = (stat->mode & S_IFMT); in encode_fattr()
141 *p++ = htonl((u32) stat->mode); in encode_fattr()
142 *p++ = htonl((u32) stat->nlink); in encode_fattr()
143 *p++ = htonl((u32) from_kuid_munged(userns, stat->uid)); in encode_fattr()
144 *p++ = htonl((u32) from_kgid_munged(userns, stat->gid)); in encode_fattr()
146 if (S_ISLNK(type) && stat->size > NFS_MAXPATHLEN) { in encode_fattr()
149 *p++ = htonl((u32) stat->size); in encode_fattr()
151 *p++ = htonl((u32) stat->blksize); in encode_fattr()
153 *p++ = htonl(new_encode_dev(stat in encode_fattr()
129 encode_fattr(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp, struct kstat *stat) encode_fattr() argument
187 nfs2svc_encode_fattr(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp, struct kstat *stat) nfs2svc_encode_fattr() argument
535 struct kstatfs *stat = &resp->stats; nfssvc_encode_statfsres() local
[all...]
/kernel/linux/linux-5.10/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"
198 struct latency_stat *stat) in latency_stat_init()
201 stat->ps.total = 0; in latency_stat_init()
202 stat->ps.missed = 0; in latency_stat_init()
204 blk_rq_stat_init(&stat->rqs); in latency_stat_init()
209 struct latency_stat *stat) in latency_stat_sum()
212 sum->ps.total += stat->ps.total; in latency_stat_sum()
213 sum->ps.missed += stat->ps.missed; in latency_stat_sum()
215 blk_rq_stat_sum(&sum->rqs, &stat in latency_stat_sum()
197 latency_stat_init(struct iolatency_grp *iolat, struct latency_stat *stat) latency_stat_init() argument
207 latency_stat_sum(struct iolatency_grp *iolat, struct latency_stat *sum, struct latency_stat *stat) latency_stat_sum() argument
221 struct latency_stat *stat = get_cpu_ptr(iolat->stats); latency_stat_record_time() local
231 latency_sum_ok(struct iolatency_grp *iolat, struct latency_stat *stat) latency_sum_ok() argument
242 latency_stat_samples(struct iolatency_grp *iolat, struct latency_stat *stat) latency_stat_samples() argument
250 iolat_update_total_lat_avg(struct iolatency_grp *iolat, struct latency_stat *stat) iolat_update_total_lat_avg() argument
530 struct latency_stat stat; iolatency_check_latencies() local
908 struct latency_stat stat; iolatency_ssd_stat() local
987 struct latency_stat *stat; iolatency_pd_init() local
[all...]
/kernel/linux/linux-6.6/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) in latency_stat_init()
202 stat->ps.total = 0; in latency_stat_init()
203 stat->ps.missed = 0; in latency_stat_init()
205 blk_rq_stat_init(&stat->rqs); in latency_stat_init()
210 struct latency_stat *stat) in latency_stat_sum()
213 sum->ps.total += stat->ps.total; in latency_stat_sum()
214 sum->ps.missed += stat->ps.missed; in latency_stat_sum()
216 blk_rq_stat_sum(&sum->rqs, &stat in latency_stat_sum()
198 latency_stat_init(struct iolatency_grp *iolat, struct latency_stat *stat) latency_stat_init() argument
208 latency_stat_sum(struct iolatency_grp *iolat, struct latency_stat *sum, struct latency_stat *stat) latency_stat_sum() argument
222 struct latency_stat *stat = get_cpu_ptr(iolat->stats); latency_stat_record_time() local
232 latency_sum_ok(struct iolatency_grp *iolat, struct latency_stat *stat) latency_sum_ok() argument
243 latency_stat_samples(struct iolatency_grp *iolat, struct latency_stat *stat) latency_stat_samples() argument
251 iolat_update_total_lat_avg(struct iolatency_grp *iolat, struct latency_stat *stat) iolat_update_total_lat_avg() argument
528 struct latency_stat stat; iolatency_check_latencies() local
920 struct latency_stat stat; iolatency_ssd_stat() local
997 struct latency_stat *stat; iolatency_pd_init() local
[all...]
H A Dgenhd.c101 struct disk_stats *stat) in part_stat_read_all()
105 memset(stat, 0, sizeof(struct disk_stats)); in part_stat_read_all()
111 stat->nsecs[group] += ptr->nsecs[group]; in part_stat_read_all()
112 stat->sectors[group] += ptr->sectors[group]; in part_stat_read_all()
113 stat->ios[group] += ptr->ios[group]; in part_stat_read_all()
114 stat->merges[group] += ptr->merges[group]; in part_stat_read_all()
117 stat->io_ticks += ptr->io_ticks; in part_stat_read_all()
951 struct disk_stats stat; in part_stat_show() local
964 part_stat_read_all(bdev, &stat); in part_stat_show()
972 stat in part_stat_show()
100 part_stat_read_all(struct block_device *part, struct disk_stats *stat) part_stat_read_all() argument
1232 struct disk_stats stat; diskstats_show() local
[all...]
/kernel/linux/linux-5.10/drivers/pcmcia/
H A Dpxa2xx_cm_x255.c32 skt->stat[SOC_STAT_CD].gpio = GPIO_PCMCIA_S0_CD_VALID; in cmx255_pcmcia_hw_init()
33 skt->stat[SOC_STAT_CD].name = "PCMCIA0 CD"; in cmx255_pcmcia_hw_init()
34 skt->stat[SOC_STAT_RDY].gpio = GPIO_PCMCIA_S0_RDYINT; in cmx255_pcmcia_hw_init()
35 skt->stat[SOC_STAT_RDY].name = "PCMCIA0 RDY"; in cmx255_pcmcia_hw_init()
37 skt->stat[SOC_STAT_CD].gpio = GPIO_PCMCIA_S1_CD_VALID; in cmx255_pcmcia_hw_init()
38 skt->stat[SOC_STAT_CD].name = "PCMCIA1 CD"; in cmx255_pcmcia_hw_init()
39 skt->stat[SOC_STAT_RDY].gpio = GPIO_PCMCIA_S1_RDYINT; in cmx255_pcmcia_hw_init()
40 skt->stat[SOC_STAT_RDY].name = "PCMCIA1 RDY"; in cmx255_pcmcia_hw_init()
H A Dbcm63xx_pcmcia.c164 unsigned int stat; in __get_socket_status() local
167 stat = 0; in __get_socket_status()
173 stat |= SS_DETECT; in __get_socket_status()
176 if ((stat & SS_DETECT) && !skt->card_detected) { in __get_socket_status()
177 unsigned int stat = 0; in __get_socket_status() local
187 stat |= (val & PCMCIA_C1_VS1_MASK) ? IN_VS1 : 0; in __get_socket_status()
188 stat |= (val & PCMCIA_C1_VS2_MASK) ? IN_VS2 : 0; in __get_socket_status()
198 stat |= (val & PCMCIA_C1_CD1_MASK) ? IN_CD1_VS2H : 0; in __get_socket_status()
199 stat |= (val & PCMCIA_C1_CD2_MASK) ? IN_CD2_VS2H : 0; in __get_socket_status()
209 stat | in __get_socket_status()
269 unsigned int stat, events; bcm63xx_pcmcia_poll() local
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/subdev/bus/
H A Dnv50.c57 u32 stat = nvkm_rd32(device, 0x001100) & nvkm_rd32(device, 0x001140); in nv50_bus_intr() local
59 if (stat & 0x00000008) { in nv50_bus_intr()
67 stat &= ~0x00000008; in nv50_bus_intr()
71 if (stat & 0x00010000) { in nv50_bus_intr()
75 stat &= ~0x00010000; in nv50_bus_intr()
79 if (stat) { in nv50_bus_intr()
80 nvkm_error(subdev, "intr %08x\n", stat); in nv50_bus_intr()
81 nvkm_mask(device, 0x001140, stat, 0); in nv50_bus_intr()
H A Dnv31.c35 u32 stat = nvkm_rd32(device, 0x001100) & nvkm_rd32(device, 0x001140); in nv31_bus_intr() local
44 if (stat & 0x00000008) { /* NV41- */ in nv31_bus_intr()
52 stat &= ~0x00000008; in nv31_bus_intr()
56 if (stat & 0x00070000) { in nv31_bus_intr()
60 stat &= ~0x00070000; in nv31_bus_intr()
64 if (stat) { in nv31_bus_intr()
65 nvkm_error(subdev, "intr %08x\n", stat); in nv31_bus_intr()
66 nvkm_mask(device, 0x001140, stat, 0x00000000); in nv31_bus_intr()
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvkm/subdev/bus/
H A Dnv31.c35 u32 stat = nvkm_rd32(device, 0x001100) & nvkm_rd32(device, 0x001140); in nv31_bus_intr() local
44 if (stat & 0x00000008) { /* NV41- */ in nv31_bus_intr()
52 stat &= ~0x00000008; in nv31_bus_intr()
56 if (stat & 0x00070000) { in nv31_bus_intr()
60 stat &= ~0x00070000; in nv31_bus_intr()
64 if (stat) { in nv31_bus_intr()
65 nvkm_error(subdev, "intr %08x\n", stat); in nv31_bus_intr()
66 nvkm_mask(device, 0x001140, stat, 0x00000000); in nv31_bus_intr()
H A Dnv50.c57 u32 stat = nvkm_rd32(device, 0x001100) & nvkm_rd32(device, 0x001140); in nv50_bus_intr() local
59 if (stat & 0x00000008) { in nv50_bus_intr()
67 stat &= ~0x00000008; in nv50_bus_intr()
71 if (stat & 0x00010000) { in nv50_bus_intr()
75 stat &= ~0x00010000; in nv50_bus_intr()
79 if (stat) { in nv50_bus_intr()
80 nvkm_error(subdev, "intr %08x\n", stat); in nv50_bus_intr()
81 nvkm_mask(device, 0x001140, stat, 0); in nv50_bus_intr()
/kernel/linux/linux-6.6/tools/testing/selftests/user_events/
H A Duser_events_selftests.h6 #include <sys/stat.h>
21 struct stat buf; in tracefs_enabled()
29 ret = stat("/sys/kernel/tracing", &buf); in tracefs_enabled()
37 ret = stat("/sys/kernel/tracing/README", &buf); in tracefs_enabled()
48 ret = stat("/sys/kernel/tracing/README", &buf); in tracefs_enabled()
62 struct stat buf; in user_events_enabled()
79 ret = stat("/sys/kernel/tracing/user_events_data", &buf); in user_events_enabled()
/test/xts/hats/kernel/syscalls/fileio/fstat/
H A DFstatApiTest.cpp23 #include <sys/stat.h>
64 struct stat stat = { 0 }; in HWTEST_F() local
68 int ret = fstat(fd, &stat); in HWTEST_F()
85 struct stat stat = { 0 }; in HWTEST_F() local
87 int ret = fstat(-1, &stat); in HWTEST_F()
/kernel/linux/linux-5.10/drivers/media/i2c/
H A Dtda9840.c83 int stat = tda9840_status(sd); in tda9840_s_tuner() local
89 stat = stat < 0 ? 0 : stat; in tda9840_s_tuner()
90 if (stat == 0 || stat == 0x60) /* mono input */ in tda9840_s_tuner()
92 else if (stat == 0x40) /* stereo input */ in tda9840_s_tuner()
115 int stat = tda9840_status(sd); in tda9840_g_tuner() local
117 if (stat < 0) in tda9840_g_tuner()
118 return stat; in tda9840_g_tuner()
[all...]
/kernel/linux/linux-5.10/drivers/ide/
H A Dide-lib.c101 * @stat: status byte to decode
108 u8 ide_dump_status(ide_drive_t *drive, const char *msg, u8 stat) in ide_dump_status() argument
112 printk(KERN_ERR "%s: %s: status=0x%02x { ", drive->name, msg, stat); in ide_dump_status()
113 if (stat & ATA_BUSY) in ide_dump_status()
116 if (stat & ATA_DRDY) in ide_dump_status()
118 if (stat & ATA_DF) in ide_dump_status()
120 if (stat & ATA_DSC) in ide_dump_status()
122 if (stat & ATA_DRQ) in ide_dump_status()
124 if (stat & ATA_CORR) in ide_dump_status()
126 if (stat in ide_dump_status()
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/
H A Dauxgm200.c82 u32 ctrl, stat, timeout, retries = 0; in gm200_i2c_aux_xfer() local
92 stat = nvkm_rd32(device, 0x00d958 + base); in gm200_i2c_aux_xfer()
93 if (!(stat & 0x10000000)) { in gm200_i2c_aux_xfer()
137 stat = nvkm_mask(device, 0x00d958 + base, 0, 0); in gm200_i2c_aux_xfer()
138 if ((stat & 0x000f0000) == 0x00080000 || in gm200_i2c_aux_xfer()
139 (stat & 0x000f0000) == 0x00020000) in gm200_i2c_aux_xfer()
141 if ((stat & 0x00000100)) in gm200_i2c_aux_xfer()
143 if ((stat & 0x00000e00)) in gm200_i2c_aux_xfer()
146 AUX_TRACE(&aux->base, "%02d %08x %08x", retries, ctrl, stat); in gm200_i2c_aux_xfer()
155 *size = stat in gm200_i2c_aux_xfer()
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/cavium/thunder/
H A Dnicvf_ethtool.c25 #define NICVF_HW_STAT(stat) { \
26 .name = #stat, \
27 .index = offsetof(struct nicvf_hw_stats, stat) / sizeof(u64), \
30 #define NICVF_DRV_STAT(stat) { \
31 .name = #stat, \
32 .index = offsetof(struct nicvf_drv_stats, stat) / sizeof(u64), \
300 int stat, qidx; in nicvf_get_qset_stats() local
307 for (stat = 0; stat < nicvf_n_queue_stats; stat in nicvf_get_qset_stats()
324 int stat, tmp_stats; nicvf_get_ethtool_stats() local
368 int mbox, key, stat, q; nicvf_get_regs() local
[all...]
/kernel/linux/linux-6.6/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; in nicvf_get_qset_stats() local
308 for (stat = 0; stat < nicvf_n_queue_stats; stat in nicvf_get_qset_stats()
325 int stat, tmp_stats; nicvf_get_ethtool_stats() local
369 int mbox, key, stat, q; nicvf_get_regs() local
[all...]
/kernel/linux/linux-6.6/drivers/pcmcia/
H A Dbcm63xx_pcmcia.c164 unsigned int stat; in __get_socket_status() local
167 stat = 0; in __get_socket_status()
173 stat |= SS_DETECT; in __get_socket_status()
176 if ((stat & SS_DETECT) && !skt->card_detected) { in __get_socket_status()
177 unsigned int stat = 0; in __get_socket_status() local
187 stat |= (val & PCMCIA_C1_VS1_MASK) ? IN_VS1 : 0; in __get_socket_status()
188 stat |= (val & PCMCIA_C1_VS2_MASK) ? IN_VS2 : 0; in __get_socket_status()
198 stat |= (val & PCMCIA_C1_CD1_MASK) ? IN_CD1_VS2H : 0; in __get_socket_status()
199 stat |= (val & PCMCIA_C1_CD2_MASK) ? IN_CD2_VS2H : 0; in __get_socket_status()
209 stat | in __get_socket_status()
269 unsigned int stat, events; bcm63xx_pcmcia_poll() local
[all...]
/kernel/linux/linux-5.10/arch/powerpc/platforms/cell/
H A Dspu_base.c283 unsigned long stat, mask; in spu_irq_class_0() local
289 stat = spu_int_stat_get(spu, 0) & mask; in spu_irq_class_0()
291 spu->class_0_pending |= stat; in spu_irq_class_0()
297 spu_int_stat_clear(spu, 0, stat); in spu_irq_class_0()
307 unsigned long stat, mask, dar, dsisr; in spu_irq_class_1() local
314 stat = spu_int_stat_get(spu, 1) & mask; in spu_irq_class_1()
317 if (stat & CLASS1_STORAGE_FAULT_INTR) in spu_irq_class_1()
319 spu_int_stat_clear(spu, 1, stat); in spu_irq_class_1()
321 pr_debug("%s: %lx %lx %lx %lx\n", __func__, mask, stat, in spu_irq_class_1()
324 if (stat in spu_irq_class_1()
348 unsigned long stat; spu_irq_class_2() local
[all...]
/kernel/linux/linux-5.10/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()
127 void *stat; stat_seq_init() local
[all...]
/kernel/linux/linux-5.10/drivers/media/usb/pvrusb2/
H A Dpvrusb2-ioread.c148 int stat; in pvr2_ioread_start() local
155 stat = pvr2_buffer_queue(bp); in pvr2_ioread_start()
156 if (stat < 0) { in pvr2_ioread_start()
159 cp,stat); in pvr2_ioread_start()
161 return stat; in pvr2_ioread_start()
248 int stat; in pvr2_ioread_get_buffer() local
253 stat = pvr2_buffer_queue(cp->c_buf); in pvr2_ioread_get_buffer()
254 if (stat < 0) { in pvr2_ioread_get_buffer()
258 cp,stat); in pvr2_ioread_get_buffer()
273 stat in pvr2_ioread_get_buffer()
393 int stat; pvr2_ioread_read() local
[all...]
/kernel/linux/linux-6.6/drivers/media/usb/pvrusb2/
H A Dpvrusb2-ioread.c148 int stat; in pvr2_ioread_start() local
155 stat = pvr2_buffer_queue(bp); in pvr2_ioread_start()
156 if (stat < 0) { in pvr2_ioread_start()
159 cp,stat); in pvr2_ioread_start()
161 return stat; in pvr2_ioread_start()
248 int stat; in pvr2_ioread_get_buffer() local
253 stat = pvr2_buffer_queue(cp->c_buf); in pvr2_ioread_get_buffer()
254 if (stat < 0) { in pvr2_ioread_get_buffer()
258 cp,stat); in pvr2_ioread_get_buffer()
273 stat in pvr2_ioread_get_buffer()
393 int stat; pvr2_ioread_read() local
[all...]
/kernel/linux/linux-6.6/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()
127 void *stat; stat_seq_init() local
[all...]
/device/soc/hisilicon/hi3861v100/sdk_liteos/platform/os/Huawei_LiteOS/components/lib/libc/musl/include/sys/
H A Dstat.h2 * @defgroup stat Stat
31 #include <bits/stat.h>
86 * @ingroup stat
89 * The stat() function shall obtain information about the named file and write it to the area pointed to by the buf
92 * @param buf [IN] A pointer to a stat structure, defined in the <sys/stat.h> header,
132 * <ul><li>stat.h</li></ul>
135 int stat(const char *__restrict, struct stat *__restrict);
138 * @ingroup stat
[all...]

Completed in 14 milliseconds

12345678910>>...199