Searched refs:stat (Results 1 - 200 of 1458) sorted by relevance

12345678

/linux-4.4.14/arch/arm/mach-ebsa110/include/mach/
H A Dentry-macro.S19 .macro get_irqnr_and_base, irqnr, stat, base, tmp
20 ldrb \stat, [\base] @ get interrupts
22 tst \stat, #15
24 moveq \stat, \stat, lsr #4
25 tst \stat, #3
27 moveq \stat, \stat, lsr #2
28 tst \stat, #1
30 moveq \stat, \stat, lsr #1
31 tst \stat, #1 @ bit 0 should be set
/linux-4.4.14/arch/score/include/uapi/asm/
H A Dstat.h4 #include <asm-generic/stat.h>
/linux-4.4.14/drivers/media/platform/omap3isp/
H A Dispstat.c24 #define ISP_STAT_USES_DMAENGINE(stat) ((stat)->dma_ch != NULL)
58 #define IS_H3A_AF(stat) ((stat) == &(stat)->isp->isp_af)
59 #define IS_H3A_AEWB(stat) ((stat) == &(stat)->isp->isp_aewb)
60 #define IS_H3A(stat) (IS_H3A_AF(stat) || IS_H3A_AEWB(stat))
62 static void __isp_stat_buf_sync_magic(struct ispstat *stat, __isp_stat_buf_sync_magic() argument
70 dma_sync(stat->isp->dev, buf->dma_addr, 0, MAGIC_SIZE, dir); __isp_stat_buf_sync_magic()
71 dma_sync(stat->isp->dev, buf->dma_addr + (buf_size & PAGE_MASK), __isp_stat_buf_sync_magic()
75 static void isp_stat_buf_sync_magic_for_device(struct ispstat *stat, isp_stat_buf_sync_magic_for_device() argument
80 if (ISP_STAT_USES_DMAENGINE(stat)) isp_stat_buf_sync_magic_for_device()
83 __isp_stat_buf_sync_magic(stat, buf, buf_size, dir, isp_stat_buf_sync_magic_for_device()
87 static void isp_stat_buf_sync_magic_for_cpu(struct ispstat *stat, isp_stat_buf_sync_magic_for_cpu() argument
92 if (ISP_STAT_USES_DMAENGINE(stat)) isp_stat_buf_sync_magic_for_cpu()
95 __isp_stat_buf_sync_magic(stat, buf, buf_size, dir, isp_stat_buf_sync_magic_for_cpu()
99 static int isp_stat_buf_check_magic(struct ispstat *stat, isp_stat_buf_check_magic() argument
102 const u32 buf_size = IS_H3A_AF(stat) ? isp_stat_buf_check_magic()
108 isp_stat_buf_sync_magic_for_cpu(stat, buf, buf_size, DMA_FROM_DEVICE); isp_stat_buf_check_magic()
116 dev_dbg(stat->isp->dev, "%s: beginning magic check does not " isp_stat_buf_check_magic()
117 "match.\n", stat->subdev.name); isp_stat_buf_check_magic()
125 dev_dbg(stat->isp->dev, "%s: ending magic check does " isp_stat_buf_check_magic()
126 "not match.\n", stat->subdev.name); isp_stat_buf_check_magic()
131 isp_stat_buf_sync_magic_for_device(stat, buf, buf_size, isp_stat_buf_check_magic()
137 static void isp_stat_buf_insert_magic(struct ispstat *stat, isp_stat_buf_insert_magic() argument
140 const u32 buf_size = IS_H3A_AF(stat) ? isp_stat_buf_insert_magic()
141 stat->buf_size + AF_EXTRA_DATA : stat->buf_size; isp_stat_buf_insert_magic()
143 isp_stat_buf_sync_magic_for_cpu(stat, buf, buf_size, DMA_FROM_DEVICE); isp_stat_buf_insert_magic()
149 * stat->buf_size. isp_stat_buf_insert_magic()
154 isp_stat_buf_sync_magic_for_device(stat, buf, buf_size, isp_stat_buf_insert_magic()
158 static void isp_stat_buf_sync_for_device(struct ispstat *stat, isp_stat_buf_sync_for_device() argument
161 if (ISP_STAT_USES_DMAENGINE(stat)) isp_stat_buf_sync_for_device()
164 dma_sync_sg_for_device(stat->isp->dev, buf->sgt.sgl, isp_stat_buf_sync_for_device()
168 static void isp_stat_buf_sync_for_cpu(struct ispstat *stat, isp_stat_buf_sync_for_cpu() argument
171 if (ISP_STAT_USES_DMAENGINE(stat)) isp_stat_buf_sync_for_cpu()
174 dma_sync_sg_for_cpu(stat->isp->dev, buf->sgt.sgl, isp_stat_buf_sync_for_cpu()
178 static void isp_stat_buf_clear(struct ispstat *stat) isp_stat_buf_clear() argument
183 stat->buf[i].empty = 1; isp_stat_buf_clear()
187 __isp_stat_buf_find(struct ispstat *stat, int look_empty) __isp_stat_buf_find() argument
193 struct ispstat_buffer *curr = &stat->buf[i]; __isp_stat_buf_find()
199 if (curr == stat->locked_buf || curr == stat->active_buf) __isp_stat_buf_find()
222 isp_stat_buf_find_oldest(struct ispstat *stat) isp_stat_buf_find_oldest() argument
224 return __isp_stat_buf_find(stat, 0); isp_stat_buf_find_oldest()
228 isp_stat_buf_find_oldest_or_empty(struct ispstat *stat) isp_stat_buf_find_oldest_or_empty() argument
230 return __isp_stat_buf_find(stat, 1); isp_stat_buf_find_oldest_or_empty()
233 static int isp_stat_buf_queue(struct ispstat *stat) isp_stat_buf_queue() argument
235 if (!stat->active_buf) isp_stat_buf_queue()
238 v4l2_get_timestamp(&stat->active_buf->ts); isp_stat_buf_queue()
240 stat->active_buf->buf_size = stat->buf_size; isp_stat_buf_queue()
241 if (isp_stat_buf_check_magic(stat, stat->active_buf)) { isp_stat_buf_queue()
242 dev_dbg(stat->isp->dev, "%s: data wasn't properly written.\n", isp_stat_buf_queue()
243 stat->subdev.name); isp_stat_buf_queue()
246 stat->active_buf->config_counter = stat->config_counter; isp_stat_buf_queue()
247 stat->active_buf->frame_number = stat->frame_number; isp_stat_buf_queue()
248 stat->active_buf->empty = 0; isp_stat_buf_queue()
249 stat->active_buf = NULL; isp_stat_buf_queue()
255 static void isp_stat_buf_next(struct ispstat *stat) isp_stat_buf_next() argument
257 if (unlikely(stat->active_buf)) isp_stat_buf_next()
259 dev_dbg(stat->isp->dev, "%s: new buffer requested without " isp_stat_buf_next()
261 stat->subdev.name); isp_stat_buf_next()
263 stat->active_buf = isp_stat_buf_find_oldest_or_empty(stat); isp_stat_buf_next()
266 static void isp_stat_buf_release(struct ispstat *stat) isp_stat_buf_release() argument
270 isp_stat_buf_sync_for_device(stat, stat->locked_buf); isp_stat_buf_release()
271 spin_lock_irqsave(&stat->isp->stat_lock, flags); isp_stat_buf_release()
272 stat->locked_buf = NULL; isp_stat_buf_release()
273 spin_unlock_irqrestore(&stat->isp->stat_lock, flags); isp_stat_buf_release()
277 static struct ispstat_buffer *isp_stat_buf_get(struct ispstat *stat, isp_stat_buf_get() argument
284 spin_lock_irqsave(&stat->isp->stat_lock, flags); isp_stat_buf_get()
287 buf = isp_stat_buf_find_oldest(stat); isp_stat_buf_get()
289 spin_unlock_irqrestore(&stat->isp->stat_lock, flags); isp_stat_buf_get()
290 dev_dbg(stat->isp->dev, "%s: cannot find a buffer.\n", isp_stat_buf_get()
291 stat->subdev.name); isp_stat_buf_get()
294 if (isp_stat_buf_check_magic(stat, buf)) { isp_stat_buf_get()
295 dev_dbg(stat->isp->dev, "%s: current buffer has " isp_stat_buf_get()
296 "corrupted data\n.", stat->subdev.name); isp_stat_buf_get()
305 stat->locked_buf = buf; isp_stat_buf_get()
307 spin_unlock_irqrestore(&stat->isp->stat_lock, flags); isp_stat_buf_get()
310 dev_warn(stat->isp->dev, "%s: userspace's buffer size is " isp_stat_buf_get()
311 "not enough.\n", stat->subdev.name); isp_stat_buf_get()
312 isp_stat_buf_release(stat); isp_stat_buf_get()
316 isp_stat_buf_sync_for_cpu(stat, buf); isp_stat_buf_get()
323 dev_info(stat->isp->dev, isp_stat_buf_get()
324 "%s: failed copying %d bytes of stat data\n", isp_stat_buf_get()
325 stat->subdev.name, rval); isp_stat_buf_get()
327 isp_stat_buf_release(stat); isp_stat_buf_get()
333 static void isp_stat_bufs_free(struct ispstat *stat) isp_stat_bufs_free() argument
335 struct device *dev = ISP_STAT_USES_DMAENGINE(stat) isp_stat_bufs_free()
336 ? NULL : stat->isp->dev; isp_stat_bufs_free()
340 struct ispstat_buffer *buf = &stat->buf[i]; isp_stat_bufs_free()
347 dma_free_coherent(dev, stat->buf_alloc_size, buf->virt_addr, isp_stat_bufs_free()
355 dev_dbg(stat->isp->dev, "%s: all buffers were freed.\n", isp_stat_bufs_free()
356 stat->subdev.name); isp_stat_bufs_free()
358 stat->buf_alloc_size = 0; isp_stat_bufs_free()
359 stat->active_buf = NULL; isp_stat_bufs_free()
401 static int isp_stat_bufs_alloc(struct ispstat *stat, u32 size) isp_stat_bufs_alloc() argument
403 struct device *dev = ISP_STAT_USES_DMAENGINE(stat) isp_stat_bufs_alloc()
404 ? NULL : stat->isp->dev; isp_stat_bufs_alloc()
408 spin_lock_irqsave(&stat->isp->stat_lock, flags); isp_stat_bufs_alloc()
410 BUG_ON(stat->locked_buf != NULL); isp_stat_bufs_alloc()
413 if (stat->buf_alloc_size >= size) { isp_stat_bufs_alloc()
414 spin_unlock_irqrestore(&stat->isp->stat_lock, flags); isp_stat_bufs_alloc()
418 if (stat->state != ISPSTAT_DISABLED || stat->buf_processing) { isp_stat_bufs_alloc()
419 dev_info(stat->isp->dev, isp_stat_bufs_alloc()
421 stat->subdev.name); isp_stat_bufs_alloc()
422 spin_unlock_irqrestore(&stat->isp->stat_lock, flags); isp_stat_bufs_alloc()
426 spin_unlock_irqrestore(&stat->isp->stat_lock, flags); isp_stat_bufs_alloc()
428 isp_stat_bufs_free(stat); isp_stat_bufs_alloc()
430 stat->buf_alloc_size = size; isp_stat_bufs_alloc()
433 struct ispstat_buffer *buf = &stat->buf[i]; isp_stat_bufs_alloc()
438 dev_err(stat->isp->dev, isp_stat_bufs_alloc()
440 stat->subdev.name, i); isp_stat_bufs_alloc()
441 isp_stat_bufs_free(stat); isp_stat_bufs_alloc()
447 dev_dbg(stat->isp->dev, isp_stat_bufs_alloc()
449 stat->subdev.name, i, isp_stat_bufs_alloc()
457 static void isp_stat_queue_event(struct ispstat *stat, int err) isp_stat_queue_event() argument
459 struct video_device *vdev = stat->subdev.devnode; isp_stat_queue_event()
465 status->frame_number = stat->frame_number; isp_stat_queue_event()
466 status->config_counter = stat->config_counter; isp_stat_queue_event()
470 event.type = stat->event_type; isp_stat_queue_event()
481 int omap3isp_stat_request_statistics(struct ispstat *stat, omap3isp_stat_request_statistics() argument
486 if (stat->state != ISPSTAT_ENABLED) { omap3isp_stat_request_statistics()
487 dev_dbg(stat->isp->dev, "%s: engine not enabled.\n", omap3isp_stat_request_statistics()
488 stat->subdev.name); omap3isp_stat_request_statistics()
492 mutex_lock(&stat->ioctl_lock); omap3isp_stat_request_statistics()
493 buf = isp_stat_buf_get(stat, data); omap3isp_stat_request_statistics()
495 mutex_unlock(&stat->ioctl_lock); omap3isp_stat_request_statistics()
505 isp_stat_buf_release(stat); omap3isp_stat_request_statistics()
506 mutex_unlock(&stat->ioctl_lock); omap3isp_stat_request_statistics()
519 int omap3isp_stat_config(struct ispstat *stat, void *new_conf) omap3isp_stat_config() argument
527 dev_dbg(stat->isp->dev, "%s: configuration is NULL\n", omap3isp_stat_config()
528 stat->subdev.name); omap3isp_stat_config()
532 mutex_lock(&stat->ioctl_lock); omap3isp_stat_config()
534 dev_dbg(stat->isp->dev, "%s: configuring module with buffer " omap3isp_stat_config()
535 "size=0x%08lx\n", stat->subdev.name, (unsigned long)buf_size); omap3isp_stat_config()
537 ret = stat->ops->validate_params(stat, new_conf); omap3isp_stat_config()
539 mutex_unlock(&stat->ioctl_lock); omap3isp_stat_config()
540 dev_dbg(stat->isp->dev, "%s: configuration values are " omap3isp_stat_config()
541 "invalid.\n", stat->subdev.name); omap3isp_stat_config()
546 dev_dbg(stat->isp->dev, "%s: driver has corrected buffer size " omap3isp_stat_config()
547 "request to 0x%08lx\n", stat->subdev.name, omap3isp_stat_config()
561 if (IS_H3A(stat)) { omap3isp_stat_config()
563 if (IS_H3A_AF(stat)) omap3isp_stat_config()
569 if (stat->recover_priv) { omap3isp_stat_config()
571 stat->recover_priv; omap3isp_stat_config()
580 ret = isp_stat_bufs_alloc(stat, buf_size); omap3isp_stat_config()
582 mutex_unlock(&stat->ioctl_lock); omap3isp_stat_config()
586 spin_lock_irqsave(&stat->isp->stat_lock, irqflags); omap3isp_stat_config()
587 stat->ops->set_params(stat, new_conf); omap3isp_stat_config()
588 spin_unlock_irqrestore(&stat->isp->stat_lock, irqflags); omap3isp_stat_config()
594 user_cfg->config_counter = stat->config_counter + stat->inc_config; omap3isp_stat_config()
597 stat->configured = 1; omap3isp_stat_config()
598 dev_dbg(stat->isp->dev, "%s: module has been successfully " omap3isp_stat_config()
599 "configured.\n", stat->subdev.name); omap3isp_stat_config()
601 mutex_unlock(&stat->ioctl_lock); omap3isp_stat_config()
612 static int isp_stat_buf_process(struct ispstat *stat, int buf_state) isp_stat_buf_process() argument
616 if (!atomic_add_unless(&stat->buf_err, -1, 0) && isp_stat_buf_process()
617 buf_state == STAT_BUF_DONE && stat->state == ISPSTAT_ENABLED) { isp_stat_buf_process()
618 ret = isp_stat_buf_queue(stat); isp_stat_buf_process()
619 isp_stat_buf_next(stat); isp_stat_buf_process()
625 int omap3isp_stat_pcr_busy(struct ispstat *stat) omap3isp_stat_pcr_busy() argument
627 return stat->ops->busy(stat); omap3isp_stat_pcr_busy()
630 int omap3isp_stat_busy(struct ispstat *stat) omap3isp_stat_busy() argument
632 return omap3isp_stat_pcr_busy(stat) | stat->buf_processing | omap3isp_stat_busy()
633 (stat->state != ISPSTAT_DISABLED); omap3isp_stat_busy()
643 static void isp_stat_pcr_enable(struct ispstat *stat, u8 pcr_enable) isp_stat_pcr_enable() argument
645 if ((stat->state != ISPSTAT_ENABLING && isp_stat_pcr_enable()
646 stat->state != ISPSTAT_ENABLED) && pcr_enable) isp_stat_pcr_enable()
650 stat->ops->enable(stat, pcr_enable); isp_stat_pcr_enable()
651 if (stat->state == ISPSTAT_DISABLING && !pcr_enable) isp_stat_pcr_enable()
652 stat->state = ISPSTAT_DISABLED; isp_stat_pcr_enable()
653 else if (stat->state == ISPSTAT_ENABLING && pcr_enable) isp_stat_pcr_enable()
654 stat->state = ISPSTAT_ENABLED; isp_stat_pcr_enable()
657 void omap3isp_stat_suspend(struct ispstat *stat) omap3isp_stat_suspend() argument
661 spin_lock_irqsave(&stat->isp->stat_lock, flags); omap3isp_stat_suspend()
663 if (stat->state != ISPSTAT_DISABLED) omap3isp_stat_suspend()
664 stat->ops->enable(stat, 0); omap3isp_stat_suspend()
665 if (stat->state == ISPSTAT_ENABLED) omap3isp_stat_suspend()
666 stat->state = ISPSTAT_SUSPENDED; omap3isp_stat_suspend()
668 spin_unlock_irqrestore(&stat->isp->stat_lock, flags); omap3isp_stat_suspend()
671 void omap3isp_stat_resume(struct ispstat *stat) omap3isp_stat_resume() argument
674 if (stat->state == ISPSTAT_SUSPENDED) omap3isp_stat_resume()
675 stat->state = ISPSTAT_ENABLING; omap3isp_stat_resume()
678 static void isp_stat_try_enable(struct ispstat *stat) isp_stat_try_enable() argument
682 if (stat->priv == NULL) isp_stat_try_enable()
686 spin_lock_irqsave(&stat->isp->stat_lock, irqflags); isp_stat_try_enable()
687 if (stat->state == ISPSTAT_ENABLING && !stat->buf_processing && isp_stat_try_enable()
688 stat->buf_alloc_size) { isp_stat_try_enable()
693 stat->update = 1; isp_stat_try_enable()
694 isp_stat_buf_next(stat); isp_stat_try_enable()
695 stat->ops->setup_regs(stat, stat->priv); isp_stat_try_enable()
696 isp_stat_buf_insert_magic(stat, stat->active_buf); isp_stat_try_enable()
704 if (!IS_H3A(stat)) isp_stat_try_enable()
705 atomic_set(&stat->buf_err, 0); isp_stat_try_enable()
707 isp_stat_pcr_enable(stat, 1); isp_stat_try_enable()
708 spin_unlock_irqrestore(&stat->isp->stat_lock, irqflags); isp_stat_try_enable()
709 dev_dbg(stat->isp->dev, "%s: module is enabled.\n", isp_stat_try_enable()
710 stat->subdev.name); isp_stat_try_enable()
712 spin_unlock_irqrestore(&stat->isp->stat_lock, irqflags); isp_stat_try_enable()
716 void omap3isp_stat_isr_frame_sync(struct ispstat *stat) omap3isp_stat_isr_frame_sync() argument
718 isp_stat_try_enable(stat); omap3isp_stat_isr_frame_sync()
721 void omap3isp_stat_sbl_overflow(struct ispstat *stat) omap3isp_stat_sbl_overflow() argument
725 spin_lock_irqsave(&stat->isp->stat_lock, irqflags); omap3isp_stat_sbl_overflow()
730 atomic_set(&stat->buf_err, 2); omap3isp_stat_sbl_overflow()
735 * stat->sbl_ovl_recover is set to tell to the driver to temporarily use omap3isp_stat_sbl_overflow()
738 if (stat->recover_priv) omap3isp_stat_sbl_overflow()
739 stat->sbl_ovl_recover = 1; omap3isp_stat_sbl_overflow()
740 spin_unlock_irqrestore(&stat->isp->stat_lock, irqflags); omap3isp_stat_sbl_overflow()
750 int omap3isp_stat_enable(struct ispstat *stat, u8 enable) omap3isp_stat_enable() argument
754 dev_dbg(stat->isp->dev, "%s: user wants to %s module.\n", omap3isp_stat_enable()
755 stat->subdev.name, enable ? "enable" : "disable"); omap3isp_stat_enable()
758 mutex_lock(&stat->ioctl_lock); omap3isp_stat_enable()
760 spin_lock_irqsave(&stat->isp->stat_lock, irqflags); omap3isp_stat_enable()
762 if (!stat->configured && enable) { omap3isp_stat_enable()
763 spin_unlock_irqrestore(&stat->isp->stat_lock, irqflags); omap3isp_stat_enable()
764 mutex_unlock(&stat->ioctl_lock); omap3isp_stat_enable()
765 dev_dbg(stat->isp->dev, "%s: cannot enable module as it's " omap3isp_stat_enable()
767 stat->subdev.name); omap3isp_stat_enable()
772 if (stat->state == ISPSTAT_DISABLING) omap3isp_stat_enable()
774 stat->state = ISPSTAT_ENABLED; omap3isp_stat_enable()
775 else if (stat->state == ISPSTAT_DISABLED) omap3isp_stat_enable()
777 stat->state = ISPSTAT_ENABLING; omap3isp_stat_enable()
779 if (stat->state == ISPSTAT_ENABLING) { omap3isp_stat_enable()
781 stat->state = ISPSTAT_DISABLED; omap3isp_stat_enable()
782 } else if (stat->state == ISPSTAT_ENABLED) { omap3isp_stat_enable()
784 stat->state = ISPSTAT_DISABLING; omap3isp_stat_enable()
785 isp_stat_buf_clear(stat); omap3isp_stat_enable()
789 spin_unlock_irqrestore(&stat->isp->stat_lock, irqflags); omap3isp_stat_enable()
790 mutex_unlock(&stat->ioctl_lock); omap3isp_stat_enable()
797 struct ispstat *stat = v4l2_get_subdevdata(subdev); omap3isp_stat_s_stream() local
804 isp_stat_try_enable(stat); omap3isp_stat_s_stream()
808 omap3isp_stat_enable(stat, 0); omap3isp_stat_s_stream()
809 spin_lock_irqsave(&stat->isp->stat_lock, flags); omap3isp_stat_s_stream()
810 stat->ops->enable(stat, 0); omap3isp_stat_s_stream()
811 spin_unlock_irqrestore(&stat->isp->stat_lock, flags); omap3isp_stat_s_stream()
824 if (!omap3isp_stat_pcr_busy(stat)) omap3isp_stat_s_stream()
825 omap3isp_stat_isr(stat); omap3isp_stat_s_stream()
827 dev_dbg(stat->isp->dev, "%s: module is being disabled\n", omap3isp_stat_s_stream()
828 stat->subdev.name); omap3isp_stat_s_stream()
837 static void __stat_isr(struct ispstat *stat, int from_dma) __stat_isr() argument
845 * stat->buf_processing must be set before disable module. It's __stat_isr()
849 spin_lock_irqsave(&stat->isp->stat_lock, irqflags); __stat_isr()
850 if (stat->state == ISPSTAT_DISABLED) { __stat_isr()
851 spin_unlock_irqrestore(&stat->isp->stat_lock, irqflags); __stat_isr()
854 buf_processing = stat->buf_processing; __stat_isr()
855 stat->buf_processing = 1; __stat_isr()
856 stat->ops->enable(stat, 0); __stat_isr()
859 if (stat->state == ISPSTAT_ENABLED) { __stat_isr()
860 spin_unlock_irqrestore(&stat->isp->stat_lock, irqflags); __stat_isr()
861 dev_err(stat->isp->dev, __stat_isr()
863 "processing a buffer.\n", stat->subdev.name); __stat_isr()
874 spin_unlock_irqrestore(&stat->isp->stat_lock, irqflags); __stat_isr()
878 spin_unlock_irqrestore(&stat->isp->stat_lock, irqflags); __stat_isr()
881 if (!omap3isp_stat_pcr_busy(stat)) { __stat_isr()
882 if (!from_dma && stat->ops->buf_process) __stat_isr()
884 ret = stat->ops->buf_process(stat); __stat_isr()
889 spin_lock_irqsave(&stat->isp->stat_lock, irqflags); __stat_isr()
894 * can return only after call stat's buf_process() operator. __stat_isr()
896 if (stat->state == ISPSTAT_DISABLING) { __stat_isr()
897 stat->state = ISPSTAT_DISABLED; __stat_isr()
898 spin_unlock_irqrestore(&stat->isp->stat_lock, irqflags); __stat_isr()
899 stat->buf_processing = 0; __stat_isr()
902 pipe = to_isp_pipeline(&stat->subdev.entity); __stat_isr()
903 stat->frame_number = atomic_read(&pipe->frame_number); __stat_isr()
910 ret = isp_stat_buf_process(stat, ret); __stat_isr()
912 if (likely(!stat->sbl_ovl_recover)) { __stat_isr()
913 stat->ops->setup_regs(stat, stat->priv); __stat_isr()
920 stat->update = 1; __stat_isr()
921 stat->ops->setup_regs(stat, stat->recover_priv); __stat_isr()
922 stat->sbl_ovl_recover = 0; __stat_isr()
928 stat->update = 1; __stat_isr()
931 isp_stat_buf_insert_magic(stat, stat->active_buf); __stat_isr()
944 isp_stat_pcr_enable(stat, 1); __stat_isr()
945 spin_unlock_irqrestore(&stat->isp->stat_lock, irqflags); __stat_isr()
949 * to process the buffer, stat->buf_err is set and won't be __stat_isr()
954 * Do not "stat->buf_err = 0" here. __stat_isr()
957 if (stat->ops->buf_process) __stat_isr()
964 atomic_set(&stat->buf_err, 1); __stat_isr()
967 dev_dbg(stat->isp->dev, "%s: cannot process buffer, " __stat_isr()
968 "device is busy.\n", stat->subdev.name); __stat_isr()
972 stat->buf_processing = 0; __stat_isr()
973 isp_stat_queue_event(stat, ret != STAT_BUF_DONE); __stat_isr()
976 void omap3isp_stat_isr(struct ispstat *stat) omap3isp_stat_isr() argument
978 __stat_isr(stat, 0); omap3isp_stat_isr()
981 void omap3isp_stat_dma_isr(struct ispstat *stat) omap3isp_stat_dma_isr() argument
983 __stat_isr(stat, 1); omap3isp_stat_dma_isr()
990 struct ispstat *stat = v4l2_get_subdevdata(subdev); omap3isp_stat_subscribe_event() local
992 if (sub->type != stat->event_type) omap3isp_stat_subscribe_event()
1005 void omap3isp_stat_unregister_entities(struct ispstat *stat) omap3isp_stat_unregister_entities() argument
1007 v4l2_device_unregister_subdev(&stat->subdev); omap3isp_stat_unregister_entities()
1010 int omap3isp_stat_register_entities(struct ispstat *stat, omap3isp_stat_register_entities() argument
1013 return v4l2_device_register_subdev(vdev, &stat->subdev); omap3isp_stat_register_entities()
1016 static int isp_stat_init_entities(struct ispstat *stat, const char *name, isp_stat_init_entities() argument
1019 struct v4l2_subdev *subdev = &stat->subdev; isp_stat_init_entities()
1026 v4l2_set_subdevdata(subdev, stat); isp_stat_init_entities()
1028 stat->pad.flags = MEDIA_PAD_FL_SINK | MEDIA_PAD_FL_MUST_CONNECT; isp_stat_init_entities()
1031 return media_entity_init(me, 1, &stat->pad, 0); isp_stat_init_entities()
1034 int omap3isp_stat_init(struct ispstat *stat, const char *name, omap3isp_stat_init() argument
1039 stat->buf = kcalloc(STAT_MAX_BUFS, sizeof(*stat->buf), GFP_KERNEL); omap3isp_stat_init()
1040 if (!stat->buf) omap3isp_stat_init()
1043 isp_stat_buf_clear(stat); omap3isp_stat_init()
1044 mutex_init(&stat->ioctl_lock); omap3isp_stat_init()
1045 atomic_set(&stat->buf_err, 0); omap3isp_stat_init()
1047 ret = isp_stat_init_entities(stat, name, sd_ops); omap3isp_stat_init()
1049 mutex_destroy(&stat->ioctl_lock); omap3isp_stat_init()
1050 kfree(stat->buf); omap3isp_stat_init()
1056 void omap3isp_stat_cleanup(struct ispstat *stat) omap3isp_stat_cleanup() argument
1058 media_entity_cleanup(&stat->subdev.entity); omap3isp_stat_cleanup()
1059 mutex_destroy(&stat->ioctl_lock); omap3isp_stat_cleanup()
1060 isp_stat_bufs_free(stat); omap3isp_stat_cleanup()
1061 kfree(stat->buf); omap3isp_stat_cleanup()
H A Dispstat.h55 int (*validate_params)(struct ispstat *stat, void *new_conf);
59 * stat->priv->buf_size value must be set to the exact buffer size for
61 * stat->update is set to 1 if new configuration is different than
64 void (*set_params)(struct ispstat *stat, void *new_conf);
67 void (*setup_regs)(struct ispstat *stat, void *priv);
70 void (*enable)(struct ispstat *stat, int enable);
73 int (*busy)(struct ispstat *stat);
76 int (*buf_process)(struct ispstat *stat);
130 int omap3isp_stat_config(struct ispstat *stat, void *new_conf);
131 int omap3isp_stat_request_statistics(struct ispstat *stat,
133 int omap3isp_stat_init(struct ispstat *stat, const char *name,
135 void omap3isp_stat_cleanup(struct ispstat *stat);
144 int omap3isp_stat_busy(struct ispstat *stat);
145 int omap3isp_stat_pcr_busy(struct ispstat *stat);
146 void omap3isp_stat_suspend(struct ispstat *stat);
147 void omap3isp_stat_resume(struct ispstat *stat);
148 int omap3isp_stat_enable(struct ispstat *stat, u8 enable);
149 void omap3isp_stat_sbl_overflow(struct ispstat *stat);
150 void omap3isp_stat_isr(struct ispstat *stat);
151 void omap3isp_stat_isr_frame_sync(struct ispstat *stat);
152 void omap3isp_stat_dma_isr(struct ispstat *stat);
153 int omap3isp_stat_register_entities(struct ispstat *stat,
155 void omap3isp_stat_unregister_entities(struct ispstat *stat);
/linux-4.4.14/fs/
H A Dstat.c2 * linux/fs/stat.c
21 void generic_fillattr(struct inode *inode, struct kstat *stat) generic_fillattr() argument
23 stat->dev = inode->i_sb->s_dev; generic_fillattr()
24 stat->ino = inode->i_ino; generic_fillattr()
25 stat->mode = inode->i_mode; generic_fillattr()
26 stat->nlink = inode->i_nlink; generic_fillattr()
27 stat->uid = inode->i_uid; generic_fillattr()
28 stat->gid = inode->i_gid; generic_fillattr()
29 stat->rdev = inode->i_rdev; generic_fillattr()
30 stat->size = i_size_read(inode); generic_fillattr()
31 stat->atime = inode->i_atime; generic_fillattr()
32 stat->mtime = inode->i_mtime; generic_fillattr()
33 stat->ctime = inode->i_ctime; generic_fillattr()
34 stat->blksize = (1 << inode->i_blkbits); generic_fillattr()
35 stat->blocks = inode->i_blocks; generic_fillattr()
43 * @stat: structure to return attributes in
52 int vfs_getattr_nosec(struct path *path, struct kstat *stat) vfs_getattr_nosec() argument
57 return inode->i_op->getattr(path->mnt, path->dentry, stat); vfs_getattr_nosec()
59 generic_fillattr(inode, stat); vfs_getattr_nosec()
65 int vfs_getattr(struct path *path, struct kstat *stat) vfs_getattr() argument
72 return vfs_getattr_nosec(path, stat); vfs_getattr()
77 int vfs_fstat(unsigned int fd, struct kstat *stat) vfs_fstat() argument
83 error = vfs_getattr(&f.file->f_path, stat); vfs_fstat()
90 int vfs_fstatat(int dfd, const char __user *filename, struct kstat *stat, vfs_fstatat() argument
110 error = vfs_getattr(&path, stat); vfs_fstatat()
121 int vfs_stat(const char __user *name, struct kstat *stat) vfs_stat() argument
123 return vfs_fstatat(AT_FDCWD, name, stat, 0); vfs_stat()
127 int vfs_lstat(const char __user *name, struct kstat *stat) vfs_lstat() argument
129 return vfs_fstatat(AT_FDCWD, name, stat, AT_SYMLINK_NOFOLLOW); vfs_lstat()
140 static int cp_old_stat(struct kstat *stat, struct __old_kernel_stat __user * statbuf) cp_old_stat() argument
147 printk(KERN_WARNING "VFS: Warning: %s using old stat() call. Recompile your binary.\n", cp_old_stat()
155 tmp.st_dev = old_encode_dev(stat->dev); cp_old_stat()
156 tmp.st_ino = stat->ino; cp_old_stat()
157 if (sizeof(tmp.st_ino) < sizeof(stat->ino) && tmp.st_ino != stat->ino) cp_old_stat()
159 tmp.st_mode = stat->mode; cp_old_stat()
160 tmp.st_nlink = stat->nlink; cp_old_stat()
161 if (tmp.st_nlink != stat->nlink) cp_old_stat()
163 SET_UID(tmp.st_uid, from_kuid_munged(current_user_ns(), stat->uid)); cp_old_stat()
164 SET_GID(tmp.st_gid, from_kgid_munged(current_user_ns(), stat->gid)); cp_old_stat()
165 tmp.st_rdev = old_encode_dev(stat->rdev); cp_old_stat()
167 if (stat->size > MAX_NON_LFS) cp_old_stat()
170 tmp.st_size = stat->size; cp_old_stat()
171 tmp.st_atime = stat->atime.tv_sec; cp_old_stat()
172 tmp.st_mtime = stat->mtime.tv_sec; cp_old_stat()
173 tmp.st_ctime = stat->ctime.tv_sec; cp_old_stat()
177 SYSCALL_DEFINE2(stat, const char __user *, filename, SYSCALL_DEFINE2()
180 struct kstat stat; SYSCALL_DEFINE2() local
183 error = vfs_stat(filename, &stat); SYSCALL_DEFINE2()
187 return cp_old_stat(&stat, statbuf); SYSCALL_DEFINE2()
193 struct kstat stat; SYSCALL_DEFINE2() local
196 error = vfs_lstat(filename, &stat); SYSCALL_DEFINE2()
200 return cp_old_stat(&stat, statbuf); SYSCALL_DEFINE2()
205 struct kstat stat; SYSCALL_DEFINE2() local
206 int error = vfs_fstat(fd, &stat); SYSCALL_DEFINE2()
209 error = cp_old_stat(&stat, statbuf); SYSCALL_DEFINE2()
229 static int cp_new_stat(struct kstat *stat, struct stat __user *statbuf) cp_new_stat() argument
231 struct stat tmp; cp_new_stat()
233 if (!valid_dev(stat->dev) || !valid_dev(stat->rdev)) cp_new_stat()
236 if (stat->size > MAX_NON_LFS) cp_new_stat()
241 tmp.st_dev = encode_dev(stat->dev); cp_new_stat()
242 tmp.st_ino = stat->ino; cp_new_stat()
243 if (sizeof(tmp.st_ino) < sizeof(stat->ino) && tmp.st_ino != stat->ino) cp_new_stat()
245 tmp.st_mode = stat->mode; cp_new_stat()
246 tmp.st_nlink = stat->nlink; cp_new_stat()
247 if (tmp.st_nlink != stat->nlink) cp_new_stat()
249 SET_UID(tmp.st_uid, from_kuid_munged(current_user_ns(), stat->uid)); cp_new_stat()
250 SET_GID(tmp.st_gid, from_kgid_munged(current_user_ns(), stat->gid)); cp_new_stat()
251 tmp.st_rdev = encode_dev(stat->rdev); cp_new_stat()
252 tmp.st_size = stat->size; cp_new_stat()
253 tmp.st_atime = stat->atime.tv_sec; cp_new_stat()
254 tmp.st_mtime = stat->mtime.tv_sec; cp_new_stat()
255 tmp.st_ctime = stat->ctime.tv_sec; cp_new_stat()
257 tmp.st_atime_nsec = stat->atime.tv_nsec; cp_new_stat()
258 tmp.st_mtime_nsec = stat->mtime.tv_nsec; cp_new_stat()
259 tmp.st_ctime_nsec = stat->ctime.tv_nsec; cp_new_stat()
261 tmp.st_blocks = stat->blocks; cp_new_stat()
262 tmp.st_blksize = stat->blksize; cp_new_stat()
267 struct stat __user *, statbuf) SYSCALL_DEFINE2()
269 struct kstat stat; SYSCALL_DEFINE2() local
270 int error = vfs_stat(filename, &stat); SYSCALL_DEFINE2()
274 return cp_new_stat(&stat, statbuf); SYSCALL_DEFINE2()
278 struct stat __user *, statbuf) SYSCALL_DEFINE2()
280 struct kstat stat; SYSCALL_DEFINE2() local
283 error = vfs_lstat(filename, &stat); SYSCALL_DEFINE2()
287 return cp_new_stat(&stat, statbuf); SYSCALL_DEFINE2()
292 struct stat __user *, statbuf, int, flag) SYSCALL_DEFINE4()
294 struct kstat stat; SYSCALL_DEFINE4() local
297 error = vfs_fstatat(dfd, filename, &stat, flag); SYSCALL_DEFINE4()
300 return cp_new_stat(&stat, statbuf); SYSCALL_DEFINE4()
304 SYSCALL_DEFINE2(newfstat, unsigned int, fd, struct stat __user *, statbuf) SYSCALL_DEFINE2()
306 struct kstat stat; SYSCALL_DEFINE2() local
307 int error = vfs_fstat(fd, &stat); SYSCALL_DEFINE2()
310 error = cp_new_stat(&stat, statbuf); SYSCALL_DEFINE2()
363 static long cp_new_stat64(struct kstat *stat, struct stat64 __user *statbuf) cp_new_stat64() argument
370 tmp.st_dev = new_encode_dev(stat->dev); cp_new_stat64()
371 tmp.st_rdev = new_encode_dev(stat->rdev); cp_new_stat64()
373 tmp.st_dev = huge_encode_dev(stat->dev); cp_new_stat64()
374 tmp.st_rdev = huge_encode_dev(stat->rdev); cp_new_stat64()
376 tmp.st_ino = stat->ino; cp_new_stat64()
377 if (sizeof(tmp.st_ino) < sizeof(stat->ino) && tmp.st_ino != stat->ino) cp_new_stat64()
380 tmp.__st_ino = stat->ino; cp_new_stat64()
382 tmp.st_mode = stat->mode; cp_new_stat64()
383 tmp.st_nlink = stat->nlink; cp_new_stat64()
384 tmp.st_uid = from_kuid_munged(current_user_ns(), stat->uid); cp_new_stat64()
385 tmp.st_gid = from_kgid_munged(current_user_ns(), stat->gid); cp_new_stat64()
386 tmp.st_atime = stat->atime.tv_sec; cp_new_stat64()
387 tmp.st_atime_nsec = stat->atime.tv_nsec; cp_new_stat64()
388 tmp.st_mtime = stat->mtime.tv_sec; cp_new_stat64()
389 tmp.st_mtime_nsec = stat->mtime.tv_nsec; cp_new_stat64()
390 tmp.st_ctime = stat->ctime.tv_sec; cp_new_stat64()
391 tmp.st_ctime_nsec = stat->ctime.tv_nsec; cp_new_stat64()
392 tmp.st_size = stat->size; cp_new_stat64()
393 tmp.st_blocks = stat->blocks; cp_new_stat64()
394 tmp.st_blksize = stat->blksize; cp_new_stat64()
401 struct kstat stat; SYSCALL_DEFINE2() local
402 int error = vfs_stat(filename, &stat); SYSCALL_DEFINE2()
405 error = cp_new_stat64(&stat, statbuf); SYSCALL_DEFINE2()
413 struct kstat stat; SYSCALL_DEFINE2() local
414 int error = vfs_lstat(filename, &stat); SYSCALL_DEFINE2()
417 error = cp_new_stat64(&stat, statbuf); SYSCALL_DEFINE2()
424 struct kstat stat; SYSCALL_DEFINE2() local
425 int error = vfs_fstat(fd, &stat); SYSCALL_DEFINE2()
428 error = cp_new_stat64(&stat, statbuf); SYSCALL_DEFINE2()
436 struct kstat stat; SYSCALL_DEFINE4() local
439 error = vfs_fstatat(dfd, filename, &stat, flag); SYSCALL_DEFINE4()
442 return cp_new_stat64(&stat, statbuf); SYSCALL_DEFINE4()
/linux-4.4.14/arch/tile/include/uapi/asm/
H A Dstat.h4 #include <asm-generic/stat.h>
/linux-4.4.14/arch/mips/sgi-ip32/
H A Dcrime.c44 unsigned long stat, addr; crime_memerr_intr() local
47 stat = crime->mem_error_stat & CRIME_MEM_ERROR_STAT_MASK; crime_memerr_intr()
50 printk("CRIME memory error at 0x%08lx ST 0x%08lx<", addr, stat); crime_memerr_intr()
52 if (stat & CRIME_MEM_ERROR_INV) crime_memerr_intr()
54 if (stat & CRIME_MEM_ERROR_ECC) { crime_memerr_intr()
61 if (stat & CRIME_MEM_ERROR_MULTIPLE) { crime_memerr_intr()
65 if (stat & CRIME_MEM_ERROR_HARD_ERR) { crime_memerr_intr()
69 if (stat & CRIME_MEM_ERROR_SOFT_ERR) crime_memerr_intr()
71 if (stat & CRIME_MEM_ERROR_CPU_ACCESS) crime_memerr_intr()
73 if (stat & CRIME_MEM_ERROR_VICE_ACCESS) crime_memerr_intr()
75 if (stat & CRIME_MEM_ERROR_GBE_ACCESS) crime_memerr_intr()
77 if (stat & CRIME_MEM_ERROR_RE_ACCESS) crime_memerr_intr()
78 printk("RE,REID=0x%02lx,", (stat & CRIME_MEM_ERROR_RE_ID)>>8); crime_memerr_intr()
79 if (stat & CRIME_MEM_ERROR_MACE_ACCESS) crime_memerr_intr()
80 printk("MACE,MACEID=0x%02lx,", stat & CRIME_MEM_ERROR_MACE_ID); crime_memerr_intr()
95 unsigned long stat = crime->cpu_error_stat & CRIME_CPU_ERROR_MASK; crime_cpuerr_intr() local
99 printk("CRIME CPU error at 0x%09lx status 0x%08lx\n", addr, stat); crime_cpuerr_intr()
/linux-4.4.14/fs/nfs/
H A Diostat.h26 enum nfs_stat_eventcounters stat) nfs_inc_server_stats()
28 this_cpu_inc(server->io_stats->events[stat]); nfs_inc_server_stats()
32 enum nfs_stat_eventcounters stat) nfs_inc_stats()
34 nfs_inc_server_stats(NFS_SERVER(inode), stat); nfs_inc_stats() local
38 enum nfs_stat_bytecounters stat, nfs_add_server_stats()
41 this_cpu_add(server->io_stats->bytes[stat], addend); nfs_add_server_stats()
45 enum nfs_stat_bytecounters stat, nfs_add_stats()
48 nfs_add_server_stats(NFS_SERVER(inode), stat, addend); nfs_add_stats() local
53 enum nfs_stat_fscachecounters stat, nfs_add_fscache_stats()
56 this_cpu_add(NFS_SERVER(inode)->io_stats->fscache[stat], addend); nfs_add_fscache_stats()
59 enum nfs_stat_fscachecounters stat) nfs_inc_fscache_stats()
61 this_cpu_inc(NFS_SERVER(inode)->io_stats->fscache[stat]); nfs_inc_fscache_stats()
25 nfs_inc_server_stats(const struct nfs_server *server, enum nfs_stat_eventcounters stat) nfs_inc_server_stats() argument
31 nfs_inc_stats(const struct inode *inode, enum nfs_stat_eventcounters stat) nfs_inc_stats() argument
37 nfs_add_server_stats(const struct nfs_server *server, enum nfs_stat_bytecounters stat, long addend) nfs_add_server_stats() argument
44 nfs_add_stats(const struct inode *inode, enum nfs_stat_bytecounters stat, long addend) nfs_add_stats() argument
52 nfs_add_fscache_stats(struct inode *inode, enum nfs_stat_fscachecounters stat, long addend) nfs_add_fscache_stats() argument
58 nfs_inc_fscache_stats(struct inode *inode, enum nfs_stat_fscachecounters stat) nfs_inc_fscache_stats() argument
/linux-4.4.14/drivers/scsi/libsas/
H A Dsas_task.c15 tstat->stat = iu->status; sas_ssp_task_response()
17 tstat->stat = iu->resp_data[3]; sas_ssp_task_response()
19 tstat->stat = SAM_STAT_CHECK_CONDITION; sas_ssp_task_response()
28 "stat(%x) is not CHECK CONDITION\n", sas_ssp_task_response()
34 tstat->stat = SAM_STAT_CHECK_CONDITION; sas_ssp_task_response()
/linux-4.4.14/init/
H A Ddo_mounts.h25 struct stat64 stat; bstat() local
26 if (sys_stat64(name, &stat) != 0) bstat()
28 if (!S_ISBLK(stat.st_mode)) bstat()
30 if (stat.st_rdev != (u32)stat.st_rdev) bstat()
32 return stat.st_rdev; bstat()
37 struct stat stat; bstat() local
38 if (sys_newstat(name, &stat) != 0) bstat()
40 if (!S_ISBLK(stat.st_mode)) bstat()
42 return stat.st_rdev; bstat()
/linux-4.4.14/kernel/trace/
H A Dtrace_stat.h7 * If you want to provide a stat file (one-shot statistics), fill
12 /* The name of your stat file */
19 /* Print a stat entry */
22 void (*stat_release)(void *stat);
23 /* Print the headers of your stat entries */
28 * Destroy or create a stat file
H A Dtrace_stat.c21 * List of stat red-black nodes from a tracer
22 * We use a such tree to sort quickly the stat
27 void *stat; member in struct:stat_node
30 /* A stat session is the stats output in one file */
39 /* All of the sessions currently in use. Each stat file embed one session */
43 /* The root directory for all stat files */
52 session->ts->stat_release(snode->stat); __reset_stat_session()
76 static int insert_stat(struct rb_root *root, void *stat, cmp_stat_t cmp) insert_stat() argument
84 data->stat = stat; insert_stat()
95 result = cmp(data->stat, this->stat); insert_stat()
120 * Initialize the stat rbtree at each trace_stat file opening.
128 void *stat; stat_seq_init() local
138 stat = ts->stat_start(ts); stat_seq_init()
139 if (!stat) stat_seq_init()
142 ret = insert_stat(root, stat, ts->stat_cmp); stat_seq_init()
147 * Iterate over the tracer stat entries and store them in an rbtree. stat_seq_init()
150 stat = ts->stat_next(stat, i); stat_seq_init()
153 if (!stat) stat_seq_init()
156 ret = insert_stat(root, stat, ts->stat_cmp); stat_seq_init()
223 return session->ts->stat_show(s, l->stat); stat_seq_show()
233 /* The session stat is refilled and resorted at each stat file opening */ tracing_stat_open()
/linux-4.4.14/drivers/devfreq/
H A Dgovernor_simpleondemand.c25 struct devfreq_dev_status *stat; devfreq_simple_ondemand_func() local
36 stat = &df->last_status; devfreq_simple_ondemand_func()
49 if (stat->total_time == 0) { devfreq_simple_ondemand_func()
55 if (stat->busy_time >= (1 << 24) || stat->total_time >= (1 << 24)) { devfreq_simple_ondemand_func()
56 stat->busy_time >>= 7; devfreq_simple_ondemand_func()
57 stat->total_time >>= 7; devfreq_simple_ondemand_func()
61 if (stat->busy_time * 100 > devfreq_simple_ondemand_func()
62 stat->total_time * dfso_upthreshold) { devfreq_simple_ondemand_func()
68 if (stat->current_frequency == 0) { devfreq_simple_ondemand_func()
74 if (stat->busy_time * 100 > devfreq_simple_ondemand_func()
75 stat->total_time * (dfso_upthreshold - dfso_downdifferential)) { devfreq_simple_ondemand_func()
76 *freq = stat->current_frequency; devfreq_simple_ondemand_func()
81 a = stat->busy_time; devfreq_simple_ondemand_func()
82 a *= stat->current_frequency; devfreq_simple_ondemand_func()
83 b = div_u64(a, stat->total_time); devfreq_simple_ondemand_func()
/linux-4.4.14/drivers/media/firewire/
H A Dfiredtv-ci.c27 static int fdtv_ca_ready(struct firedtv_tuner_status *stat) fdtv_ca_ready() argument
29 return stat->ca_initialization_status == 1 && fdtv_ca_ready()
30 stat->ca_error_flag == 0 && fdtv_ca_ready()
31 stat->ca_dvb_flag == 1 && fdtv_ca_ready()
32 stat->ca_module_present_status == 1; fdtv_ca_ready()
35 static int fdtv_get_ca_flags(struct firedtv_tuner_status *stat) fdtv_get_ca_flags() argument
39 if (stat->ca_module_present_status == 1) fdtv_get_ca_flags()
41 if (stat->ca_initialization_status == 1 && fdtv_get_ca_flags()
42 stat->ca_error_flag == 0 && fdtv_get_ca_flags()
43 stat->ca_dvb_flag == 1) fdtv_get_ca_flags()
61 struct firedtv_tuner_status stat; fdtv_ca_get_slot_info() local
65 err = avc_tuner_status(fdtv, &stat); fdtv_ca_get_slot_info()
73 slot->flags = fdtv_get_ca_flags(&stat); fdtv_ca_get_slot_info()
100 struct firedtv_tuner_status stat; fdtv_ca_get_msg() local
111 err = avc_tuner_status(fdtv, &stat); fdtv_ca_get_msg()
114 if (stat.ca_mmi == 1) fdtv_ca_get_msg()
180 struct firedtv_tuner_status stat; fdtv_ca_ioctl() local
205 avc_tuner_status(fdtv, &stat); fdtv_ca_ioctl()
234 struct firedtv_tuner_status stat; fdtv_ca_register() local
237 if (avc_tuner_status(fdtv, &stat)) fdtv_ca_register()
240 if (!fdtv_ca_ready(&stat)) fdtv_ca_register()
246 if (stat.ca_application_info == 0) fdtv_ca_register()
248 if (stat.ca_date_time_request == 1) fdtv_ca_register()
H A Dfiredtv-fe.c89 struct firedtv_tuner_status stat; fdtv_read_status() local
91 if (avc_tuner_status(fdtv, &stat)) fdtv_read_status()
94 if (stat.no_rf) fdtv_read_status()
105 struct firedtv_tuner_status stat; fdtv_read_ber() local
107 if (avc_tuner_status(fdtv, &stat)) fdtv_read_ber()
110 *ber = stat.ber; fdtv_read_ber()
117 struct firedtv_tuner_status stat; fdtv_read_signal_strength() local
119 if (avc_tuner_status(fdtv, &stat)) fdtv_read_signal_strength()
122 *strength = stat.signal_strength << 8; fdtv_read_signal_strength()
129 struct firedtv_tuner_status stat; fdtv_read_snr() local
131 if (avc_tuner_status(fdtv, &stat)) fdtv_read_snr()
135 *snr = stat.carrier_noise_ratio * 257; fdtv_read_snr()
H A Dfiredtv-avc.c753 int avc_tuner_status(struct firedtv *fdtv, struct firedtv_tuner_status *stat) avc_tuner_status() argument
793 stat->active_system = r->operand[10]; avc_tuner_status()
794 stat->searching = r->operand[11] >> 7 & 1; avc_tuner_status()
795 stat->moving = r->operand[11] >> 6 & 1; avc_tuner_status()
796 stat->no_rf = r->operand[11] >> 5 & 1; avc_tuner_status()
797 stat->input = r->operand[12] >> 7 & 1; avc_tuner_status()
798 stat->selected_antenna = r->operand[12] & 0x7f; avc_tuner_status()
799 stat->ber = r->operand[13] << 24 | avc_tuner_status()
803 stat->signal_strength = r->operand[17]; avc_tuner_status()
804 stat->raster_frequency = r->operand[18] >> 6 & 2; avc_tuner_status()
805 stat->rf_frequency = (r->operand[18] & 0x3f) << 16 | avc_tuner_status()
808 stat->man_dep_info_length = r->operand[21]; avc_tuner_status()
809 stat->front_end_error = r->operand[22] >> 4 & 1; avc_tuner_status()
810 stat->antenna_error = r->operand[22] >> 3 & 1; avc_tuner_status()
811 stat->front_end_power_status = r->operand[22] >> 1 & 1; avc_tuner_status()
812 stat->power_supply = r->operand[22] & 1; avc_tuner_status()
813 stat->carrier_noise_ratio = r->operand[23] << 8 | avc_tuner_status()
815 stat->power_supply_voltage = r->operand[27]; avc_tuner_status()
816 stat->antenna_voltage = r->operand[28]; avc_tuner_status()
817 stat->firewire_bus_voltage = r->operand[29]; avc_tuner_status()
818 stat->ca_mmi = r->operand[30] & 1; avc_tuner_status()
819 stat->ca_pmt_reply = r->operand[31] >> 7 & 1; avc_tuner_status()
820 stat->ca_date_time_request = r->operand[31] >> 6 & 1; avc_tuner_status()
821 stat->ca_application_info = r->operand[31] >> 5 & 1; avc_tuner_status()
822 stat->ca_module_present_status = r->operand[31] >> 4 & 1; avc_tuner_status()
823 stat->ca_dvb_flag = r->operand[31] >> 3 & 1; avc_tuner_status()
824 stat->ca_error_flag = r->operand[31] >> 2 & 1; avc_tuner_status()
825 stat->ca_initialization_status = r->operand[31] >> 1 & 1; avc_tuner_status()
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/ibus/
H A Dgf100.c32 u32 stat = nvkm_rd32(device, 0x122128 + (i * 0x0400)); gf100_ibus_intr_hub() local
33 nvkm_error(ibus, "HUB%d: %06x %08x (%08x)\n", i, addr, data, stat); gf100_ibus_intr_hub()
43 u32 stat = nvkm_rd32(device, 0x124128 + (i * 0x0400)); gf100_ibus_intr_rop() local
44 nvkm_error(ibus, "ROP%d: %06x %08x (%08x)\n", i, addr, data, stat); gf100_ibus_intr_rop()
54 u32 stat = nvkm_rd32(device, 0x128128 + (i * 0x0400)); gf100_ibus_intr_gpc() local
55 nvkm_error(ibus, "GPC%d: %06x %08x (%08x)\n", i, addr, data, stat); gf100_ibus_intr_gpc()
71 u32 stat = 0x00000100 << i; gf100_ibus_intr() local
72 if (intr0 & stat) { gf100_ibus_intr()
74 intr0 &= ~stat; gf100_ibus_intr()
79 u32 stat = 0x00010000 << i; gf100_ibus_intr() local
80 if (intr0 & stat) { gf100_ibus_intr()
82 intr0 &= ~stat; gf100_ibus_intr()
87 u32 stat = 0x00000001 << i; gf100_ibus_intr() local
88 if (intr1 & stat) { gf100_ibus_intr()
90 intr1 &= ~stat; gf100_ibus_intr()
H A Dgk104.c32 u32 stat = nvkm_rd32(device, 0x122128 + (i * 0x0800)); gk104_ibus_intr_hub() local
33 nvkm_error(ibus, "HUB%d: %06x %08x (%08x)\n", i, addr, data, stat); gk104_ibus_intr_hub()
43 u32 stat = nvkm_rd32(device, 0x124128 + (i * 0x0800)); gk104_ibus_intr_rop() local
44 nvkm_error(ibus, "ROP%d: %06x %08x (%08x)\n", i, addr, data, stat); gk104_ibus_intr_rop()
54 u32 stat = nvkm_rd32(device, 0x128128 + (i * 0x0800)); gk104_ibus_intr_gpc() local
55 nvkm_error(ibus, "GPC%d: %06x %08x (%08x)\n", i, addr, data, stat); gk104_ibus_intr_gpc()
71 u32 stat = 0x00000100 << i; gk104_ibus_intr() local
72 if (intr0 & stat) { gk104_ibus_intr()
74 intr0 &= ~stat; gk104_ibus_intr()
79 u32 stat = 0x00010000 << i; gk104_ibus_intr() local
80 if (intr0 & stat) { gk104_ibus_intr()
82 intr0 &= ~stat; gk104_ibus_intr()
87 u32 stat = 0x00000001 << i; gk104_ibus_intr() local
88 if (intr1 & stat) { gk104_ibus_intr()
90 intr1 &= ~stat; gk104_ibus_intr()
/linux-4.4.14/drivers/pcmcia/
H A Dsa1100_assabet.c22 skt->stat[SOC_STAT_CD].gpio = ASSABET_GPIO_CF_CD; assabet_pcmcia_hw_init()
23 skt->stat[SOC_STAT_CD].name = "CF CD"; assabet_pcmcia_hw_init()
24 skt->stat[SOC_STAT_BVD1].gpio = ASSABET_GPIO_CF_BVD1; assabet_pcmcia_hw_init()
25 skt->stat[SOC_STAT_BVD1].name = "CF BVD1"; assabet_pcmcia_hw_init()
26 skt->stat[SOC_STAT_BVD2].gpio = ASSABET_GPIO_CF_BVD2; assabet_pcmcia_hw_init()
27 skt->stat[SOC_STAT_BVD2].name = "CF BVD2"; assabet_pcmcia_hw_init()
28 skt->stat[SOC_STAT_RDY].gpio = ASSABET_GPIO_CF_IRQ; assabet_pcmcia_hw_init()
29 skt->stat[SOC_STAT_RDY].name = "CF RDY"; assabet_pcmcia_hw_init()
H A Dsa1100_cerf.c31 skt->stat[SOC_STAT_CD].gpio = CERF_GPIO_CF_CD; cerf_pcmcia_hw_init()
32 skt->stat[SOC_STAT_CD].name = "CF_CD"; cerf_pcmcia_hw_init()
33 skt->stat[SOC_STAT_BVD1].gpio = CERF_GPIO_CF_BVD1; cerf_pcmcia_hw_init()
34 skt->stat[SOC_STAT_BVD1].name = "CF_BVD1"; cerf_pcmcia_hw_init()
35 skt->stat[SOC_STAT_BVD2].gpio = CERF_GPIO_CF_BVD2; cerf_pcmcia_hw_init()
36 skt->stat[SOC_STAT_BVD2].name = "CF_BVD2"; cerf_pcmcia_hw_init()
37 skt->stat[SOC_STAT_RDY].gpio = CERF_GPIO_CF_IRQ; cerf_pcmcia_hw_init()
38 skt->stat[SOC_STAT_RDY].name = "CF_IRQ"; cerf_pcmcia_hw_init()
H A Dsa1100_shannon.c28 skt->stat[SOC_STAT_CD].gpio = SHANNON_GPIO_EJECT_0; shannon_pcmcia_hw_init()
29 skt->stat[SOC_STAT_CD].name = "PCMCIA_CD_0"; shannon_pcmcia_hw_init()
30 skt->stat[SOC_STAT_RDY].gpio = SHANNON_GPIO_RDY_0; shannon_pcmcia_hw_init()
31 skt->stat[SOC_STAT_RDY].name = "PCMCIA_RDY_0"; shannon_pcmcia_hw_init()
33 skt->stat[SOC_STAT_CD].gpio = SHANNON_GPIO_EJECT_1; shannon_pcmcia_hw_init()
34 skt->stat[SOC_STAT_CD].name = "PCMCIA_CD_1"; shannon_pcmcia_hw_init()
35 skt->stat[SOC_STAT_RDY].gpio = SHANNON_GPIO_RDY_1; shannon_pcmcia_hw_init()
36 skt->stat[SOC_STAT_RDY].name = "PCMCIA_RDY_1"; shannon_pcmcia_hw_init()
H A Dpxa2xx_cm_x255.c36 skt->stat[SOC_STAT_CD].gpio = GPIO_PCMCIA_S0_CD_VALID; cmx255_pcmcia_hw_init()
37 skt->stat[SOC_STAT_CD].name = "PCMCIA0 CD"; cmx255_pcmcia_hw_init()
38 skt->stat[SOC_STAT_RDY].gpio = GPIO_PCMCIA_S0_RDYINT; cmx255_pcmcia_hw_init()
39 skt->stat[SOC_STAT_RDY].name = "PCMCIA0 RDY"; cmx255_pcmcia_hw_init()
41 skt->stat[SOC_STAT_CD].gpio = GPIO_PCMCIA_S1_CD_VALID; cmx255_pcmcia_hw_init()
42 skt->stat[SOC_STAT_CD].name = "PCMCIA1 CD"; cmx255_pcmcia_hw_init()
43 skt->stat[SOC_STAT_RDY].gpio = GPIO_PCMCIA_S1_RDYINT; cmx255_pcmcia_hw_init()
44 skt->stat[SOC_STAT_RDY].name = "PCMCIA1 RDY"; cmx255_pcmcia_hw_init()
H A Dpxa2xx_e740.c29 skt->stat[SOC_STAT_CD].gpio = GPIO_E740_PCMCIA_CD0; e740_pcmcia_hw_init()
30 skt->stat[SOC_STAT_CD].name = "CF card detect"; e740_pcmcia_hw_init()
31 skt->stat[SOC_STAT_RDY].gpio = GPIO_E740_PCMCIA_RDY0; e740_pcmcia_hw_init()
32 skt->stat[SOC_STAT_RDY].name = "CF ready"; e740_pcmcia_hw_init()
34 skt->stat[SOC_STAT_CD].gpio = GPIO_E740_PCMCIA_CD1; e740_pcmcia_hw_init()
35 skt->stat[SOC_STAT_CD].name = "Wifi switch"; e740_pcmcia_hw_init()
36 skt->stat[SOC_STAT_RDY].gpio = GPIO_E740_PCMCIA_RDY1; e740_pcmcia_hw_init()
37 skt->stat[SOC_STAT_RDY].name = "Wifi ready"; e740_pcmcia_hw_init()
H A Dpxa2xx_vpac270.c42 skt->stat[SOC_STAT_CD].gpio = GPIO84_VPAC270_PCMCIA_CD; vpac270_pcmcia_hw_init()
43 skt->stat[SOC_STAT_CD].name = "PCMCIA CD"; vpac270_pcmcia_hw_init()
44 skt->stat[SOC_STAT_RDY].gpio = GPIO35_VPAC270_PCMCIA_RDY; vpac270_pcmcia_hw_init()
45 skt->stat[SOC_STAT_RDY].name = "PCMCIA Ready"; vpac270_pcmcia_hw_init()
50 skt->stat[SOC_STAT_CD].gpio = GPIO17_VPAC270_CF_CD; vpac270_pcmcia_hw_init()
51 skt->stat[SOC_STAT_CD].name = "CF CD"; vpac270_pcmcia_hw_init()
52 skt->stat[SOC_STAT_RDY].gpio = GPIO12_VPAC270_CF_RDY; vpac270_pcmcia_hw_init()
53 skt->stat[SOC_STAT_RDY].name = "CF Ready"; vpac270_pcmcia_hw_init()
H A Dpxa2xx_mainstone.c41 skt->stat[SOC_STAT_CD].irq = MAINSTONE_S0_CD_IRQ; mst_pcmcia_hw_init()
42 skt->stat[SOC_STAT_CD].name = "PCMCIA0 CD"; mst_pcmcia_hw_init()
43 skt->stat[SOC_STAT_BVD1].irq = MAINSTONE_S0_STSCHG_IRQ; mst_pcmcia_hw_init()
44 skt->stat[SOC_STAT_BVD1].name = "PCMCIA0 STSCHG"; mst_pcmcia_hw_init()
47 skt->stat[SOC_STAT_CD].irq = MAINSTONE_S1_CD_IRQ; mst_pcmcia_hw_init()
48 skt->stat[SOC_STAT_CD].name = "PCMCIA1 CD"; mst_pcmcia_hw_init()
49 skt->stat[SOC_STAT_BVD1].irq = MAINSTONE_S1_STSCHG_IRQ; mst_pcmcia_hw_init()
50 skt->stat[SOC_STAT_BVD1].name = "PCMCIA1 STSCHG"; mst_pcmcia_hw_init()
H A Dsa1100_h3600.c28 skt->stat[SOC_STAT_CD].gpio = H3XXX_GPIO_PCMCIA_CD0; h3600_pcmcia_hw_init()
29 skt->stat[SOC_STAT_CD].name = "PCMCIA CD0"; h3600_pcmcia_hw_init()
30 skt->stat[SOC_STAT_RDY].gpio = H3XXX_GPIO_PCMCIA_IRQ0; h3600_pcmcia_hw_init()
31 skt->stat[SOC_STAT_RDY].name = "PCMCIA IRQ0"; h3600_pcmcia_hw_init()
59 skt->stat[SOC_STAT_CD].gpio = H3XXX_GPIO_PCMCIA_CD1; h3600_pcmcia_hw_init()
60 skt->stat[SOC_STAT_CD].name = "PCMCIA CD1"; h3600_pcmcia_hw_init()
61 skt->stat[SOC_STAT_RDY].gpio = H3XXX_GPIO_PCMCIA_IRQ1; h3600_pcmcia_hw_init()
62 skt->stat[SOC_STAT_RDY].name = "PCMCIA IRQ1"; h3600_pcmcia_hw_init()
H A Dsoc_common.c115 if (skt->stat[i].irq) __soc_pcmcia_hw_shutdown()
116 free_irq(skt->stat[i].irq, skt); __soc_pcmcia_hw_shutdown()
117 if (gpio_is_valid(skt->stat[i].gpio)) __soc_pcmcia_hw_shutdown()
118 gpio_free(skt->stat[i].gpio); __soc_pcmcia_hw_shutdown()
129 __soc_pcmcia_hw_shutdown(skt, ARRAY_SIZE(skt->stat)); soc_pcmcia_hw_shutdown()
144 for (i = 0; i < ARRAY_SIZE(skt->stat); i++) { soc_pcmcia_hw_init()
145 if (gpio_is_valid(skt->stat[i].gpio)) { soc_pcmcia_hw_init()
148 ret = gpio_request_one(skt->stat[i].gpio, GPIOF_IN, soc_pcmcia_hw_init()
149 skt->stat[i].name); soc_pcmcia_hw_init()
155 irq = gpio_to_irq(skt->stat[i].gpio); soc_pcmcia_hw_init()
160 skt->stat[i].irq = irq; soc_pcmcia_hw_init()
163 if (skt->stat[i].irq) { soc_pcmcia_hw_init()
164 ret = request_irq(skt->stat[i].irq, soc_pcmcia_hw_init()
167 skt->stat[i].name, skt); soc_pcmcia_hw_init()
169 if (gpio_is_valid(skt->stat[i].gpio)) soc_pcmcia_hw_init()
170 gpio_free(skt->stat[i].gpio); soc_pcmcia_hw_init()
184 for (i = 0; i < ARRAY_SIZE(skt->stat); i++) soc_pcmcia_hw_enable()
185 if (skt->stat[i].irq) { soc_pcmcia_hw_enable()
186 irq_set_irq_type(skt->stat[i].irq, IRQ_TYPE_EDGE_RISING); soc_pcmcia_hw_enable()
187 irq_set_irq_type(skt->stat[i].irq, IRQ_TYPE_EDGE_BOTH); soc_pcmcia_hw_enable()
195 for (i = 0; i < ARRAY_SIZE(skt->stat); i++) soc_pcmcia_hw_disable()
196 if (skt->stat[i].irq) soc_pcmcia_hw_disable()
197 irq_set_irq_type(skt->stat[i].irq, IRQ_TYPE_NONE); soc_pcmcia_hw_disable()
203 unsigned int stat; soc_common_pcmcia_skt_state() local
212 if (gpio_is_valid(skt->stat[SOC_STAT_CD].gpio)) soc_common_pcmcia_skt_state()
213 state.detect = !gpio_get_value(skt->stat[SOC_STAT_CD].gpio); soc_common_pcmcia_skt_state()
216 if (gpio_is_valid(skt->stat[SOC_STAT_RDY].gpio)) soc_common_pcmcia_skt_state()
217 state.ready = !!gpio_get_value(skt->stat[SOC_STAT_RDY].gpio); soc_common_pcmcia_skt_state()
218 if (gpio_is_valid(skt->stat[SOC_STAT_BVD1].gpio)) soc_common_pcmcia_skt_state()
219 state.bvd1 = !!gpio_get_value(skt->stat[SOC_STAT_BVD1].gpio); soc_common_pcmcia_skt_state()
220 if (gpio_is_valid(skt->stat[SOC_STAT_BVD2].gpio)) soc_common_pcmcia_skt_state()
221 state.bvd2 = !!gpio_get_value(skt->stat[SOC_STAT_BVD2].gpio); soc_common_pcmcia_skt_state()
225 stat = state.detect ? SS_DETECT : 0; soc_common_pcmcia_skt_state()
226 stat |= state.ready ? SS_READY : 0; soc_common_pcmcia_skt_state()
227 stat |= state.wrprot ? SS_WRPROT : 0; soc_common_pcmcia_skt_state()
228 stat |= state.vs_3v ? SS_3VCARD : 0; soc_common_pcmcia_skt_state()
229 stat |= state.vs_Xv ? SS_XVCARD : 0; soc_common_pcmcia_skt_state()
235 stat |= skt->cs_state.Vcc ? SS_POWERON : 0; soc_common_pcmcia_skt_state()
238 stat |= state.bvd1 ? SS_STSCHG : 0; soc_common_pcmcia_skt_state()
241 stat |= SS_BATDEAD; soc_common_pcmcia_skt_state()
243 stat |= SS_BATWARN; soc_common_pcmcia_skt_state()
245 return stat; soc_common_pcmcia_skt_state()
696 for (i = 0; i < ARRAY_SIZE(skt->stat); i++) soc_pcmcia_init_one()
697 skt->stat[i].gpio = -EINVAL; soc_pcmcia_init_one()
H A Dpxa2xx_cm_x270.c32 skt->stat[SOC_STAT_CD].gpio = GPIO_PCMCIA_S0_CD_VALID; cmx270_pcmcia_hw_init()
33 skt->stat[SOC_STAT_CD].name = "PCMCIA0 CD"; cmx270_pcmcia_hw_init()
34 skt->stat[SOC_STAT_RDY].gpio = GPIO_PCMCIA_S0_RDYINT; cmx270_pcmcia_hw_init()
35 skt->stat[SOC_STAT_RDY].name = "PCMCIA0 RDY"; cmx270_pcmcia_hw_init()
H A Dsa1100_simpad.c23 skt->stat[SOC_STAT_CD].gpio = GPIO_CF_CD; simpad_pcmcia_hw_init()
24 skt->stat[SOC_STAT_CD].name = "CF_CD"; simpad_pcmcia_hw_init()
25 skt->stat[SOC_STAT_RDY].gpio = GPIO_CF_IRQ; simpad_pcmcia_hw_init()
26 skt->stat[SOC_STAT_RDY].name = "CF_RDY"; simpad_pcmcia_hw_init()
H A Dbcm63xx_pcmcia.c164 unsigned int stat; __get_socket_status() local
167 stat = 0; __get_socket_status()
173 stat |= SS_DETECT; __get_socket_status()
176 if ((stat & SS_DETECT) && !skt->card_detected) { __get_socket_status()
177 unsigned int stat = 0; __get_socket_status() local
187 stat |= (val & PCMCIA_C1_VS1_MASK) ? IN_VS1 : 0; __get_socket_status()
188 stat |= (val & PCMCIA_C1_VS2_MASK) ? IN_VS2 : 0; __get_socket_status()
198 stat |= (val & PCMCIA_C1_CD1_MASK) ? IN_CD1_VS2H : 0; __get_socket_status()
199 stat |= (val & PCMCIA_C1_CD2_MASK) ? IN_CD2_VS2H : 0; __get_socket_status()
209 stat |= (val & PCMCIA_C1_CD1_MASK) ? IN_CD1_VS1H : 0; __get_socket_status()
210 stat |= (val & PCMCIA_C1_CD2_MASK) ? IN_CD2_VS1H : 0; __get_socket_status()
213 skt->card_type = vscd_to_cardtype[stat]; __get_socket_status()
229 skt->card_detected = (stat & SS_DETECT) ? 1 : 0; __get_socket_status()
233 stat |= SS_CARDBUS; __get_socket_status()
235 stat |= SS_3VCARD; __get_socket_status()
237 stat |= SS_XVCARD; __get_socket_status()
238 stat |= SS_POWERON; __get_socket_status()
241 stat |= SS_READY; __get_socket_status()
243 return stat; __get_socket_status()
269 unsigned int stat, events; bcm63xx_pcmcia_poll() local
275 stat = __get_socket_status(skt); bcm63xx_pcmcia_poll()
279 events = (stat ^ skt->old_status) & skt->requested_state.csc_mask; bcm63xx_pcmcia_poll()
280 skt->old_status = stat; bcm63xx_pcmcia_poll()
H A Dsa1111_generic.c159 s->soc.stat[SOC_STAT_CD].irq = dev->irq[IDX_IRQ_S1_CD_VALID]; sa1111_pcmcia_add()
160 s->soc.stat[SOC_STAT_CD].name = "SA1111 CF card detect"; sa1111_pcmcia_add()
161 s->soc.stat[SOC_STAT_BVD1].irq = dev->irq[IDX_IRQ_S1_BVD1_STSCHG]; sa1111_pcmcia_add()
162 s->soc.stat[SOC_STAT_BVD1].name = "SA1111 CF BVD1"; sa1111_pcmcia_add()
165 s->soc.stat[SOC_STAT_CD].irq = dev->irq[IDX_IRQ_S0_CD_VALID]; sa1111_pcmcia_add()
166 s->soc.stat[SOC_STAT_CD].name = "SA1111 PCMCIA card detect"; sa1111_pcmcia_add()
167 s->soc.stat[SOC_STAT_BVD1].irq = dev->irq[IDX_IRQ_S0_BVD1_STSCHG]; sa1111_pcmcia_add()
168 s->soc.stat[SOC_STAT_BVD1].name = "SA1111 PCMCIA BVD1"; sa1111_pcmcia_add()
H A Dpxa2xx_hx4700.c42 skt->stat[SOC_STAT_CD].gpio = GPIOD4_CF_nCD; hx4700_pcmcia_hw_init()
43 skt->stat[SOC_STAT_CD].name = "PCMCIA CD"; hx4700_pcmcia_hw_init()
44 skt->stat[SOC_STAT_RDY].gpio = GPIO60_HX4700_CF_RNB; hx4700_pcmcia_hw_init()
45 skt->stat[SOC_STAT_RDY].name = "PCMCIA Ready"; hx4700_pcmcia_hw_init()
H A Dpxa2xx_stargate2.c43 skt->stat[SOC_STAT_CD].gpio = SG2_S0_GPIO_DETECT; sg2_pcmcia_hw_init()
44 skt->stat[SOC_STAT_CD].name = "PCMCIA0 CD"; sg2_pcmcia_hw_init()
45 skt->stat[SOC_STAT_RDY].gpio = SG2_S0_GPIO_READY; sg2_pcmcia_hw_init()
46 skt->stat[SOC_STAT_RDY].name = "PCMCIA0 RDY"; sg2_pcmcia_hw_init()
H A Dsa1100_nanoengine.c73 skt->stat[SOC_STAT_CD].gpio = nano_skts[i].gpio_cd; nanoengine_pcmcia_hw_init()
74 skt->stat[SOC_STAT_CD].name = i ? "PC CD1" : "PC CD0"; nanoengine_pcmcia_hw_init()
75 skt->stat[SOC_STAT_RDY].gpio = nano_skts[i].gpio_rdy; nanoengine_pcmcia_hw_init()
76 skt->stat[SOC_STAT_RDY].name = i ? "PC RDY1" : "PC RDY0"; nanoengine_pcmcia_hw_init()
H A Dpxa2xx_balloon3.c43 skt->stat[SOC_STAT_CD].gpio = BALLOON3_GPIO_S0_CD; balloon3_pcmcia_hw_init()
44 skt->stat[SOC_STAT_CD].name = "PCMCIA0 CD"; balloon3_pcmcia_hw_init()
45 skt->stat[SOC_STAT_BVD1].irq = BALLOON3_BP_NSTSCHG_IRQ; balloon3_pcmcia_hw_init()
46 skt->stat[SOC_STAT_BVD1].name = "PCMCIA0 STSCHG"; balloon3_pcmcia_hw_init()
H A Dpxa2xx_trizeps4.c39 skt->stat[SOC_STAT_CD].gpio = GPIO_PCD; trizeps_pcmcia_hw_init()
40 skt->stat[SOC_STAT_CD].name = "cs0_cd"; trizeps_pcmcia_hw_init()
41 skt->stat[SOC_STAT_RDY].gpio = GPIO_PRDY; trizeps_pcmcia_hw_init()
42 skt->stat[SOC_STAT_RDY].name = "cs0_rdy"; trizeps_pcmcia_hw_init()
H A Dpxa2xx_viper.c45 skt->stat[SOC_STAT_CD].gpio = pdata->cd_gpio; viper_pcmcia_hw_init()
46 skt->stat[SOC_STAT_CD].name = "PCMCIA_CD"; viper_pcmcia_hw_init()
47 skt->stat[SOC_STAT_RDY].gpio = pdata->rdy_gpio; viper_pcmcia_hw_init()
48 skt->stat[SOC_STAT_RDY].name = "CF ready"; viper_pcmcia_hw_init()
H A Dpxa2xx_palmld.c35 skt->stat[SOC_STAT_RDY].gpio = GPIO_NR_PALMLD_PCMCIA_READY; palmld_pcmcia_hw_init()
36 skt->stat[SOC_STAT_RDY].name = "PCMCIA Ready"; palmld_pcmcia_hw_init()
H A Dpxa2xx_palmtx.c35 skt->stat[SOC_STAT_RDY].gpio = GPIO_NR_PALMTX_PCMCIA_READY; palmtx_pcmcia_hw_init()
36 skt->stat[SOC_STAT_RDY].name = "PCMCIA Ready"; palmtx_pcmcia_hw_init()
/linux-4.4.14/arch/x86/ia32/
H A Dsys_ia32.c35 #include <linux/stat.h>
67 * Another set for IA32/LFS -- x86_64 struct stat is different due to
70 static int cp_stat64(struct stat64 __user *ubuf, struct kstat *stat) cp_stat64() argument
74 SET_UID(uid, from_kuid_munged(current_user_ns(), stat->uid)); cp_stat64()
75 SET_GID(gid, from_kgid_munged(current_user_ns(), stat->gid)); cp_stat64()
77 __put_user(huge_encode_dev(stat->dev), &ubuf->st_dev) || cp_stat64()
78 __put_user(stat->ino, &ubuf->__st_ino) || cp_stat64()
79 __put_user(stat->ino, &ubuf->st_ino) || cp_stat64()
80 __put_user(stat->mode, &ubuf->st_mode) || cp_stat64()
81 __put_user(stat->nlink, &ubuf->st_nlink) || cp_stat64()
84 __put_user(huge_encode_dev(stat->rdev), &ubuf->st_rdev) || cp_stat64()
85 __put_user(stat->size, &ubuf->st_size) || cp_stat64()
86 __put_user(stat->atime.tv_sec, &ubuf->st_atime) || cp_stat64()
87 __put_user(stat->atime.tv_nsec, &ubuf->st_atime_nsec) || cp_stat64()
88 __put_user(stat->mtime.tv_sec, &ubuf->st_mtime) || cp_stat64()
89 __put_user(stat->mtime.tv_nsec, &ubuf->st_mtime_nsec) || cp_stat64()
90 __put_user(stat->ctime.tv_sec, &ubuf->st_ctime) || cp_stat64()
91 __put_user(stat->ctime.tv_nsec, &ubuf->st_ctime_nsec) || cp_stat64()
92 __put_user(stat->blksize, &ubuf->st_blksize) || cp_stat64()
93 __put_user(stat->blocks, &ubuf->st_blocks)) cp_stat64()
101 struct kstat stat; sys32_stat64() local
102 int ret = vfs_stat(filename, &stat); sys32_stat64()
105 ret = cp_stat64(statbuf, &stat); sys32_stat64()
112 struct kstat stat; sys32_lstat64() local
113 int ret = vfs_lstat(filename, &stat); sys32_lstat64()
115 ret = cp_stat64(statbuf, &stat); sys32_lstat64()
121 struct kstat stat; sys32_fstat64() local
122 int ret = vfs_fstat(fd, &stat); sys32_fstat64()
124 ret = cp_stat64(statbuf, &stat); sys32_fstat64()
131 struct kstat stat; sys32_fstatat() local
134 error = vfs_fstatat(dfd, filename, &stat, flag); sys32_fstatat()
137 return cp_stat64(statbuf, &stat); sys32_fstatat()
/linux-4.4.14/arch/powerpc/kvm/
H A Dtiming.h58 vcpu->stat.ext_intr_exits++; kvmppc_account_exit_stat()
61 vcpu->stat.dec_exits++; kvmppc_account_exit_stat()
64 vcpu->stat.emulated_inst_exits++; kvmppc_account_exit_stat()
67 vcpu->stat.dsi_exits++; kvmppc_account_exit_stat()
70 vcpu->stat.isi_exits++; kvmppc_account_exit_stat()
73 vcpu->stat.syscall_exits++; kvmppc_account_exit_stat()
76 vcpu->stat.dtlb_real_miss_exits++; kvmppc_account_exit_stat()
79 vcpu->stat.dtlb_virt_miss_exits++; kvmppc_account_exit_stat()
82 vcpu->stat.mmio_exits++; kvmppc_account_exit_stat()
85 vcpu->stat.itlb_real_miss_exits++; kvmppc_account_exit_stat()
88 vcpu->stat.itlb_virt_miss_exits++; kvmppc_account_exit_stat()
91 vcpu->stat.signal_exits++; kvmppc_account_exit_stat()
94 vcpu->stat.dbell_exits++; kvmppc_account_exit_stat()
97 vcpu->stat.gdbell_exits++; kvmppc_account_exit_stat()
/linux-4.4.14/drivers/staging/comedi/drivers/
H A Ddt2801.c223 int stat = 0; dt2801_readdata() local
227 stat = inb_p(dev->iobase + DT2801_STATUS); dt2801_readdata()
228 if (stat & (DT_S_COMPOSITE_ERROR | DT_S_READY)) dt2801_readdata()
229 return stat; dt2801_readdata()
230 if (stat & DT_S_DATA_OUT_READY) { dt2801_readdata()
258 int stat = 0; dt2801_writedata() local
262 stat = inb_p(dev->iobase + DT2801_STATUS); dt2801_writedata()
264 if (stat & DT_S_COMPOSITE_ERROR) dt2801_writedata()
265 return stat; dt2801_writedata()
266 if (!(stat & DT_S_DATA_IN_FULL)) { dt2801_writedata()
292 int stat; dt2801_wait_for_ready() local
294 stat = inb_p(dev->iobase + DT2801_STATUS); dt2801_wait_for_ready()
295 if (stat & DT_S_READY) dt2801_wait_for_ready()
298 stat = inb_p(dev->iobase + DT2801_STATUS); dt2801_wait_for_ready()
300 if (stat & DT_S_COMPOSITE_ERROR) dt2801_wait_for_ready()
301 return stat; dt2801_wait_for_ready()
302 if (stat & DT_S_READY) dt2801_wait_for_ready()
311 int stat; dt2801_writecmd() local
315 stat = inb_p(dev->iobase + DT2801_STATUS); dt2801_writecmd()
316 if (stat & DT_S_COMPOSITE_ERROR) { dt2801_writecmd()
320 if (!(stat & DT_S_READY)) dt2801_writecmd()
328 unsigned int stat; dt2801_reset() local
344 stat = inb_p(dev->iobase + DT2801_STATUS); dt2801_reset()
345 if (stat & DT_S_READY) dt2801_reset()
349 dev_dbg(dev->class_dev, "timeout 1 status=0x%02x\n", stat); dt2801_reset()
359 stat = inb_p(dev->iobase + DT2801_STATUS); dt2801_reset()
360 if (stat & DT_S_READY) dt2801_reset()
364 dev_dbg(dev->class_dev, "timeout 2 status=0x%02x\n", stat); dt2801_reset()
374 int stat; probe_number_of_ai_chans() local
381 stat = dt2801_readdata2(dev, &data); probe_number_of_ai_chans()
383 if (stat) probe_number_of_ai_chans()
423 static int dt2801_error(struct comedi_device *dev, int stat) dt2801_error() argument
425 if (stat < 0) { dt2801_error()
426 if (stat == -ETIME) dt2801_error()
429 dev_dbg(dev->class_dev, "error %d\n", stat); dt2801_error()
430 return stat; dt2801_error()
432 dev_dbg(dev->class_dev, "error status 0x%02x, resetting...\n", stat); dt2801_error()
445 int stat; dt2801_ai_insn_read() local
452 stat = dt2801_readdata2(dev, &d); dt2801_ai_insn_read()
454 if (stat != 0) dt2801_ai_insn_read()
455 return dt2801_error(dev, stat); dt2801_ai_insn_read()
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/bus/
H A Dgf100.c32 u32 stat = nvkm_rd32(device, 0x001100) & nvkm_rd32(device, 0x001140); gf100_bus_intr() local
34 if (stat & 0x0000000e) { gf100_bus_intr()
42 (stat & 0x00000002) ? "!ENGINE " : "", gf100_bus_intr()
43 (stat & 0x00000004) ? "IBUS " : "", gf100_bus_intr()
44 (stat & 0x00000008) ? "TIMEOUT " : ""); gf100_bus_intr()
47 nvkm_wr32(device, 0x001100, (stat & 0x0000000e)); gf100_bus_intr()
48 stat &= ~0x0000000e; gf100_bus_intr()
51 if (stat) { gf100_bus_intr()
52 nvkm_error(subdev, "intr %08x\n", stat); gf100_bus_intr()
53 nvkm_mask(device, 0x001140, stat, 0x00000000); gf100_bus_intr()
H A Dnv04.c36 u32 stat = nvkm_rd32(device, 0x001100) & nvkm_rd32(device, 0x001140); nv04_bus_intr() local
38 if (stat & 0x00000001) { nv04_bus_intr()
40 stat &= ~0x00000001; nv04_bus_intr()
44 if (stat & 0x00000110) { nv04_bus_intr()
48 stat &= ~0x00000110; nv04_bus_intr()
52 if (stat) { nv04_bus_intr()
53 nvkm_error(subdev, "intr %08x\n", stat); nv04_bus_intr()
54 nvkm_mask(device, 0x001140, stat, 0x00000000); nv04_bus_intr()
H A Dnv31.c35 u32 stat = nvkm_rd32(device, 0x001100) & nvkm_rd32(device, 0x001140); nv31_bus_intr() local
44 if (stat & 0x00000008) { /* NV41- */ nv31_bus_intr()
52 stat &= ~0x00000008; nv31_bus_intr()
56 if (stat & 0x00070000) { nv31_bus_intr()
60 stat &= ~0x00070000; nv31_bus_intr()
64 if (stat) { nv31_bus_intr()
65 nvkm_error(subdev, "intr %08x\n", stat); nv31_bus_intr()
66 nvkm_mask(device, 0x001140, stat, 0x00000000); nv31_bus_intr()
H A Dnv50.c57 u32 stat = nvkm_rd32(device, 0x001100) & nvkm_rd32(device, 0x001140); nv50_bus_intr() local
59 if (stat & 0x00000008) { nv50_bus_intr()
67 stat &= ~0x00000008; nv50_bus_intr()
71 if (stat & 0x00010000) { nv50_bus_intr()
75 stat &= ~0x00010000; nv50_bus_intr()
79 if (stat) { nv50_bus_intr()
80 nvkm_error(subdev, "intr %08x\n", stat); nv50_bus_intr()
81 nvkm_mask(device, 0x001140, stat, 0); nv50_bus_intr()
/linux-4.4.14/arch/sparc/kernel/
H A Dsys_sparc32.c28 #include <linux/stat.h>
70 static int cp_compat_stat64(struct kstat *stat, cp_compat_stat64() argument
75 err = put_user(huge_encode_dev(stat->dev), &statbuf->st_dev); cp_compat_stat64()
76 err |= put_user(stat->ino, &statbuf->st_ino); cp_compat_stat64()
77 err |= put_user(stat->mode, &statbuf->st_mode); cp_compat_stat64()
78 err |= put_user(stat->nlink, &statbuf->st_nlink); cp_compat_stat64()
79 err |= put_user(from_kuid_munged(current_user_ns(), stat->uid), &statbuf->st_uid); cp_compat_stat64()
80 err |= put_user(from_kgid_munged(current_user_ns(), stat->gid), &statbuf->st_gid); cp_compat_stat64()
81 err |= put_user(huge_encode_dev(stat->rdev), &statbuf->st_rdev); cp_compat_stat64()
83 err |= put_user(stat->size, &statbuf->st_size); cp_compat_stat64()
84 err |= put_user(stat->blksize, &statbuf->st_blksize); cp_compat_stat64()
87 err |= put_user(stat->blocks, &statbuf->st_blocks); cp_compat_stat64()
88 err |= put_user(stat->atime.tv_sec, &statbuf->st_atime); cp_compat_stat64()
89 err |= put_user(stat->atime.tv_nsec, &statbuf->st_atime_nsec); cp_compat_stat64()
90 err |= put_user(stat->mtime.tv_sec, &statbuf->st_mtime); cp_compat_stat64()
91 err |= put_user(stat->mtime.tv_nsec, &statbuf->st_mtime_nsec); cp_compat_stat64()
92 err |= put_user(stat->ctime.tv_sec, &statbuf->st_ctime); cp_compat_stat64()
93 err |= put_user(stat->ctime.tv_nsec, &statbuf->st_ctime_nsec); cp_compat_stat64()
103 struct kstat stat; compat_sys_stat64() local
104 int error = vfs_stat(filename, &stat); compat_sys_stat64()
107 error = cp_compat_stat64(&stat, statbuf); compat_sys_stat64()
114 struct kstat stat; compat_sys_lstat64() local
115 int error = vfs_lstat(filename, &stat); compat_sys_lstat64()
118 error = cp_compat_stat64(&stat, statbuf); compat_sys_lstat64()
125 struct kstat stat; compat_sys_fstat64() local
126 int error = vfs_fstat(fd, &stat); compat_sys_fstat64()
129 error = cp_compat_stat64(&stat, statbuf); compat_sys_fstat64()
137 struct kstat stat; compat_sys_fstatat64() local
140 error = vfs_fstatat(dfd, filename, &stat, flag); compat_sys_fstatat64()
143 return cp_compat_stat64(&stat, statbuf); compat_sys_fstatat64()
/linux-4.4.14/drivers/ide/
H A Dide-cd_ioctl.c46 int stat; ide_cdrom_drive_status() local
51 stat = cdrom_check_status(drive, &sense); ide_cdrom_drive_status()
52 if (!stat || sense.sense_key == UNIT_ATTENTION) ide_cdrom_drive_status()
140 int stat; ide_cd_lockdoor() local
147 stat = 0; ide_cd_lockdoor()
156 stat = ide_cd_queue_pc(drive, cmd, 0, NULL, NULL, ide_cd_lockdoor()
162 if (stat != 0 && ide_cd_lockdoor()
168 stat = 0; ide_cd_lockdoor()
172 if (stat != 0 && sense->sense_key == NOT_READY && sense->asc == 0x3a) ide_cd_lockdoor()
173 stat = 0; ide_cd_lockdoor()
175 if (stat == 0) { ide_cd_lockdoor()
182 return stat; ide_cd_lockdoor()
191 int stat = ide_cd_lockdoor(drive, 0, &sense); ide_cdrom_tray_move() local
193 if (stat) ide_cdrom_tray_move()
194 return stat; ide_cdrom_tray_move()
217 int stat; ide_cdrom_select_speed() local
238 stat = ide_cd_queue_pc(drive, cmd, 0, NULL, NULL, &sense, 0, 0); ide_cdrom_select_speed()
274 int stat, mcnlen; ide_cdrom_get_mcn() local
287 stat = ide_cd_queue_pc(drive, cmd, 0, buf, &len, NULL, 0, 0); ide_cdrom_get_mcn()
288 if (stat) ide_cdrom_get_mcn()
289 return stat; ide_cdrom_get_mcn()
355 int stat; ide_cd_fake_play_trkind() local
359 stat = ide_cd_get_toc_entry(drive, ti->cdti_trk0, &first_toc); ide_cd_fake_play_trkind()
360 if (stat) ide_cd_fake_play_trkind()
361 return stat; ide_cd_fake_play_trkind()
363 stat = ide_cd_get_toc_entry(drive, ti->cdti_trk1, &last_toc); ide_cd_fake_play_trkind()
364 if (stat) ide_cd_fake_play_trkind()
365 return stat; ide_cd_fake_play_trkind()
389 int stat; ide_cd_read_tochdr() local
392 stat = ide_cd_read_toc(drive, NULL); ide_cd_read_tochdr()
393 if (stat) ide_cd_read_tochdr()
394 return stat; ide_cd_read_tochdr()
407 int stat; ide_cd_read_tocentry() local
409 stat = ide_cd_get_toc_entry(drive, tocentry->cdte_track, &toce); ide_cd_read_tocentry()
410 if (stat) ide_cd_read_tocentry()
411 return stat; ide_cd_read_tocentry()
471 cgc->stat = ide_cd_queue_pc(drive, cgc->cmd, ide_cdrom_packet()
475 if (!cgc->stat) ide_cdrom_packet()
477 return cgc->stat; ide_cdrom_packet()
H A Dide-lib.c126 * @stat: status byte to decode
133 u8 ide_dump_status(ide_drive_t *drive, const char *msg, u8 stat) ide_dump_status() argument
137 printk(KERN_ERR "%s: %s: status=0x%02x { ", drive->name, msg, stat); ide_dump_status()
138 if (stat & ATA_BUSY) ide_dump_status()
141 if (stat & ATA_DRDY) ide_dump_status()
143 if (stat & ATA_DF) ide_dump_status()
145 if (stat & ATA_DSC) ide_dump_status()
147 if (stat & ATA_DRQ) ide_dump_status()
149 if (stat & ATA_CORR) ide_dump_status()
151 if (stat & ATA_SENSE) ide_dump_status()
153 if (stat & ATA_ERR) ide_dump_status()
157 if ((stat & (ATA_BUSY | ATA_ERR)) == ATA_ERR) { ide_dump_status()
H A Dide-taskfile.c155 u8 stat; task_no_data_intr() local
160 stat = hwif->tp_ops->read_status(hwif); task_no_data_intr()
161 if ((stat & ATA_BUSY) == 0 || retries-- == 0) task_no_data_intr()
166 if (!OK_STAT(stat, ATA_DRDY, BAD_STAT)) { task_no_data_intr()
170 (void)ide_dump_status(drive, __func__, stat); task_no_data_intr()
173 if ((stat & (ATA_ERR | ATA_DRQ)) == 0) { task_no_data_intr()
179 return ide_error(drive, "task_no_data_intr", stat); task_no_data_intr()
192 ide_finish_cmd(drive, cmd, stat); task_no_data_intr()
202 u8 stat; wait_drive_not_busy() local
209 stat = hwif->tp_ops->read_status(hwif); wait_drive_not_busy()
211 if (stat & ATA_BUSY) wait_drive_not_busy()
217 if (stat & ATA_BUSY) wait_drive_not_busy()
220 return stat; wait_drive_not_busy()
324 void ide_finish_cmd(ide_drive_t *drive, struct ide_cmd *cmd, u8 stat) ide_finish_cmd() argument
330 ide_complete_cmd(drive, cmd, stat, err); ide_finish_cmd()
348 u8 stat = hwif->tp_ops->read_status(hwif); task_pio_intr() local
353 if (stat & ATA_ERR) task_pio_intr()
357 if ((stat & ATA_DRQ) == 0) { task_pio_intr()
359 if (OK_STAT(stat, ATA_DRDY, ATA_BUSY)) task_pio_intr()
366 if (!OK_STAT(stat, DRIVE_READY, drive->bad_wstat)) task_pio_intr()
370 if (((stat & ATA_DRQ) == 0) ^ (cmd->nleft == 0)) task_pio_intr()
382 stat = wait_drive_not_busy(drive); task_pio_intr()
383 if (!OK_STAT(stat, 0, BAD_STAT)) task_pio_intr()
394 ide_finish_cmd(drive, cmd, stat); task_pio_intr()
400 return ide_error(drive, __func__, stat); task_pio_intr()
H A Dide-iops.c112 u8 stat; __ide_wait_stat() local
115 stat = tp_ops->read_status(hwif); __ide_wait_stat()
117 if (stat & ATA_BUSY) { __ide_wait_stat()
121 while ((stat = tp_ops->read_status(hwif)) & ATA_BUSY) { __ide_wait_stat()
128 stat = tp_ops->read_status(hwif); __ide_wait_stat()
129 if ((stat & ATA_BUSY) == 0) __ide_wait_stat()
133 *rstat = stat; __ide_wait_stat()
148 stat = tp_ops->read_status(hwif); __ide_wait_stat()
150 if (OK_STAT(stat, good, bad)) { __ide_wait_stat()
151 *rstat = stat; __ide_wait_stat()
155 *rstat = stat; __ide_wait_stat()
168 u8 stat; ide_wait_stat() local
176 err = __ide_wait_stat(drive, good, bad, timeout, &stat); ide_wait_stat()
180 *startstop = ide_error(drive, s, stat); ide_wait_stat()
349 u8 stat; ide_config_drive_speed() local
386 WAIT_CMD, &stat); ide_config_drive_speed()
391 (void) ide_dump_status(drive, "set_drive_speed_status", stat); ide_config_drive_speed()
509 u8 stat = 0; ide_wait_not_busy() local
517 stat = hwif->tp_ops->read_status(hwif); ide_wait_not_busy()
518 if ((stat & ATA_BUSY) == 0) ide_wait_not_busy()
525 if (stat == 0xff) ide_wait_not_busy()
H A Dide-eh.c8 u8 stat, u8 err) ide_ata_error()
12 if ((stat & ATA_BUSY) || ide_ata_error()
13 ((stat & ATA_DF) && (drive->dev_flags & IDE_DFLAG_NOWERR) == 0)) { ide_ata_error()
16 } else if (stat & ATA_ERR) { ide_ata_error()
35 if ((stat & ATA_DRQ) && rq_data_dir(rq) == READ && ide_ata_error()
64 u8 stat, u8 err) ide_atapi_error()
68 if ((stat & ATA_BUSY) || ide_atapi_error()
69 ((stat & ATA_DF) && (drive->dev_flags & IDE_DFLAG_NOWERR) == 0)) { ide_atapi_error()
94 u8 stat, u8 err) __ide_error()
97 return ide_ata_error(drive, rq, stat, err); __ide_error()
98 return ide_atapi_error(drive, rq, stat, err); __ide_error()
105 * @stat: status bits
114 ide_startstop_t ide_error(ide_drive_t *drive, const char *msg, u8 stat) ide_error() argument
119 err = ide_dump_status(drive, msg, stat); ide_error()
131 ide_complete_cmd(drive, cmd, stat, err); ide_error()
142 return __ide_error(drive, rq, stat, err); ide_error()
171 u8 stat; atapi_reset_pollfunc() local
175 stat = tp_ops->read_status(hwif); atapi_reset_pollfunc()
177 if (OK_STAT(stat, 0, ATA_BUSY)) atapi_reset_pollfunc()
188 drive->name, stat); atapi_reset_pollfunc()
7 ide_ata_error(ide_drive_t *drive, struct request *rq, u8 stat, u8 err) ide_ata_error() argument
63 ide_atapi_error(ide_drive_t *drive, struct request *rq, u8 stat, u8 err) ide_atapi_error() argument
93 __ide_error(ide_drive_t *drive, struct request *rq, u8 stat, u8 err) __ide_error() argument
H A Dide-cd.c274 static int cdrom_decode_status(ide_drive_t *drive, u8 stat) cdrom_decode_status() argument
285 "stat 0x%x", cdrom_decode_status()
286 rq->cmd[0], rq->cmd_type, err, stat); cdrom_decode_status()
350 ide_dump_status(drive, "command error", stat); cdrom_decode_status()
360 "(bad sector)", stat); cdrom_decode_status()
367 stat); cdrom_decode_status()
375 ide_error(drive, "cdrom_decode_status", stat); cdrom_decode_status()
395 if (stat & ATA_ERR) cdrom_decode_status()
400 if (stat & ATA_ERR) { cdrom_decode_status()
532 u8 ireason, stat; cdrom_newpc_intr() local
551 stat = hwif->tp_ops->read_status(hwif); cdrom_newpc_intr()
553 if (!OK_STAT(stat, 0, BAD_R_STAT)) { cdrom_newpc_intr()
554 rc = cdrom_decode_status(drive, stat); cdrom_newpc_intr()
565 return ide_error(drive, "dma error", stat); cdrom_newpc_intr()
576 ide_debug_log(IDE_DBG_PC, "DRQ: stat: 0x%x, thislen: %d", cdrom_newpc_intr()
577 stat, thislen); cdrom_newpc_intr()
580 if ((stat & ATA_DRQ) == 0) { cdrom_newpc_intr()
604 if (!(stat & ATA_ERR) && !uptodate && thislen) { cdrom_newpc_intr()
696 ide_error(drive, "request sense failure", stat); cdrom_newpc_intr()
882 int stat; cdrom_read_capacity() local
892 stat = ide_cd_queue_pc(drive, cmd, 0, &capbuf, &len, sense, 0, cdrom_read_capacity()
894 if (stat) cdrom_read_capacity()
895 return stat; cdrom_read_capacity()
952 int stat, ntracks, i; ide_cd_read_toc() local
986 stat = cdrom_read_capacity(drive, &toc->capacity, &sectors_per_frame, ide_cd_read_toc()
988 if (stat) ide_cd_read_toc()
999 stat = cdrom_read_tocentry(drive, 0, 1, 0, (char *) &toc->hdr, ide_cd_read_toc()
1001 if (stat) ide_cd_read_toc()
1002 return stat; ide_cd_read_toc()
1016 stat = cdrom_read_tocentry(drive, toc->hdr.first_track, 1, 0, ide_cd_read_toc()
1022 if (stat && toc->hdr.first_track > 1) { ide_cd_read_toc()
1036 stat = cdrom_read_tocentry(drive, CDROM_LEADOUT, 1, 0, ide_cd_read_toc()
1042 if (stat) ide_cd_read_toc()
1043 return stat; ide_cd_read_toc()
1054 if (stat) ide_cd_read_toc()
1055 return stat; ide_cd_read_toc()
1077 stat = cdrom_read_tocentry(drive, 0, 0, 1, (char *)&ms_tmp, ide_cd_read_toc()
1079 if (stat) ide_cd_read_toc()
1080 return stat; ide_cd_read_toc()
1091 stat = cdrom_read_tocentry(drive, 0, 1, 1, (char *)&ms_tmp, ide_cd_read_toc()
1093 if (stat) ide_cd_read_toc()
1094 return stat; ide_cd_read_toc()
1105 stat = cdrom_get_last_written(cdi, &last_written); ide_cd_read_toc()
1106 if (!stat && (last_written > toc->capacity)) { ide_cd_read_toc()
1123 int stat, attempts = 3, size = ATAPI_CAPABILITIES_PAGE_SIZE; ide_cdrom_get_capabilities() local
1132 /* we seem to get stat=0x01,err=0x00 the first time (??) */ ide_cdrom_get_capabilities()
1133 stat = cdrom_mode_sense(cdi, &cgc, GPMODE_CAPABILITIES_PAGE, 0); ide_cdrom_get_capabilities()
1134 if (!stat) ide_cdrom_get_capabilities()
1137 return stat; ide_cdrom_get_capabilities()
1624 int stat; idecd_set_spindown() local
1632 stat = cdrom_mode_sense(cdi, &cgc, GPMODE_CDROM_PAGE, 0); idecd_set_spindown()
1633 if (stat) idecd_set_spindown()
1634 return stat; idecd_set_spindown()
1644 int stat; idecd_get_spindown() local
1649 stat = cdrom_mode_sense(cdi, &cgc, GPMODE_CDROM_PAGE, 0); idecd_get_spindown()
1650 if (stat) idecd_get_spindown()
1651 return stat; idecd_get_spindown()
H A Dns87415.c146 unsigned char stat; ns87415_prepare_drive() local
152 (void) pci_read_config_byte(dev, 0x43, &stat); ns87415_prepare_drive()
153 while (stat & 0x03) { ns87415_prepare_drive()
155 (void) pci_read_config_byte(dev, 0x43, &stat); ns87415_prepare_drive()
211 u8 stat; init_hwif_ns87415() local
255 stat = hwif->tp_ops->read_status(hwif); init_hwif_ns87415()
256 if (stat == 0xff) init_hwif_ns87415()
258 } while ((stat & ATA_BUSY) && --timeout); init_hwif_ns87415()
/linux-4.4.14/drivers/staging/lustre/include/linux/lnet/
H A Dlnetst.h141 int trs_rpc_stat[4]; /* RPCs stat (0: total
146 int trs_fwk_stat[8]; /* framework stat */
148 void *trs_fwk_private; /* private framework stat */
152 lstcon_rpc_stat_total(lstcon_trans_stat_t *stat, int inc) lstcon_rpc_stat_total() argument
154 return inc ? ++stat->trs_rpc_stat[0] : stat->trs_rpc_stat[0]; lstcon_rpc_stat_total()
158 lstcon_rpc_stat_success(lstcon_trans_stat_t *stat, int inc) lstcon_rpc_stat_success() argument
160 return inc ? ++stat->trs_rpc_stat[1] : stat->trs_rpc_stat[1]; lstcon_rpc_stat_success()
164 lstcon_rpc_stat_failure(lstcon_trans_stat_t *stat, int inc) lstcon_rpc_stat_failure() argument
166 return inc ? ++stat->trs_rpc_stat[2] : stat->trs_rpc_stat[2]; lstcon_rpc_stat_failure()
170 lstcon_sesop_stat_success(lstcon_trans_stat_t *stat, int inc) lstcon_sesop_stat_success() argument
172 return inc ? ++stat->trs_fwk_stat[0] : stat->trs_fwk_stat[0]; lstcon_sesop_stat_success()
176 lstcon_sesop_stat_failure(lstcon_trans_stat_t *stat, int inc) lstcon_sesop_stat_failure() argument
178 return inc ? ++stat->trs_fwk_stat[1] : stat->trs_fwk_stat[1]; lstcon_sesop_stat_failure()
182 lstcon_sesqry_stat_active(lstcon_trans_stat_t *stat, int inc) lstcon_sesqry_stat_active() argument
184 return inc ? ++stat->trs_fwk_stat[0] : stat->trs_fwk_stat[0]; lstcon_sesqry_stat_active()
188 lstcon_sesqry_stat_busy(lstcon_trans_stat_t *stat, int inc) lstcon_sesqry_stat_busy() argument
190 return inc ? ++stat->trs_fwk_stat[1] : stat->trs_fwk_stat[1]; lstcon_sesqry_stat_busy()
194 lstcon_sesqry_stat_unknown(lstcon_trans_stat_t *stat, int inc) lstcon_sesqry_stat_unknown() argument
196 return inc ? ++stat->trs_fwk_stat[2] : stat->trs_fwk_stat[2]; lstcon_sesqry_stat_unknown()
200 lstcon_tsbop_stat_success(lstcon_trans_stat_t *stat, int inc) lstcon_tsbop_stat_success() argument
202 return inc ? ++stat->trs_fwk_stat[0] : stat->trs_fwk_stat[0]; lstcon_tsbop_stat_success()
206 lstcon_tsbop_stat_failure(lstcon_trans_stat_t *stat, int inc) lstcon_tsbop_stat_failure() argument
208 return inc ? ++stat->trs_fwk_stat[1] : stat->trs_fwk_stat[1]; lstcon_tsbop_stat_failure()
212 lstcon_tsbqry_stat_idle(lstcon_trans_stat_t *stat, int inc) lstcon_tsbqry_stat_idle() argument
214 return inc ? ++stat->trs_fwk_stat[0] : stat->trs_fwk_stat[0]; lstcon_tsbqry_stat_idle()
218 lstcon_tsbqry_stat_run(lstcon_trans_stat_t *stat, int inc) lstcon_tsbqry_stat_run() argument
220 return inc ? ++stat->trs_fwk_stat[1] : stat->trs_fwk_stat[1]; lstcon_tsbqry_stat_run()
224 lstcon_tsbqry_stat_failure(lstcon_trans_stat_t *stat, int inc) lstcon_tsbqry_stat_failure() argument
226 return inc ? ++stat->trs_fwk_stat[2] : stat->trs_fwk_stat[2]; lstcon_tsbqry_stat_failure()
230 lstcon_statqry_stat_success(lstcon_trans_stat_t *stat, int inc) lstcon_statqry_stat_success() argument
232 return inc ? ++stat->trs_fwk_stat[0] : stat->trs_fwk_stat[0]; lstcon_statqry_stat_success()
236 lstcon_statqry_stat_failure(lstcon_trans_stat_t *stat, int inc) lstcon_statqry_stat_failure() argument
238 return inc ? ++stat->trs_fwk_stat[1] : stat->trs_fwk_stat[1]; lstcon_statqry_stat_failure()
423 /* add stat in session */
427 stat request */
/linux-4.4.14/tools/perf/util/
H A Dabspath.c7 struct stat cwd_stat, pwd_stat; get_pwd_cwd()
12 stat(cwd, &cwd_stat); get_pwd_cwd()
13 if (!stat(pwd, &pwd_stat) && get_pwd_cwd()
H A Ddata.c4 #include <sys/stat.h>
14 struct stat st; check_pipe()
35 struct stat st; check_backup()
37 if (!stat(file->path, &st) && st.st_size) { check_backup()
51 struct stat st; open_file_read()
H A Dzlib.c3 #include <sys/stat.h>
19 struct stat stbuf; gzip_decompress_to_file()
H A Dtrace-event-info.c29 #include <sys/stat.h>
59 /* unfortunately, you can not stat debugfs or proc files for size */ record_file()
108 struct stat st; record_header_files()
117 if (stat(path, &st) < 0) { record_header_files()
141 if (stat(path, &st) < 0) { record_header_files()
176 struct stat st; copy_event_system()
199 ret = stat(format, &st); copy_event_system()
223 ret = stat(format, &st); copy_event_system()
272 struct stat st; record_event_files()
321 ret = stat(sys, &st); record_event_files()
358 struct stat st; record_ftrace_printk()
367 ret = stat(path, &st); record_ftrace_printk()
/linux-4.4.14/arch/mips/boot/compressed/
H A Dcalc_vmlinuz_load_addr.c11 #include <sys/stat.h>
20 struct stat sb; main()
28 if (stat(argv[1], &sb) == -1) { main()
29 perror("stat"); main()
/linux-4.4.14/tools/build/feature/
H A Dtest-timerfd.c2 * test for timerfd functions used by perf-kvm-stat-live
/linux-4.4.14/drivers/media/pci/mantis/
H A Dmantis_i2c.c40 u32 rxd, i, stat, trials; mantis_i2c_read() local
59 stat = mmread(MANTIS_INT_STAT); mantis_i2c_read()
60 if (stat & MANTIS_INT_I2CDONE) mantis_i2c_read()
68 stat = mmread(MANTIS_INT_STAT); mantis_i2c_read()
69 if (stat & MANTIS_INT_I2CRACK) mantis_i2c_read()
87 u32 txd = 0, stat, trials; mantis_i2c_write() local
107 stat = mmread(MANTIS_INT_STAT); mantis_i2c_write()
108 if (stat & MANTIS_INT_I2CDONE) mantis_i2c_write()
116 stat = mmread(MANTIS_INT_STAT); mantis_i2c_write()
117 if (stat & MANTIS_INT_I2CRACK) mantis_i2c_write()
131 u32 stat, data, txd; mantis_i2c_xfer() local
161 stat = mmread(MANTIS_INT_STAT); mantis_i2c_xfer()
162 if (stat & MANTIS_INT_I2CDONE) mantis_i2c_xfer()
167 if (stat & MANTIS_INT_I2CDONE) { mantis_i2c_xfer()
169 if (stat & MANTIS_INT_I2CRACK) { mantis_i2c_xfer()
H A Dhopper_cards.c68 u32 stat = 0, mask = 0; hopper_irq_handler() local
81 stat = mmread(MANTIS_INT_STAT); hopper_irq_handler()
83 if (!(stat & mask)) hopper_irq_handler()
95 mantis->mantis_int_stat = stat; hopper_irq_handler()
97 dprintk(MANTIS_DEBUG, 0, "\n-- Stat=<%02x> Mask=<%02x> --", stat, mask); hopper_irq_handler()
98 if (stat & MANTIS_INT_RISCEN) { hopper_irq_handler()
101 if (stat & MANTIS_INT_IRQ0) { hopper_irq_handler()
107 if (stat & MANTIS_INT_IRQ1) { hopper_irq_handler()
115 if (stat & MANTIS_INT_OCERR) { hopper_irq_handler()
118 if (stat & MANTIS_INT_PABORT) { hopper_irq_handler()
121 if (stat & MANTIS_INT_RIPERR) { hopper_irq_handler()
124 if (stat & MANTIS_INT_PPERR) { hopper_irq_handler()
127 if (stat & MANTIS_INT_FTRGT) { hopper_irq_handler()
130 if (stat & MANTIS_INT_RISCI) { hopper_irq_handler()
132 mantis->busy_block = (stat & MANTIS_INT_RISCSTAT) >> 28; hopper_irq_handler()
135 if (stat & MANTIS_INT_I2CDONE) { hopper_irq_handler()
139 mmwrite(stat, MANTIS_INT_STAT); hopper_irq_handler()
140 stat &= ~(MANTIS_INT_RISCEN | MANTIS_INT_I2CDONE | hopper_irq_handler()
151 if (stat) hopper_irq_handler()
152 dprintk(MANTIS_DEBUG, 0, "<Unknown> Stat=<%02x> Mask=<%02x>", stat, mask); hopper_irq_handler()
H A Dmantis_cards.c78 u32 stat = 0, mask = 0; mantis_irq_handler() local
91 stat = mmread(MANTIS_INT_STAT); mantis_irq_handler()
93 if (!(stat & mask)) mantis_irq_handler()
105 mantis->mantis_int_stat = stat; mantis_irq_handler()
107 dprintk(MANTIS_DEBUG, 0, "\n-- Stat=<%02x> Mask=<%02x> --", stat, mask); mantis_irq_handler()
108 if (stat & MANTIS_INT_RISCEN) { mantis_irq_handler()
111 if (stat & MANTIS_INT_IRQ0) { mantis_irq_handler()
117 if (stat & MANTIS_INT_IRQ1) { mantis_irq_handler()
125 if (stat & MANTIS_INT_OCERR) { mantis_irq_handler()
128 if (stat & MANTIS_INT_PABORT) { mantis_irq_handler()
131 if (stat & MANTIS_INT_RIPERR) { mantis_irq_handler()
134 if (stat & MANTIS_INT_PPERR) { mantis_irq_handler()
137 if (stat & MANTIS_INT_FTRGT) { mantis_irq_handler()
140 if (stat & MANTIS_INT_RISCI) { mantis_irq_handler()
142 mantis->busy_block = (stat & MANTIS_INT_RISCSTAT) >> 28; mantis_irq_handler()
145 if (stat & MANTIS_INT_I2CDONE) { mantis_irq_handler()
149 mmwrite(stat, MANTIS_INT_STAT); mantis_irq_handler()
150 stat &= ~(MANTIS_INT_RISCEN | MANTIS_INT_I2CDONE | mantis_irq_handler()
161 if (stat) mantis_irq_handler()
162 dprintk(MANTIS_DEBUG, 0, "<Unknown> Stat=<%02x> Mask=<%02x>", stat, mask); mantis_irq_handler()
H A Dmantis_uart.c94 u32 stat; mantis_uart_work() local
96 stat = mmread(MANTIS_UART_STAT); mantis_uart_work()
98 if (stat & MANTIS_UART_RXFIFO_FULL) mantis_uart_work()
105 while (stat & MANTIS_UART_RXFIFO_DATA) { mantis_uart_work()
107 stat = mmread(MANTIS_UART_STAT); mantis_uart_work()
/linux-4.4.14/arch/cris/arch-v32/kernel/
H A Ddebugport.c160 reg_ser_rs_stat_din stat; getDebugChar() local
164 stat = REG_RD(ser, kgdb_port->instance, rs_stat_din); getDebugChar()
165 } while (!stat.dav); getDebugChar()
171 return stat.data; getDebugChar()
177 reg_ser_r_stat_din stat; putDebugChar() local
179 stat = REG_RD(ser, kgdb_port->instance, r_stat_din); putDebugChar()
180 } while (!stat.tr_rdy); putDebugChar()
187 reg_ser_r_stat_din stat; early_putch() local
190 stat = REG_RD(ser, port->instance, r_stat_din); early_putch()
191 while (!stat.tr_rdy); early_putch()
/linux-4.4.14/drivers/net/ethernet/cavium/thunder/
H A Dnicvf_ethtool.c27 #define NICVF_HW_STAT(stat) { \
28 .name = #stat, \
29 .index = offsetof(struct nicvf_hw_stats, stat) / sizeof(u64), \
32 #define NICVF_DRV_STAT(stat) { \
33 .name = #stat, \
34 .index = offsetof(struct nicvf_drv_stats, stat) / sizeof(u64), \
255 int stat, qidx; nicvf_get_qset_stats() local
262 for (stat = 0; stat < nicvf_n_queue_stats; stat++) nicvf_get_qset_stats()
264 [nicvf_queue_stats[stat].index]; nicvf_get_qset_stats()
269 for (stat = 0; stat < nicvf_n_queue_stats; stat++) nicvf_get_qset_stats()
271 [nicvf_queue_stats[stat].index]; nicvf_get_qset_stats()
279 int stat; nicvf_get_ethtool_stats() local
287 for (stat = 0; stat < nicvf_n_hw_stats; stat++) nicvf_get_ethtool_stats()
289 [nicvf_hw_stats[stat].index]; nicvf_get_ethtool_stats()
290 for (stat = 0; stat < nicvf_n_drv_stats; stat++) nicvf_get_ethtool_stats()
292 [nicvf_drv_stats[stat].index]; nicvf_get_ethtool_stats()
302 for (stat = 0; stat < BGX_RX_STATS_COUNT; stat++) nicvf_get_ethtool_stats()
303 *(data++) = nic->bgx_stats.rx_stats[stat]; nicvf_get_ethtool_stats()
304 for (stat = 0; stat < BGX_TX_STATS_COUNT; stat++) nicvf_get_ethtool_stats()
305 *(data++) = nic->bgx_stats.tx_stats[stat]; nicvf_get_ethtool_stats()
319 int mbox, key, stat, q; nicvf_get_regs() local
341 for (stat = 0; stat < TX_STATS_ENUM_LAST; stat++) nicvf_get_regs()
343 NIC_VNIC_TX_STAT_0_4 | (stat << 3)); nicvf_get_regs()
347 NIC_VNIC_RX_STAT_0_13 | (stat << 3)); nicvf_get_regs()
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/engine/fifo/
H A Dgk104.c183 u32 stat = nvkm_rd32(device, 0x002640 + (engn * 0x04)); gk104_fifo_intr_sched_ctxsw() local
184 u32 busy = (stat & 0x80000000); gk104_fifo_intr_sched_ctxsw()
185 u32 next = (stat & 0x07ff0000) >> 16; gk104_fifo_intr_sched_ctxsw()
186 u32 chsw = (stat & 0x00008000); gk104_fifo_intr_sched_ctxsw()
187 u32 save = (stat & 0x00004000); gk104_fifo_intr_sched_ctxsw()
188 u32 load = (stat & 0x00002000); gk104_fifo_intr_sched_ctxsw()
189 u32 prev = (stat & 0x000007ff); gk104_fifo_intr_sched_ctxsw()
234 u32 stat = nvkm_rd32(device, 0x00256c); gk104_fifo_intr_chsw() local
235 nvkm_error(subdev, "CHSW_ERROR %08x\n", stat); gk104_fifo_intr_chsw()
236 nvkm_wr32(device, 0x00256c, stat); gk104_fifo_intr_chsw()
244 u32 stat = nvkm_rd32(device, 0x00259c); gk104_fifo_intr_dropped_fault() local
245 nvkm_error(subdev, "DROPPED_MMU_FAULT %08x\n", stat); gk104_fifo_intr_dropped_fault()
361 u32 stat = nvkm_rd32(device, 0x00280c + (unit * 0x10)); gk104_fifo_intr_fault() local
362 u32 gpc = (stat & 0x1f000000) >> 24; gk104_fifo_intr_fault()
363 u32 client = (stat & 0x00001f00) >> 8; gk104_fifo_intr_fault()
364 u32 write = (stat & 0x00000080); gk104_fifo_intr_fault()
365 u32 hub = (stat & 0x00000040); gk104_fifo_intr_fault()
366 u32 reason = (stat & 0x0000000f); gk104_fifo_intr_fault()
455 u32 stat = nvkm_rd32(device, 0x040108 + (unit * 0x2000)) & mask; gk104_fifo_intr_pbdma_0() local
461 u32 show = stat; gk104_fifo_intr_pbdma_0()
466 if (stat & 0x00800000) { gk104_fifo_intr_pbdma_0()
485 nvkm_wr32(device, 0x040108 + (unit * 0x2000), stat); gk104_fifo_intr_pbdma_0()
503 u32 stat = nvkm_rd32(device, 0x040148 + (unit * 0x2000)) & mask; gk104_fifo_intr_pbdma_1() local
507 if (stat) { gk104_fifo_intr_pbdma_1()
508 nvkm_snprintbf(msg, sizeof(msg), gk104_fifo_pbdma_intr_1, stat); gk104_fifo_intr_pbdma_1()
510 unit, stat, msg, chid, gk104_fifo_intr_pbdma_1()
515 nvkm_wr32(device, 0x040148 + (unit * 0x2000), stat); gk104_fifo_intr_pbdma_1()
544 u32 stat = nvkm_rd32(device, 0x002100) & mask; gk104_fifo_intr() local
546 if (stat & 0x00000001) { gk104_fifo_intr()
549 stat &= ~0x00000001; gk104_fifo_intr()
552 if (stat & 0x00000010) { gk104_fifo_intr()
555 stat &= ~0x00000010; gk104_fifo_intr()
558 if (stat & 0x00000100) { gk104_fifo_intr()
561 stat &= ~0x00000100; gk104_fifo_intr()
564 if (stat & 0x00010000) { gk104_fifo_intr()
567 stat &= ~0x00010000; gk104_fifo_intr()
570 if (stat & 0x00800000) { gk104_fifo_intr()
573 stat &= ~0x00800000; gk104_fifo_intr()
576 if (stat & 0x01000000) { gk104_fifo_intr()
579 stat &= ~0x01000000; gk104_fifo_intr()
582 if (stat & 0x08000000) { gk104_fifo_intr()
585 stat &= ~0x08000000; gk104_fifo_intr()
588 if (stat & 0x10000000) { gk104_fifo_intr()
596 stat &= ~0x10000000; gk104_fifo_intr()
599 if (stat & 0x20000000) { gk104_fifo_intr()
608 stat &= ~0x20000000; gk104_fifo_intr()
611 if (stat & 0x40000000) { gk104_fifo_intr()
613 stat &= ~0x40000000; gk104_fifo_intr()
616 if (stat & 0x80000000) { gk104_fifo_intr()
619 stat &= ~0x80000000; gk104_fifo_intr()
622 if (stat) { gk104_fifo_intr()
623 nvkm_error(subdev, "INTR %08x\n", stat); gk104_fifo_intr()
624 nvkm_mask(device, 0x002140, stat, 0x00000000); gk104_fifo_intr()
625 nvkm_wr32(device, 0x002100, stat); gk104_fifo_intr()
H A Dgf100.c184 u32 stat = nvkm_rd32(device, 0x002640 + (engn * 0x04)); gf100_fifo_intr_sched_ctxsw() local
185 u32 busy = (stat & 0x80000000); gf100_fifo_intr_sched_ctxsw()
186 u32 save = (stat & 0x00100000); /* maybe? */ gf100_fifo_intr_sched_ctxsw()
187 u32 unk0 = (stat & 0x00040000); gf100_fifo_intr_sched_ctxsw()
188 u32 unk1 = (stat & 0x00001000); gf100_fifo_intr_sched_ctxsw()
189 u32 chid = (stat & 0x0000007f); gf100_fifo_intr_sched_ctxsw()
296 u32 stat = nvkm_rd32(device, 0x00280c + (unit * 0x10)); gf100_fifo_intr_fault() local
297 u32 gpc = (stat & 0x1f000000) >> 24; gf100_fifo_intr_fault()
298 u32 client = (stat & 0x00001f00) >> 8; gf100_fifo_intr_fault()
299 u32 write = (stat & 0x00000080); gf100_fifo_intr_fault()
300 u32 hub = (stat & 0x00000040); gf100_fifo_intr_fault()
301 u32 reason = (stat & 0x0000000f); gf100_fifo_intr_fault()
363 u32 stat = nvkm_rd32(device, 0x040108 + (unit * 0x2000)); gf100_fifo_intr_pbdma() local
371 u32 show= stat; gf100_fifo_intr_pbdma()
374 if (stat & 0x00800000) { gf100_fifo_intr_pbdma()
393 nvkm_wr32(device, 0x040108 + (unit * 0x2000), stat); gf100_fifo_intr_pbdma()
459 u32 stat = nvkm_rd32(device, 0x002100) & mask; gf100_fifo_intr() local
461 if (stat & 0x00000001) { gf100_fifo_intr()
465 stat &= ~0x00000001; gf100_fifo_intr()
468 if (stat & 0x00000100) { gf100_fifo_intr()
471 stat &= ~0x00000100; gf100_fifo_intr()
474 if (stat & 0x00010000) { gf100_fifo_intr()
478 stat &= ~0x00010000; gf100_fifo_intr()
481 if (stat & 0x01000000) { gf100_fifo_intr()
485 stat &= ~0x01000000; gf100_fifo_intr()
488 if (stat & 0x10000000) { gf100_fifo_intr()
496 stat &= ~0x10000000; gf100_fifo_intr()
499 if (stat & 0x20000000) { gf100_fifo_intr()
507 stat &= ~0x20000000; gf100_fifo_intr()
510 if (stat & 0x40000000) { gf100_fifo_intr()
512 stat &= ~0x40000000; gf100_fifo_intr()
515 if (stat & 0x80000000) { gf100_fifo_intr()
517 stat &= ~0x80000000; gf100_fifo_intr()
520 if (stat) { gf100_fifo_intr()
521 nvkm_error(subdev, "INTR %08x\n", stat); gf100_fifo_intr()
522 nvkm_mask(device, 0x002140, stat, 0x00000000); gf100_fifo_intr()
523 nvkm_wr32(device, 0x002100, stat); gf100_fifo_intr()
H A Dnv04.c244 u32 stat = nvkm_rd32(device, NV03_PFIFO_INTR_0) & mask; nv04_fifo_intr() local
253 if (stat & NV_PFIFO_INTR_CACHE_ERROR) { nv04_fifo_intr()
255 stat &= ~NV_PFIFO_INTR_CACHE_ERROR; nv04_fifo_intr()
258 if (stat & NV_PFIFO_INTR_DMA_PUSHER) { nv04_fifo_intr()
260 stat &= ~NV_PFIFO_INTR_DMA_PUSHER; nv04_fifo_intr()
263 if (stat & NV_PFIFO_INTR_SEMAPHORE) { nv04_fifo_intr()
264 stat &= ~NV_PFIFO_INTR_SEMAPHORE; nv04_fifo_intr()
275 if (stat & 0x00000010) { nv04_fifo_intr()
276 stat &= ~0x00000010; nv04_fifo_intr()
280 if (stat & 0x40000000) { nv04_fifo_intr()
283 stat &= ~0x40000000; nv04_fifo_intr()
287 if (stat) { nv04_fifo_intr()
288 nvkm_warn(subdev, "intr %08x\n", stat); nv04_fifo_intr()
289 nvkm_mask(device, NV03_PFIFO_INTR_EN_0, stat, 0x00000000); nv04_fifo_intr()
290 nvkm_wr32(device, NV03_PFIFO_INTR_0, stat); nv04_fifo_intr()
/linux-4.4.14/drivers/media/common/siano/
H A Dsmsdvb-main.c147 c->strength.stat[0].scale = FE_SCALE_DECIBEL; smsdvb_stats_not_ready()
148 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; smsdvb_stats_not_ready()
161 c->post_bit_error.stat[i].scale = FE_SCALE_NOT_AVAILABLE; smsdvb_stats_not_ready()
162 c->post_bit_count.stat[i].scale = FE_SCALE_NOT_AVAILABLE; smsdvb_stats_not_ready()
163 c->block_error.stat[i].scale = FE_SCALE_NOT_AVAILABLE; smsdvb_stats_not_ready()
164 c->block_count.stat[i].scale = FE_SCALE_NOT_AVAILABLE; smsdvb_stats_not_ready()
251 c->strength.stat[0].uvalue = p->in_band_power * 1000; smsdvb_update_per_slices()
254 c->cnr.stat[0].svalue = p->snr * 1000; smsdvb_update_per_slices()
261 client->last_per = c->block_error.stat[0].uvalue; smsdvb_update_per_slices()
262 c->block_error.stat[0].scale = FE_SCALE_COUNTER; smsdvb_update_per_slices()
263 c->block_count.stat[0].scale = FE_SCALE_COUNTER; smsdvb_update_per_slices()
264 c->block_error.stat[0].uvalue += p->ets_packets; smsdvb_update_per_slices()
265 c->block_count.stat[0].uvalue += p->ets_packets + p->ts_packets; smsdvb_update_per_slices()
268 c->post_bit_error.stat[0].scale = FE_SCALE_COUNTER; smsdvb_update_per_slices()
269 c->post_bit_count.stat[0].scale = FE_SCALE_COUNTER; smsdvb_update_per_slices()
270 c->post_bit_error.stat[0].uvalue += p->ber_error_count; smsdvb_update_per_slices()
271 c->post_bit_count.stat[0].uvalue += p->ber_bit_count; smsdvb_update_per_slices()
306 c->cnr.stat[0].svalue = p->SNR * 1000; smsdvb_update_dvb_stats()
309 c->strength.stat[0].uvalue = p->in_band_pwr * 1000; smsdvb_update_dvb_stats()
316 client->last_per = c->block_error.stat[0].uvalue; smsdvb_update_dvb_stats()
317 c->block_error.stat[0].scale = FE_SCALE_COUNTER; smsdvb_update_dvb_stats()
318 c->block_count.stat[0].scale = FE_SCALE_COUNTER; smsdvb_update_dvb_stats()
319 c->block_error.stat[0].uvalue += p->error_ts_packets; smsdvb_update_dvb_stats()
320 c->block_count.stat[0].uvalue += p->total_ts_packets; smsdvb_update_dvb_stats()
323 c->post_bit_error.stat[0].scale = FE_SCALE_COUNTER; smsdvb_update_dvb_stats()
324 c->post_bit_count.stat[0].scale = FE_SCALE_COUNTER; smsdvb_update_dvb_stats()
325 c->post_bit_error.stat[0].uvalue += p->ber_error_count; smsdvb_update_dvb_stats()
326 c->post_bit_count.stat[0].uvalue += p->ber_bit_count; smsdvb_update_dvb_stats()
351 c->strength.stat[0].uvalue = ((s32)p->transmission_mode) * 1000; smsdvb_update_isdbt_stats()
352 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; smsdvb_update_isdbt_stats()
373 c->cnr.stat[0].svalue = p->SNR * 1000; smsdvb_update_isdbt_stats()
376 c->strength.stat[0].uvalue = p->in_band_pwr * 1000; smsdvb_update_isdbt_stats()
382 client->last_per = c->block_error.stat[0].uvalue; smsdvb_update_isdbt_stats()
385 c->block_error.stat[0].uvalue = 0; smsdvb_update_isdbt_stats()
386 c->block_count.stat[0].uvalue = 0; smsdvb_update_isdbt_stats()
387 c->block_error.stat[0].scale = FE_SCALE_COUNTER; smsdvb_update_isdbt_stats()
388 c->block_count.stat[0].scale = FE_SCALE_COUNTER; smsdvb_update_isdbt_stats()
389 c->post_bit_error.stat[0].uvalue = 0; smsdvb_update_isdbt_stats()
390 c->post_bit_count.stat[0].uvalue = 0; smsdvb_update_isdbt_stats()
391 c->post_bit_error.stat[0].scale = FE_SCALE_COUNTER; smsdvb_update_isdbt_stats()
392 c->post_bit_count.stat[0].scale = FE_SCALE_COUNTER; smsdvb_update_isdbt_stats()
407 c->block_error.stat[i + 1].scale = FE_SCALE_COUNTER; smsdvb_update_isdbt_stats()
408 c->block_count.stat[i + 1].scale = FE_SCALE_COUNTER; smsdvb_update_isdbt_stats()
409 c->block_error.stat[i + 1].uvalue += lr->error_ts_packets; smsdvb_update_isdbt_stats()
410 c->block_count.stat[i + 1].uvalue += lr->total_ts_packets; smsdvb_update_isdbt_stats()
413 c->block_error.stat[0].uvalue += lr->error_ts_packets; smsdvb_update_isdbt_stats()
414 c->block_count.stat[0].uvalue += lr->total_ts_packets; smsdvb_update_isdbt_stats()
417 c->post_bit_error.stat[i + 1].scale = FE_SCALE_COUNTER; smsdvb_update_isdbt_stats()
418 c->post_bit_count.stat[i + 1].scale = FE_SCALE_COUNTER; smsdvb_update_isdbt_stats()
419 c->post_bit_error.stat[i + 1].uvalue += lr->ber_error_count; smsdvb_update_isdbt_stats()
420 c->post_bit_count.stat[i + 1].uvalue += lr->ber_bit_count; smsdvb_update_isdbt_stats()
423 c->post_bit_error.stat[0].uvalue += lr->ber_error_count; smsdvb_update_isdbt_stats()
424 c->post_bit_count.stat[0].uvalue += lr->ber_bit_count; smsdvb_update_isdbt_stats()
457 c->cnr.stat[0].svalue = p->SNR * 1000; smsdvb_update_isdbt_stats_ex()
460 c->strength.stat[0].uvalue = p->in_band_pwr * 1000; smsdvb_update_isdbt_stats_ex()
466 client->last_per = c->block_error.stat[0].uvalue; smsdvb_update_isdbt_stats_ex()
469 c->block_error.stat[0].uvalue = 0; smsdvb_update_isdbt_stats_ex()
470 c->block_count.stat[0].uvalue = 0; smsdvb_update_isdbt_stats_ex()
471 c->block_error.stat[0].scale = FE_SCALE_COUNTER; smsdvb_update_isdbt_stats_ex()
472 c->block_count.stat[0].scale = FE_SCALE_COUNTER; smsdvb_update_isdbt_stats_ex()
473 c->post_bit_error.stat[0].uvalue = 0; smsdvb_update_isdbt_stats_ex()
474 c->post_bit_count.stat[0].uvalue = 0; smsdvb_update_isdbt_stats_ex()
475 c->post_bit_error.stat[0].scale = FE_SCALE_COUNTER; smsdvb_update_isdbt_stats_ex()
476 c->post_bit_count.stat[0].scale = FE_SCALE_COUNTER; smsdvb_update_isdbt_stats_ex()
495 c->block_error.stat[i + 1].scale = FE_SCALE_COUNTER; smsdvb_update_isdbt_stats_ex()
496 c->block_count.stat[i + 1].scale = FE_SCALE_COUNTER; smsdvb_update_isdbt_stats_ex()
497 c->block_error.stat[i + 1].uvalue += lr->error_ts_packets; smsdvb_update_isdbt_stats_ex()
498 c->block_count.stat[i + 1].uvalue += lr->total_ts_packets; smsdvb_update_isdbt_stats_ex()
501 c->block_error.stat[0].uvalue += lr->error_ts_packets; smsdvb_update_isdbt_stats_ex()
502 c->block_count.stat[0].uvalue += lr->total_ts_packets; smsdvb_update_isdbt_stats_ex()
505 c->post_bit_error.stat[i + 1].scale = FE_SCALE_COUNTER; smsdvb_update_isdbt_stats_ex()
506 c->post_bit_count.stat[i + 1].scale = FE_SCALE_COUNTER; smsdvb_update_isdbt_stats_ex()
507 c->post_bit_error.stat[i + 1].uvalue += lr->ber_error_count; smsdvb_update_isdbt_stats_ex()
508 c->post_bit_count.stat[i + 1].uvalue += lr->ber_bit_count; smsdvb_update_isdbt_stats_ex()
511 c->post_bit_error.stat[0].uvalue += lr->ber_error_count; smsdvb_update_isdbt_stats_ex()
512 c->post_bit_count.stat[0].uvalue += lr->ber_bit_count; smsdvb_update_isdbt_stats_ex()
596 if (client->last_per == c->block_error.stat[0].uvalue) smsdvb_onresponse()
756 static int smsdvb_read_status(struct dvb_frontend *fe, enum fe_status *stat) smsdvb_read_status() argument
764 *stat = client->fe_status; smsdvb_read_status()
791 s32 power = (s32) c->strength.stat[0].uvalue; smsdvb_read_signal_strength()
821 *snr = ((u32)c->cnr.stat[0].svalue) / 100; smsdvb_read_snr()
838 *ucblocks = c->block_error.stat[0].uvalue; smsdvb_read_ucblocks()
1000 c->strength.stat[0].uvalue = 0; smsdvb_set_frontend()
1001 c->cnr.stat[0].uvalue = 0; smsdvb_set_frontend()
/linux-4.4.14/arch/s390/kernel/
H A Dcompat_linux.c34 #include <linux/stat.h>
84 #define SET_OLDSTAT_UID(stat, uid) (stat).st_uid = high2lowuid(uid)
85 #define SET_OLDSTAT_GID(stat, gid) (stat).st_gid = high2lowgid(gid)
86 #define SET_STAT_UID(stat, uid) (stat).st_uid = high2lowuid(uid)
87 #define SET_STAT_GID(stat, gid) (stat).st_gid = high2lowgid(gid)
358 static int cp_stat64(struct stat64_emu31 __user *ubuf, struct kstat *stat) cp_stat64() argument
364 tmp.st_dev = huge_encode_dev(stat->dev); cp_stat64()
365 tmp.st_ino = stat->ino; cp_stat64()
366 tmp.__st_ino = (u32)stat->ino; cp_stat64()
367 tmp.st_mode = stat->mode; cp_stat64()
368 tmp.st_nlink = (unsigned int)stat->nlink; cp_stat64()
369 tmp.st_uid = from_kuid_munged(current_user_ns(), stat->uid); cp_stat64()
370 tmp.st_gid = from_kgid_munged(current_user_ns(), stat->gid); cp_stat64()
371 tmp.st_rdev = huge_encode_dev(stat->rdev); cp_stat64()
372 tmp.st_size = stat->size; cp_stat64()
373 tmp.st_blksize = (u32)stat->blksize; cp_stat64()
374 tmp.st_blocks = (u32)stat->blocks; cp_stat64()
375 tmp.st_atime = (u32)stat->atime.tv_sec; cp_stat64()
376 tmp.st_mtime = (u32)stat->mtime.tv_sec; cp_stat64()
377 tmp.st_ctime = (u32)stat->ctime.tv_sec; cp_stat64()
384 struct kstat stat; COMPAT_SYSCALL_DEFINE2() local
385 int ret = vfs_stat(filename, &stat); COMPAT_SYSCALL_DEFINE2()
387 ret = cp_stat64(statbuf, &stat); COMPAT_SYSCALL_DEFINE2()
393 struct kstat stat; COMPAT_SYSCALL_DEFINE2() local
394 int ret = vfs_lstat(filename, &stat); COMPAT_SYSCALL_DEFINE2()
396 ret = cp_stat64(statbuf, &stat); COMPAT_SYSCALL_DEFINE2()
402 struct kstat stat; COMPAT_SYSCALL_DEFINE2() local
403 int ret = vfs_fstat(fd, &stat); COMPAT_SYSCALL_DEFINE2()
405 ret = cp_stat64(statbuf, &stat); COMPAT_SYSCALL_DEFINE2()
412 struct kstat stat; COMPAT_SYSCALL_DEFINE4() local
415 error = vfs_fstatat(dfd, filename, &stat, flag); COMPAT_SYSCALL_DEFINE4()
418 return cp_stat64(statbuf, &stat); COMPAT_SYSCALL_DEFINE4()
/linux-4.4.14/arch/arm/mach-dove/
H A Dirq.c125 u32 stat; dove_legacy_handle_irq() local
127 stat = readl_relaxed(dove_irq_base + IRQ_CAUSE_LOW_OFF); dove_legacy_handle_irq()
128 stat &= readl_relaxed(dove_irq_base + IRQ_MASK_LOW_OFF); dove_legacy_handle_irq()
129 if (stat) { dove_legacy_handle_irq()
130 unsigned int hwirq = 1 + __fls(stat); dove_legacy_handle_irq()
134 stat = readl_relaxed(dove_irq_base + IRQ_CAUSE_HIGH_OFF); dove_legacy_handle_irq()
135 stat &= readl_relaxed(dove_irq_base + IRQ_MASK_HIGH_OFF); dove_legacy_handle_irq()
136 if (stat) { dove_legacy_handle_irq()
137 unsigned int hwirq = 33 + __fls(stat); dove_legacy_handle_irq()
/linux-4.4.14/arch/arm/mach-orion5x/
H A Dirq.c40 u32 stat; orion5x_legacy_handle_irq() local
42 stat = readl_relaxed(MAIN_IRQ_CAUSE); orion5x_legacy_handle_irq()
43 stat &= readl_relaxed(MAIN_IRQ_MASK); orion5x_legacy_handle_irq()
44 if (stat) { orion5x_legacy_handle_irq()
45 unsigned int hwirq = 1 + __fls(stat); orion5x_legacy_handle_irq()
/linux-4.4.14/fs/overlayfs/
H A Dcopy_up.c170 static int ovl_set_timestamps(struct dentry *upperdentry, struct kstat *stat) ovl_set_timestamps() argument
175 .ia_atime = stat->atime, ovl_set_timestamps()
176 .ia_mtime = stat->mtime, ovl_set_timestamps()
182 int ovl_set_attr(struct dentry *upperdentry, struct kstat *stat) ovl_set_attr() argument
186 if (!S_ISLNK(stat->mode)) { ovl_set_attr()
189 .ia_mode = stat->mode, ovl_set_attr()
196 .ia_uid = stat->uid, ovl_set_attr()
197 .ia_gid = stat->gid, ovl_set_attr()
202 ovl_set_timestamps(upperdentry, stat); ovl_set_attr()
209 struct kstat *stat, const char *link) ovl_copy_up_locked()
215 umode_t mode = stat->mode; ovl_copy_up_locked()
230 stat->mode &= S_IFMT; ovl_copy_up_locked()
231 err = ovl_create_real(wdir, newdentry, stat, link, NULL, true); ovl_copy_up_locked()
232 stat->mode = mode; ovl_copy_up_locked()
236 if (S_ISREG(stat->mode)) { ovl_copy_up_locked()
242 err = ovl_copy_up_data(lowerpath, &upperpath, stat->size); ovl_copy_up_locked()
252 err = ovl_set_attr(newdentry, stat); ovl_copy_up_locked()
267 if (!S_ISDIR(stat->mode)) ovl_copy_up_locked()
297 struct path *lowerpath, struct kstat *stat) ovl_copy_up_one()
319 if (S_ISLNK(stat->mode)) { ovl_copy_up_one()
330 override_cred->fsuid = stat->uid; ovl_copy_up_one()
331 override_cred->fsgid = stat->gid; ovl_copy_up_one()
361 stat, link); ovl_copy_up_one()
387 struct kstat stat; ovl_copy_up() local
407 err = vfs_getattr(&lowerpath, &stat); ovl_copy_up()
409 err = ovl_copy_up_one(parent, next, &lowerpath, &stat); ovl_copy_up()
207 ovl_copy_up_locked(struct dentry *workdir, struct dentry *upperdir, struct dentry *dentry, struct path *lowerpath, struct kstat *stat, const char *link) ovl_copy_up_locked() argument
296 ovl_copy_up_one(struct dentry *parent, struct dentry *dentry, struct path *lowerpath, struct kstat *stat) ovl_copy_up_one() argument
H A Ddir.c73 struct kstat *stat, const char *link, ovl_create_real()
84 switch (stat->mode & S_IFMT) { ovl_create_real()
86 err = ovl_do_create(dir, newdentry, stat->mode, debug); ovl_create_real()
90 err = ovl_do_mkdir(dir, newdentry, stat->mode, debug); ovl_create_real()
98 stat->mode, stat->rdev, debug); ovl_create_real()
136 struct kstat *stat) ovl_dir_getattr()
143 err = vfs_getattr(&realpath, stat); ovl_dir_getattr()
147 stat->dev = dentry->d_sb->s_dev; ovl_dir_getattr()
148 stat->ino = dentry->d_inode->i_ino; ovl_dir_getattr()
156 stat->nlink = 1; ovl_dir_getattr()
162 struct kstat *stat, const char *link, ovl_create_upper()
176 err = ovl_create_real(udir, newdentry, stat, link, hardlink, false); ovl_create_upper()
222 struct kstat stat; ovl_clear_empty() local
233 err = vfs_getattr(&upperpath, &stat); ovl_clear_empty()
238 if (!S_ISDIR(stat.mode)) ovl_clear_empty()
249 err = ovl_create_real(wdir, opaquedir, &stat, NULL, NULL, true); ovl_clear_empty()
262 err = ovl_set_attr(opaquedir, &stat); ovl_clear_empty()
317 struct kstat *stat, const char *link, ovl_create_over_whiteout()
346 err = ovl_create_real(wdir, newdentry, stat, link, hardlink, true); ovl_create_over_whiteout()
350 if (S_ISDIR(stat->mode)) { ovl_create_over_whiteout()
390 struct kstat stat = { ovl_create_or_link() local
405 err = ovl_create_upper(dentry, inode, &stat, link, hardlink); ovl_create_or_link()
425 err = ovl_create_over_whiteout(dentry, inode, &stat, link, ovl_create_or_link()
72 ovl_create_real(struct inode *dir, struct dentry *newdentry, struct kstat *stat, const char *link, struct dentry *hardlink, bool debug) ovl_create_real() argument
135 ovl_dir_getattr(struct vfsmount *mnt, struct dentry *dentry, struct kstat *stat) ovl_dir_getattr() argument
161 ovl_create_upper(struct dentry *dentry, struct inode *inode, struct kstat *stat, const char *link, struct dentry *hardlink) ovl_create_upper() argument
316 ovl_create_over_whiteout(struct dentry *dentry, struct inode *inode, struct kstat *stat, const char *link, struct dentry *hardlink) ovl_create_over_whiteout() argument
/linux-4.4.14/arch/s390/kvm/
H A Dsigp.c301 vcpu->stat.instruction_sigp_sense++; handle_sigp_dst()
305 vcpu->stat.instruction_sigp_external_call++; handle_sigp_dst()
309 vcpu->stat.instruction_sigp_emergency++; handle_sigp_dst()
313 vcpu->stat.instruction_sigp_stop++; handle_sigp_dst()
317 vcpu->stat.instruction_sigp_stop_store_status++; handle_sigp_dst()
321 vcpu->stat.instruction_sigp_store_status++; handle_sigp_dst()
326 vcpu->stat.instruction_sigp_prefix++; handle_sigp_dst()
330 vcpu->stat.instruction_sigp_cond_emergency++; handle_sigp_dst()
335 vcpu->stat.instruction_sigp_sense_running++; handle_sigp_dst()
339 vcpu->stat.instruction_sigp_start++; handle_sigp_dst()
343 vcpu->stat.instruction_sigp_restart++; handle_sigp_dst()
347 vcpu->stat.instruction_sigp_init_cpu_reset++; handle_sigp_dst()
351 vcpu->stat.instruction_sigp_cpu_reset++; handle_sigp_dst()
355 vcpu->stat.instruction_sigp_unknown++; handle_sigp_dst()
382 vcpu->stat.instruction_sigp_stop++; handle_sigp_order_in_user_space()
385 vcpu->stat.instruction_sigp_stop_store_status++; handle_sigp_order_in_user_space()
388 vcpu->stat.instruction_sigp_store_status++; handle_sigp_order_in_user_space()
391 vcpu->stat.instruction_sigp_store_adtl_status++; handle_sigp_order_in_user_space()
394 vcpu->stat.instruction_sigp_prefix++; handle_sigp_order_in_user_space()
397 vcpu->stat.instruction_sigp_start++; handle_sigp_order_in_user_space()
400 vcpu->stat.instruction_sigp_restart++; handle_sigp_order_in_user_space()
403 vcpu->stat.instruction_sigp_init_cpu_reset++; handle_sigp_order_in_user_space()
406 vcpu->stat.instruction_sigp_cpu_reset++; handle_sigp_order_in_user_space()
409 vcpu->stat.instruction_sigp_unknown++; handle_sigp_order_in_user_space()
442 vcpu->stat.instruction_sigp_arch++; kvm_s390_handle_sigp()
H A Dintercept.c58 vcpu->stat.exit_null++; handle_noop()
61 vcpu->stat.exit_external_request++; handle_noop()
75 vcpu->stat.exit_stop_request++; handle_stop()
107 vcpu->stat.exit_validity++; handle_validity()
117 vcpu->stat.exit_instruction++; handle_instruction()
218 vcpu->stat.exit_program_interruption++; handle_prog()
259 vcpu->stat.exit_external_interrupt++; handle_external_interrupt()
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/mc/
H A Dbase.c62 u32 stat, intr; nvkm_mc_intr() local
64 stat = intr = nvkm_mc_intr_mask(mc); nvkm_mc_intr()
65 while (map->stat) { nvkm_mc_intr()
66 if (intr & map->stat) { nvkm_mc_intr()
70 stat &= ~map->stat; nvkm_mc_intr()
75 if (stat) nvkm_mc_intr()
76 nvkm_error(&mc->subdev, "intr %08x\n", stat); nvkm_mc_intr()
/linux-4.4.14/include/linux/
H A Dstat.h5 #include <asm/stat.h>
6 #include <uapi/linux/stat.h>
/linux-4.4.14/arch/x86/platform/uv/
H A Dtlb_uv.c222 struct ptc_stats *stat = bcp->statp; bau_process_retry_msg() local
224 stat->d_retries++; bau_process_retry_msg()
255 stat->d_canceled++; bau_process_retry_msg()
263 stat->d_nocanceled++; bau_process_retry_msg()
276 struct ptc_stats *stat = bcp->statp; bau_process_message() local
285 stat->d_alltlb++; bau_process_message()
288 stat->d_onetlb++; bau_process_message()
290 stat->d_requestee++; bau_process_message()
364 struct ptc_stats *stat = bcp->statp; do_reset() local
366 stat->d_resets++; do_reset()
395 stat->d_rcanceled++; do_reset()
519 struct ptc_stats *stat = bcp->statp; uv1_wait_completion() local
531 stat->s_stimeout++; uv1_wait_completion()
534 stat->s_dtimeout++; uv1_wait_completion()
602 struct ptc_stats *stat = bcp->statp; handle_uv2_busy() local
604 stat->s_uv2_wars++; handle_uv2_busy()
617 struct ptc_stats *stat = bcp->statp; uv2_3_wait_completion() local
631 stat->s_stimeout++; uv2_3_wait_completion()
647 stat->s_plugged++; uv2_3_wait_completion()
651 stat->s_dtimeout++; uv2_3_wait_completion()
707 struct bau_control *hmaster, struct ptc_stats *stat) destination_plugged()
724 stat->s_resets_plug++; destination_plugged()
730 struct ptc_stats *stat) destination_timeout()
746 stat->s_resets_timeout++; destination_timeout()
754 static void disable_for_period(struct bau_control *bcp, struct ptc_stats *stat) disable_for_period() argument
764 stat->s_bau_disabled++; disable_for_period()
778 static void count_max_concurr(int stat, struct bau_control *bcp, count_max_concurr() argument
783 if (stat != FLUSH_COMPLETE) count_max_concurr()
793 struct bau_control *bcp, struct ptc_stats *stat, record_send_stats()
800 stat->s_time += elapsed; record_send_stats()
809 stat->s_congested++; record_send_stats()
810 disable_for_period(bcp, stat); record_send_stats()
814 stat->s_requestor--; record_send_stats()
817 stat->s_retriesok++; record_send_stats()
819 stat->s_giveup++; record_send_stats()
826 disable_for_period(bcp, stat); record_send_stats()
827 stat->s_giveuplimit++; record_send_stats()
836 static void uv1_throttle(struct bau_control *hmaster, struct ptc_stats *stat) uv1_throttle() argument
843 stat->s_throttles++; uv1_throttle()
855 struct ptc_stats *stat) handle_cmplt()
858 destination_plugged(bau_desc, bcp, hmaster, stat); handle_cmplt()
860 destination_timeout(bau_desc, bcp, hmaster, stat); handle_cmplt()
883 struct ptc_stats *stat = bcp->statp; uv_flush_send_and_wait() local
890 uv1_throttle(hmaster, stat); uv_flush_send_and_wait()
915 stat->s_retry_messages++; uv_flush_send_and_wait()
930 handle_cmplt(completion_stat, bau_desc, bcp, hmaster, stat); uv_flush_send_and_wait()
934 stat->s_overipilimit++; uv_flush_send_and_wait()
951 record_send_stats(time1, time2, bcp, stat, completion_stat, try); uv_flush_send_and_wait()
964 static int check_enable(struct bau_control *bcp, struct ptc_stats *stat) check_enable() argument
973 stat->s_bau_reenabled++; for_each_present_cpu()
990 static void record_send_statistics(struct ptc_stats *stat, int locals, int hubs, record_send_statistics() argument
993 stat->s_requestor++; record_send_statistics()
994 stat->s_ntargcpu += remotes + locals; record_send_statistics()
995 stat->s_ntargremotes += remotes; record_send_statistics()
996 stat->s_ntarglocals += locals; record_send_statistics()
1001 stat->s_ntarglocaluvhub++; record_send_statistics()
1002 stat->s_ntargremoteuvhub += (hubs - 1); record_send_statistics()
1004 stat->s_ntargremoteuvhub += hubs; record_send_statistics()
1006 stat->s_ntarguvhub += hubs; record_send_statistics()
1009 stat->s_ntarguvhub16++; record_send_statistics()
1011 stat->s_ntarguvhub8++; record_send_statistics()
1013 stat->s_ntarguvhub4++; record_send_statistics()
1015 stat->s_ntarguvhub2++; record_send_statistics()
1017 stat->s_ntarguvhub1++; record_send_statistics()
1089 struct ptc_stats *stat; uv_flush_tlb_others() local
1099 stat = bcp->statp; uv_flush_tlb_others()
1100 stat->s_enters++; uv_flush_tlb_others()
1114 if (check_enable(bcp, stat)) { uv_flush_tlb_others()
1115 stat->s_ipifordisabled++; uv_flush_tlb_others()
1130 stat->s_ntargself++; uv_flush_tlb_others()
1138 record_send_statistics(stat, locals, hubs, remotes, bau_desc); uv_flush_tlb_others()
1248 struct ptc_stats *stat; uv_bau_message_interrupt() local
1255 stat = bcp->statp; uv_bau_message_interrupt()
1277 stat->d_time += (get_cycles() - time_start); uv_bau_message_interrupt()
1279 stat->d_nomsg++; uv_bau_message_interrupt()
1281 stat->d_multmsg++; uv_bau_message_interrupt()
1364 struct ptc_stats *stat; ptc_seq_show() local
1389 stat = bcp->statp; ptc_seq_show()
1393 cpu, bcp->nobau, stat->s_requestor, ptc_seq_show()
1394 cycles_2_us(stat->s_time), ptc_seq_show()
1395 stat->s_ntargself, stat->s_ntarglocals, ptc_seq_show()
1396 stat->s_ntargremotes, stat->s_ntargcpu, ptc_seq_show()
1397 stat->s_ntarglocaluvhub, stat->s_ntargremoteuvhub, ptc_seq_show()
1398 stat->s_ntarguvhub, stat->s_ntarguvhub16); ptc_seq_show()
1400 stat->s_ntarguvhub8, stat->s_ntarguvhub4, ptc_seq_show()
1401 stat->s_ntarguvhub2, stat->s_ntarguvhub1, ptc_seq_show()
1402 stat->s_dtimeout, stat->s_strongnacks); ptc_seq_show()
1404 stat->s_retry_messages, stat->s_retriesok, ptc_seq_show()
1405 stat->s_resets_plug, stat->s_resets_timeout, ptc_seq_show()
1406 stat->s_giveup, stat->s_stimeout, ptc_seq_show()
1407 stat->s_busy, stat->s_throttles); ptc_seq_show()
1409 stat->s_bau_disabled, stat->s_bau_reenabled, ptc_seq_show()
1410 stat->s_uv2_wars, stat->s_uv2_wars_hw, ptc_seq_show()
1411 stat->s_uv2_war_waits, stat->s_enters, ptc_seq_show()
1412 stat->s_ipifordisabled, stat->s_plugged, ptc_seq_show()
1413 stat->s_overipilimit, stat->s_giveuplimit, ptc_seq_show()
1414 stat->s_congested); ptc_seq_show()
1420 stat->d_requestee, cycles_2_us(stat->d_time), ptc_seq_show()
1421 stat->d_alltlb, stat->d_onetlb, stat->d_multmsg, ptc_seq_show()
1422 stat->d_nomsg, stat->d_retries, stat->d_canceled, ptc_seq_show()
1423 stat->d_nocanceled, stat->d_resets, ptc_seq_show()
1424 stat->d_rcanceled); ptc_seq_show()
1468 struct ptc_stats *stat; ptc_proc_write() local
1497 stat = &per_cpu(ptcstats, cpu); for_each_present_cpu()
1498 memset(stat, 0, sizeof(struct ptc_stats)); for_each_present_cpu()
705 destination_plugged(struct bau_desc *bau_desc, struct bau_control *bcp, struct bau_control *hmaster, struct ptc_stats *stat) destination_plugged() argument
728 destination_timeout(struct bau_desc *bau_desc, struct bau_control *bcp, struct bau_control *hmaster, struct ptc_stats *stat) destination_timeout() argument
792 record_send_stats(cycles_t time1, cycles_t time2, struct bau_control *bcp, struct ptc_stats *stat, int completion_status, int try) record_send_stats() argument
853 handle_cmplt(int completion_status, struct bau_desc *bau_desc, struct bau_control *bcp, struct bau_control *hmaster, struct ptc_stats *stat) handle_cmplt() argument
/linux-4.4.14/drivers/media/i2c/
H A Dtda9840.c91 int stat = tda9840_status(sd); tda9840_s_tuner() local
97 stat = stat < 0 ? 0 : stat; tda9840_s_tuner()
98 if (stat == 0 || stat == 0x60) /* mono input */ tda9840_s_tuner()
100 else if (stat == 0x40) /* stereo input */ tda9840_s_tuner()
123 int stat = tda9840_status(sd); tda9840_g_tuner() local
125 if (stat < 0) tda9840_g_tuner()
126 return stat; tda9840_g_tuner()
130 switch (stat & 0x60) { tda9840_g_tuner()
/linux-4.4.14/arch/arm/kernel/
H A Dsys_oabi-compat.c117 static long cp_oldabi_stat64(struct kstat *stat, cp_oldabi_stat64() argument
122 tmp.st_dev = huge_encode_dev(stat->dev); cp_oldabi_stat64()
124 tmp.__st_ino = stat->ino; cp_oldabi_stat64()
125 tmp.st_mode = stat->mode; cp_oldabi_stat64()
126 tmp.st_nlink = stat->nlink; cp_oldabi_stat64()
127 tmp.st_uid = from_kuid_munged(current_user_ns(), stat->uid); cp_oldabi_stat64()
128 tmp.st_gid = from_kgid_munged(current_user_ns(), stat->gid); cp_oldabi_stat64()
129 tmp.st_rdev = huge_encode_dev(stat->rdev); cp_oldabi_stat64()
130 tmp.st_size = stat->size; cp_oldabi_stat64()
131 tmp.st_blocks = stat->blocks; cp_oldabi_stat64()
133 tmp.st_blksize = stat->blksize; cp_oldabi_stat64()
134 tmp.st_atime = stat->atime.tv_sec; cp_oldabi_stat64()
135 tmp.st_atime_nsec = stat->atime.tv_nsec; cp_oldabi_stat64()
136 tmp.st_mtime = stat->mtime.tv_sec; cp_oldabi_stat64()
137 tmp.st_mtime_nsec = stat->mtime.tv_nsec; cp_oldabi_stat64()
138 tmp.st_ctime = stat->ctime.tv_sec; cp_oldabi_stat64()
139 tmp.st_ctime_nsec = stat->ctime.tv_nsec; cp_oldabi_stat64()
140 tmp.st_ino = stat->ino; cp_oldabi_stat64()
147 struct kstat stat; sys_oabi_stat64() local
148 int error = vfs_stat(filename, &stat); sys_oabi_stat64()
150 error = cp_oldabi_stat64(&stat, statbuf); sys_oabi_stat64()
157 struct kstat stat; sys_oabi_lstat64() local
158 int error = vfs_lstat(filename, &stat); sys_oabi_lstat64()
160 error = cp_oldabi_stat64(&stat, statbuf); sys_oabi_lstat64()
167 struct kstat stat; sys_oabi_fstat64() local
168 int error = vfs_fstat(fd, &stat); sys_oabi_fstat64()
170 error = cp_oldabi_stat64(&stat, statbuf); sys_oabi_fstat64()
179 struct kstat stat; sys_oabi_fstatat64() local
182 error = vfs_fstatat(dfd, filename, &stat, flag); sys_oabi_fstatat64()
185 return cp_oldabi_stat64(&stat, statbuf); sys_oabi_fstatat64()
/linux-4.4.14/fs/nfsd/
H A Dnfsxdr.c145 struct kstat *stat) encode_fattr()
152 type = (stat->mode & S_IFMT); encode_fattr()
155 *p++ = htonl((u32) stat->mode); encode_fattr()
156 *p++ = htonl((u32) stat->nlink); encode_fattr()
157 *p++ = htonl((u32) from_kuid(&init_user_ns, stat->uid)); encode_fattr()
158 *p++ = htonl((u32) from_kgid(&init_user_ns, stat->gid)); encode_fattr()
160 if (S_ISLNK(type) && stat->size > NFS_MAXPATHLEN) { encode_fattr()
163 *p++ = htonl((u32) stat->size); encode_fattr()
165 *p++ = htonl((u32) stat->blksize); encode_fattr()
167 *p++ = htonl(new_encode_dev(stat->rdev)); encode_fattr()
170 *p++ = htonl((u32) stat->blocks); encode_fattr()
174 *p++ = htonl(new_encode_dev(stat->dev)); encode_fattr()
187 *p++ = htonl((u32) stat->ino); encode_fattr()
188 *p++ = htonl((u32) stat->atime.tv_sec); encode_fattr()
189 *p++ = htonl(stat->atime.tv_nsec ? stat->atime.tv_nsec / 1000 : 0); encode_fattr()
193 *p++ = htonl((u32) stat->ctime.tv_sec); encode_fattr()
194 *p++ = htonl(stat->ctime.tv_nsec ? stat->ctime.tv_nsec / 1000 : 0); encode_fattr()
200 __be32 *nfs2svc_encode_fattr(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp, struct kstat *stat) nfs2svc_encode_fattr() argument
202 return encode_fattr(rqstp, p, fhp, stat); nfs2svc_encode_fattr()
421 p = encode_fattr(rqstp, p, &resp->fh, &resp->stat); nfssvc_encode_attrstat()
430 p = encode_fattr(rqstp, p, &resp->fh, &resp->stat); nfssvc_encode_diropres()
454 p = encode_fattr(rqstp, p, &resp->fh, &resp->stat); nfssvc_encode_readres()
486 struct kstatfs *stat = &resp->stats; nfssvc_encode_statfsres() local
489 *p++ = htonl(stat->f_bsize); nfssvc_encode_statfsres()
490 *p++ = htonl(stat->f_blocks); nfssvc_encode_statfsres()
491 *p++ = htonl(stat->f_bfree); nfssvc_encode_statfsres()
492 *p++ = htonl(stat->f_bavail); nfssvc_encode_statfsres()
144 encode_fattr(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp, struct kstat *stat) encode_fattr() argument
H A Dxdr.h85 struct kstat stat; member in struct:nfsd_attrstat
90 struct kstat stat; member in struct:nfsd_diropres
100 struct kstat stat; member in struct:nfsd_readres
170 __be32 *nfs2svc_encode_fattr(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp, struct kstat *stat);
H A Dnfs2acl.c51 nfserr = fh_getattr(fh, &resp->stat); nfsacld_proc_getacl()
126 nfserr = fh_getattr(fh, &resp->stat); nfsacld_proc_setacl()
154 nfserr = fh_getattr(&resp->fh, &resp->stat); nfsacld_proc_getattr()
175 nfserr = fh_getattr(&resp->fh, &resp->stat); nfsacld_proc_access()
273 p = nfs2svc_encode_fattr(rqstp, p, &resp->fh, &resp->stat); nfsaclsvc_encode_getaclres()
302 p = nfs2svc_encode_fattr(rqstp, p, &resp->fh, &resp->stat); nfsaclsvc_encode_attrstatres()
310 p = nfs2svc_encode_fattr(rqstp, p, &resp->fh, &resp->stat); nfsaclsvc_encode_accessres()
/linux-4.4.14/drivers/mmc/host/
H A Dmxcmmc.c365 static void mxcmci_cmd_done(struct mxcmci_host *host, unsigned int stat);
366 static void mxcmci_data_done(struct mxcmci_host *host, unsigned int stat);
371 u32 stat; mxcmci_dma_callback() local
375 stat = mxcmci_readl(host, MMC_REG_STATUS); mxcmci_dma_callback()
377 dev_dbg(mmc_dev(host->mmc), "%s: 0x%08x\n", __func__, stat); mxcmci_dma_callback()
379 mxcmci_data_done(host, stat); mxcmci_dma_callback()
454 static int mxcmci_finish_data(struct mxcmci_host *host, unsigned int stat) mxcmci_finish_data() argument
465 if (stat & STATUS_ERR_MASK) { mxcmci_finish_data()
467 stat); mxcmci_finish_data()
468 if (stat & STATUS_CRC_READ_ERR) { mxcmci_finish_data()
471 } else if (stat & STATUS_CRC_WRITE_ERR) { mxcmci_finish_data()
472 u32 err_code = (stat >> 9) & 0x3; mxcmci_finish_data()
482 } else if (stat & STATUS_TIME_OUT_READ) { mxcmci_finish_data()
501 static void mxcmci_read_response(struct mxcmci_host *host, unsigned int stat) mxcmci_read_response() argument
510 if (stat & STATUS_TIME_OUT_RESP) { mxcmci_read_response()
513 } else if (stat & STATUS_RESP_CRC_ERR && cmd->flags & MMC_RSP_CRC) { mxcmci_read_response()
536 u32 stat; mxcmci_poll_status() local
540 stat = mxcmci_readl(host, MMC_REG_STATUS); mxcmci_poll_status()
541 if (stat & STATUS_ERR_MASK) mxcmci_poll_status()
542 return stat; mxcmci_poll_status()
548 if (stat & mask) mxcmci_poll_status()
556 unsigned int stat; mxcmci_pull() local
560 stat = mxcmci_poll_status(host, mxcmci_pull()
562 if (stat) mxcmci_pull()
563 return stat; mxcmci_pull()
572 stat = mxcmci_poll_status(host, mxcmci_pull()
574 if (stat) mxcmci_pull()
575 return stat; mxcmci_pull()
585 unsigned int stat; mxcmci_push() local
589 stat = mxcmci_poll_status(host, STATUS_BUF_WRITE_RDY); mxcmci_push()
590 if (stat) mxcmci_push()
591 return stat; mxcmci_push()
600 stat = mxcmci_poll_status(host, STATUS_BUF_WRITE_RDY); mxcmci_push()
601 if (stat) mxcmci_push()
602 return stat; mxcmci_push()
615 int stat, i; mxcmci_transfer_data() local
622 stat = mxcmci_pull(host, sg_virt(sg), sg->length); mxcmci_transfer_data()
623 if (stat) mxcmci_transfer_data()
624 return stat; mxcmci_transfer_data()
629 stat = mxcmci_push(host, sg_virt(sg), sg->length); mxcmci_transfer_data()
630 if (stat) mxcmci_transfer_data()
631 return stat; mxcmci_transfer_data()
634 stat = mxcmci_poll_status(host, STATUS_WRITE_OP_DONE); mxcmci_transfer_data()
635 if (stat) mxcmci_transfer_data()
636 return stat; mxcmci_transfer_data()
661 static void mxcmci_data_done(struct mxcmci_host *host, unsigned int stat) mxcmci_data_done() argument
683 data_error = mxcmci_finish_data(host, stat); mxcmci_data_done()
687 mxcmci_read_response(host, stat); mxcmci_data_done()
700 static void mxcmci_cmd_done(struct mxcmci_host *host, unsigned int stat) mxcmci_cmd_done() argument
702 mxcmci_read_response(host, stat); mxcmci_cmd_done()
724 u32 stat; mxcmci_irq() local
726 stat = mxcmci_readl(host, MMC_REG_STATUS); mxcmci_irq()
728 stat & ~(STATUS_SDIO_INT_ACTIVE | STATUS_DATA_TRANS_DONE | mxcmci_irq()
732 dev_dbg(mmc_dev(host->mmc), "%s: 0x%08x\n", __func__, stat); mxcmci_irq()
735 sdio_irq = (stat & STATUS_SDIO_INT_ACTIVE) && host->use_sdio; mxcmci_irq()
738 if (mxcmci_use_dma(host) && (stat & (STATUS_WRITE_OP_DONE))) mxcmci_irq()
746 if (stat & STATUS_END_CMD_RESP) mxcmci_irq()
747 mxcmci_cmd_done(host, stat); mxcmci_irq()
749 if (mxcmci_use_dma(host) && (stat & STATUS_WRITE_OP_DONE)) { mxcmci_irq()
751 mxcmci_data_done(host, stat); mxcmci_irq()
755 (stat & (STATUS_CARD_INSERTION | STATUS_CARD_REMOVAL))) mxcmci_irq()
971 unsigned int stat = mxcmci_readl(host, MMC_REG_STATUS); mxcmci_watchdog() local
977 __func__, stat); mxcmci_watchdog()
981 __func__, stat); mxcmci_watchdog()
/linux-4.4.14/tools/usb/usbip/libsrc/
H A Dsysfs_utils.c2 #include <sys/stat.h>
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/
H A Dauxg94.c82 u32 ctrl, stat, timeout, retries; g94_i2c_aux_xfer() local
92 stat = nvkm_rd32(device, 0x00e4e8 + base); g94_i2c_aux_xfer()
93 if (!(stat & 0x10000000)) { g94_i2c_aux_xfer()
137 stat = nvkm_mask(device, 0x00e4e8 + base, 0, 0); g94_i2c_aux_xfer()
138 if ((stat & 0x000f0000) == 0x00080000 || g94_i2c_aux_xfer()
139 (stat & 0x000f0000) == 0x00020000) g94_i2c_aux_xfer()
141 if ((stat & 0x00000100)) g94_i2c_aux_xfer()
143 if ((stat & 0x00000e00)) g94_i2c_aux_xfer()
146 AUX_TRACE(&aux->base, "%02d %08x %08x", retries, ctrl, stat); g94_i2c_aux_xfer()
159 return ret < 0 ? ret : (stat & 0x000f0000) >> 16; g94_i2c_aux_xfer()
H A Dauxgm204.c82 u32 ctrl, stat, timeout, retries; gm204_i2c_aux_xfer() local
92 stat = nvkm_rd32(device, 0x00d958 + base); gm204_i2c_aux_xfer()
93 if (!(stat & 0x10000000)) { gm204_i2c_aux_xfer()
137 stat = nvkm_mask(device, 0x00d958 + base, 0, 0); gm204_i2c_aux_xfer()
138 if ((stat & 0x000f0000) == 0x00080000 || gm204_i2c_aux_xfer()
139 (stat & 0x000f0000) == 0x00020000) gm204_i2c_aux_xfer()
141 if ((stat & 0x00000100)) gm204_i2c_aux_xfer()
143 if ((stat & 0x00000e00)) gm204_i2c_aux_xfer()
146 AUX_TRACE(&aux->base, "%02d %08x %08x", retries, ctrl, stat); gm204_i2c_aux_xfer()
159 return ret < 0 ? ret : (stat & 0x000f0000) >> 16; gm204_i2c_aux_xfer()
H A Dg94.c32 u32 stat = nvkm_rd32(device, 0x00e068) & intr, i; g94_aux_stat() local
34 if ((stat & (1 << (i * 4)))) *hi |= 1 << i; g94_aux_stat()
35 if ((stat & (2 << (i * 4)))) *lo |= 1 << i; g94_aux_stat()
36 if ((stat & (4 << (i * 4)))) *rq |= 1 << i; g94_aux_stat()
37 if ((stat & (8 << (i * 4)))) *tx |= 1 << i; g94_aux_stat()
H A Dgk104.c32 u32 stat = nvkm_rd32(device, 0x00dc68) & intr, i; gk104_aux_stat() local
34 if ((stat & (1 << (i * 4)))) *hi |= 1 << i; gk104_aux_stat()
35 if ((stat & (2 << (i * 4)))) *lo |= 1 << i; gk104_aux_stat()
36 if ((stat & (4 << (i * 4)))) *rq |= 1 << i; gk104_aux_stat()
37 if ((stat & (8 << (i * 4)))) *tx |= 1 << i; gk104_aux_stat()
/linux-4.4.14/arch/um/os-Linux/
H A Dprocess.c24 #define STAT_PATH_LEN sizeof("/proc/#######/stat\0")
33 sprintf(proc_stat, "/proc/%d/stat", pid); os_process_pc()
61 char stat[STAT_PATH_LEN]; os_process_parent() local
68 snprintf(stat, sizeof(stat), "/proc/%d/stat", pid); os_process_parent()
69 fd = open(stat, O_RDONLY, 0); os_process_parent()
71 printk(UM_KERN_ERR "Couldn't open '%s', errno = %d\n", stat, os_process_parent()
80 printk(UM_KERN_ERR "Couldn't read '%s', errno = %d\n", stat, os_process_parent()
/linux-4.4.14/drivers/irqchip/
H A Dirq-bcm2835.c209 u32 stat = readl_relaxed(intc.pending[bank]); armctrl_translate_bank() local
211 return MAKE_HWIRQ(bank, ffs(stat) - 1); armctrl_translate_bank()
214 static u32 armctrl_translate_shortcut(int bank, u32 stat) armctrl_translate_shortcut() argument
216 return MAKE_HWIRQ(bank, shortcuts[ffs(stat >> SHORTCUT_SHIFT) - 1]); armctrl_translate_shortcut()
221 u32 stat = readl_relaxed(intc.pending[0]) & BANK0_VALID_MASK; get_next_armctrl_hwirq() local
223 if (stat == 0) get_next_armctrl_hwirq()
225 else if (stat & BANK0_HWIRQ_MASK) get_next_armctrl_hwirq()
226 return MAKE_HWIRQ(0, ffs(stat & BANK0_HWIRQ_MASK) - 1); get_next_armctrl_hwirq()
227 else if (stat & SHORTCUT1_MASK) get_next_armctrl_hwirq()
228 return armctrl_translate_shortcut(1, stat & SHORTCUT1_MASK); get_next_armctrl_hwirq()
229 else if (stat & SHORTCUT2_MASK) get_next_armctrl_hwirq()
230 return armctrl_translate_shortcut(2, stat & SHORTCUT2_MASK); get_next_armctrl_hwirq()
231 else if (stat & BANK1_HWIRQ) get_next_armctrl_hwirq()
233 else if (stat & BANK2_HWIRQ) get_next_armctrl_hwirq()
H A Dirq-orion.c41 u32 stat = readl_relaxed(gc->reg_base + ORION_IRQ_CAUSE) & orion_handle_irq() local
43 while (stat) { orion_handle_irq()
44 u32 hwirq = __fls(stat); orion_handle_irq()
47 stat &= ~(1 << hwirq); orion_handle_irq()
114 u32 stat = readl_relaxed(gc->reg_base + ORION_BRIDGE_IRQ_CAUSE) & orion_bridge_irq_handler() local
117 while (stat) { orion_bridge_irq_handler()
118 u32 hwirq = __fls(stat); orion_bridge_irq_handler()
121 stat &= ~(1 << hwirq); orion_bridge_irq_handler()
H A Dirq-dw-apb-ictl.c39 u32 stat = readl_relaxed(gc->reg_base + APB_INT_FINALSTATUS_L); dw_apb_ictl_handler() local
41 while (stat) { dw_apb_ictl_handler()
42 u32 hwirq = ffs(stat) - 1; dw_apb_ictl_handler()
46 stat &= ~(1 << hwirq); dw_apb_ictl_handler()
/linux-4.4.14/tools/perf/tests/
H A Dhists_output.c171 !strcmp(SYM(he), "main") && he->stat.period == 200); test1()
177 !strcmp(SYM(he), "page_fault") && he->stat.period == 100); test1()
183 !strcmp(SYM(he), "main") && he->stat.period == 100); test1()
189 !strcmp(SYM(he), "xmalloc") && he->stat.period == 100); test1()
195 !strcmp(SYM(he), "page_fault") && he->stat.period == 100); test1()
201 !strcmp(SYM(he), "schedule") && he->stat.period == 100); test1()
207 !strcmp(SYM(he), "free") && he->stat.period == 100); test1()
213 !strcmp(SYM(he), "malloc") && he->stat.period == 100); test1()
219 !strcmp(SYM(he), "cmd_record") && he->stat.period == 100); test1()
270 CPU(he) == 1 && PID(he) == 100 && he->stat.period == 300); test2()
275 CPU(he) == 0 && PID(he) == 100 && he->stat.period == 100); test2()
325 he->stat.period == 200); test3()
331 he->stat.period == 100); test3()
337 he->stat.period == 300); test3()
343 he->stat.period == 200); test3()
349 he->stat.period == 200); test3()
403 !strcmp(COMM(he), "perf") && he->stat.period == 100); test4()
409 !strcmp(COMM(he), "perf") && he->stat.period == 100); test4()
415 !strcmp(COMM(he), "bash") && he->stat.period == 100); test4()
421 !strcmp(COMM(he), "perf") && he->stat.period == 200); test4()
427 !strcmp(COMM(he), "perf") && he->stat.period == 100); test4()
433 !strcmp(COMM(he), "bash") && he->stat.period == 100); test4()
439 !strcmp(COMM(he), "perf") && he->stat.period == 100); test4()
445 !strcmp(COMM(he), "perf") && he->stat.period == 100); test4()
451 !strcmp(COMM(he), "bash") && he->stat.period == 100); test4()
508 !strcmp(SYM(he), "schedule") && he->stat.period == 100); test5()
515 !strcmp(SYM(he), "page_fault") && he->stat.period == 100); test5()
522 !strcmp(SYM(he), "page_fault") && he->stat.period == 100); test5()
529 !strcmp(SYM(he), "xmalloc") && he->stat.period == 100); test5()
536 !strcmp(SYM(he), "main") && he->stat.period == 100); test5()
543 !strcmp(SYM(he), "malloc") && he->stat.period == 100); test5()
550 !strcmp(SYM(he), "free") && he->stat.period == 100); test5()
557 !strcmp(SYM(he), "cmd_record") && he->stat.period == 100); test5()
564 !strcmp(SYM(he), "main") && he->stat.period == 100); test5()
571 !strcmp(SYM(he), "main") && he->stat.period == 100); test5()
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/engine/disp/
H A Ddacnv50.c41 u32 stat; nv50_dac_power() local
50 stat = 0x00000040 * !args->v0.state; nv50_dac_power()
51 stat |= 0x00000010 * !args->v0.data; nv50_dac_power()
52 stat |= 0x00000004 * !args->v0.vsync; nv50_dac_power()
53 stat |= 0x00000001 * !args->v0.hsync; nv50_dac_power()
61 nvkm_mask(device, 0x61a004 + doff, 0xc000007f, 0x80000000 | stat); nv50_dac_power()
H A Dsornv50.c41 u32 stat; nv50_sor_power() local
48 stat = !!args->v0.state; nv50_sor_power()
57 nvkm_mask(device, 0x61c004 + soff, 0x80000001, 0x80000000 | stat); nv50_sor_power()
H A Dgf119.c456 u32 stat = nvkm_rd32(device, 0x61008c); gf119_disp_intr() local
457 while (stat) { gf119_disp_intr()
458 int chid = __ffs(stat); stat &= ~(1 << chid); gf119_disp_intr()
466 u32 stat = nvkm_rd32(device, 0x61009c); gf119_disp_intr() local
467 int chid = ffs(stat) - 1; gf119_disp_intr()
474 u32 stat = nvkm_rd32(device, 0x6100ac); gf119_disp_intr() local
475 if (stat & 0x00000007) { gf119_disp_intr()
476 disp->super = (stat & 0x00000007); gf119_disp_intr()
479 stat &= ~0x00000007; gf119_disp_intr()
482 if (stat) { gf119_disp_intr()
483 nvkm_warn(subdev, "intr24 %08x\n", stat); gf119_disp_intr()
484 nvkm_wr32(device, 0x6100ac, stat); gf119_disp_intr()
493 u32 stat = nvkm_rd32(device, 0x6100bc + (i * 0x800)); gf119_disp_intr() local
494 if (stat & 0x00000001) gf119_disp_intr()
H A Ddport.c41 u8 stat[6]; member in struct:dp_state
126 u8 lane = (dp->stat[4 + (i >> 1)] >> ((i & 1) * 4)) & 0xf; dp_link_train_commit()
176 ret = nvkm_rdaux(outp->aux, DPCD_LS02, dp->stat, 6); dp_link_train_update()
185 dp->stat, dp->pc2stat); dp_link_train_update()
187 OUTP_DBG(&outp->base, "status %6ph", dp->stat); dp_link_train_update()
209 u8 lane = (dp->stat[i >> 1] >> ((i & 1) * 4)) & 0xf; dp_link_train_cr()
245 eq_done = !!(dp->stat[2] & DPCD_LS04_INTERLANE_ALIGN_DONE); dp_link_train_eq()
247 u8 lane = (dp->stat[i >> 1] >> ((i & 1) * 4)) & 0xf; dp_link_train_eq()
383 memset(dp->stat, 0x00, sizeof(dp->stat)); nvkm_dp_train()
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/timer/
H A Dnv04.c76 u32 stat = nvkm_rd32(device, NV04_PTIMER_INTR_0); nv04_timer_intr() local
78 if (stat & 0x00000001) { nv04_timer_intr()
81 stat &= ~0x00000001; nv04_timer_intr()
84 if (stat) { nv04_timer_intr()
85 nvkm_error(subdev, "intr %08x\n", stat); nv04_timer_intr()
86 nvkm_wr32(device, NV04_PTIMER_INTR_0, stat); nv04_timer_intr()
/linux-4.4.14/arch/ia64/hp/sim/boot/
H A Dbootloader.c62 struct disk_stat stat; start_bootloader() local
105 stat.fd = fd; start_bootloader()
111 ssc((long) &stat, 0, 0, 0, SSC_WAIT_COMPLETION); start_bootloader()
139 ssc((long) &stat, 0, 0, 0, SSC_WAIT_COMPLETION); start_bootloader()
140 if (stat.count != sizeof(*elf_phdr)) { start_bootloader()
154 ssc((long) &stat, 0, 0, 0, SSC_WAIT_COMPLETION); start_bootloader()
/linux-4.4.14/arch/arm/mach-s3c24xx/
H A Dbast-irq.c105 unsigned int stat; bast_irq_pc104_demux() local
109 stat = __raw_readb(BAST_VA_PC104_IRQREQ) & 0xf; bast_irq_pc104_demux()
111 if (unlikely(stat == 0)) { bast_irq_pc104_demux()
119 for (i = 0; stat != 0; i++, stat >>= 1) { bast_irq_pc104_demux()
120 if (stat & 1) { bast_irq_pc104_demux()
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/engine/gr/
H A Dgf100.c922 u32 stat = nvkm_rd32(device, TPC_UNIT(gpc, tpc, 0x0508)); gf100_gr_trap_tpc() local
924 if (stat & 0x00000001) { gf100_gr_trap_tpc()
928 stat &= ~0x00000001; gf100_gr_trap_tpc()
931 if (stat & 0x00000002) { gf100_gr_trap_tpc()
933 stat &= ~0x00000002; gf100_gr_trap_tpc()
936 if (stat & 0x00000004) { gf100_gr_trap_tpc()
940 stat &= ~0x00000004; gf100_gr_trap_tpc()
943 if (stat & 0x00000008) { gf100_gr_trap_tpc()
947 stat &= ~0x00000008; gf100_gr_trap_tpc()
950 if (stat) { gf100_gr_trap_tpc()
951 nvkm_error(subdev, "GPC%d/TPC%d/%08x: unknown\n", gpc, tpc, stat); gf100_gr_trap_tpc()
960 u32 stat = nvkm_rd32(device, GPC_UNIT(gpc, 0x2c90)); gf100_gr_trap_gpc() local
963 if (stat & 0x00000001) { gf100_gr_trap_gpc()
965 stat &= ~0x00000001; gf100_gr_trap_gpc()
968 if (stat & 0x00000002) { gf100_gr_trap_gpc()
972 stat &= ~0x00000002; gf100_gr_trap_gpc()
975 if (stat & 0x00000004) { gf100_gr_trap_gpc()
979 stat &= ~0x00000004; gf100_gr_trap_gpc()
982 if (stat & 0x00000008) { gf100_gr_trap_gpc()
986 stat &= ~0x00000009; gf100_gr_trap_gpc()
991 if (stat & mask) { gf100_gr_trap_gpc()
994 stat &= ~mask; gf100_gr_trap_gpc()
998 if (stat) { gf100_gr_trap_gpc()
999 nvkm_error(subdev, "GPC%d/%08x: unknown\n", gpc, stat); gf100_gr_trap_gpc()
1012 u32 stat = nvkm_rd32(device, 0x404000); gf100_gr_trap_intr() local
1013 nvkm_error(subdev, "DISPATCH %08x\n", stat); gf100_gr_trap_intr()
1020 u32 stat = nvkm_rd32(device, 0x404600); gf100_gr_trap_intr() local
1021 nvkm_error(subdev, "M2MF %08x\n", stat); gf100_gr_trap_intr()
1028 u32 stat = nvkm_rd32(device, 0x408030); gf100_gr_trap_intr() local
1029 nvkm_error(subdev, "CCACHE %08x\n", stat); gf100_gr_trap_intr()
1036 u32 stat = nvkm_rd32(device, 0x405840); gf100_gr_trap_intr() local
1037 nvkm_error(subdev, "SHADER %08x\n", stat); gf100_gr_trap_intr()
1044 u32 stat = nvkm_rd32(device, 0x40601c); gf100_gr_trap_intr() local
1045 nvkm_error(subdev, "UNK6 %08x\n", stat); gf100_gr_trap_intr()
1052 u32 stat = nvkm_rd32(device, 0x404490); gf100_gr_trap_intr() local
1053 nvkm_error(subdev, "MACRO %08x\n", stat); gf100_gr_trap_intr()
1060 u32 stat = nvkm_rd32(device, 0x407020) & 0x3fffffff; gf100_gr_trap_intr() local
1063 nvkm_snprintbf(sked, sizeof(sked), gk104_sked_error, stat); gf100_gr_trap_intr()
1064 nvkm_error(subdev, "SKED: %08x [%s]\n", stat, sked); gf100_gr_trap_intr()
1066 if (stat) gf100_gr_trap_intr()
1073 u32 stat = nvkm_rd32(device, 0x400118); gf100_gr_trap_intr() local
1074 for (gpc = 0; stat && gpc < gr->gpc_nr; gpc++) { gf100_gr_trap_intr()
1076 if (stat & mask) { gf100_gr_trap_intr()
1079 stat &= ~mask; gf100_gr_trap_intr()
1112 nvkm_error(subdev, "%06x - stat %08x %08x %08x %08x\n", base, gf100_gr_ctxctl_debug_unit()
1117 nvkm_error(subdev, "%06x - stat %08x %08x %08x %08x\n", base, gf100_gr_ctxctl_debug_unit()
1141 u32 stat = nvkm_rd32(device, 0x409c18); gf100_gr_ctxctl_isr() local
1143 if (stat & 0x00000001) { gf100_gr_ctxctl_isr()
1157 stat &= ~0x00000001; gf100_gr_ctxctl_isr()
1163 if (stat & 0x00080000) { gf100_gr_ctxctl_isr()
1167 stat &= ~0x00080000; gf100_gr_ctxctl_isr()
1170 if (stat) { gf100_gr_ctxctl_isr()
1171 nvkm_error(subdev, "FECS %08x\n", stat); gf100_gr_ctxctl_isr()
1173 nvkm_wr32(device, 0x409c20, stat); gf100_gr_ctxctl_isr()
1186 u32 stat = nvkm_rd32(device, 0x400100); gf100_gr_intr() local
1207 if (stat & 0x00000001) { gf100_gr_intr()
1213 stat &= ~0x00000001; gf100_gr_intr()
1216 if (stat & 0x00000010) { gf100_gr_intr()
1224 stat &= ~0x00000010; gf100_gr_intr()
1227 if (stat & 0x00000020) { gf100_gr_intr()
1232 stat &= ~0x00000020; gf100_gr_intr()
1235 if (stat & 0x00100000) { gf100_gr_intr()
1243 stat &= ~0x00100000; gf100_gr_intr()
1246 if (stat & 0x00200000) { gf100_gr_intr()
1251 stat &= ~0x00200000; gf100_gr_intr()
1254 if (stat & 0x00080000) { gf100_gr_intr()
1257 stat &= ~0x00080000; gf100_gr_intr()
1260 if (stat) { gf100_gr_intr()
1261 nvkm_error(subdev, "intr %08x\n", stat); gf100_gr_intr()
1262 nvkm_wr32(device, 0x400100, stat); gf100_gr_intr()
/linux-4.4.14/fs/9p/
H A Dvfs_inode_dotl.c31 #include <linux/stat.h>
133 * initialize the inode with the stat info v9fs_qid_iget_dotl()
452 * inode with stat. We need to get an inode v9fs_vfs_mkdir_dotl()
474 struct kstat *stat) v9fs_vfs_getattr_dotl()
483 generic_fillattr(d_inode(dentry), stat); v9fs_vfs_getattr_dotl() local
490 /* Ask for all the fields in stat structure. Server will return v9fs_vfs_getattr_dotl()
499 generic_fillattr(d_inode(dentry), stat); v9fs_vfs_getattr_dotl() local
501 stat->blksize = st->st_blksize; v9fs_vfs_getattr_dotl()
606 * v9fs_stat2inode_dotl - populate an inode structure with stat info
607 * @stat: stat structure
613 v9fs_stat2inode_dotl(struct p9_stat_dotl *stat, struct inode *inode) v9fs_stat2inode_dotl() argument
618 if ((stat->st_result_mask & P9_STATS_BASIC) == P9_STATS_BASIC) { v9fs_stat2inode_dotl()
619 inode->i_atime.tv_sec = stat->st_atime_sec; v9fs_stat2inode_dotl()
620 inode->i_atime.tv_nsec = stat->st_atime_nsec; v9fs_stat2inode_dotl()
621 inode->i_mtime.tv_sec = stat->st_mtime_sec; v9fs_stat2inode_dotl()
622 inode->i_mtime.tv_nsec = stat->st_mtime_nsec; v9fs_stat2inode_dotl()
623 inode->i_ctime.tv_sec = stat->st_ctime_sec; v9fs_stat2inode_dotl()
624 inode->i_ctime.tv_nsec = stat->st_ctime_nsec; v9fs_stat2inode_dotl()
625 inode->i_uid = stat->st_uid; v9fs_stat2inode_dotl()
626 inode->i_gid = stat->st_gid; v9fs_stat2inode_dotl()
627 set_nlink(inode, stat->st_nlink); v9fs_stat2inode_dotl()
629 mode = stat->st_mode & S_IALLUGO; v9fs_stat2inode_dotl()
633 i_size_write(inode, stat->st_size); v9fs_stat2inode_dotl()
634 inode->i_blocks = stat->st_blocks; v9fs_stat2inode_dotl()
636 if (stat->st_result_mask & P9_STATS_ATIME) { v9fs_stat2inode_dotl()
637 inode->i_atime.tv_sec = stat->st_atime_sec; v9fs_stat2inode_dotl()
638 inode->i_atime.tv_nsec = stat->st_atime_nsec; v9fs_stat2inode_dotl()
640 if (stat->st_result_mask & P9_STATS_MTIME) { v9fs_stat2inode_dotl()
641 inode->i_mtime.tv_sec = stat->st_mtime_sec; v9fs_stat2inode_dotl()
642 inode->i_mtime.tv_nsec = stat->st_mtime_nsec; v9fs_stat2inode_dotl()
644 if (stat->st_result_mask & P9_STATS_CTIME) { v9fs_stat2inode_dotl()
645 inode->i_ctime.tv_sec = stat->st_ctime_sec; v9fs_stat2inode_dotl()
646 inode->i_ctime.tv_nsec = stat->st_ctime_nsec; v9fs_stat2inode_dotl()
648 if (stat->st_result_mask & P9_STATS_UID) v9fs_stat2inode_dotl()
649 inode->i_uid = stat->st_uid; v9fs_stat2inode_dotl()
650 if (stat->st_result_mask & P9_STATS_GID) v9fs_stat2inode_dotl()
651 inode->i_gid = stat->st_gid; v9fs_stat2inode_dotl()
652 if (stat->st_result_mask & P9_STATS_NLINK) v9fs_stat2inode_dotl()
653 set_nlink(inode, stat->st_nlink); v9fs_stat2inode_dotl()
654 if (stat->st_result_mask & P9_STATS_MODE) { v9fs_stat2inode_dotl()
655 inode->i_mode = stat->st_mode; v9fs_stat2inode_dotl()
661 if (stat->st_result_mask & P9_STATS_RDEV) v9fs_stat2inode_dotl()
662 inode->i_rdev = new_decode_dev(stat->st_rdev); v9fs_stat2inode_dotl()
663 if (stat->st_result_mask & P9_STATS_SIZE) v9fs_stat2inode_dotl()
664 i_size_write(inode, stat->st_size); v9fs_stat2inode_dotl()
665 if (stat->st_result_mask & P9_STATS_BLOCKS) v9fs_stat2inode_dotl()
666 inode->i_blocks = stat->st_blocks; v9fs_stat2inode_dotl()
668 if (stat->st_result_mask & P9_STATS_GEN) v9fs_stat2inode_dotl()
669 inode->i_generation = stat->st_gen; v9fs_stat2inode_dotl()
736 /* Not in cached mode. No need to populate inode with stat */ v9fs_vfs_symlink_dotl()
791 /* Get the latest stat info from server. */ v9fs_vfs_link_dotl()
883 * Not in cached mode. No need to populate inode with stat. v9fs_vfs_mknod_dotl()
473 v9fs_vfs_getattr_dotl(struct vfsmount *mnt, struct dentry *dentry, struct kstat *stat) v9fs_vfs_getattr_dotl() argument
H A Dvfs_inode.c33 #include <linux/stat.h>
95 * @stat: p9_wstat from which mode need to be derived
99 struct p9_wstat *stat) p9mode2perm()
102 int mode = stat->mode; p9mode2perm()
121 * @stat: p9_wstat from which mode need to be derived
126 struct p9_wstat *stat, dev_t *rdev) p9mode2unixmode()
129 u32 mode = stat->mode; p9mode2unixmode()
132 res = p9mode2perm(v9ses, stat); p9mode2unixmode()
149 strlcpy(ext, stat->extension, sizeof(ext)); p9mode2unixmode()
160 type, stat->extension); p9mode2unixmode()
207 * v9fs_blank_wstat - helper function to setup a 9P stat structure
528 * initialize the inode with the stat info v9fs_qid_iget()
1048 * @stat: metadata structure to populate
1054 struct kstat *stat) v9fs_vfs_getattr()
1063 generic_fillattr(d_inode(dentry), stat); v9fs_vfs_getattr() local
1075 generic_fillattr(d_inode(dentry), stat); v9fs_vfs_getattr() local
1149 * @stat: Plan 9 metadata (mistat) structure
1156 v9fs_stat2inode(struct p9_wstat *stat, struct inode *inode, v9fs_stat2inode() argument
1168 inode->i_atime.tv_sec = stat->atime; v9fs_stat2inode()
1169 inode->i_mtime.tv_sec = stat->mtime; v9fs_stat2inode()
1170 inode->i_ctime.tv_sec = stat->mtime; v9fs_stat2inode()
1176 inode->i_uid = stat->n_uid; v9fs_stat2inode()
1177 inode->i_gid = stat->n_gid; v9fs_stat2inode()
1180 if (v9fs_proto_dotu(v9ses) && (stat->extension[0] != '\0')) { v9fs_stat2inode()
1186 * for non NULL stat->extension v9fs_stat2inode()
1188 strlcpy(ext, stat->extension, sizeof(ext)); v9fs_stat2inode()
1195 mode = p9mode2perm(v9ses, stat); v9fs_stat2inode()
1198 i_size_write(inode, stat->length); v9fs_stat2inode()
98 p9mode2perm(struct v9fs_session_info *v9ses, struct p9_wstat *stat) p9mode2perm() argument
125 p9mode2unixmode(struct v9fs_session_info *v9ses, struct p9_wstat *stat, dev_t *rdev) p9mode2unixmode() argument
1053 v9fs_vfs_getattr(struct vfsmount *mnt, struct dentry *dentry, struct kstat *stat) v9fs_vfs_getattr() argument
/linux-4.4.14/arch/mips/kvm/
H A Dstats.c78 if (vcpu->arch.cop0->stat[i][j]) kvm_mips_dump_stats()
80 vcpu->arch.cop0->stat[i][j]); kvm_mips_dump_stats()
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/engine/ce/
H A Dgk104.c34 u32 stat = nvkm_rd32(device, 0x104908 + base); gk104_ce_intr() local
35 if (stat) { gk104_ce_intr()
36 nvkm_warn(subdev, "intr %08x\n", stat); gk104_ce_intr()
37 nvkm_wr32(device, 0x104908 + base, stat); gk104_ce_intr()
/linux-4.4.14/drivers/media/usb/pvrusb2/
H A Dpvrusb2-ioread.c162 int stat; pvr2_ioread_start() local
169 stat = pvr2_buffer_queue(bp); pvr2_ioread_start()
170 if (stat < 0) { pvr2_ioread_start()
175 cp,stat); pvr2_ioread_start()
177 return stat; pvr2_ioread_start()
264 int stat; pvr2_ioread_get_buffer() local
269 stat = pvr2_buffer_queue(cp->c_buf); pvr2_ioread_get_buffer()
270 if (stat < 0) { pvr2_ioread_get_buffer()
276 cp,stat); pvr2_ioread_get_buffer()
291 stat = pvr2_buffer_get_status(cp->c_buf); pvr2_ioread_get_buffer()
292 if (stat < 0) { pvr2_ioread_get_buffer()
298 cp,stat); pvr2_ioread_get_buffer()
415 int stat; pvr2_ioread_read() local
426 stat = pvr2_ioread_avail(cp); pvr2_ioread_read()
427 if (stat < 0) return stat; pvr2_ioread_read()
/linux-4.4.14/security/tomoyo/
H A DMakefile10 cmd_policy = ($(call do_policy,profile); $(call do_policy,exception_policy); $(call do_policy,domain_policy); $(call do_policy,manager); $(call do_policy,stat)) >$@
H A Daudit.c111 * @mode: Mode value for stat().
184 struct tomoyo_mini_stat *stat; tomoyo_print_header() local
189 stat = &obj->stat[i]; tomoyo_print_header()
190 dev = stat->dev; tomoyo_print_header()
191 mode = stat->mode; tomoyo_print_header()
197 from_kuid(&init_user_ns, stat->uid), tomoyo_print_header()
198 from_kgid(&init_user_ns, stat->gid), tomoyo_print_header()
199 (unsigned long)stat->ino, tomoyo_print_header()
200 stat->mode & S_IALLUGO); tomoyo_print_header()
206 from_kuid(&init_user_ns, stat->uid), tomoyo_print_header()
207 from_kgid(&init_user_ns, stat->gid), tomoyo_print_header()
208 (unsigned long)stat->ino, tomoyo_print_header()
212 dev = stat->rdev; tomoyo_print_header()
H A Dcondition.c719 struct tomoyo_mini_stat *stat = &obj->stat[i]; tomoyo_get_attributes() local
720 stat->uid = inode->i_uid; tomoyo_get_attributes()
721 stat->gid = inode->i_gid; tomoyo_get_attributes()
722 stat->ino = inode->i_ino; tomoyo_get_attributes()
723 stat->mode = inode->i_mode; tomoyo_get_attributes()
724 stat->dev = inode->i_sb->s_dev; tomoyo_get_attributes()
725 stat->rdev = inode->i_rdev; tomoyo_get_attributes()
924 struct tomoyo_mini_stat *stat; tomoyo_condition() local
967 stat = &obj->stat[stat_index]; tomoyo_condition()
973 value = from_kuid(&init_user_ns, stat->uid); tomoyo_condition()
979 value = from_kgid(&init_user_ns, stat->gid); tomoyo_condition()
985 value = stat->ino; tomoyo_condition()
989 value = MAJOR(stat->dev); tomoyo_condition()
993 value = MINOR(stat->dev); tomoyo_condition()
997 value = stat->mode & S_IFMT; tomoyo_condition()
1001 value = MAJOR(stat->rdev); tomoyo_condition()
1005 value = MINOR(stat->rdev); tomoyo_condition()
1011 value = stat->mode & S_IALLUGO; tomoyo_condition()
/linux-4.4.14/fs/proc/
H A DMakefile20 proc-y += stat.o
H A Dproc_net.c16 #include <linux/stat.h>
143 struct kstat *stat) proc_tgid_net_getattr()
150 generic_fillattr(inode, stat); proc_tgid_net_getattr()
153 stat->nlink = net->proc_net->nlink; proc_tgid_net_getattr()
203 net_statd = proc_net_mkdir(net, "stat", netd); proc_net_ns_init()
219 remove_proc_entry("stat", net->proc_net); proc_net_ns_exit()
142 proc_tgid_net_getattr(struct vfsmount *mnt, struct dentry *dentry, struct kstat *stat) proc_tgid_net_getattr() argument
/linux-4.4.14/arch/frv/include/uapi/asm/
H A Dstat.h18 /* This matches struct stat in uClibc/glibc. */
19 struct stat { struct
61 the same as that of struct stat above, with 64-bit types taking up
62 space that was formerly used by padding. stat syscalls are still
/linux-4.4.14/tools/testing/selftests/efivarfs/
H A Dcreate-read.c6 #include <sys/stat.h>
/linux-4.4.14/tools/testing/selftests/mount/
H A Dunprivileged-remount-test.c117 struct statvfs stat; read_mnt_flags() local
120 ret = statvfs(path, &stat); read_mnt_flags()
125 if (stat.f_flag & ~(ST_RDONLY | ST_NOSUID | ST_NODEV | \ read_mnt_flags()
131 if (stat.f_flag & ST_RDONLY) read_mnt_flags()
133 if (stat.f_flag & ST_NOSUID) read_mnt_flags()
135 if (stat.f_flag & ST_NODEV) read_mnt_flags()
137 if (stat.f_flag & ST_NOEXEC) read_mnt_flags()
139 if (stat.f_flag & ST_NOATIME) read_mnt_flags()
141 if (stat.f_flag & ST_NODIRATIME) read_mnt_flags()
143 if (stat.f_flag & ST_RELATIME) read_mnt_flags()
145 if (stat.f_flag & ST_SYNCHRONOUS) read_mnt_flags()
147 if (stat.f_flag & ST_MANDLOCK) read_mnt_flags()
/linux-4.4.14/drivers/net/wan/
H A Dhd64570.c176 writeb(0, &desc->stat); sca_init_port()
226 u8 stat = sca_in(msci + ST1, card); /* read MSCI ST1 status */ sca_msci_intr() local
229 sca_out(stat & (ST1_UDRN | ST1_CDCD), msci + ST1, card); sca_msci_intr()
231 if (stat & ST1_UDRN) { sca_msci_intr()
237 if (stat & ST1_CDCD) sca_msci_intr()
295 u8 stat = sca_in(DSR_RX(phy_node(port)), card); /* read DMA Status */ sca_rx_intr() local
298 sca_out((stat & (DSR_EOT | DSR_EOM | DSR_BOF | DSR_COF)) | DSR_DWE, sca_rx_intr()
301 if (stat & DSR_BOF) sca_rx_intr()
314 stat = readb(&desc->stat); sca_rx_intr()
315 if (!(stat & ST_RX_EOM)) sca_rx_intr()
317 else if ((stat & ST_ERROR_MASK) || port->rxpart) { sca_rx_intr()
319 if (stat & ST_RX_OVERRUN) sca_rx_intr()
321 else if ((stat & (ST_RX_SHORT | ST_RX_ABORT | sca_rx_intr()
324 else if (stat & ST_RX_CRC) sca_rx_intr()
326 if (stat & ST_RX_EOM) sca_rx_intr()
347 u8 stat; sca_tx_intr() local
351 stat = sca_in(DSR_TX(phy_node(port)), card); /* read DMA Status */ sca_tx_intr()
354 sca_out((stat & (DSR_EOT | DSR_EOM | DSR_BOF | DSR_COF)) | DSR_DWE, sca_tx_intr()
368 writeb(0, &desc->stat); /* Free descriptor */ sca_tx_intr()
381 u8 stat; sca_intr() local
385 while((stat = sca_intr_status(card)) != 0) { sca_intr()
390 if (stat & SCA_INTR_MSCI(i)) sca_intr()
393 if (stat & SCA_INTR_DMAC_RX(i)) sca_intr()
396 if (stat & SCA_INTR_DMAC_TX(i)) sca_intr()
583 pr_cont(" %02X", readb(&(desc_address(port, cnt, 0)->stat))); sca_dump_rings()
594 pr_cont(" %02X", readb(&(desc_address(port, cnt, 1)->stat))); sca_dump_rings()
632 BUG_ON(readb(&desc->stat)); /* previous xmit should stop queue */ sca_xmit()
658 writeb(ST_TX_EOM, &desc->stat); sca_xmit()
667 if (readb(&desc->stat)) /* allow 1 packet gap */ sca_xmit()
H A Dwanxl.c170 switch (desc->stat) { wanxl_tx_intr()
185 desc->stat = PACKET_EMPTY; /* Free descriptor */ wanxl_tx_intr()
200 desc->stat != PACKET_EMPTY) { wanxl_rx_intr()
201 if ((desc->stat & PACKET_PORT_MASK) > card->n_ports) wanxl_rx_intr()
206 struct port *port = &card->ports[desc->stat & wanxl_rx_intr()
239 desc->stat = PACKET_EMPTY; /* Free descriptor */ wanxl_rx_intr()
250 u32 stat; wanxl_intr() local
254 while((stat = readl(card->plx + PLX_DOORBELL_FROM_CARD)) != 0) { wanxl_intr()
256 writel(stat, card->plx + PLX_DOORBELL_FROM_CARD); wanxl_intr()
259 if (stat & (1 << (DOORBELL_FROM_CARD_TX_0 + i))) wanxl_intr()
261 if (stat & (1 << (DOORBELL_FROM_CARD_CABLE_0 + i))) wanxl_intr()
264 if (stat & (1 << DOORBELL_FROM_CARD_RX)) wanxl_intr()
281 if (desc->stat != PACKET_EMPTY) { wanxl_xmit()
300 desc->stat = PACKET_FULL; wanxl_xmit()
306 if (get_status(port)->tx_descs[port->tx_out].stat != PACKET_EMPTY) { wanxl_xmit()
410 get_status(port)->tx_descs[i].stat = PACKET_EMPTY; wanxl_open()
455 if (desc->stat != PACKET_EMPTY) { wanxl_close()
456 desc->stat = PACKET_EMPTY; wanxl_close()
564 u32 ramsize, stat; wanxl_pci_init_one() local
654 while ((stat = readl(card->plx + PLX_MAILBOX_0)) != 0) { wanxl_pci_init_one()
662 switch(stat & 0xC0) { wanxl_pci_init_one()
669 pci_name(pdev), stat & 0x30); wanxl_pci_init_one()
737 stat = 0; wanxl_pci_init_one()
740 if ((stat = readl(card->plx + PLX_MAILBOX_5)) != 0) wanxl_pci_init_one()
745 if (!stat) { wanxl_pci_init_one()
753 ramsize = stat; wanxl_pci_init_one()
H A Dhd64572.c150 writeb(0, &desc->stat); sca_init_port()
238 u8 stat = sca_in(DSR_RX(port->chan), card); /* read DMA Status */ sca_rx_done() local
242 sca_out((stat & (DSR_EOT | DSR_EOM | DSR_BOF | DSR_COF)) | DSR_DWE, sca_rx_done()
245 if (stat & DSR_BOF) sca_rx_done()
258 stat = readb(&desc->stat); sca_rx_done()
259 if (!(stat & ST_RX_EOM)) sca_rx_done()
261 else if ((stat & ST_ERROR_MASK) || port->rxpart) { sca_rx_done()
263 if (stat & ST_RX_OVERRUN) sca_rx_done()
265 else if ((stat & (ST_RX_SHORT | ST_RX_ABORT | sca_rx_done()
268 else if (stat & ST_RX_CRC) sca_rx_done()
270 if (stat & ST_RX_EOM) sca_rx_done()
293 u8 stat; sca_tx_done() local
298 stat = sca_in(DSR_TX(port->chan), card); /* read DMA Status */ sca_tx_done()
301 sca_out((stat & (DSR_EOT | DSR_EOM | DSR_BOF | DSR_COF)) | DSR_DWE, sca_tx_done()
306 u8 stat = readb(&desc->stat); sca_tx_done() local
308 if (!(stat & ST_TX_OWNRSHP)) sca_tx_done()
310 if (stat & ST_TX_UNDRRUN) { sca_tx_done()
317 writeb(0, &desc->stat); /* Free descriptor */ sca_tx_done()
531 pr_cont(" %02X", readb(&(desc_address(port, cnt, 0)->stat))); sca_dump_rings()
542 pr_cont(" %02X", readb(&(desc_address(port, cnt, 1)->stat))); sca_dump_rings()
575 BUG_ON(readb(&desc->stat)); /* previous xmit should stop queue */ sca_xmit()
588 writeb(ST_TX_EOM, &desc->stat); sca_xmit()
597 if (readb(&desc->stat)) /* allow 1 packet gap */ sca_xmit()
/linux-4.4.14/drivers/i2c/busses/
H A Di2c-pnx.c145 "%s: Bus busy. Slave addr = %02x, cntrl = %x, stat = %x\n", i2c_pnx_start()
188 dev_dbg(&alg_data->adapter.dev, "%s(): entering: stat = %04x.\n", i2c_pnx_stop()
202 dev_dbg(&alg_data->adapter.dev, "%s(): exiting: stat = %04x.\n", i2c_pnx_stop()
216 dev_dbg(&alg_data->adapter.dev, "%s(): entering: stat = %04x.\n", i2c_pnx_master_xmit()
270 dev_dbg(&alg_data->adapter.dev, "%s(): exiting: stat = %04x.\n", i2c_pnx_master_xmit()
287 dev_dbg(&alg_data->adapter.dev, "%s(): entering: stat = %04x.\n", i2c_pnx_master_rcv()
355 dev_dbg(&alg_data->adapter.dev, "%s(): exiting: stat = %04x.\n", i2c_pnx_master_rcv()
364 u32 stat, ctl; i2c_pnx_interrupt() local
372 stat = ioread32(I2C_REG_STS(alg_data)); i2c_pnx_interrupt()
375 if (stat & mstatus_afi) { i2c_pnx_interrupt()
388 } else if (stat & mstatus_nai) { i2c_pnx_interrupt()
417 if ((stat & mstatus_drmi) || !(stat & mstatus_rfe)) { i2c_pnx_interrupt()
427 stat = ioread32(I2C_REG_STS(alg_data)); i2c_pnx_interrupt()
428 iowrite32(stat | mstatus_tdi | mstatus_afi, I2C_REG_STS(alg_data)); i2c_pnx_interrupt()
431 "%s(): exiting, stat = %x ctrl = %x.\n", i2c_pnx_interrupt()
444 "Master timed out. stat = %04x, cntrl = %04x. Resetting master...\n", i2c_pnx_timeout()
462 u32 stat; bus_reset_if_active() local
464 if ((stat = ioread32(I2C_REG_STS(alg_data))) & mstatus_active) { bus_reset_if_active()
471 } else if (!(stat & mstatus_rfe) || !(stat & mstatus_tfe)) { bus_reset_if_active()
478 } else if (stat & mstatus_nai) { bus_reset_if_active()
499 u32 stat; i2c_pnx_xfer() local
502 "%s(): entering: %d messages, stat = %04x.\n", i2c_pnx_xfer()
558 if ((stat = ioread32(I2C_REG_STS(alg_data))) & mstatus_tdi) { i2c_pnx_xfer()
562 iowrite32(stat, I2C_REG_STS(alg_data)); i2c_pnx_xfer()
564 if ((stat = ioread32(I2C_REG_STS(alg_data))) & mstatus_afi) { i2c_pnx_xfer()
568 iowrite32(stat, I2C_REG_STS(alg_data)); i2c_pnx_xfer()
579 dev_dbg(&alg_data->adapter.dev, "%s(): exiting, stat = %x\n", i2c_pnx_xfer()
H A Di2c-designware-core.c719 u32 stat; i2c_dw_read_clear_intrbits() local
727 * stat = dw_readl(IC_INTR_STAT); i2c_dw_read_clear_intrbits()
729 * stat = dw_readl(IC_RAW_INTR_STAT) & dw_readl(IC_INTR_MASK); i2c_dw_read_clear_intrbits()
733 stat = dw_readl(dev, DW_IC_INTR_STAT); i2c_dw_read_clear_intrbits()
742 if (stat & DW_IC_INTR_RX_UNDER) i2c_dw_read_clear_intrbits()
744 if (stat & DW_IC_INTR_RX_OVER) i2c_dw_read_clear_intrbits()
746 if (stat & DW_IC_INTR_TX_OVER) i2c_dw_read_clear_intrbits()
748 if (stat & DW_IC_INTR_RD_REQ) i2c_dw_read_clear_intrbits()
750 if (stat & DW_IC_INTR_TX_ABRT) { i2c_dw_read_clear_intrbits()
758 if (stat & DW_IC_INTR_RX_DONE) i2c_dw_read_clear_intrbits()
760 if (stat & DW_IC_INTR_ACTIVITY) i2c_dw_read_clear_intrbits()
762 if (stat & DW_IC_INTR_STOP_DET) i2c_dw_read_clear_intrbits()
764 if (stat & DW_IC_INTR_START_DET) i2c_dw_read_clear_intrbits()
766 if (stat & DW_IC_INTR_GEN_CALL) i2c_dw_read_clear_intrbits()
769 return stat; i2c_dw_read_clear_intrbits()
779 u32 stat, enabled; i2c_dw_isr() local
782 stat = dw_readl(dev, DW_IC_RAW_INTR_STAT); i2c_dw_isr()
783 dev_dbg(dev->dev, "%s: enabled=%#x stat=%#x\n", __func__, enabled, stat); i2c_dw_isr()
784 if (!enabled || !(stat & ~DW_IC_INTR_ACTIVITY)) i2c_dw_isr()
787 stat = i2c_dw_read_clear_intrbits(dev); i2c_dw_isr()
789 if (stat & DW_IC_INTR_TX_ABRT) { i2c_dw_isr()
801 if (stat & DW_IC_INTR_RX_FULL) i2c_dw_isr()
804 if (stat & DW_IC_INTR_TX_EMPTY) i2c_dw_isr()
814 if ((stat & (DW_IC_INTR_TX_ABRT | DW_IC_INTR_STOP_DET)) || dev->msg_err) i2c_dw_isr()
818 stat = dw_readl(dev, DW_IC_INTR_MASK); i2c_dw_isr()
820 dw_writel(dev, stat, DW_IC_INTR_MASK); i2c_dw_isr()
H A Di2c-omap.c526 u16 stat, systest; omap_i2c_wait_for_bb_valid() local
533 stat = omap_i2c_read_reg(omap, OMAP_I2C_STAT_REG); omap_i2c_wait_for_bb_valid()
539 if (stat & (OMAP_I2C_STAT_BB | OMAP_I2C_STAT_BF)) omap_i2c_wait_for_bb_valid()
800 omap_i2c_ack_stat(struct omap_i2c_dev *omap, u16 stat) omap_i2c_ack_stat() argument
802 omap_i2c_write_reg(omap, OMAP_I2C_STAT_REG, stat); omap_i2c_ack_stat()
805 static inline void i2c_omap_errata_i207(struct omap_i2c_dev *omap, u16 stat) i2c_omap_errata_i207() argument
814 if (stat & OMAP_I2C_STAT_RDR) { i2c_omap_errata_i207()
902 u16 stat; errata_omap3_i462() local
905 stat = omap_i2c_read_reg(omap, OMAP_I2C_STAT_REG); errata_omap3_i462()
906 if (stat & OMAP_I2C_STAT_XUDF) errata_omap3_i462()
909 if (stat & (OMAP_I2C_STAT_NACK | OMAP_I2C_STAT_AL)) { errata_omap3_i462()
912 if (stat & OMAP_I2C_STAT_NACK) { errata_omap3_i462()
917 if (stat & OMAP_I2C_STAT_AL) { errata_omap3_i462()
996 u16 stat; omap_i2c_isr() local
1000 stat = omap_i2c_read_reg(omap, OMAP_I2C_STAT_REG); omap_i2c_isr()
1002 if (stat & mask) omap_i2c_isr()
1016 u16 stat; omap_i2c_isr_thread() local
1022 stat = omap_i2c_read_reg(omap, OMAP_I2C_STAT_REG); omap_i2c_isr_thread()
1023 stat &= bits; omap_i2c_isr_thread()
1027 stat &= ~(OMAP_I2C_STAT_XDR | OMAP_I2C_STAT_XRDY); omap_i2c_isr_thread()
1029 stat &= ~(OMAP_I2C_STAT_RDR | OMAP_I2C_STAT_RRDY); omap_i2c_isr_thread()
1031 if (!stat) { omap_i2c_isr_thread()
1036 dev_dbg(omap->dev, "IRQ (ISR = 0x%04x)\n", stat); omap_i2c_isr_thread()
1042 if (stat & OMAP_I2C_STAT_NACK) { omap_i2c_isr_thread()
1047 if (stat & OMAP_I2C_STAT_AL) { omap_i2c_isr_thread()
1056 if (stat & OMAP_I2C_STAT_ARDY) omap_i2c_isr_thread()
1059 if (stat & (OMAP_I2C_STAT_ARDY | OMAP_I2C_STAT_NACK | omap_i2c_isr_thread()
1069 if (stat & OMAP_I2C_STAT_RDR) { omap_i2c_isr_thread()
1076 i2c_omap_errata_i207(omap, stat); omap_i2c_isr_thread()
1086 if (stat & OMAP_I2C_STAT_RRDY) { omap_i2c_isr_thread()
1097 if (stat & OMAP_I2C_STAT_XDR) { omap_i2c_isr_thread()
1112 if (stat & OMAP_I2C_STAT_XRDY) { omap_i2c_isr_thread()
1127 if (stat & OMAP_I2C_STAT_ROVR) { omap_i2c_isr_thread()
1134 if (stat & OMAP_I2C_STAT_XUDF) { omap_i2c_isr_thread()
1140 } while (stat); omap_i2c_isr_thread()
H A Di2c-kempld.c93 u8 stat = kempld_read8(pld, KEMPLD_I2C_STAT); kempld_i2c_process() local
98 if (stat & I2C_STAT_TIP) kempld_i2c_process()
110 if (stat & I2C_STAT_ARBLOST) { kempld_i2c_process()
117 if (stat & I2C_STAT_BUSY) kempld_i2c_process()
154 if (stat & I2C_STAT_NACK) { kempld_i2c_process()
237 u8 stat; kempld_i2c_device_init() local
277 stat = kempld_read8(pld, KEMPLD_I2C_STAT); kempld_i2c_device_init()
278 if (stat & I2C_STAT_BUSY) kempld_i2c_device_init()
H A Di2c-au1550.c81 unsigned long stat; wait_ack() local
86 stat = RD(adap, PSC_SMBEVNT); wait_ack()
87 if ((stat & (PSC_SMBEVNT_DN | PSC_SMBEVNT_AN | PSC_SMBEVNT_AL)) != 0) wait_ack()
110 unsigned long stat; do_address() local
113 stat = RD(adap, PSC_SMBSTAT); do_address()
116 if (!(stat & PSC_SMBSTAT_TE) || !(stat & PSC_SMBSTAT_RE)) { do_address()
/linux-4.4.14/drivers/rtc/
H A Drtc-ds3232.c71 int control, stat; ds3232_check_rtc_status() local
73 stat = i2c_smbus_read_byte_data(client, DS3232_REG_SR); ds3232_check_rtc_status()
74 if (stat < 0) ds3232_check_rtc_status()
75 return stat; ds3232_check_rtc_status()
77 if (stat & DS3232_REG_SR_OSF) ds3232_check_rtc_status()
82 stat &= ~(DS3232_REG_SR_OSF | DS3232_REG_SR_A1F | DS3232_REG_SR_A2F); ds3232_check_rtc_status()
84 ret = i2c_smbus_write_byte_data(client, DS3232_REG_SR, stat); ds3232_check_rtc_status()
195 int control, stat; ds3232_read_alarm() local
204 stat = ret; ds3232_read_alarm()
225 alarm->pending = !!(stat & DS3232_REG_SR_A1F); ds3232_read_alarm()
241 int control, stat; ds3232_set_alarm() local
269 stat = ret; ds3232_set_alarm()
270 stat &= ~(DS3232_REG_SR_A1F | DS3232_REG_SR_A2F); ds3232_set_alarm()
271 ret = i2c_smbus_write_byte_data(client, DS3232_REG_SR, stat); ds3232_set_alarm()
367 int stat, control; ds3232_work() local
371 stat = i2c_smbus_read_byte_data(client, DS3232_REG_SR); ds3232_work()
372 if (stat < 0) ds3232_work()
375 if (stat & DS3232_REG_SR_A1F) { ds3232_work()
387 stat &= ~DS3232_REG_SR_A1F; ds3232_work()
388 i2c_smbus_write_byte_data(client, DS3232_REG_SR, stat); ds3232_work()
H A Drtc-ds1374.c132 int control, stat; ds1374_check_rtc_status() local
134 stat = i2c_smbus_read_byte_data(client, DS1374_REG_SR); ds1374_check_rtc_status()
135 if (stat < 0) ds1374_check_rtc_status()
136 return stat; ds1374_check_rtc_status()
138 if (stat & DS1374_REG_SR_OSF) ds1374_check_rtc_status()
142 stat &= ~(DS1374_REG_SR_OSF | DS1374_REG_SR_AF); ds1374_check_rtc_status()
144 ret = i2c_smbus_write_byte_data(client, DS1374_REG_SR, stat); ds1374_check_rtc_status()
301 int stat, control; ds1374_work() local
305 stat = i2c_smbus_read_byte_data(client, DS1374_REG_SR); ds1374_work()
306 if (stat < 0) ds1374_work()
309 if (stat & DS1374_REG_SR_AF) { ds1374_work()
310 stat &= ~DS1374_REG_SR_AF; ds1374_work()
311 i2c_smbus_write_byte_data(client, DS1374_REG_SR, stat); ds1374_work()
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/engine/cipher/
H A Dg84.c86 u32 stat = nvkm_rd32(device, 0x102130); g84_cipher_intr() local
94 if (stat) { g84_cipher_intr()
95 nvkm_snprintbf(msg, sizeof(msg), g84_cipher_intr_mask, stat); g84_cipher_intr()
97 "mthd %04x data %08x\n", stat, msg, g84_cipher_intr()
104 nvkm_wr32(device, 0x102130, stat); g84_cipher_intr()
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/engine/mpeg/
H A Dnv50.c64 u32 stat = nvkm_rd32(device, 0x00b100); nv50_mpeg_intr() local
68 u32 show = stat; nv50_mpeg_intr()
70 if (stat & 0x01000000) { nv50_mpeg_intr()
80 stat, type, mthd, data); nv50_mpeg_intr()
83 nvkm_wr32(device, 0x00b100, stat); nv50_mpeg_intr()
/linux-4.4.14/fs/xfs/
H A Dxfs_itable.h31 int *stat);
34 * Values for stat return value.
41 * Return stat information in bulk (by-inode) for the filesystem.
67 int *stat);
76 int *stat);
H A Dxfs_itable.c45 * Return stat information for one inode.
56 int *stat) /* BULKSTAT_RV_... */ xfs_bulkstat_one_int()
63 *stat = BULKSTAT_RV_NOTHING; xfs_bulkstat_one_int()
134 *stat = BULKSTAT_RV_DIDONE; xfs_bulkstat_one_int()
165 int *stat) /* BULKSTAT_RV_... */ xfs_bulkstat_one()
168 xfs_bulkstat_one_fmt, ubused, stat); xfs_bulkstat_one()
216 int stat; xfs_bulkstat_grab_ichunk() local
220 error = xfs_inobt_lookup(cur, agino, XFS_LOOKUP_LE, &stat); xfs_bulkstat_grab_ichunk()
223 if (!stat) { xfs_bulkstat_grab_ichunk()
229 error = xfs_inobt_get_rec(cur, irec, &stat); xfs_bulkstat_grab_ichunk()
232 XFS_WANT_CORRUPTED_RETURN(cur->bc_mp, stat == 1); xfs_bulkstat_grab_ichunk()
338 * Return stat information in bulk (by-inode) for the filesystem.
396 int stat; xfs_bulkstat() local
425 error = xfs_btree_increment(cur, 0, &stat); xfs_bulkstat()
428 error = xfs_inobt_lookup(cur, 0, XFS_LOOKUP_GE, &stat); xfs_bulkstat()
430 if (error || stat == 0) { xfs_bulkstat()
442 error = xfs_inobt_get_rec(cur, &r, &stat); xfs_bulkstat()
443 if (error || stat == 0) { xfs_bulkstat()
462 error = xfs_btree_increment(cur, 0, &stat); xfs_bulkstat()
463 if (error || stat == 0) { xfs_bulkstat()
581 int stat; xfs_inumbers() local
591 &stat); xfs_inumbers()
594 if (!stat) xfs_inumbers()
598 error = xfs_inobt_get_rec(cur, &r, &stat); xfs_inumbers()
601 if (!stat) xfs_inumbers()
622 error = xfs_btree_increment(cur, 0, &stat); xfs_inumbers()
625 if (stat) xfs_inumbers()
49 xfs_bulkstat_one_int( struct xfs_mount *mp, xfs_ino_t ino, void __user *buffer, int ubsize, bulkstat_one_fmt_pf formatter, int *ubused, int *stat) xfs_bulkstat_one_int() argument
159 xfs_bulkstat_one( xfs_mount_t *mp, xfs_ino_t ino, void __user *buffer, int ubsize, int *ubused, int *stat) xfs_bulkstat_one() argument
/linux-4.4.14/arch/powerpc/platforms/82xx/
H A Dpq2ads-pci-pic.c34 u32 stat; member in struct:pq2ads_pci_pic::__anon2386
84 u32 stat, mask, pend; pq2ads_pci_irq_demux() local
88 stat = in_be32(&priv->regs->stat); pq2ads_pci_irq_demux()
91 pend = stat & ~mask; pq2ads_pci_irq_demux()
/linux-4.4.14/arch/arm/mach-netx/
H A Dgeneric.c75 unsigned int stat; netx_hif_demux_handler() local
77 stat = ((readl(NETX_DPMAS_INT_EN) & netx_hif_demux_handler()
80 while (stat) { netx_hif_demux_handler()
81 if (stat & 1) { netx_hif_demux_handler()
86 stat >>= 1; netx_hif_demux_handler()
/linux-4.4.14/arch/powerpc/platforms/cell/
H A Dspu_base.c294 unsigned long stat, mask; spu_irq_class_0() local
300 stat = spu_int_stat_get(spu, 0) & mask; spu_irq_class_0()
302 spu->class_0_pending |= stat; spu_irq_class_0()
308 spu_int_stat_clear(spu, 0, stat); spu_irq_class_0()
318 unsigned long stat, mask, dar, dsisr; spu_irq_class_1() local
325 stat = spu_int_stat_get(spu, 1) & mask; spu_irq_class_1()
328 if (stat & CLASS1_STORAGE_FAULT_INTR) spu_irq_class_1()
330 spu_int_stat_clear(spu, 1, stat); spu_irq_class_1()
332 pr_debug("%s: %lx %lx %lx %lx\n", __func__, mask, stat, spu_irq_class_1()
335 if (stat & CLASS1_SEGMENT_FAULT_INTR) spu_irq_class_1()
338 if (stat & CLASS1_STORAGE_FAULT_INTR) spu_irq_class_1()
341 if (stat & CLASS1_LS_COMPARE_SUSPEND_ON_GET_INTR) spu_irq_class_1()
344 if (stat & CLASS1_LS_COMPARE_SUSPEND_ON_PUT_INTR) spu_irq_class_1()
352 return stat ? IRQ_HANDLED : IRQ_NONE; spu_irq_class_1()
359 unsigned long stat; spu_irq_class_2() local
366 stat = spu_int_stat_get(spu, 2); spu_irq_class_2()
369 stat &= mask; spu_irq_class_2()
372 if (stat & mailbox_intrs) spu_irq_class_2()
373 spu_int_mask_and(spu, 2, ~(stat & mailbox_intrs)); spu_irq_class_2()
375 spu_int_stat_clear(spu, 2, stat); spu_irq_class_2()
377 pr_debug("class 2 interrupt %d, %lx, %lx\n", irq, stat, mask); spu_irq_class_2()
379 if (stat & CLASS2_MAILBOX_INTR) spu_irq_class_2()
382 if (stat & CLASS2_SPU_STOP_INTR) spu_irq_class_2()
385 if (stat & CLASS2_SPU_HALT_INTR) spu_irq_class_2()
388 if (stat & CLASS2_SPU_DMA_TAG_GROUP_COMPLETE_INTR) spu_irq_class_2()
391 if (stat & CLASS2_MAILBOX_THRESHOLD_INTR) spu_irq_class_2()
398 return stat ? IRQ_HANDLED : IRQ_NONE; spu_irq_class_2()
677 static DEVICE_ATTR(stat, 0444, spu_stat_show, NULL);
/linux-4.4.14/arch/mn10300/boot/tools/
H A Dbuild.c30 #include <sys/stat.h>
74 struct stat sb; main()
84 if (stat("/", &sb)) { main()
86 die("Couldn't stat /"); main()
91 if (stat(argv[4], &sb)) { main()
93 die("Couldn't stat root device."); main()
147 die("Unable to stat `%s': %m", argv[3]); main()
/linux-4.4.14/sound/oss/
H A Dpas2_midi.c227 unsigned char stat; pas_midi_interrupt() local
230 stat = pas_read(0x1B88); pas_midi_interrupt()
232 if (stat & 0x04) /* Input data available */ pas_midi_interrupt()
245 if (stat & (0x08 | 0x10)) pas_midi_interrupt()
257 if (stat & 0x40) pas_midi_interrupt()
259 printk(KERN_WARNING "MIDI output overrun %x,%x\n", pas_read(0x1B89), stat); pas_midi_interrupt()
261 pas_write(stat, 0x1B88); /* Acknowledge interrupts */ pas_midi_interrupt()
/linux-4.4.14/drivers/tty/serial/
H A Duartlite.c115 static int ulite_receive(struct uart_port *port, int stat) ulite_receive() argument
121 if ((stat & (ULITE_STATUS_RXVALID | ULITE_STATUS_OVERRUN ulite_receive()
126 if (stat & ULITE_STATUS_RXVALID) { ulite_receive()
130 if (stat & ULITE_STATUS_PARITY) ulite_receive()
134 if (stat & ULITE_STATUS_OVERRUN) ulite_receive()
137 if (stat & ULITE_STATUS_FRAME) ulite_receive()
142 if (stat & port->ignore_status_mask & ULITE_STATUS_PARITY) ulite_receive()
143 stat &= ~ULITE_STATUS_RXVALID; ulite_receive()
145 stat &= port->read_status_mask; ulite_receive()
147 if (stat & ULITE_STATUS_PARITY) ulite_receive()
151 stat &= ~port->ignore_status_mask; ulite_receive()
153 if (stat & ULITE_STATUS_RXVALID) ulite_receive()
156 if (stat & ULITE_STATUS_FRAME) ulite_receive()
159 if (stat & ULITE_STATUS_OVERRUN) ulite_receive()
165 static int ulite_transmit(struct uart_port *port, int stat) ulite_transmit() argument
169 if (stat & ULITE_STATUS_TXFULL) ulite_transmit()
199 int stat = uart_in32(ULITE_STATUS, port); ulite_isr() local
200 busy = ulite_receive(port, stat); ulite_isr()
201 busy |= ulite_transmit(port, stat); ulite_isr()
H A Dsunsab.c112 union sab82532_irq_status *stat) receive_chars()
125 if (stat->sreg.isr0 & SAB82532_ISR0_RPF) { receive_chars()
130 if (stat->sreg.isr0 & SAB82532_ISR0_TCD) { receive_chars()
136 if (stat->sreg.isr0 & SAB82532_ISR0_TIME) { receive_chars()
142 if (stat->sreg.isr0 & SAB82532_ISR0_RFO) receive_chars()
156 if ((stat->sreg.isr1 & SAB82532_ISR1_BRK) && receive_chars()
161 if (unlikely(stat->sreg.isr1 & SAB82532_ISR1_BRK)) { receive_chars()
162 stat->sreg.isr0 &= ~(SAB82532_ISR0_PERR | receive_chars()
175 if (unlikely(stat->sreg.isr0 & (SAB82532_ISR0_PERR | receive_chars()
178 unlikely(stat->sreg.isr1 & SAB82532_ISR1_BRK)) { receive_chars()
182 if (stat->sreg.isr1 & SAB82532_ISR1_BRK) { receive_chars()
183 stat->sreg.isr0 &= ~(SAB82532_ISR0_PERR | receive_chars()
194 } else if (stat->sreg.isr0 & SAB82532_ISR0_PERR) receive_chars()
196 else if (stat->sreg.isr0 & SAB82532_ISR0_FERR) receive_chars()
198 if (stat->sreg.isr0 & SAB82532_ISR0_RFO) receive_chars()
204 stat->sreg.isr0 &= (up->port.read_status_mask & 0xff); receive_chars()
205 stat->sreg.isr1 &= ((up->port.read_status_mask >> 8) & 0xff); receive_chars()
207 if (stat->sreg.isr1 & SAB82532_ISR1_BRK) { receive_chars()
209 } else if (stat->sreg.isr0 & SAB82532_ISR0_PERR) receive_chars()
211 else if (stat->sreg.isr0 & SAB82532_ISR0_FERR) receive_chars()
218 if ((stat->sreg.isr0 & (up->port.ignore_status_mask & 0xff)) == 0 && receive_chars()
219 (stat->sreg.isr1 & ((up->port.ignore_status_mask >> 8) & 0xff)) == 0) receive_chars()
221 if (stat->sreg.isr0 & SAB82532_ISR0_RFO) receive_chars()
235 union sab82532_irq_status *stat) transmit_chars()
240 if (stat->sreg.isr1 & SAB82532_ISR1_ALLS) { transmit_chars()
247 if (!(stat->sreg.isr1 & SAB82532_ISR1_XPR)) transmit_chars()
290 union sab82532_irq_status *stat) check_status()
292 if (stat->sreg.isr0 & SAB82532_ISR0_CDSC) check_status()
296 if (stat->sreg.isr1 & SAB82532_ISR1_CSC) check_status()
318 status.stat = 0; sunsab_interrupt()
325 if (status.stat) { sunsab_interrupt()
111 receive_chars(struct uart_sunsab_port *up, union sab82532_irq_status *stat) receive_chars() argument
234 transmit_chars(struct uart_sunsab_port *up, union sab82532_irq_status *stat) transmit_chars() argument
289 check_status(struct uart_sunsab_port *up, union sab82532_irq_status *stat) check_status() argument
/linux-4.4.14/arch/mips/cavium-octeon/executive/
H A Dcvmx-spi.c433 union cvmx_spxx_clk_stat stat; cvmx_spi_clock_detect_cb() local
449 stat.u64 = cvmx_read_csr(CVMX_SPXX_CLK_STAT(interface)); cvmx_spi_clock_detect_cb()
450 if (stat.s.s4clk0 && stat.s.s4clk1 && clock_transitions) { cvmx_spi_clock_detect_cb()
456 cvmx_write_csr(CVMX_SPXX_CLK_STAT(interface), stat.u64); cvmx_spi_clock_detect_cb()
457 stat.s.s4clk0 = 0; cvmx_spi_clock_detect_cb()
458 stat.s.s4clk1 = 0; cvmx_spi_clock_detect_cb()
464 } while (stat.s.s4clk0 == 0 || stat.s.s4clk1 == 0); cvmx_spi_clock_detect_cb()
474 stat.u64 = cvmx_read_csr(CVMX_SPXX_CLK_STAT(interface)); cvmx_spi_clock_detect_cb()
475 if (stat.s.d4clk0 && stat.s.d4clk1 && clock_transitions) { cvmx_spi_clock_detect_cb()
481 cvmx_write_csr(CVMX_SPXX_CLK_STAT(interface), stat.u64); cvmx_spi_clock_detect_cb()
482 stat.s.d4clk0 = 0; cvmx_spi_clock_detect_cb()
483 stat.s.d4clk1 = 0; cvmx_spi_clock_detect_cb()
489 } while (stat.s.d4clk0 == 0 || stat.s.d4clk1 == 0); cvmx_spi_clock_detect_cb()
511 union cvmx_spxx_clk_stat stat; cvmx_spi_training_cb() local
548 stat.u64 = cvmx_read_csr(CVMX_SPXX_CLK_STAT(interface)); cvmx_spi_training_cb()
549 if (stat.s.srxtrn && rx_training_needed) { cvmx_spi_training_cb()
551 cvmx_write_csr(CVMX_SPXX_CLK_STAT(interface), stat.u64); cvmx_spi_training_cb()
552 stat.s.srxtrn = 0; cvmx_spi_training_cb()
558 } while (stat.s.srxtrn == 0); cvmx_spi_training_cb()
596 union cvmx_spxx_clk_stat stat; cvmx_spi_calendar_sync_cb() local
609 stat.u64 = cvmx_read_csr(CVMX_SPXX_CLK_STAT(interface)); cvmx_spi_calendar_sync_cb()
614 } while (stat.s.stxcal == 0); cvmx_spi_calendar_sync_cb()
/linux-4.4.14/drivers/input/serio/
H A Dsa1111ps2.c225 unsigned int stat; ps2_test() local
228 stat = ps2_test_one(ps2if, PS2CR_FKC); ps2_test()
229 if (stat != PS2STAT_KBD) { ps2_test()
230 printk("PS/2 interface test failed[1]: %02x\n", stat); ps2_test()
234 stat = ps2_test_one(ps2if, 0); ps2_test()
235 if (stat != (PS2STAT_KBC | PS2STAT_KBD)) { ps2_test()
236 printk("PS/2 interface test failed[2]: %02x\n", stat); ps2_test()
240 stat = ps2_test_one(ps2if, PS2CR_FKD); ps2_test()
241 if (stat != PS2STAT_KBC) { ps2_test()
242 printk("PS/2 interface test failed[3]: %02x\n", stat); ps2_test()
/linux-4.4.14/arch/arm/vdso/
H A Dvdsomunge.c57 #include <sys/stat.h>
136 struct stat stat; main() local
155 if (fstat(infd, &stat) != 0) main()
156 fail("Failed stat for %s: %s\n", infile, strerror(errno)); main()
158 inbuf = mmap(NULL, stat.st_size, PROT_READ, MAP_PRIVATE, infd, 0); main()
196 if (ftruncate(outfd, stat.st_size) != 0) main()
199 outbuf = mmap(NULL, stat.st_size, PROT_READ | PROT_WRITE, MAP_SHARED, main()
206 memcpy(outbuf, inbuf, stat.st_size); main()
216 if (msync(outbuf, stat.st_size, MS_SYNC) != 0) main()
/linux-4.4.14/sound/soc/samsung/
H A Dac97.c55 u32 ac_glbctrl, stat; s3c_ac97_activate() local
57 stat = readl(s3c_ac97.regs + S3C_AC97_GLBSTAT) & 0x7; s3c_ac97_activate()
58 if (stat == S3C_AC97_GLBSTAT_MAINSTATE_ACTIVE) s3c_ac97_activate()
84 u32 stat, addr, data; s3c_ac97_read() local
105 stat = readl(s3c_ac97.regs + S3C_AC97_STAT); s3c_ac97_read()
106 addr = (stat >> 16) & 0x7f; s3c_ac97_read()
107 data = (stat & 0xffff); s3c_ac97_read()
162 u32 stat; s3c_ac97_warm_reset() local
164 stat = readl(s3c_ac97.regs + S3C_AC97_GLBSTAT) & 0x7; s3c_ac97_warm_reset()
165 if (stat == S3C_AC97_GLBSTAT_MAINSTATE_ACTIVE) s3c_ac97_warm_reset()
/linux-4.4.14/drivers/net/wireless/b43legacy/
H A Ddebugfs.c144 struct b43legacy_txstatus *stat; txstat_read_file() local
160 stat = &(log->log[i]); txstat_read_file()
161 if (stat->cookie) { txstat_read_file()
168 stat->cookie, stat->seq, stat->phy_stat, txstat_read_file()
169 stat->frame_count, stat->rts_count, txstat_read_file()
170 stat->supp_reason, stat->pm_indicated, txstat_read_file()
171 stat->intermediate, stat->for_ampdu, txstat_read_file()
172 stat->acked); txstat_read_file()
/linux-4.4.14/drivers/scsi/aic94xx/
H A Daic94xx_task.c226 ts->stat = SAM_STAT_GOOD; asd_task_tasklet_complete()
230 ts->stat = SAS_DATA_UNDERRUN; asd_task_tasklet_complete()
235 ts->stat = SAS_DATA_OVERRUN; asd_task_tasklet_complete()
241 ts->stat = SAS_PROTO_RESPONSE; asd_task_tasklet_complete()
246 ts->stat = SAS_OPEN_REJECT; asd_task_tasklet_complete()
256 ts->stat = SAS_OPEN_TO; asd_task_tasklet_complete()
261 ts->stat = SAS_PHY_DOWN; asd_task_tasklet_complete()
265 ts->stat = SAS_PHY_DOWN; asd_task_tasklet_complete()
274 ts->stat = SAS_INTERRUPTED; asd_task_tasklet_complete()
281 ts->stat = SAS_DEV_NO_RESPONSE; asd_task_tasklet_complete()
285 ts->stat = SAS_NAK_R_ERR; asd_task_tasklet_complete()
293 ts->stat = SAS_DEVICE_UNKNOWN; asd_task_tasklet_complete()
297 ts->stat = SAS_PENDING; asd_task_tasklet_complete()
302 ts->stat = SAS_ABORTED_TASK; asd_task_tasklet_complete()
315 ts->stat = SAS_DEV_NO_RESPONSE; asd_task_tasklet_complete()
349 "stat 0x%x but aborted by upper layer!\n", asd_task_tasklet_complete()
350 task, opcode, ts->resp, ts->stat); asd_task_tasklet_complete()
/linux-4.4.14/fs/xfs/libxfs/
H A Dxfs_btree.h87 #define __XFS_BTREE_STATS_INC(mp, type, stat) \
88 XFS_STATS_INC(mp, xs_ ## type ## _2_ ## stat)
89 #define XFS_BTREE_STATS_INC(cur, stat) \
93 case XFS_BTNUM_BNO: __XFS_BTREE_STATS_INC(__mp, abtb, stat); break; \
94 case XFS_BTNUM_CNT: __XFS_BTREE_STATS_INC(__mp, abtc, stat); break; \
95 case XFS_BTNUM_BMAP: __XFS_BTREE_STATS_INC(__mp, bmbt, stat); break; \
96 case XFS_BTNUM_INO: __XFS_BTREE_STATS_INC(__mp, ibt, stat); break; \
97 case XFS_BTNUM_FINO: __XFS_BTREE_STATS_INC(__mp, fibt, stat); break; \
102 #define __XFS_BTREE_STATS_ADD(mp, type, stat, val) \
103 XFS_STATS_ADD(mp, xs_ ## type ## _2_ ## stat, val)
104 #define XFS_BTREE_STATS_ADD(cur, stat, val) \
109 __XFS_BTREE_STATS_ADD(__mp, abtb, stat, val); break; \
111 __XFS_BTREE_STATS_ADD(__mp, abtc, stat, val); break; \
113 __XFS_BTREE_STATS_ADD(__mp, bmbt, stat, val); break; \
115 __XFS_BTREE_STATS_ADD(__mp, ibt, stat, val); break; \
117 __XFS_BTREE_STATS_ADD(__mp, fibt, stat, val); break; \
142 int *stat);
/linux-4.4.14/arch/arm/mach-omap1/
H A Dfpga.c92 u32 stat; innovator_fpga_IRQ_demux() local
95 stat = get_fpga_unmasked_irqs(); innovator_fpga_IRQ_demux()
97 if (!stat) innovator_fpga_IRQ_demux()
101 (fpga_irq < OMAP_FPGA_IRQ_END) && stat; innovator_fpga_IRQ_demux()
102 fpga_irq++, stat >>= 1) { innovator_fpga_IRQ_demux()
103 if (stat & 1) { innovator_fpga_IRQ_demux()
/linux-4.4.14/sound/soc/adi/
H A Daxi-spdif.c81 unsigned int clkdiv, stat; axi_spdif_hw_params() local
85 stat = AXI_SPDIF_FREQ_32000; axi_spdif_hw_params()
88 stat = AXI_SPDIF_FREQ_44100; axi_spdif_hw_params()
91 stat = AXI_SPDIF_FREQ_48000; axi_spdif_hw_params()
94 stat = AXI_SPDIF_FREQ_NA; axi_spdif_hw_params()
102 regmap_write(spdif->regmap, AXI_SPDIF_REG_STAT, stat); axi_spdif_hw_params()
/linux-4.4.14/drivers/staging/lustre/lnet/selftest/
H A Dconrpc.c423 lstcon_rpc_trans_stat(lstcon_rpc_trans_t *trans, lstcon_trans_stat_t *stat) lstcon_rpc_trans_stat() argument
429 LASSERT(stat != NULL); lstcon_rpc_trans_stat()
431 memset(stat, 0, sizeof(*stat)); lstcon_rpc_trans_stat()
434 lstcon_rpc_stat_total(stat, 1); lstcon_rpc_trans_stat()
440 lstcon_rpc_stat_failure(stat, 1); lstcon_rpc_trans_stat()
441 if (stat->trs_rpc_errno == 0) lstcon_rpc_trans_stat()
442 stat->trs_rpc_errno = -error; lstcon_rpc_trans_stat()
447 lstcon_rpc_stat_success(stat, 1); lstcon_rpc_trans_stat()
449 lstcon_rpc_stat_reply(trans, rep, crpc->crp_node, stat); lstcon_rpc_trans_stat()
452 if (trans->tas_opc == LST_TRANS_SESNEW && stat->trs_fwk_errno == 0) { lstcon_rpc_trans_stat()
453 stat->trs_fwk_errno = lstcon_rpc_trans_stat()
459 lstcon_rpc_stat_success(stat, 0), lstcon_rpc_trans_stat()
460 lstcon_rpc_stat_failure(stat, 0), lstcon_rpc_trans_stat()
461 lstcon_rpc_stat_total(stat, 0), lstcon_rpc_trans_stat()
462 stat->trs_rpc_errno, stat->trs_fwk_errno); lstcon_rpc_trans_stat()
965 lstcon_node_t *nd, lstcon_trans_stat_t *stat) lstcon_rpc_stat_reply()
978 lstcon_sesop_stat_success(stat, 1); lstcon_rpc_stat_reply()
982 lstcon_sesop_stat_failure(stat, 1); lstcon_rpc_stat_reply()
990 lstcon_sesop_stat_success(stat, 1); lstcon_rpc_stat_reply()
994 lstcon_sesop_stat_failure(stat, 1); lstcon_rpc_stat_reply()
1003 lstcon_sesqry_stat_unknown(stat, 1); lstcon_rpc_stat_reply()
1008 lstcon_sesqry_stat_active(stat, 1); lstcon_rpc_stat_reply()
1010 lstcon_sesqry_stat_busy(stat, 1); lstcon_rpc_stat_reply()
1018 lstcon_tsbop_stat_success(stat, 1); lstcon_rpc_stat_reply()
1024 lstcon_tsbop_stat_success(stat, 1); lstcon_rpc_stat_reply()
1028 lstcon_tsbop_stat_failure(stat, 1); lstcon_rpc_stat_reply()
1037 lstcon_tsbqry_stat_run(stat, 1); lstcon_rpc_stat_reply()
1039 lstcon_tsbqry_stat_idle(stat, 1); lstcon_rpc_stat_reply()
1044 lstcon_tsbqry_stat_failure(stat, 1); lstcon_rpc_stat_reply()
1053 lstcon_tsbop_stat_success(stat, 1); lstcon_rpc_stat_reply()
1057 lstcon_tsbop_stat_failure(stat, 1); lstcon_rpc_stat_reply()
1065 lstcon_statqry_stat_success(stat, 1); lstcon_rpc_stat_reply()
1069 lstcon_statqry_stat_failure(stat, 1); lstcon_rpc_stat_reply()
1077 if (stat->trs_fwk_errno == 0) lstcon_rpc_stat_reply()
1078 stat->trs_fwk_errno = rc; lstcon_rpc_stat_reply()
964 lstcon_rpc_stat_reply(lstcon_rpc_trans_t *trans, srpc_msg_t *msg, lstcon_node_t *nd, lstcon_trans_stat_t *stat) lstcon_rpc_stat_reply() argument
/linux-4.4.14/drivers/net/ethernet/intel/fm10k/
H A Dfm10k_common.h58 struct fm10k_hw_stat *stat);
59 #define fm10k_update_hw_base_32b(stat, delta) ((stat)->base_l += (delta))
/linux-4.4.14/scripts/dtc/
H A Dfstree.c24 #include <sys/stat.h>
30 struct stat st; read_fstree()
49 die("stat(%s): %s\n", tmpname, strerror(errno)); read_fstree()
/linux-4.4.14/include/uapi/asm-generic/
H A Dstat.h10 * stat is the same structure layout on 64-bit, without the 'long long'
13 * By convention, 64 bit architectures use the stat interface, while
23 struct stat { struct
/linux-4.4.14/arch/s390/include/uapi/asm/
H A Dstat.h4 * Derived from "include/asm-i386/stat.h"
25 struct stat { struct
78 struct stat { struct
/linux-4.4.14/arch/mips/txx9/generic/
H A Dspi_eeprom.c56 int stat = 0; early_seeprom_probe() local
72 stat = spi_write_then_read(spi, cmd, sizeof(cmd), buf, c); early_seeprom_probe()
77 return stat; early_seeprom_probe()
/linux-4.4.14/drivers/scsi/
H A Dmac53c94.c17 #include <linux/stat.h>
199 int nb, stat, seq, intr; mac53c94_interrupt() local
207 stat = readb(&regs->status); mac53c94_interrupt()
211 printk(KERN_DEBUG "mac53c94_intr, intr=%x stat=%x seq=%x phase=%d\n", mac53c94_interrupt()
212 intr, stat, seq, state->phase); mac53c94_interrupt()
224 printk(KERN_ERR "53c94: invalid cmd, intr=%x stat=%x seq=%x phase=%d\n", mac53c94_interrupt()
225 intr, stat, seq, state->phase); mac53c94_interrupt()
229 if (stat & STAT_ERROR) { mac53c94_interrupt()
232 printk("53c94: bad error, intr=%x stat=%x seq=%x phase=%d\n", mac53c94_interrupt()
233 intr, stat, seq, state->phase); mac53c94_interrupt()
242 if (stat & STAT_PARITY) { mac53c94_interrupt()
266 if ((stat & (STAT_MSG|STAT_CD)) == 0 mac53c94_interrupt()
280 } else if ((stat & STAT_PHASE) == STAT_CD + STAT_IO) { mac53c94_interrupt()
286 stat & STAT_PHASE); mac53c94_interrupt()
299 && (stat & (STAT_MSG|STAT_CD)) == 0) { mac53c94_interrupt()
311 if ((stat & STAT_PHASE) != STAT_CD + STAT_IO) { mac53c94_interrupt()
/linux-4.4.14/drivers/s390/char/
H A Dhmcdrv_mod.c14 #include <linux/stat.h>
/linux-4.4.14/drivers/isdn/hisax/
H A Dhisax_fcpcipnp.h37 u_int stat; member in struct:fritz_bcs
H A Dhisax_fcpcipnp.c468 static inline void hdlc_rpr_irq(struct fritz_bcs *bcs, u32 stat) hdlc_rpr_irq() argument
474 if (stat & HDLC_STAT_RDO) { hdlc_rpr_irq()
485 len = (stat & HDLC_STAT_RML_MASK) >> 8; hdlc_rpr_irq()
491 if ((stat & HDLC_STAT_RME) || (bcs->mode == L1_MODE_TRANS)) { hdlc_rpr_irq()
492 if (((stat & HDLC_STAT_CRCVFRRAB) == HDLC_STAT_CRCVFR) || hdlc_rpr_irq()
506 bcs->channel, stat); hdlc_rpr_irq()
555 static void hdlc_irq_one(struct fritz_bcs *bcs, u32 stat) hdlc_irq_one() argument
557 DBG(0x10, "ch%d stat %#x", bcs->channel, stat); hdlc_irq_one()
558 if (stat & HDLC_INT_RPR) { hdlc_irq_one()
560 hdlc_rpr_irq(bcs, stat); hdlc_irq_one()
562 if (stat & HDLC_INT_XDU) { hdlc_irq_one()
568 if (stat & HDLC_INT_XPR) { hdlc_irq_one()
577 u32 stat; hdlc_irq() local
580 stat = adapter->read_hdlc_status(adapter, nr); hdlc_irq()
581 DBG(0x10, "HDLC %c stat %#x", 'A' + nr, stat); hdlc_irq()
582 if (stat & HDLC_INT_MASK) hdlc_irq()
583 hdlc_irq_one(&adapter->bcs[nr], stat); hdlc_irq()
739 DBG(1, "stat %#x Class %X Rev %d", fcpcipnp_setup()
H A Dteleint.c184 int stat = 0; TeleInt_Timer() local
189 stat |= 1; TeleInt_Timer()
193 stat |= 2; TeleInt_Timer()
197 stat = HZ / 100; TeleInt_Timer()
198 if (!stat) TeleInt_Timer()
199 stat = 1; TeleInt_Timer()
200 cs->hw.hfc.timer.expires = jiffies + stat; TeleInt_Timer()
/linux-4.4.14/drivers/net/ethernet/
H A Dethoc.c230 * @stat: buffer statistics
234 u32 stat; member in struct:ethoc_bd
258 bd->stat = ethoc_read(dev, offset + 0); ethoc_read_bd()
266 ethoc_write(dev, offset + 0, bd->stat); ethoc_write_bd()
317 bd.stat = TX_BD_IRQ | TX_BD_CRC; ethoc_init_ring()
322 bd.stat |= TX_BD_WRAP; ethoc_init_ring()
331 bd.stat = RX_BD_EMPTY | RX_BD_IRQ; ethoc_init_ring()
335 bd.stat |= RX_BD_WRAP; ethoc_init_ring()
380 if (bd->stat & RX_BD_TL) { ethoc_update_rx_stats()
386 if (bd->stat & RX_BD_SF) { ethoc_update_rx_stats()
392 if (bd->stat & RX_BD_DN) { ethoc_update_rx_stats()
397 if (bd->stat & RX_BD_CRC) { ethoc_update_rx_stats()
403 if (bd->stat & RX_BD_OR) { ethoc_update_rx_stats()
409 if (bd->stat & RX_BD_MISS) ethoc_update_rx_stats()
412 if (bd->stat & RX_BD_LC) { ethoc_update_rx_stats()
432 if (bd.stat & RX_BD_EMPTY) { ethoc_rx()
442 if (bd.stat & RX_BD_EMPTY) ethoc_rx()
447 int size = bd.stat >> 16; ethoc_rx()
471 bd.stat &= ~RX_BD_STATS; ethoc_rx()
472 bd.stat |= RX_BD_EMPTY; ethoc_rx()
485 if (bd->stat & TX_BD_LC) { ethoc_update_tx_stats()
490 if (bd->stat & TX_BD_RL) { ethoc_update_tx_stats()
495 if (bd->stat & TX_BD_UR) { ethoc_update_tx_stats()
500 if (bd->stat & TX_BD_CS) { ethoc_update_tx_stats()
505 if (bd->stat & TX_BD_STATS) ethoc_update_tx_stats()
508 netdev->stats.collisions += (bd->stat >> 4) & 0xf; ethoc_update_tx_stats()
509 netdev->stats.tx_bytes += bd->stat >> 16; ethoc_update_tx_stats()
526 if (bd.stat & TX_BD_READY || (priv->dty_tx == priv->cur_tx)) { ethoc_tx()
536 if (bd.stat & TX_BD_READY || ethoc_tx()
658 u32 stat = ethoc_read(priv, MIISTATUS); ethoc_mdio_write() local
659 if (!(stat & MIISTATUS_BUSY)) { ethoc_mdio_write()
874 bd.stat |= TX_BD_PAD; ethoc_start_xmit()
876 bd.stat &= ~TX_BD_PAD; ethoc_start_xmit()
881 bd.stat &= ~(TX_BD_STATS | TX_BD_LEN_MASK); ethoc_start_xmit()
882 bd.stat |= TX_BD_LEN(skb->len); ethoc_start_xmit()
885 bd.stat |= TX_BD_READY; ethoc_start_xmit()
/linux-4.4.14/arch/s390/pci/
H A Dpci_debug.c56 u64 *stat; pci_perf_show() local
76 stat = (u64 *) &zdev->fmb->ld_ops; pci_perf_show()
79 pci_perf_names[i], *(stat + i)); pci_perf_show()
83 pci_perf_names[i], *(stat + i)); pci_perf_show()
/linux-4.4.14/arch/mips/bcm63xx/
H A Dtimer.c31 u32 stat; timer_interrupt() local
35 stat = bcm_timer_readl(TIMER_IRQSTAT_REG); timer_interrupt()
36 bcm_timer_writel(stat, TIMER_IRQSTAT_REG); timer_interrupt()
40 if (!(stat & TIMER_IRQSTAT_TIMER_CAUSE(i))) timer_interrupt()
/linux-4.4.14/arch/powerpc/boot/
H A Dmktree.c15 #include <sys/stat.h>
46 struct stat st; main()
54 if (stat(argv[1], &st) < 0) { main()
55 perror("stat"); main()
/linux-4.4.14/arch/ia64/hp/sim/
H A Dsimscsi.c128 struct disk_stat stat; simscsi_sg_readwrite() local
131 stat.fd = desc[sc->device->id]; simscsi_sg_readwrite()
140 ia64_ssc(stat.fd, 1, __pa(&req), offset, mode); scsi_for_each_sg()
141 ia64_ssc(__pa(&stat), 0, 0, 0, SSC_WAIT_COMPLETION); scsi_for_each_sg()
144 if (stat.count != req.len) { scsi_for_each_sg()
170 struct disk_stat stat; simscsi_get_disk_size() local
184 stat.fd = fd; simscsi_get_disk_size()
185 ia64_ssc(__pa(&stat), 0, 0, 0, SSC_WAIT_COMPLETION); simscsi_get_disk_size()
186 if (stat.count == sizeof(buf)) simscsi_get_disk_size()
/linux-4.4.14/sound/pci/lx6464es/
H A Dlx_core.c235 memset(rmh->stat, 0, REG_CRM_NUMBER * sizeof(u32)); lx_message_init()
255 snd_printk(LXRMH "\tstat[%d]: %08x\n", i, rmh->stat[i]); lx_message_dump()
306 lx_dsp_reg_readbuf(chip, eReg_CRM2, rmh->stat, lx_message_send_atomic()
341 *rdsp_version = chip->rmh.stat[1]; lx_dsp_get_version()
359 freq_raw = chip->rmh.stat[0] >> FREQ_FIELD_OFFSET; lx_dsp_get_clock_frequency()
423 memcpy(data, chip->rmh.stat, chip->rmh.stat_len * sizeof(u32)); lx_dsp_read_async_events()
496 u32 stat = chip->rmh.stat[i]; lx_buffer_ask() local
497 if (stat & (BF_EOB << BUFF_FLAGS_OFFSET)) { lx_buffer_ask()
501 size_array[i] = stat & MASK_DATA_SIZE; lx_buffer_ask()
502 } else if ((stat & (BF_VALID << BUFF_FLAGS_OFFSET)) lx_buffer_ask()
514 " stat[%d]: %x, %x\n", i, lx_buffer_ask()
515 chip->rmh.stat[i], lx_buffer_ask()
516 chip->rmh.stat[i] & MASK_DATA_SIZE); lx_buffer_ask()
603 *rsample_count = ((u64)(chip->rmh.stat[0] & MASK_SPL_COUNT_HI) lx_pipe_sample_count()
605 + chip->rmh.stat[1]; /* lo part */ lx_pipe_sample_count()
627 *rstate = (chip->rmh.stat[0] >> PSTATE_OFFSET) & 0x0F; lx_pipe_state()
730 *rstate = (chip->rmh.stat[0] & SF_START) ? START_STATE : PAUSE_STATE; lx_stream_state()
749 *r_bytepos = ((u64) (chip->rmh.stat[0] & MASK_SPL_COUNT_HI) lx_stream_sample_position()
751 + chip->rmh.stat[1]; /* lo part */ lx_stream_sample_position()
785 *r_buffer_index = chip->rmh.stat[0]; lx_buffer_give()
822 *r_buffer_size = chip->rmh.stat[0] & MASK_DATA_SIZE; lx_buffer_free()
911 s0 = peak_map[chip->rmh.stat[0] & 0x0F]; lx_level_peaks()
912 s1 = peak_map[(chip->rmh.stat[0] >> 4) & 0xf]; lx_level_peaks()
913 s2 = peak_map[(chip->rmh.stat[0] >> 8) & 0xf]; lx_level_peaks()
914 s3 = peak_map[(chip->rmh.stat[0] >> 12) & 0xf]; lx_level_peaks()
989 u32 stat[9]; /* answer from CMD_04_GET_EVENT */ lx_interrupt_handle_async_events() local
1011 err = lx_dsp_read_async_events(chip, stat); lx_interrupt_handle_async_events()
1016 *r_notified_in_pipe_mask = ((u64)stat[3] << 32) lx_interrupt_handle_async_events()
1017 + stat[4]; lx_interrupt_handle_async_events()
1022 *r_notified_out_pipe_mask = ((u64)stat[1] << 32) lx_interrupt_handle_async_events()
1023 + stat[2]; lx_interrupt_handle_async_events()
1028 orun_mask = ((u64)stat[7] << 32) + stat[8]; lx_interrupt_handle_async_events()
1029 urun_mask = ((u64)stat[5] << 32) + stat[6]; lx_interrupt_handle_async_events()
/linux-4.4.14/drivers/media/dvb-frontends/
H A Dmb86a20s.c338 return c->strength.stat[0].uvalue; mb86a20s_read_signal_strength()
341 c->strength.stat[0].uvalue = 0; mb86a20s_read_signal_strength()
379 c->strength.stat[0].uvalue = rf; mb86a20s_read_signal_strength()
1426 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; mb86a20s_get_main_CNR()
1427 c->cnr.stat[0].svalue = cnr; mb86a20s_get_main_CNR()
1470 c->cnr.stat[1 + layer].scale = FE_SCALE_NOT_AVAILABLE; mb86a20s_get_blk_error_layer_CNR()
1514 c->cnr.stat[1 + layer].scale = FE_SCALE_DECIBEL; mb86a20s_get_blk_error_layer_CNR()
1515 c->cnr.stat[1 + layer].svalue = cnr; mb86a20s_get_blk_error_layer_CNR()
1566 c->strength.stat[0].scale = FE_SCALE_RELATIVE; mb86a20s_stats_not_ready()
1567 c->strength.stat[0].uvalue = 0; mb86a20s_stats_not_ready()
1571 c->cnr.stat[layer].scale = FE_SCALE_NOT_AVAILABLE; mb86a20s_stats_not_ready()
1572 c->pre_bit_error.stat[layer].scale = FE_SCALE_NOT_AVAILABLE; mb86a20s_stats_not_ready()
1573 c->pre_bit_count.stat[layer].scale = FE_SCALE_NOT_AVAILABLE; mb86a20s_stats_not_ready()
1574 c->post_bit_error.stat[layer].scale = FE_SCALE_NOT_AVAILABLE; mb86a20s_stats_not_ready()
1575 c->post_bit_count.stat[layer].scale = FE_SCALE_NOT_AVAILABLE; mb86a20s_stats_not_ready()
1576 c->block_error.stat[layer].scale = FE_SCALE_NOT_AVAILABLE; mb86a20s_stats_not_ready()
1577 c->block_count.stat[layer].scale = FE_SCALE_NOT_AVAILABLE; mb86a20s_stats_not_ready()
1618 c->pre_bit_error.stat[1 + layer].scale = FE_SCALE_COUNTER; mb86a20s_get_stats()
1619 c->pre_bit_error.stat[1 + layer].uvalue += bit_error; mb86a20s_get_stats()
1620 c->pre_bit_count.stat[1 + layer].scale = FE_SCALE_COUNTER; mb86a20s_get_stats()
1621 c->pre_bit_count.stat[1 + layer].uvalue += bit_count; mb86a20s_get_stats()
1627 c->pre_bit_error.stat[1 + layer].scale = FE_SCALE_NOT_AVAILABLE; mb86a20s_get_stats()
1628 c->pre_bit_count.stat[1 + layer].scale = FE_SCALE_NOT_AVAILABLE; mb86a20s_get_stats()
1633 if (c->block_error.stat[1 + layer].scale != FE_SCALE_NOT_AVAILABLE) mb86a20s_get_stats()
1640 c->post_bit_error.stat[1 + layer].scale = FE_SCALE_COUNTER; mb86a20s_get_stats()
1641 c->post_bit_error.stat[1 + layer].uvalue += bit_error; mb86a20s_get_stats()
1642 c->post_bit_count.stat[1 + layer].scale = FE_SCALE_COUNTER; mb86a20s_get_stats()
1643 c->post_bit_count.stat[1 + layer].uvalue += bit_count; mb86a20s_get_stats()
1649 c->post_bit_error.stat[1 + layer].scale = FE_SCALE_NOT_AVAILABLE; mb86a20s_get_stats()
1650 c->post_bit_count.stat[1 + layer].scale = FE_SCALE_NOT_AVAILABLE; mb86a20s_get_stats()
1655 if (c->block_error.stat[1 + layer].scale != FE_SCALE_NOT_AVAILABLE) mb86a20s_get_stats()
1663 c->block_error.stat[1 + layer].scale = FE_SCALE_COUNTER; mb86a20s_get_stats()
1664 c->block_error.stat[1 + layer].uvalue += block_error; mb86a20s_get_stats()
1665 c->block_count.stat[1 + layer].scale = FE_SCALE_COUNTER; mb86a20s_get_stats()
1666 c->block_count.stat[1 + layer].uvalue += block_count; mb86a20s_get_stats()
1672 c->block_error.stat[1 + layer].scale = FE_SCALE_NOT_AVAILABLE; mb86a20s_get_stats()
1673 c->block_count.stat[1 + layer].scale = FE_SCALE_NOT_AVAILABLE; mb86a20s_get_stats()
1679 if (c->block_error.stat[1 + layer].scale != FE_SCALE_NOT_AVAILABLE) mb86a20s_get_stats()
1683 t_pre_bit_error += c->pre_bit_error.stat[1 + layer].uvalue; mb86a20s_get_stats()
1684 t_pre_bit_count += c->pre_bit_count.stat[1 + layer].uvalue; mb86a20s_get_stats()
1687 t_post_bit_error += c->post_bit_error.stat[1 + layer].uvalue; mb86a20s_get_stats()
1688 t_post_bit_count += c->post_bit_count.stat[1 + layer].uvalue; mb86a20s_get_stats()
1691 t_block_error += c->block_error.stat[1 + layer].uvalue; mb86a20s_get_stats()
1692 t_block_count += c->block_count.stat[1 + layer].uvalue; mb86a20s_get_stats()
1708 c->pre_bit_error.stat[0].scale = FE_SCALE_COUNTER; mb86a20s_get_stats()
1709 c->pre_bit_error.stat[0].uvalue = t_pre_bit_error; mb86a20s_get_stats()
1710 c->pre_bit_count.stat[0].scale = FE_SCALE_COUNTER; mb86a20s_get_stats()
1711 c->pre_bit_count.stat[0].uvalue = t_pre_bit_count; mb86a20s_get_stats()
1713 c->pre_bit_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; mb86a20s_get_stats()
1714 c->pre_bit_count.stat[0].scale = FE_SCALE_COUNTER; mb86a20s_get_stats()
1729 c->post_bit_error.stat[0].scale = FE_SCALE_COUNTER; mb86a20s_get_stats()
1730 c->post_bit_error.stat[0].uvalue = t_post_bit_error; mb86a20s_get_stats()
1731 c->post_bit_count.stat[0].scale = FE_SCALE_COUNTER; mb86a20s_get_stats()
1732 c->post_bit_count.stat[0].uvalue = t_post_bit_count; mb86a20s_get_stats()
1734 c->post_bit_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; mb86a20s_get_stats()
1735 c->post_bit_count.stat[0].scale = FE_SCALE_COUNTER; mb86a20s_get_stats()
1746 c->block_error.stat[0].scale = FE_SCALE_COUNTER; mb86a20s_get_stats()
1747 c->block_error.stat[0].uvalue = t_block_error; mb86a20s_get_stats()
1748 c->block_count.stat[0].scale = FE_SCALE_COUNTER; mb86a20s_get_stats()
1749 c->block_count.stat[0].uvalue = t_block_count; mb86a20s_get_stats()
1751 c->block_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; mb86a20s_get_stats()
1752 c->block_count.stat[0].scale = FE_SCALE_COUNTER; mb86a20s_get_stats()
2026 *strength = c->strength.stat[0].uvalue; mb86a20s_read_signal_strength_from_cache()
H A Drtl2830.c131 c->strength.stat[0].scale = FE_SCALE_NOT_AVAILABLE; rtl2830_init()
133 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; rtl2830_init()
135 c->post_bit_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; rtl2830_init()
137 c->post_bit_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; rtl2830_init()
432 if (c->cnr.stat[0].scale == FE_SCALE_DECIBEL) rtl2830_read_snr()
433 *snr = div_s64(c->cnr.stat[0].svalue, 100); rtl2830_read_snr()
462 if (c->strength.stat[0].scale == FE_SCALE_RELATIVE) rtl2830_read_signal_strength()
463 *strength = c->strength.stat[0].uvalue; rtl2830_read_signal_strength()
533 c->strength.stat[0].scale = FE_SCALE_RELATIVE; rtl2830_stat_work()
534 c->strength.stat[0].uvalue = u16tmp; rtl2830_stat_work()
536 c->strength.stat[0].scale = FE_SCALE_NOT_AVAILABLE; rtl2830_stat_work()
575 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; rtl2830_stat_work()
576 c->cnr.stat[0].svalue = tmp; rtl2830_stat_work()
578 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; rtl2830_stat_work()
593 c->post_bit_error.stat[0].scale = FE_SCALE_COUNTER; rtl2830_stat_work()
594 c->post_bit_error.stat[0].uvalue = dev->post_bit_error; rtl2830_stat_work()
595 c->post_bit_count.stat[0].scale = FE_SCALE_COUNTER; rtl2830_stat_work()
596 c->post_bit_count.stat[0].uvalue = dev->post_bit_count; rtl2830_stat_work()
598 c->post_bit_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; rtl2830_stat_work()
599 c->post_bit_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; rtl2830_stat_work()
H A Dtc90522.c262 stats->stat[0].scale = FE_SCALE_NOT_AVAILABLE; tc90522s_get_frontend()
287 stats->stat[0].svalue = cn >> 3; tc90522s_get_frontend()
288 stats->stat[0].scale = FE_SCALE_DECIBEL; tc90522s_get_frontend()
298 stats->stat[i].scale = FE_SCALE_NOT_AVAILABLE; tc90522s_get_frontend()
301 stats->stat[i].scale = FE_SCALE_COUNTER; tc90522s_get_frontend()
302 stats->stat[i].uvalue = val[i * 5] << 16 tc90522s_get_frontend()
311 stats->stat[i].scale = FE_SCALE_NOT_AVAILABLE; tc90522s_get_frontend()
314 stats->stat[i].scale = FE_SCALE_COUNTER; tc90522s_get_frontend()
315 stats->stat[i].uvalue = tc90522s_get_frontend()
317 stats->stat[i].uvalue *= 204 * 8; tc90522s_get_frontend()
421 stats->stat[0].scale = FE_SCALE_NOT_AVAILABLE; tc90522t_get_frontend()
448 stats->stat[0].svalue = cn >> 3; tc90522t_get_frontend()
449 stats->stat[0].scale = FE_SCALE_DECIBEL; tc90522t_get_frontend()
459 stats->stat[i].scale = FE_SCALE_NOT_AVAILABLE; tc90522t_get_frontend()
462 stats->stat[i].scale = FE_SCALE_COUNTER; tc90522t_get_frontend()
463 stats->stat[i].uvalue = val[i * 3] << 16 tc90522t_get_frontend()
472 stats->stat[i].scale = FE_SCALE_NOT_AVAILABLE; tc90522t_get_frontend()
475 stats->stat[i].scale = FE_SCALE_COUNTER; tc90522t_get_frontend()
476 stats->stat[i].uvalue = tc90522t_get_frontend()
478 stats->stat[i].uvalue *= 204 * 8; tc90522t_get_frontend()
/linux-4.4.14/drivers/net/hamradio/
H A Dscc.c337 scc->stat.nospace++; scc_notify()
349 scc->stat.rxerrs++; /* then count it as an error */ flush_rx_FIFO()
370 scc->stat.txints++; scc_txint()
397 scc->stat.tx_state = TXS_ACTIVE; scc_txint()
418 scc->stat.tx_state = TXS_NEWFRAME; /* next frame... */ scc_txint()
434 scc->stat.exints++; scc_exint()
494 if (scc->stat.tx_state == TXS_ACTIVE && (status & TxEOM)) scc_exint()
496 scc->stat.tx_under++; /* oops, an underrun! count 'em */ scc_exint()
519 scc->stat.rxints++; scc_rxint()
532 skb = dev_alloc_skb(scc->stat.bufsize); scc_rxint()
536 scc->stat.nospace++; scc_rxint()
546 if (skb->len >= scc->stat.bufsize) scc_rxint()
568 scc->stat.spints++; scc_spint()
577 scc->stat.rx_over++; /* count them */ scc_spint()
595 scc->stat.rxframes++; scc_spint()
599 scc->stat.rxerrs++; scc_spint()
1069 scc->stat.tx_state = TXS_IDLE2; scc_tx_done()
1078 scc->stat.tx_state = TXS_BUSY; scc_tx_done()
1128 if (scc->stat.tx_state == TXS_WAIT) /* maxkeyup or idle timeout */ t_dwait()
1131 scc->stat.tx_state = TXS_IDLE; t_dwait()
1136 scc->stat.tx_state = TXS_BUSY; t_dwait()
1197 if (scc->stat.tx_state == TXS_TIMEOUT) /* we had a timeout? */ t_tail()
1199 scc->stat.tx_state = TXS_WAIT; t_tail()
1204 scc->stat.tx_state = TXS_IDLE; t_tail()
1222 scc->stat.txerrs++; t_busy()
1223 scc->stat.tx_state = TXS_IDLE; t_busy()
1255 scc->stat.txerrs++; t_maxkeyup()
1256 scc->stat.tx_state = TXS_TIMEOUT; t_maxkeyup()
1276 scc->stat.tx_state = TXS_WAIT; t_idle()
1284 scc->stat.tx_state = TXS_IDLE; scc_init_timer()
1337 if (scc->stat.tx_state == 0) /* only switch baudrate on rx... ;-) */ scc_set_param()
1351 scc->stat.tx_state = TXS_BUSY; scc_set_param()
1645 if (skb->len > scc->stat.bufsize || skb->len < 2) { scc_net_tx()
1653 scc->stat.txframes++; scc_net_tx()
1681 if(scc->stat.tx_state == TXS_IDLE || scc->stat.tx_state == TXS_IDLE2) { scc_net_tx()
1682 scc->stat.tx_state = TXS_BUSY; scc_net_tx()
1854 scc->stat.bufsize = SCC_BUFSIZE; scc_net_ioctl()
1907 scc->stat.bufsize = memcfg.bufsize; scc_net_ioctl()
1911 if (!arg || copy_to_user(arg, &scc->stat, sizeof(scc->stat))) scc_net_ioctl()
1960 scc->dev_stat.rx_errors = scc->stat.rxerrs + scc->stat.rx_over; scc_net_get_stats()
1961 scc->dev_stat.tx_errors = scc->stat.txerrs + scc->stat.tx_under; scc_net_get_stats()
1962 scc->dev_stat.rx_fifo_errors = scc->stat.rx_over; scc_net_get_stats()
1963 scc->dev_stat.tx_fifo_errors = scc->stat.tx_under; scc_net_get_stats()
2021 const struct scc_stat *stat = &scc->stat; scc_net_seq_show() local
2042 stat->bufsize); scc_net_seq_show()
2044 stat->rxints, stat->txints, stat->exints, stat->spints); scc_net_seq_show()
2046 stat->rxframes, stat->rxerrs, stat->rx_over, scc_net_seq_show()
2047 stat->txframes, stat->txerrs, stat->tx_under, scc_net_seq_show()
2048 stat->nospace, stat->tx_state); scc_net_seq_show()
H A Dbaycom_epp.c178 unsigned char stat; member in struct:baycom_state
431 static int transmit(struct baycom_state *bc, int cnt, unsigned char stat) transmit() argument
437 if (bc->hdlctx.state == tx_tail && !(stat & EPP_PTTBIT)) transmit()
445 if (!(stat & EPP_DCDBIT)) { transmit()
652 unsigned char stat; epp_bh() local
664 if (pp->ops->epp_read_addr(pp, &stat, 1, 0) != 1) epp_bh()
666 bc->stat = stat; epp_bh()
667 bc->debug_vals.last_pllcorr = stat; epp_bh()
690 if (transmit(bc, cnt2, stat)) epp_bh()
695 if (pp->ops->epp_read_addr(pp, &stat, 1, 0) != 1) epp_bh()
697 bc->stat = stat; epp_bh()
700 switch (stat & (EPP_NTAEF|EPP_NTHF)) { epp_bh()
717 if (transmit(bc, cnt, stat)) epp_bh()
721 while ((stat & (EPP_NRAEF|EPP_NRHF)) != EPP_NRHF) { epp_bh()
722 switch (stat & (EPP_NRAEF|EPP_NRHF)) { epp_bh()
737 if (pp->ops->epp_read_addr(pp, &stat, 1, 0) != 1) epp_bh()
745 while (cnt > 0 && stat & EPP_NREF) { epp_bh()
749 if (pp->ops->epp_read_addr(pp, &stat, 1, 0) != 1) epp_bh()
835 unsigned char stat; epp_open() local
886 if (pp->ops->epp_read_addr(pp, &stat, 1, 0) != 1) epp_open()
888 if ((stat & (EPP_NRAEF|EPP_NRHF)) == EPP_NRHF) { epp_open()
899 if (pp->ops->epp_read_addr(pp, &stat, 1, 0) != 1) epp_open()
901 if (!(stat & EPP_NREF)) epp_open()
952 bc->stat = EPP_DCDBIT; epp_close()
1055 hi.data.cs.ptt = !!(bc->stat & EPP_PTTBIT); baycom_ioctl()
1056 hi.data.cs.dcd = !(bc->stat & EPP_DCDBIT); baycom_ioctl()
1065 hi.data.ocs.ptt = !!(bc->stat & EPP_PTTBIT); baycom_ioctl()
1066 hi.data.ocs.dcd = !(bc->stat & EPP_DCDBIT); baycom_ioctl()
/linux-4.4.14/drivers/scsi/pm8001/
H A Dpm8001_hwi.c1550 ts->stat = SAS_QUEUE_FULL; pm8001_work_fn()
1561 " done with event 0x%x resp 0x%x stat 0x%x but" pm8001_work_fn()
1563 t, pw->handler, ts->resp, ts->stat)); pm8001_work_fn()
1891 ts->stat = SAM_STAT_GOOD; mpi_ssp_completion()
1894 ts->stat = SAS_PROTO_RESPONSE; mpi_ssp_completion()
1906 ts->stat = SAS_ABORTED_TASK; mpi_ssp_completion()
1913 ts->stat = SAS_DATA_UNDERRUN; mpi_ssp_completion()
1922 ts->stat = SAS_PHY_DOWN; mpi_ssp_completion()
1928 ts->stat = SAS_OPEN_REJECT; mpi_ssp_completion()
1936 ts->stat = SAS_OPEN_REJECT; mpi_ssp_completion()
1943 ts->stat = SAS_OPEN_REJECT; mpi_ssp_completion()
1950 ts->stat = SAS_OPEN_REJECT; mpi_ssp_completion()
1957 ts->stat = SAS_OPEN_REJECT; mpi_ssp_completion()
1964 ts->stat = SAS_OPEN_REJECT; mpi_ssp_completion()
1975 ts->stat = SAS_OPEN_REJECT; mpi_ssp_completion()
1983 ts->stat = SAS_OPEN_REJECT; mpi_ssp_completion()
1990 ts->stat = SAS_OPEN_REJECT; mpi_ssp_completion()
1997 ts->stat = SAS_OPEN_REJECT; mpi_ssp_completion()
2004 ts->stat = SAS_NAK_R_ERR; mpi_ssp_completion()
2010 ts->stat = SAS_OPEN_REJECT; mpi_ssp_completion()
2016 ts->stat = SAS_OPEN_REJECT; mpi_ssp_completion()
2023 ts->stat = SAS_OPEN_REJECT; mpi_ssp_completion()
2029 ts->stat = SAS_OPEN_REJECT; mpi_ssp_completion()
2035 ts->stat = SAS_OPEN_REJECT; mpi_ssp_completion()
2045 ts->stat = SAS_OPEN_REJECT; mpi_ssp_completion()
2051 ts->stat = SAS_OPEN_REJECT; mpi_ssp_completion()
2057 ts->stat = SAS_OPEN_REJECT; mpi_ssp_completion()
2063 ts->stat = SAS_OPEN_REJECT; mpi_ssp_completion()
2071 ts->stat = SAS_OPEN_REJECT; mpi_ssp_completion()
2085 "stat 0x%x but aborted by upper layer!\n", mpi_ssp_completion()
2086 t, status, ts->resp, ts->stat)); mpi_ssp_completion()
2127 ts->stat = SAS_DATA_OVERRUN; mpi_ssp_event()
2141 ts->stat = SAS_OPEN_REJECT; mpi_ssp_event()
2149 ts->stat = SAS_OPEN_REJECT; mpi_ssp_event()
2156 ts->stat = SAS_OPEN_REJECT; mpi_ssp_event()
2163 ts->stat = SAS_OPEN_REJECT; mpi_ssp_event()
2170 ts->stat = SAS_OPEN_REJECT; mpi_ssp_event()
2181 ts->stat = SAS_OPEN_REJECT; mpi_ssp_event()
2189 ts->stat = SAS_OPEN_REJECT; mpi_ssp_event()
2196 ts->stat = SAS_OPEN_REJECT; mpi_ssp_event()
2203 ts->stat = SAS_OPEN_REJECT; mpi_ssp_event()
2210 ts->stat = SAS_NAK_R_ERR; mpi_ssp_event()
2221 ts->stat = SAS_DATA_OVERRUN; mpi_ssp_event()
2227 ts->stat = SAS_DATA_OVERRUN; mpi_ssp_event()
2233 ts->stat = SAS_DATA_OVERRUN; mpi_ssp_event()
2239 ts->stat = SAS_DATA_OVERRUN; mpi_ssp_event()
2245 ts->stat = SAS_DATA_OVERRUN; mpi_ssp_event()
2251 ts->stat = SAS_DATA_OVERRUN; mpi_ssp_event()
2262 ts->stat = SAS_DATA_OVERRUN; mpi_ssp_event()
2273 "stat 0x%x but aborted by upper layer!\n", mpi_ssp_event()
2274 t, event, ts->resp, ts->stat)); mpi_ssp_event()
2392 ts->stat = SAM_STAT_GOOD; mpi_sata_completion()
2409 ts->stat = SAS_PROTO_RESPONSE; mpi_sata_completion()
2445 ts->stat = SAS_ABORTED_TASK; mpi_sata_completion()
2455 ts->stat = SAS_DATA_UNDERRUN; mpi_sata_completion()
2464 ts->stat = SAS_PHY_DOWN; mpi_sata_completion()
2470 ts->stat = SAS_INTERRUPTED; mpi_sata_completion()
2476 ts->stat = SAS_OPEN_REJECT; mpi_sata_completion()
2484 ts->stat = SAS_OPEN_REJECT; mpi_sata_completion()
2491 ts->stat = SAS_OPEN_REJECT; mpi_sata_completion()
2498 ts->stat = SAS_OPEN_REJECT; mpi_sata_completion()
2505 ts->stat = SAS_DEV_NO_RESPONSE; mpi_sata_completion()
2511 ts->stat = SAS_QUEUE_FULL; mpi_sata_completion()
2520 ts->stat = SAS_OPEN_REJECT; mpi_sata_completion()
2527 ts->stat = SAS_QUEUE_FULL; mpi_sata_completion()
2537 ts->stat = SAS_OPEN_REJECT; mpi_sata_completion()
2545 ts->stat = SAS_DEV_NO_RESPONSE; mpi_sata_completion()
2551 ts->stat = SAS_QUEUE_FULL; mpi_sata_completion()
2560 ts->stat = SAS_OPEN_REJECT; mpi_sata_completion()
2567 ts->stat = SAS_NAK_R_ERR; mpi_sata_completion()
2573 ts->stat = SAS_NAK_R_ERR; mpi_sata_completion()
2579 ts->stat = SAS_ABORTED_TASK; mpi_sata_completion()
2585 ts->stat = SAS_DEV_NO_RESPONSE; mpi_sata_completion()
2591 ts->stat = SAS_DATA_UNDERRUN; mpi_sata_completion()
2597 ts->stat = SAS_OPEN_TO; mpi_sata_completion()
2603 ts->stat = SAS_DEV_NO_RESPONSE; mpi_sata_completion()
2609 ts->stat = SAS_DEV_NO_RESPONSE; mpi_sata_completion()
2614 ts->stat = SAS_QUEUE_FULL; mpi_sata_completion()
2623 ts->stat = SAS_DEV_NO_RESPONSE; mpi_sata_completion()
2629 ts->stat = SAS_DEV_NO_RESPONSE; mpi_sata_completion()
2634 ts->stat = SAS_QUEUE_FULL; mpi_sata_completion()
2643 ts->stat = SAS_OPEN_REJECT; mpi_sata_completion()
2651 ts->stat = SAS_DEV_NO_RESPONSE; mpi_sata_completion()
2662 " resp 0x%x stat 0x%x but aborted by upper layer!\n", mpi_sata_completion()
2663 t, status, ts->resp, ts->stat)); mpi_sata_completion()
2725 ts->stat = SAS_DATA_OVERRUN; mpi_sata_event()
2734 ts->stat = SAS_INTERRUPTED; mpi_sata_event()
2740 ts->stat = SAS_OPEN_REJECT; mpi_sata_event()
2748 ts->stat = SAS_OPEN_REJECT; mpi_sata_event()
2755 ts->stat = SAS_OPEN_REJECT; mpi_sata_event()
2762 ts->stat = SAS_OPEN_REJECT; mpi_sata_event()
2769 ts->stat = SAS_DEV_NO_RESPONSE; mpi_sata_event()
2775 ts->stat = SAS_QUEUE_FULL; mpi_sata_event()
2784 ts->stat = SAS_OPEN_REJECT; mpi_sata_event()
2792 ts->stat = SAS_OPEN_REJECT; mpi_sata_event()
2799 ts->stat = SAS_OPEN_REJECT; mpi_sata_event()
2806 ts->stat = SAS_NAK_R_ERR; mpi_sata_event()
2812 ts->stat = SAS_NAK_R_ERR; mpi_sata_event()
2818 ts->stat = SAS_DATA_UNDERRUN; mpi_sata_event()
2824 ts->stat = SAS_OPEN_TO; mpi_sata_event()
2830 ts->stat = SAS_OPEN_TO; mpi_sata_event()
2836 ts->stat = SAS_OPEN_TO; mpi_sata_event()
2842 ts->stat = SAS_OPEN_TO; mpi_sata_event()
2848 ts->stat = SAS_OPEN_TO; mpi_sata_event()
2854 ts->stat = SAS_OPEN_TO; mpi_sata_event()
2864 ts->stat = SAS_OPEN_TO; mpi_sata_event()
2871 ts->stat = SAS_OPEN_TO; mpi_sata_event()
2882 " resp 0x%x stat 0x%x but aborted by upper layer!\n", mpi_sata_event()
2883 t, event, ts->resp, ts->stat)); mpi_sata_event()
2924 ts->stat = SAM_STAT_GOOD; mpi_smp_completion()
2932 ts->stat = SAS_ABORTED_TASK; mpi_smp_completion()
2939 ts->stat = SAS_DATA_OVERRUN; mpi_smp_completion()
2947 ts->stat = SAS_PHY_DOWN; mpi_smp_completion()
2953 ts->stat = SAM_STAT_BUSY; mpi_smp_completion()
2959 ts->stat = SAM_STAT_BUSY; mpi_smp_completion()
2965 ts->stat = SAM_STAT_BUSY; mpi_smp_completion()
2971 ts->stat = SAS_OPEN_REJECT; mpi_smp_completion()
2978 ts->stat = SAS_OPEN_REJECT; mpi_smp_completion()
2985 ts->stat = SAS_OPEN_REJECT; mpi_smp_completion()
2992 ts->stat = SAS_OPEN_REJECT; mpi_smp_completion()
3002 ts->stat = SAS_OPEN_REJECT; mpi_smp_completion()
3010 ts->stat = SAS_OPEN_REJECT; mpi_smp_completion()
3017 ts->stat = SAS_OPEN_REJECT; mpi_smp_completion()
3024 ts->stat = SAS_DEV_NO_RESPONSE; mpi_smp_completion()
3030 ts->stat = SAS_OPEN_REJECT; mpi_smp_completion()
3037 ts->stat = SAS_QUEUE_FULL; mpi_smp_completion()
3043 ts->stat = SAS_OPEN_REJECT; mpi_smp_completion()
3050 ts->stat = SAS_DEV_NO_RESPONSE; mpi_smp_completion()
3056 ts->stat = SAS_OPEN_REJECT; mpi_smp_completion()
3063 ts->stat = SAS_OPEN_REJECT; mpi_smp_completion()
3070 ts->stat = SAS_DEV_NO_RESPONSE; mpi_smp_completion()
3082 "stat 0x%x but aborted by upper layer!\n", mpi_smp_completion()
3083 t, status, ts->resp, ts->stat)); mpi_smp_completion()
3747 ts->stat = SAM_STAT_GOOD; pm8001_mpi_task_abort_resp()
4427 ts->stat = SAM_STAT_GOOD; pm8001_chip_sata_req()
4437 " stat 0x%x but aborted by upper layer " pm8001_chip_sata_req()
4438 "\n", task, ts->resp, ts->stat)); pm8001_chip_sata_req()
4631 * @stat: stat.
H A Dpm80xx_hwi.c1565 ts->stat = SAM_STAT_GOOD; mpi_ssp_completion()
1568 ts->stat = SAS_PROTO_RESPONSE; mpi_ssp_completion()
1580 ts->stat = SAS_ABORTED_TASK; mpi_ssp_completion()
1588 ts->stat = SAS_DATA_UNDERRUN; mpi_ssp_completion()
1597 ts->stat = SAS_PHY_DOWN; mpi_ssp_completion()
1603 ts->stat = SAS_OPEN_REJECT; mpi_ssp_completion()
1611 ts->stat = SAS_OPEN_REJECT; mpi_ssp_completion()
1618 ts->stat = SAS_OPEN_REJECT; mpi_ssp_completion()
1625 ts->stat = SAS_OPEN_REJECT; mpi_ssp_completion()
1632 ts->stat = SAS_OPEN_REJECT; mpi_ssp_completion()
1639 ts->stat = SAS_OPEN_REJECT; mpi_ssp_completion()
1651 ts->stat = SAS_OPEN_REJECT; mpi_ssp_completion()
1662 ts->stat = SAS_OPEN_REJECT; mpi_ssp_completion()
1669 ts->stat = SAS_OPEN_REJECT; mpi_ssp_completion()
1676 ts->stat = SAS_OPEN_REJECT; mpi_ssp_completion()
1683 ts->stat = SAS_OPEN_REJECT; mpi_ssp_completion()
1690 ts->stat = SAS_NAK_R_ERR; mpi_ssp_completion()
1696 ts->stat = SAS_OPEN_REJECT; mpi_ssp_completion()
1702 ts->stat = SAS_OPEN_REJECT; mpi_ssp_completion()
1709 ts->stat = SAS_OPEN_REJECT; mpi_ssp_completion()
1715 ts->stat = SAS_OPEN_REJECT; mpi_ssp_completion()
1721 ts->stat = SAS_OPEN_REJECT; mpi_ssp_completion()
1731 ts->stat = SAS_OPEN_REJECT; mpi_ssp_completion()
1737 ts->stat = SAS_OPEN_REJECT; mpi_ssp_completion()
1743 ts->stat = SAS_OPEN_REJECT; mpi_ssp_completion()
1749 ts->stat = SAS_OPEN_REJECT; mpi_ssp_completion()
1757 ts->stat = SAS_OPEN_REJECT; mpi_ssp_completion()
1771 "stat 0x%x but aborted by upper layer!\n", mpi_ssp_completion()
1772 t, status, ts->resp, ts->stat)); mpi_ssp_completion()
1812 ts->stat = SAS_DATA_OVERRUN; mpi_ssp_event()
1826 ts->stat = SAS_OPEN_REJECT; mpi_ssp_event()
1833 ts->stat = SAS_OPEN_REJECT; mpi_ssp_event()
1840 ts->stat = SAS_OPEN_REJECT; mpi_ssp_event()
1847 ts->stat = SAS_OPEN_REJECT; mpi_ssp_event()
1859 ts->stat = SAS_OPEN_REJECT; mpi_ssp_event()
1870 ts->stat = SAS_OPEN_REJECT; mpi_ssp_event()
1877 ts->stat = SAS_OPEN_REJECT; mpi_ssp_event()
1884 ts->stat = SAS_OPEN_REJECT; mpi_ssp_event()
1891 ts->stat = SAS_OPEN_REJECT; mpi_ssp_event()
1898 ts->stat = SAS_NAK_R_ERR; mpi_ssp_event()
1909 ts->stat = SAS_DATA_OVERRUN; mpi_ssp_event()
1915 ts->stat = SAS_DATA_OVERRUN; mpi_ssp_event()
1921 ts->stat = SAS_DATA_OVERRUN; mpi_ssp_event()
1927 ts->stat = SAS_DATA_OVERRUN; mpi_ssp_event()
1933 ts->stat = SAS_DATA_OVERRUN; mpi_ssp_event()
1939 ts->stat = SAS_DATA_OVERRUN; mpi_ssp_event()
1946 ts->stat = SAS_DATA_OVERRUN; mpi_ssp_event()
1957 ts->stat = SAS_DATA_OVERRUN; mpi_ssp_event()
1968 "stat 0x%x but aborted by upper layer!\n", mpi_ssp_event()
1969 t, event, ts->resp, ts->stat)); mpi_ssp_event()
2087 ts->stat = SAM_STAT_GOOD; mpi_sata_completion()
2104 ts->stat = SAS_PROTO_RESPONSE; mpi_sata_completion()
2140 ts->stat = SAS_ABORTED_TASK; mpi_sata_completion()
2150 ts->stat = SAS_DATA_UNDERRUN; mpi_sata_completion()
2159 ts->stat = SAS_PHY_DOWN; mpi_sata_completion()
2165 ts->stat = SAS_INTERRUPTED; mpi_sata_completion()
2171 ts->stat = SAS_OPEN_REJECT; mpi_sata_completion()
2178 ts->stat = SAS_OPEN_REJECT; mpi_sata_completion()
2185 ts->stat = SAS_OPEN_REJECT; mpi_sata_completion()
2192 ts->stat = SAS_OPEN_REJECT; mpi_sata_completion()
2204 ts->stat = SAS_DEV_NO_RESPONSE; mpi_sata_completion()
2210 ts->stat = SAS_QUEUE_FULL; mpi_sata_completion()
2219 ts->stat = SAS_OPEN_REJECT; mpi_sata_completion()
2226 ts->stat = SAS_QUEUE_FULL; mpi_sata_completion()
2235 ts->stat = SAS_OPEN_REJECT; mpi_sata_completion()
2242 ts->stat = SAS_DEV_NO_RESPONSE; mpi_sata_completion()
2248 ts->stat = SAS_QUEUE_FULL; mpi_sata_completion()
2257 ts->stat = SAS_OPEN_REJECT; mpi_sata_completion()
2264 ts->stat = SAS_NAK_R_ERR; mpi_sata_completion()
2270 ts->stat = SAS_NAK_R_ERR; mpi_sata_completion()
2276 ts->stat = SAS_ABORTED_TASK; mpi_sata_completion()
2282 ts->stat = SAS_DEV_NO_RESPONSE; mpi_sata_completion()
2288 ts->stat = SAS_DATA_UNDERRUN; mpi_sata_completion()
2294 ts->stat = SAS_OPEN_TO; mpi_sata_completion()
2300 ts->stat = SAS_DEV_NO_RESPONSE; mpi_sata_completion()
2306 ts->stat = SAS_DEV_NO_RESPONSE; mpi_sata_completion()
2311 ts->stat = SAS_QUEUE_FULL; mpi_sata_completion()
2320 ts->stat = SAS_DEV_NO_RESPONSE; mpi_sata_completion()
2326 ts->stat = SAS_DEV_NO_RESPONSE; mpi_sata_completion()
2331 ts->stat = SAS_QUEUE_FULL; mpi_sata_completion()
2340 ts->stat = SAS_OPEN_REJECT; mpi_sata_completion()
2348 ts->stat = SAS_DEV_NO_RESPONSE; mpi_sata_completion()
2359 " resp 0x%x stat 0x%x but aborted by upper layer!\n", mpi_sata_completion()
2360 t, status, ts->resp, ts->stat)); mpi_sata_completion()
2421 ts->stat = SAS_DATA_OVERRUN; mpi_sata_event()
2430 ts->stat = SAS_INTERRUPTED; mpi_sata_event()
2436 ts->stat = SAS_OPEN_REJECT; mpi_sata_event()
2443 ts->stat = SAS_OPEN_REJECT; mpi_sata_event()
2450 ts->stat = SAS_OPEN_REJECT; mpi_sata_event()
2457 ts->stat = SAS_OPEN_REJECT; mpi_sata_event()
2469 ts->stat = SAS_DEV_NO_RESPONSE; mpi_sata_event()
2475 ts->stat = SAS_QUEUE_FULL; mpi_sata_event()
2484 ts->stat = SAS_OPEN_REJECT; mpi_sata_event()
2491 ts->stat = SAS_OPEN_REJECT; mpi_sata_event()
2498 ts->stat = SAS_OPEN_REJECT; mpi_sata_event()
2505 ts->stat = SAS_NAK_R_ERR; mpi_sata_event()
2511 ts->stat = SAS_NAK_R_ERR; mpi_sata_event()
2517 ts->stat = SAS_DATA_UNDERRUN; mpi_sata_event()
2523 ts->stat = SAS_OPEN_TO; mpi_sata_event()
2529 ts->stat = SAS_OPEN_TO; mpi_sata_event()
2535 ts->stat = SAS_OPEN_TO; mpi_sata_event()
2541 ts->stat = SAS_OPEN_TO; mpi_sata_event()
2547 ts->stat = SAS_OPEN_TO; mpi_sata_event()
2553 ts->stat = SAS_OPEN_TO; mpi_sata_event()
2563 ts->stat = SAS_OPEN_TO; mpi_sata_event()
2570 ts->stat = SAS_OPEN_TO; mpi_sata_event()
2577 ts->stat = SAS_OPEN_TO; mpi_sata_event()
2584 ts->stat = SAS_OPEN_TO; mpi_sata_event()
2595 " resp 0x%x stat 0x%x but aborted by upper layer!\n", mpi_sata_event()
2596 t, event, ts->resp, ts->stat)); mpi_sata_event()
2639 ts->stat = SAM_STAT_GOOD; mpi_smp_completion()
2662 ts->stat = SAS_ABORTED_TASK; mpi_smp_completion()
2669 ts->stat = SAS_DATA_OVERRUN; mpi_smp_completion()
2677 ts->stat = SAS_PHY_DOWN; mpi_smp_completion()
2683 ts->stat = SAM_STAT_BUSY; mpi_smp_completion()
2689 ts->stat = SAM_STAT_BUSY; mpi_smp_completion()
2695 ts->stat = SAM_STAT_BUSY; mpi_smp_completion()
2701 ts->stat = SAS_OPEN_REJECT; mpi_smp_completion()
2708 ts->stat = SAS_OPEN_REJECT; mpi_smp_completion()
2715 ts->stat = SAS_OPEN_REJECT; mpi_smp_completion()
2727 ts->stat = SAS_OPEN_REJECT; mpi_smp_completion()
2737 ts->stat = SAS_OPEN_REJECT; mpi_smp_completion()
2744 ts->stat = SAS_OPEN_REJECT; mpi_smp_completion()
2751 ts->stat = SAS_OPEN_REJECT; mpi_smp_completion()
2758 ts->stat = SAS_DEV_NO_RESPONSE; mpi_smp_completion()
2764 ts->stat = SAS_OPEN_REJECT; mpi_smp_completion()
2771 ts->stat = SAS_QUEUE_FULL; mpi_smp_completion()
2777 ts->stat = SAS_OPEN_REJECT; mpi_smp_completion()
2784 ts->stat = SAS_DEV_NO_RESPONSE; mpi_smp_completion()
2790 ts->stat = SAS_OPEN_REJECT; mpi_smp_completion()
2797 ts->stat = SAS_OPEN_REJECT; mpi_smp_completion()
2804 ts->stat = SAS_DEV_NO_RESPONSE; mpi_smp_completion()
2816 "stat 0x%x but aborted by upper layer!\n", mpi_smp_completion()
2817 t, status, ts->resp, ts->stat)); mpi_smp_completion()
4314 ts->stat = SAM_STAT_GOOD; pm80xx_chip_sata_req()
4324 " stat 0x%x but aborted by upper layer " pm80xx_chip_sata_req()
4325 "\n", task, ts->resp, ts->stat)); pm80xx_chip_sata_req()
4529 * @stat: stat.
/linux-4.4.14/sound/pci/pcxhr/
H A Dpcxhr_hwdep.c63 if ((rmh.stat[0] & MASK_FIRST_FIELD) < mgr->playback_chips * 2) pcxhr_init_board()
66 if (((rmh.stat[0] >> (2 * FIELD_SIZE)) & MASK_FIRST_FIELD) < pcxhr_init_board()
70 if ((rmh.stat[1] & 0x5F) < card_streams) pcxhr_init_board()
73 if (((rmh.stat[1] >> 7) & 0x5F) < PCXHR_PLAYBACK_STREAMS) pcxhr_init_board()
77 rmh.stat[2], rmh.stat[3]); pcxhr_init_board()
89 "PCXHR DSP version is %d.%d.%d\n", (rmh.stat[0]>>16)&0xff, pcxhr_init_board()
90 (rmh.stat[0]>>8)&0xff, rmh.stat[0]&0xff); pcxhr_init_board()
91 mgr->dsp_version = rmh.stat[0]; pcxhr_init_board()
114 if ((rmh.stat[1] & REG_STATUS_OPT_DAUGHTER_MASK) == pcxhr_sub_init()
/linux-4.4.14/drivers/net/ethernet/aeroflex/
H A Dgreth.c268 greth_write_bd(&rx_bd[i].stat, GRETH_BD_EN | GRETH_BD_IE); greth_init_rings()
295 greth_write_bd(&rx_bd[i].stat, GRETH_BD_EN | GRETH_BD_IE); greth_init_rings()
318 greth_write_bd(&tx_bd[i].stat, 0); greth_init_rings()
321 greth_write_bd(&rx_bd[GRETH_RXBD_NUM - 1].stat, greth_init_rings()
322 greth_read_bd(&rx_bd[GRETH_RXBD_NUM - 1].stat) | GRETH_BD_WR); greth_init_rings()
446 greth_write_bd(&bdp->stat, status); greth_start_xmit()
509 greth_write_bd(&bdp->stat, status); greth_start_xmit_gbit()
540 greth_write_bd(&bdp->stat, status); greth_start_xmit_gbit()
557 greth_write_bd(&bdp->stat, greth_start_xmit_gbit()
558 greth_read_bd(&bdp->stat) | GRETH_BD_EN); greth_start_xmit_gbit()
573 greth_read_bd(&bdp->stat) & GRETH_BD_LEN, greth_start_xmit_gbit()
575 greth_write_bd(&bdp->stat, 0); greth_start_xmit_gbit()
625 u32 stat; greth_clean_tx() local
633 stat = greth_read_bd(&bdp->stat); greth_clean_tx()
635 if (unlikely(stat & GRETH_BD_EN)) greth_clean_tx()
642 if (unlikely(stat & GRETH_TXBD_STATUS)) { greth_clean_tx()
644 if (stat & GRETH_TXBD_ERR_AL) greth_clean_tx()
646 if (stat & GRETH_TXBD_ERR_UE) greth_clean_tx()
660 static inline void greth_update_tx_stats(struct net_device *dev, u32 stat) greth_update_tx_stats() argument
663 if (unlikely(stat & GRETH_TXBD_STATUS)) { greth_update_tx_stats()
665 if (stat & GRETH_TXBD_ERR_AL) greth_update_tx_stats()
667 if (stat & GRETH_TXBD_ERR_UE) greth_update_tx_stats()
669 if (stat & GRETH_TXBD_ERR_LC) greth_update_tx_stats()
680 u32 stat; greth_clean_tx_gbit() local
698 stat = greth_read_bd(&bdp_last_frag->stat); greth_clean_tx_gbit()
700 if (stat & GRETH_BD_EN) greth_clean_tx_gbit()
705 greth_update_tx_stats(dev, stat); greth_clean_tx_gbit()
758 status = greth_read_bd(&bdp->stat); greth_rx()
824 greth_write_bd(&bdp->stat, status); greth_rx()
874 status = greth_read_bd(&bdp->stat); greth_rx_gbit()
961 greth_write_bd(&bdp->stat, status); greth_rx_gbit()
/linux-4.4.14/arch/xtensa/include/uapi/asm/
H A Dstat.h2 * include/asm-xtensa/stat.h
16 struct stat { struct
/linux-4.4.14/arch/sparc/include/uapi/asm/
H A Dstat.h8 struct stat { struct
51 struct stat { struct
/linux-4.4.14/drivers/bluetooth/
H A Dbt3c_cs.c210 info->hdev->stat.byte_tx += len; bt3c_write_wakeup()
233 info->hdev->stat.byte_rx++; bt3c_receive()
272 info->hdev->stat.err_rx++; bt3c_receive()
350 int stat = bt3c_read(iobase, 0x7001); bt3c_interrupt() local
352 if ((stat & 0xff) == 0x7f) { bt3c_interrupt()
353 BT_ERR("Very strange (stat=0x%04x)", stat); bt3c_interrupt()
354 } else if ((stat & 0xff) != 0xff) { bt3c_interrupt()
355 if (stat & 0x0020) { bt3c_interrupt()
360 if (stat & 0x0001) bt3c_interrupt()
362 if (stat & 0x0002) { bt3c_interrupt()
416 hdev->stat.cmd_tx++; bt3c_hci_send_frame()
419 hdev->stat.acl_tx++; bt3c_hci_send_frame()
422 hdev->stat.sco_tx++; bt3c_hci_send_frame()
H A Dbtsdio.c98 data->hdev->stat.byte_tx += skb->len; btsdio_tx_packet()
118 data->hdev->stat.err_tx++; btsdio_work()
159 data->hdev->stat.byte_rx += len; btsdio_rx_packet()
184 data->hdev->stat.err_rx++; btsdio_interrupt()
257 hdev->stat.cmd_tx++; btsdio_send_frame()
261 hdev->stat.acl_tx++; btsdio_send_frame()
265 hdev->stat.sco_tx++; btsdio_send_frame()
/linux-4.4.14/arch/powerpc/platforms/powermac/
H A Dnvram.c281 int stat; sm_erase_bank() local
297 stat = in_8(base); sm_erase_bank()
298 } while (!(stat & SM_FLASH_STATUS_DONE)); sm_erase_bank()
312 int i, stat = 0; sm_write_bank() local
330 stat = in_8(base); sm_write_bank()
331 } while (!(stat & SM_FLASH_STATUS_DONE)); sm_write_bank()
332 if (!(stat & SM_FLASH_STATUS_DONE)) sm_write_bank()
346 int stat = 0; amd_erase_bank() local
376 stat = in_8(base) ^ in_8(base); amd_erase_bank()
377 } while (stat != 0); amd_erase_bank()
392 int i, stat = 0; amd_write_bank() local
418 stat = in_8(base) ^ in_8(base); amd_write_bank()
419 } while (stat != 0); amd_write_bank()
420 if (stat != 0) amd_write_bank()
/linux-4.4.14/arch/ia64/sn/kernel/sn2/
H A Dsn2_smp.c482 struct ptc_stats *stat; sn2_ptc_seq_show() local
494 stat = &per_cpu(ptcstats, cpu); sn2_ptc_seq_show()
495 seq_printf(file, "cpu %d %ld %ld %ld %ld %ld %ld %ld %ld %ld %ld %ld %ld\n", cpu, stat->ptc_l, sn2_ptc_seq_show()
496 stat->change_rid, stat->shub_ptc_flushes, stat->nodes_flushed, sn2_ptc_seq_show()
497 stat->deadlocks, sn2_ptc_seq_show()
498 1000 * stat->lock_itc_clocks / per_cpu(ia64_cpu_info, cpu).cyc_per_usec, sn2_ptc_seq_show()
499 1000 * stat->shub_itc_clocks / per_cpu(ia64_cpu_info, cpu).cyc_per_usec, sn2_ptc_seq_show()
500 1000 * stat->shub_itc_clocks_max / per_cpu(ia64_cpu_info, cpu).cyc_per_usec, sn2_ptc_seq_show()
501 stat->shub_ptc_flushes_not_my_mm, sn2_ptc_seq_show()
502 stat->deadlocks2, sn2_ptc_seq_show()
503 stat->shub_ipi_flushes, sn2_ptc_seq_show()
504 1000 * stat->shub_ipi_flushes_itc_clocks / per_cpu(ia64_cpu_info, cpu).cyc_per_usec); sn2_ptc_seq_show()
/linux-4.4.14/drivers/md/bcache/
H A Dstats.c56 #define var(stat) (s->stat >> 16) SHOW()
130 static void scale_stat(unsigned long *stat) scale_stat() argument
132 *stat = ewma_add(*stat, 0, accounting_weight, 0); scale_stat()
/linux-4.4.14/drivers/media/pci/pt3/
H A Dpt3_dma.c37 u32 stat; pt3_stop_dma() local
41 stat = ioread32(pt3->regs[0] + base + OFST_STATUS); pt3_stop_dma()
42 if (!(stat & 0x01)) pt3_stop_dma()
47 stat = ioread32(pt3->regs[0] + base + OFST_STATUS); pt3_stop_dma()
48 if (!(stat & 0x01)) pt3_stop_dma()
/linux-4.4.14/drivers/media/usb/dvb-usb/
H A Ddtt200u-fe.c17 enum fe_status stat; member in struct:dtt200u_fe_state
24 enum fe_status *stat) dtt200u_fe_read_status()
33 *stat = FE_HAS_SIGNAL | FE_HAS_CARRIER | dtt200u_fe_read_status()
37 *stat = FE_TIMEDOUT; /* during set_frontend */ dtt200u_fe_read_status()
41 *stat = 0; dtt200u_fe_read_status()
23 dtt200u_fe_read_status(struct dvb_frontend *fe, enum fe_status *stat) dtt200u_fe_read_status() argument
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb3/
H A Dael1002.c116 unsigned int stat, data; ael_i2c_rd() local
125 err = t3_mdio_read(phy, MDIO_MMD_PMAPMD, AEL_I2C_STAT, &stat); ael_i2c_rd()
128 if ((stat & 3) == 1) { ael_i2c_rd()
364 unsigned int stat; ael2005_get_module_type() local
366 v = t3_mdio_read(phy, MDIO_MMD_PMAPMD, AEL2005_GPIO_CTRL, &stat); ael2005_get_module_type()
370 if (stat & (1 << 8)) /* module absent */ ael2005_get_module_type()
456 unsigned int stat; ael2005_intr_handler() local
459 ret = t3_mdio_read(phy, MDIO_MMD_PMAPMD, AEL2005_GPIO_STAT, &stat); ael2005_intr_handler()
463 if (stat & AEL2005_MODDET_IRQ) { ael2005_intr_handler()
607 unsigned int stat; ael2020_get_module_type() local
609 v = t3_mdio_read(phy, MDIO_MMD_PMAPMD, AEL2020_GPIO_STAT, &stat); ael2020_get_module_type()
613 if (stat & (0x1 << (AEL2020_GPIO_MODDET*4))) { ael2020_get_module_type()
699 unsigned int stat; ael2020_intr_clear() local
700 int err = t3_mdio_read(phy, MDIO_MMD_PMAPMD, AEL2020_GPIO_INTR, &stat); ael2020_intr_clear()
767 unsigned int stat; ael2020_intr_handler() local
770 ret = t3_mdio_read(phy, MDIO_MMD_PMAPMD, AEL2020_GPIO_INTR, &stat); ael2020_intr_handler()
774 if (stat & (0x1 << AEL2020_GPIO_MODDET)) { ael2020_intr_handler()
873 unsigned int stat; t3_qt2045_phy_prep() local
884 !t3_mdio_read(phy, MDIO_MMD_PMAPMD, MDIO_STAT1, &stat) && t3_qt2045_phy_prep()
885 stat == 0xffff) t3_qt2045_phy_prep()
/linux-4.4.14/drivers/block/
H A Dhd.c206 static void dump_status(const char *msg, unsigned int stat) dump_status() argument
213 printk("%s: %s: status=0x%02x { ", name, msg, stat & 0xff); dump_status()
214 if (stat & BUSY_STAT) printk("Busy "); dump_status()
215 if (stat & READY_STAT) printk("DriveReady "); dump_status()
216 if (stat & WRERR_STAT) printk("WriteFault "); dump_status()
217 if (stat & SEEK_STAT) printk("SeekComplete "); dump_status()
218 if (stat & DRQ_STAT) printk("DataRequest "); dump_status()
219 if (stat & ECC_STAT) printk("CorrectedError "); dump_status()
220 if (stat & INDEX_STAT) printk("Index "); dump_status()
221 if (stat & ERR_STAT) printk("Error "); dump_status()
223 if ((stat & ERR_STAT) == 0) { dump_status()
244 printk("%s: %s: status=0x%02x.\n", name, msg, stat & 0xff); dump_status()
245 if ((stat & ERR_STAT) == 0) { dump_status()
402 unsigned int stat = inb_p(HD_STATUS); unexpected_hd_interrupt() local
404 if (stat & (BUSY_STAT|DRQ_STAT|ECC_STAT|ERR_STAT)) { unexpected_hd_interrupt()
405 dump_status("unexpected interrupt", stat); unexpected_hd_interrupt()
435 int stat; wait_DRQ() local
438 stat = inb_p(HD_STATUS); wait_DRQ()
439 if (stat & DRQ_STAT) wait_DRQ()
442 dump_status("wait_DRQ", stat); wait_DRQ()
/linux-4.4.14/arch/powerpc/platforms/cell/spufs/
H A Dfault.c79 unsigned long stat = ctx->csa.class_0_pending & CLASS0_INTR_MASK; spufs_handle_class0() local
81 if (likely(!stat)) spufs_handle_class0()
84 if (stat & CLASS0_DMA_ALIGNMENT_INTR) spufs_handle_class0()
88 if (stat & CLASS0_INVALID_DMA_COMMAND_INTR) spufs_handle_class0()
92 if (stat & CLASS0_SPU_ERROR_INTR) spufs_handle_class0()
/linux-4.4.14/arch/arm/mach-imx/
H A Dtzic.c131 u32 stat; tzic_handle_irq() local
138 stat = __raw_readl(tzic_base + TZIC_HIPND(i)) & tzic_handle_irq()
141 while (stat) { tzic_handle_irq()
143 irqofs = fls(stat) - 1; tzic_handle_irq()
145 stat &= ~(1 << irqofs); tzic_handle_irq()
/linux-4.4.14/drivers/media/pci/ddbridge/
H A Dddbridge-core.c84 int stat; ddb_i2c_cmd() local
89 stat = wait_event_timeout(i2c->wq, i2c->done == 1, HZ); ddb_i2c_cmd()
90 if (stat <= 0) { ddb_i2c_cmd()
172 int i, j, stat = 0; ddb_i2c_init() local
201 stat = i2c_add_adapter(adap); ddb_i2c_init()
202 if (stat) ddb_i2c_init()
205 if (stat) ddb_i2c_init()
211 return stat; ddb_i2c_init()
424 u32 idx, off, stat = output->stat; ddb_output_free() local
427 idx = (stat >> 11) & 0x1f; ddb_output_free()
428 off = (stat & 0x7ff) << 7; ddb_output_free()
446 u32 idx, off, stat = output->stat; ddb_output_write() local
449 idx = (stat >> 11) & 0x1f; ddb_output_write()
450 off = (stat & 0x7ff) << 7; ddb_output_write()
493 u32 idx, off, stat = input->stat; ddb_input_avail() local
496 idx = (stat >> 11) & 0x1f; ddb_input_avail()
497 off = (stat & 0x7ff) << 7; ddb_input_avail()
501 ddbwritel(input->stat, DMA_BUFFER_ACK(input->nr)); ddb_input_avail()
513 u32 idx, free, stat = input->stat; ddb_input_read() local
516 idx = (stat >> 11) & 0x1f; ddb_input_read()
904 int stat; ts_write() local
914 stat = ddb_output_write(output, buf, left); ts_write()
915 if (stat < 0) ts_write()
917 buf += stat; ts_write()
918 left -= stat; ts_write()
1001 input->stat = ddbreadl(DMA_BUFFER_CURRENT(input->nr)); input_tasklet()
1006 while (input->cbuf != ((input->stat >> 11) & 0x1f) input_tasklet()
1015 input->stat = ddbreadl(DMA_BUFFER_CURRENT(input->nr)); input_tasklet()
1033 output->stat = ddbreadl(DMA_BUFFER_CURRENT(output->nr + 8)); output_tasklet()
1566 int stat = 0; ddb_probe() local
1585 stat = -ENOMEM; ddb_probe()
1592 stat = pci_enable_msi(dev->pdev); ddb_probe()
1593 if (stat) { ddb_probe()
1600 stat = request_irq(dev->pdev->irq, irq_handler, ddb_probe()
1602 if (stat < 0) ddb_probe()
1633 if (stat == 0) ddb_probe()
/linux-4.4.14/drivers/net/wireless/mediatek/mt7601u/
H A Dtx.c79 mt7601u_tx_pktid_dec(struct mt7601u_dev *dev, struct mt76_tx_status *stat) mt7601u_tx_pktid_dec() argument
81 u8 req_rate = stat->pktid; mt7601u_tx_pktid_dec()
82 u8 eff_rate = stat->rate & 0x7; mt7601u_tx_pktid_dec()
87 stat->is_probe = true; mt7601u_tx_pktid_dec()
95 stat->retry = req_rate - eff_rate; mt7601u_tx_pktid_dec()
239 struct mt76_tx_status stat; mt7601u_tx_stat() local
244 stat = mt7601u_mac_fetch_tx_status(dev); mt7601u_tx_stat()
245 if (!stat.valid) mt7601u_tx_stat()
248 mt7601u_tx_pktid_dec(dev, &stat); mt7601u_tx_stat()
249 mt76_send_tx_status(dev, &stat); mt7601u_tx_stat()
H A Dmac.c151 struct mt76_tx_status stat = {}; mt7601u_mac_fetch_tx_status() local
155 stat.valid = !!(val & MT_TX_STAT_FIFO_VALID); mt7601u_mac_fetch_tx_status()
156 stat.success = !!(val & MT_TX_STAT_FIFO_SUCCESS); mt7601u_mac_fetch_tx_status()
157 stat.aggr = !!(val & MT_TX_STAT_FIFO_AGGR); mt7601u_mac_fetch_tx_status()
158 stat.ack_req = !!(val & MT_TX_STAT_FIFO_ACKREQ); mt7601u_mac_fetch_tx_status()
159 stat.pktid = MT76_GET(MT_TX_STAT_FIFO_PID_TYPE, val); mt7601u_mac_fetch_tx_status()
160 stat.wcid = MT76_GET(MT_TX_STAT_FIFO_WCID, val); mt7601u_mac_fetch_tx_status()
161 stat.rate = MT76_GET(MT_TX_STAT_FIFO_RATE, val); mt7601u_mac_fetch_tx_status()
163 return stat; mt7601u_mac_fetch_tx_status()
166 void mt76_send_tx_status(struct mt7601u_dev *dev, struct mt76_tx_status *stat) mt76_send_tx_status() argument
174 if (stat->wcid < ARRAY_SIZE(dev->wcid)) mt76_send_tx_status()
175 wcid = rcu_dereference(dev->wcid[stat->wcid]); mt76_send_tx_status()
183 mt76_mac_fill_tx_status(dev, &info, stat); mt76_send_tx_status()
/linux-4.4.14/arch/mips/kernel/
H A Dsmp-cps.c193 u32 access, stat, seq_state; boot_core() local
217 stat = read_cpc_co_stat_conf(); boot_core()
218 seq_state = stat & CPC_Cx_STAT_CONF_SEQSTATE_MSK; boot_core()
232 core, stat); boot_core()
413 unsigned stat; cps_cpu_die() local
442 stat = read_cpc_co_stat_conf(); cps_cpu_die()
443 stat &= CPC_Cx_STAT_CONF_SEQSTATE_MSK; cps_cpu_die()
445 } while (stat != CPC_Cx_STAT_CONF_SEQSTATE_D0 && cps_cpu_die()
446 stat != CPC_Cx_STAT_CONF_SEQSTATE_D2 && cps_cpu_die()
447 stat != CPC_Cx_STAT_CONF_SEQSTATE_U2); cps_cpu_die()
/linux-4.4.14/tools/power/cpupower/utils/helpers/
H A Dsysfs.c13 #include <sys/stat.h>
56 struct stat statbuf; sysfs_is_cpu_online()
60 if (stat(path, &statbuf) != 0) sysfs_is_cpu_online()
68 if (stat(path, &statbuf) != 0) sysfs_is_cpu_online()
109 struct stat statbuf; sysfs_idlestate_file_exists()
114 if (stat(path, &statbuf) != 0) sysfs_idlestate_file_exists()
358 struct stat statbuf; sysfs_get_idlestate_count()
363 if (stat(file, &statbuf) != 0 || !S_ISDIR(statbuf.st_mode)) sysfs_get_idlestate_count()
367 if (stat(file, &statbuf) != 0 || !S_ISDIR(statbuf.st_mode)) sysfs_get_idlestate_count()
370 while (stat(file, &statbuf) == 0 && S_ISDIR(statbuf.st_mode)) { sysfs_get_idlestate_count()
/linux-4.4.14/arch/cris/boot/tools/
H A Dbuild.c29 #include <sys/stat.h>
115 struct stat sb; main()
122 if (stat("/", &sb)) { main()
124 die("Couldn't stat /"); main()
129 if (stat(argv[4], &sb)) { main()
131 die("Couldn't stat root device."); main()
250 die ("Unable to stat 'system'"); main()
/linux-4.4.14/arch/mips/vdso/
H A Dgenvdso.c26 #include <sys/stat.h>
115 struct stat stat; map_vdso() local
126 if (fstat(fd, &stat) != 0) { map_vdso()
127 fprintf(stderr, "%s: Failed to stat '%s': %s\n", program_name, map_vdso()
132 addr = mmap(NULL, stat.st_size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, map_vdso()
183 *_size = stat.st_size; map_vdso()
/linux-4.4.14/arch/arm/plat-orion/
H A Dpcie.c77 u32 stat = readl(base + PCIE_STAT_OFF); orion_pcie_get_local_bus_nr() local
79 return (stat >> PCIE_STAT_BUS_OFFS) & PCIE_STAT_BUS_MASK; orion_pcie_get_local_bus_nr()
84 u32 stat; orion_pcie_set_local_bus_nr() local
86 stat = readl(base + PCIE_STAT_OFF); orion_pcie_set_local_bus_nr()
87 stat &= ~(PCIE_STAT_BUS_MASK << PCIE_STAT_BUS_OFFS); orion_pcie_set_local_bus_nr()
88 stat |= nr << PCIE_STAT_BUS_OFFS; orion_pcie_set_local_bus_nr()
89 writel(stat, base + PCIE_STAT_OFF); orion_pcie_set_local_bus_nr()
/linux-4.4.14/sound/isa/gus/
H A Dgus_uart.c31 unsigned char stat, data, byte; snd_gf1_interrupt_midi_in() local
37 stat = snd_gf1_uart_stat(gus); snd_gf1_interrupt_midi_in()
38 if (!(stat & 0x01)) { /* data in Rx FIFO? */ snd_gf1_interrupt_midi_in()
49 if (stat & 0x10) { /* framing error */ snd_gf1_interrupt_midi_in()
57 if (stat & 0x20) { snd_gf1_interrupt_midi_in()
106 snd_printk(KERN_DEBUG "write init - cmd = 0x%x, stat = 0x%x\n", gus->gf1.uart_cmd, snd_gf1_uart_stat(gus)); snd_gf1_uart_output_open()
133 "read init - enable = %i, cmd = 0x%x, stat = 0x%x\n", snd_gf1_uart_input_open()
/linux-4.4.14/drivers/spi/
H A Dspi-xlp.c233 u32 stat; xlp_spi_interrupt() local
235 stat = xlp_spi_reg_read(xspi, xspi->cs, XLP_SPI_STATUS) & xlp_spi_interrupt()
237 if (!stat) xlp_spi_interrupt()
240 if (stat & XLP_SPI_TX_INT) { xlp_spi_interrupt()
243 if (stat & XLP_SPI_TX_UF) xlp_spi_interrupt()
247 if (stat & XLP_SPI_RX_INT) { xlp_spi_interrupt()
250 if (stat & XLP_SPI_RX_OF) xlp_spi_interrupt()
255 xlp_spi_reg_write(xspi, xspi->cs, XLP_SPI_STATUS, stat); xlp_spi_interrupt()
256 if (stat & XLP_SPI_XFR_DONE) xlp_spi_interrupt()
/linux-4.4.14/drivers/mtd/spi-nor/
H A Dnxp-spifi.c70 u8 stat; nxp_spifi_wait_for_cmd() local
73 ret = readb_poll_timeout(spifi->io_base + SPIFI_STAT, stat, nxp_spifi_wait_for_cmd()
74 !(stat & SPIFI_STAT_CMD), 10, 30); nxp_spifi_wait_for_cmd()
83 u8 stat; nxp_spifi_reset() local
87 ret = readb_poll_timeout(spifi->io_base + SPIFI_STAT, stat, nxp_spifi_reset()
88 !(stat & SPIFI_STAT_RESET), 10, 30); nxp_spifi_reset()
113 u8 stat; nxp_spifi_set_memory_mode_on() local
120 ret = readb_poll_timeout(spifi->io_base + SPIFI_STAT, stat, nxp_spifi_set_memory_mode_on()
121 stat & SPIFI_STAT_MCINIT, 10, 30); nxp_spifi_set_memory_mode_on()
/linux-4.4.14/drivers/net/ethernet/cisco/enic/
H A Denic_ethtool.c34 #define ENIC_TX_STAT(stat) { \
35 .name = #stat, \
36 .index = offsetof(struct vnic_tx_stats, stat) / sizeof(u64) \
39 #define ENIC_RX_STAT(stat) { \
40 .name = #stat, \
41 .index = offsetof(struct vnic_rx_stats, stat) / sizeof(u64) \
44 #define ENIC_GEN_STAT(stat) { \
45 .name = #stat, \
46 .index = offsetof(struct vnic_gen_stats, stat) / sizeof(u64)\
/linux-4.4.14/fs/fscache/
H A Dinternal.h278 static inline void fscache_stat(atomic_t *stat) fscache_stat() argument
280 atomic_inc(stat); fscache_stat()
283 static inline void fscache_stat_d(atomic_t *stat) fscache_stat_d() argument
285 atomic_dec(stat); fscache_stat_d()
288 #define __fscache_stat(stat) (stat)
293 #define __fscache_stat(stat) (NULL)
294 #define fscache_stat(stat) do {} while (0)
295 #define fscache_stat_d(stat) do {} while (0)

Completed in 5442 milliseconds

12345678