/arch/arm/mach-ebsa110/include/mach/ |
D | entry-macro.S | 19 .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
|
/arch/mips/sgi-ip32/ |
D | crime.c | 44 unsigned long stat, addr; in crime_memerr_intr() local 47 stat = crime->mem_error_stat & CRIME_MEM_ERROR_STAT_MASK; in crime_memerr_intr() 50 printk("CRIME memory error at 0x%08lx ST 0x%08lx<", addr, stat); in crime_memerr_intr() 52 if (stat & CRIME_MEM_ERROR_INV) in crime_memerr_intr() 54 if (stat & CRIME_MEM_ERROR_ECC) { in crime_memerr_intr() 61 if (stat & CRIME_MEM_ERROR_MULTIPLE) { in crime_memerr_intr() 65 if (stat & CRIME_MEM_ERROR_HARD_ERR) { in crime_memerr_intr() 69 if (stat & CRIME_MEM_ERROR_SOFT_ERR) in crime_memerr_intr() 71 if (stat & CRIME_MEM_ERROR_CPU_ACCESS) in crime_memerr_intr() 73 if (stat & CRIME_MEM_ERROR_VICE_ACCESS) in crime_memerr_intr() [all …]
|
/arch/powerpc/kvm/ |
D | timing.h | 58 vcpu->stat.ext_intr_exits++; in kvmppc_account_exit_stat() 61 vcpu->stat.dec_exits++; in kvmppc_account_exit_stat() 64 vcpu->stat.emulated_inst_exits++; in kvmppc_account_exit_stat() 67 vcpu->stat.dsi_exits++; in kvmppc_account_exit_stat() 70 vcpu->stat.isi_exits++; in kvmppc_account_exit_stat() 73 vcpu->stat.syscall_exits++; in kvmppc_account_exit_stat() 76 vcpu->stat.dtlb_real_miss_exits++; in kvmppc_account_exit_stat() 79 vcpu->stat.dtlb_virt_miss_exits++; in kvmppc_account_exit_stat() 82 vcpu->stat.mmio_exits++; in kvmppc_account_exit_stat() 85 vcpu->stat.itlb_real_miss_exits++; in kvmppc_account_exit_stat() [all …]
|
/arch/parisc/hpux/ |
D | fs.c | 133 static int cp_hpux_stat(struct kstat *stat, struct hpux_stat64 __user *statbuf) in cp_hpux_stat() argument 139 if (!new_valid_dev(stat->dev) || !new_valid_dev(stat->rdev)) in cp_hpux_stat() 143 tmp.st_dev = new_encode_dev(stat->dev); in cp_hpux_stat() 144 tmp.st_ino = stat->ino; in cp_hpux_stat() 145 tmp.st_mode = stat->mode; in cp_hpux_stat() 146 tmp.st_nlink = stat->nlink; in cp_hpux_stat() 147 tmp.st_uid = from_kuid_munged(current_user_ns(), stat->uid); in cp_hpux_stat() 148 tmp.st_gid = from_kgid_munged(current_user_ns(), stat->gid); in cp_hpux_stat() 149 tmp.st_rdev = new_encode_dev(stat->rdev); in cp_hpux_stat() 150 tmp.st_size = stat->size; in cp_hpux_stat() [all …]
|
/arch/x86/ia32/ |
D | sys_ia32.c | 70 static int cp_stat64(struct stat64 __user *ubuf, struct kstat *stat) in cp_stat64() argument 74 SET_UID(uid, from_kuid_munged(current_user_ns(), stat->uid)); in cp_stat64() 75 SET_GID(gid, from_kgid_munged(current_user_ns(), stat->gid)); in cp_stat64() 77 __put_user(huge_encode_dev(stat->dev), &ubuf->st_dev) || in cp_stat64() 78 __put_user(stat->ino, &ubuf->__st_ino) || in cp_stat64() 79 __put_user(stat->ino, &ubuf->st_ino) || in cp_stat64() 80 __put_user(stat->mode, &ubuf->st_mode) || in cp_stat64() 81 __put_user(stat->nlink, &ubuf->st_nlink) || in cp_stat64() 84 __put_user(huge_encode_dev(stat->rdev), &ubuf->st_rdev) || in cp_stat64() 85 __put_user(stat->size, &ubuf->st_size) || in cp_stat64() [all …]
|
/arch/sparc/kernel/ |
D | sys_sparc32.c | 70 static int cp_compat_stat64(struct kstat *stat, in cp_compat_stat64() argument 75 err = put_user(huge_encode_dev(stat->dev), &statbuf->st_dev); in cp_compat_stat64() 76 err |= put_user(stat->ino, &statbuf->st_ino); in cp_compat_stat64() 77 err |= put_user(stat->mode, &statbuf->st_mode); in cp_compat_stat64() 78 err |= put_user(stat->nlink, &statbuf->st_nlink); in cp_compat_stat64() 79 err |= put_user(from_kuid_munged(current_user_ns(), stat->uid), &statbuf->st_uid); in cp_compat_stat64() 80 err |= put_user(from_kgid_munged(current_user_ns(), stat->gid), &statbuf->st_gid); in cp_compat_stat64() 81 err |= put_user(huge_encode_dev(stat->rdev), &statbuf->st_rdev); in cp_compat_stat64() 83 err |= put_user(stat->size, &statbuf->st_size); in cp_compat_stat64() 84 err |= put_user(stat->blksize, &statbuf->st_blksize); in cp_compat_stat64() [all …]
|
/arch/x86/platform/uv/ |
D | tlb_uv.c | 222 struct ptc_stats *stat = bcp->statp; in bau_process_retry_msg() local 224 stat->d_retries++; in bau_process_retry_msg() 255 stat->d_canceled++; in bau_process_retry_msg() 263 stat->d_nocanceled++; in bau_process_retry_msg() 276 struct ptc_stats *stat = bcp->statp; in bau_process_message() local 285 stat->d_alltlb++; in bau_process_message() 288 stat->d_onetlb++; in bau_process_message() 290 stat->d_requestee++; in bau_process_message() 364 struct ptc_stats *stat = bcp->statp; in do_reset() local 366 stat->d_resets++; in do_reset() [all …]
|
/arch/arm/kernel/ |
D | sys_oabi-compat.c | 117 static long cp_oldabi_stat64(struct kstat *stat, in cp_oldabi_stat64() argument 122 tmp.st_dev = huge_encode_dev(stat->dev); in cp_oldabi_stat64() 124 tmp.__st_ino = stat->ino; in cp_oldabi_stat64() 125 tmp.st_mode = stat->mode; in cp_oldabi_stat64() 126 tmp.st_nlink = stat->nlink; in cp_oldabi_stat64() 127 tmp.st_uid = from_kuid_munged(current_user_ns(), stat->uid); in cp_oldabi_stat64() 128 tmp.st_gid = from_kgid_munged(current_user_ns(), stat->gid); in cp_oldabi_stat64() 129 tmp.st_rdev = huge_encode_dev(stat->rdev); in cp_oldabi_stat64() 130 tmp.st_size = stat->size; in cp_oldabi_stat64() 131 tmp.st_blocks = stat->blocks; in cp_oldabi_stat64() [all …]
|
/arch/arm/mach-orion5x/ |
D | irq.c | 40 u32 stat; in orion5x_legacy_handle_irq() local 42 stat = readl_relaxed(MAIN_IRQ_CAUSE); in orion5x_legacy_handle_irq() 43 stat &= readl_relaxed(MAIN_IRQ_MASK); in orion5x_legacy_handle_irq() 44 if (stat) { in orion5x_legacy_handle_irq() 45 unsigned int hwirq = __fls(stat); in orion5x_legacy_handle_irq()
|
/arch/s390/kernel/ |
D | compat_linux.c | 84 #define SET_OLDSTAT_UID(stat, uid) (stat).st_uid = high2lowuid(uid) argument 85 #define SET_OLDSTAT_GID(stat, gid) (stat).st_gid = high2lowgid(gid) argument 86 #define SET_STAT_UID(stat, uid) (stat).st_uid = high2lowuid(uid) argument 87 #define SET_STAT_GID(stat, gid) (stat).st_gid = high2lowgid(gid) argument 358 static int cp_stat64(struct stat64_emu31 __user *ubuf, struct kstat *stat) in cp_stat64() argument 364 tmp.st_dev = huge_encode_dev(stat->dev); in cp_stat64() 365 tmp.st_ino = stat->ino; in cp_stat64() 366 tmp.__st_ino = (u32)stat->ino; in cp_stat64() 367 tmp.st_mode = stat->mode; in cp_stat64() 368 tmp.st_nlink = (unsigned int)stat->nlink; in cp_stat64() [all …]
|
/arch/arm/mach-dove/ |
D | irq.c | 124 u32 stat; in dove_legacy_handle_irq() local 126 stat = readl_relaxed(dove_irq_base + IRQ_CAUSE_LOW_OFF); in dove_legacy_handle_irq() 127 stat &= readl_relaxed(dove_irq_base + IRQ_MASK_LOW_OFF); in dove_legacy_handle_irq() 128 if (stat) { in dove_legacy_handle_irq() 129 unsigned int hwirq = __fls(stat); in dove_legacy_handle_irq() 133 stat = readl_relaxed(dove_irq_base + IRQ_CAUSE_HIGH_OFF); in dove_legacy_handle_irq() 134 stat &= readl_relaxed(dove_irq_base + IRQ_MASK_HIGH_OFF); in dove_legacy_handle_irq() 135 if (stat) { in dove_legacy_handle_irq() 136 unsigned int hwirq = 32 + __fls(stat); in dove_legacy_handle_irq()
|
/arch/arm/mach-s3c24xx/ |
D | bast-irq.c | 107 unsigned int stat; in bast_irq_pc104_demux() local 111 stat = __raw_readb(BAST_VA_PC104_IRQREQ) & 0xf; in bast_irq_pc104_demux() 113 if (unlikely(stat == 0)) { in bast_irq_pc104_demux() 121 for (i = 0; stat != 0; i++, stat >>= 1) { in bast_irq_pc104_demux() 122 if (stat & 1) { in bast_irq_pc104_demux()
|
/arch/mips/cavium-octeon/executive/ |
D | cvmx-spi.c | 433 union cvmx_spxx_clk_stat stat; in cvmx_spi_clock_detect_cb() local 449 stat.u64 = cvmx_read_csr(CVMX_SPXX_CLK_STAT(interface)); in cvmx_spi_clock_detect_cb() 450 if (stat.s.s4clk0 && stat.s.s4clk1 && clock_transitions) { in cvmx_spi_clock_detect_cb() 456 cvmx_write_csr(CVMX_SPXX_CLK_STAT(interface), stat.u64); in cvmx_spi_clock_detect_cb() 457 stat.s.s4clk0 = 0; in cvmx_spi_clock_detect_cb() 458 stat.s.s4clk1 = 0; in cvmx_spi_clock_detect_cb() 464 } while (stat.s.s4clk0 == 0 || stat.s.s4clk1 == 0); in cvmx_spi_clock_detect_cb() 474 stat.u64 = cvmx_read_csr(CVMX_SPXX_CLK_STAT(interface)); in cvmx_spi_clock_detect_cb() 475 if (stat.s.d4clk0 && stat.s.d4clk1 && clock_transitions) { in cvmx_spi_clock_detect_cb() 481 cvmx_write_csr(CVMX_SPXX_CLK_STAT(interface), stat.u64); in cvmx_spi_clock_detect_cb() [all …]
|
/arch/arm/vdso/ |
D | vdsomunge.c | 115 struct stat stat; in main() local 133 if (fstat(infd, &stat) != 0) in main() 136 inbuf = mmap(NULL, stat.st_size, PROT_READ, MAP_PRIVATE, infd, 0); in main() 177 if (ftruncate(outfd, stat.st_size) != 0) in main() 180 outbuf = mmap(NULL, stat.st_size, PROT_READ | PROT_WRITE, MAP_SHARED, in main() 187 memcpy(outbuf, inbuf, stat.st_size); in main() 197 if (msync(outbuf, stat.st_size, MS_SYNC) != 0) in main()
|
/arch/arm/mach-omap1/ |
D | fpga.c | 92 u32 stat; in innovator_fpga_IRQ_demux() local 95 stat = get_fpga_unmasked_irqs(); in innovator_fpga_IRQ_demux() 97 if (!stat) in innovator_fpga_IRQ_demux() 101 (fpga_irq < OMAP_FPGA_IRQ_END) && stat; in innovator_fpga_IRQ_demux() 102 fpga_irq++, stat >>= 1) { in innovator_fpga_IRQ_demux() 103 if (stat & 1) { in innovator_fpga_IRQ_demux()
|
/arch/powerpc/platforms/cell/ |
D | spu_base.c | 293 unsigned long stat, mask; in spu_irq_class_0() local 299 stat = spu_int_stat_get(spu, 0) & mask; in spu_irq_class_0() 301 spu->class_0_pending |= stat; in spu_irq_class_0() 307 spu_int_stat_clear(spu, 0, stat); in spu_irq_class_0() 317 unsigned long stat, mask, dar, dsisr; in spu_irq_class_1() local 324 stat = spu_int_stat_get(spu, 1) & mask; in spu_irq_class_1() 327 if (stat & CLASS1_STORAGE_FAULT_INTR) in spu_irq_class_1() 329 spu_int_stat_clear(spu, 1, stat); in spu_irq_class_1() 331 pr_debug("%s: %lx %lx %lx %lx\n", __func__, mask, stat, in spu_irq_class_1() 334 if (stat & CLASS1_SEGMENT_FAULT_INTR) in spu_irq_class_1() [all …]
|
/arch/cris/arch-v32/kernel/ |
D | debugport.c | 167 reg_ser_rs_stat_din stat; in getDebugChar() local 171 stat = REG_RD(ser, kgdb_port->instance, rs_stat_din); in getDebugChar() 172 } while (!stat.dav); in getDebugChar() 178 return stat.data; in getDebugChar() 185 reg_ser_r_stat_din stat; in putDebugChar() local 187 stat = REG_RD(ser, kgdb_port->instance, r_stat_din); in putDebugChar() 188 } while (!stat.tr_rdy); in putDebugChar()
|
/arch/ia64/hp/sim/boot/ |
D | bootloader.c | 62 struct disk_stat stat; in start_bootloader() local 105 stat.fd = fd; in start_bootloader() 111 ssc((long) &stat, 0, 0, 0, SSC_WAIT_COMPLETION); in start_bootloader() 139 ssc((long) &stat, 0, 0, 0, SSC_WAIT_COMPLETION); in start_bootloader() 140 if (stat.count != sizeof(*elf_phdr)) { in start_bootloader() 154 ssc((long) &stat, 0, 0, 0, SSC_WAIT_COMPLETION); in start_bootloader()
|
/arch/ia64/sn/kernel/sn2/ |
D | sn2_smp.c | 482 struct ptc_stats *stat; in sn2_ptc_seq_show() local 494 stat = &per_cpu(ptcstats, cpu); in 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, in sn2_ptc_seq_show() 496 stat->change_rid, stat->shub_ptc_flushes, stat->nodes_flushed, in sn2_ptc_seq_show() 497 stat->deadlocks, in sn2_ptc_seq_show() 498 1000 * stat->lock_itc_clocks / per_cpu(ia64_cpu_info, cpu).cyc_per_usec, in sn2_ptc_seq_show() 499 1000 * stat->shub_itc_clocks / per_cpu(ia64_cpu_info, cpu).cyc_per_usec, in sn2_ptc_seq_show() 500 1000 * stat->shub_itc_clocks_max / per_cpu(ia64_cpu_info, cpu).cyc_per_usec, in sn2_ptc_seq_show() 501 stat->shub_ptc_flushes_not_my_mm, in sn2_ptc_seq_show() 502 stat->deadlocks2, in sn2_ptc_seq_show() [all …]
|
/arch/ia64/hp/sim/ |
D | simscsi.c | 128 struct disk_stat stat; in simscsi_sg_readwrite() local 131 stat.fd = desc[sc->device->id]; in simscsi_sg_readwrite() 140 ia64_ssc(stat.fd, 1, __pa(&req), offset, mode); in simscsi_sg_readwrite() 141 ia64_ssc(__pa(&stat), 0, 0, 0, SSC_WAIT_COMPLETION); in simscsi_sg_readwrite() 144 if (stat.count != req.len) { in simscsi_sg_readwrite() 170 struct disk_stat stat; in simscsi_get_disk_size() local 184 stat.fd = fd; in simscsi_get_disk_size() 185 ia64_ssc(__pa(&stat), 0, 0, 0, SSC_WAIT_COMPLETION); in simscsi_get_disk_size() 186 if (stat.count == sizeof(buf)) in simscsi_get_disk_size()
|
/arch/c6x/platforms/ |
D | dscr.c | 97 struct devstate_stat_reg *stat; member 193 struct devstate_stat_reg *stat; in dscr_set_devstate() local 207 stat = info->stat; in dscr_set_devstate() 238 if (!stat) in dscr_set_devstate() 241 ctl_shift = stat->shift + stat->nbits * (id - stat->start_id); in dscr_set_devstate() 244 ctl_val = stat->enable; in dscr_set_devstate() 246 ctl_val = stat->disable; in dscr_set_devstate() 249 val = soc_readl(dscr.base + stat->reg); in dscr_set_devstate() 251 val &= ((1 << stat->nbits) - 1); in dscr_set_devstate() 553 dscr.devstate_info[j].stat = r; in dscr_parse_devstate_stat_regs()
|
/arch/powerpc/platforms/82xx/ |
D | pq2ads-pci-pic.c | 34 u32 stat; member 84 u32 stat, mask, pend; in pq2ads_pci_irq_demux() local 88 stat = in_be32(&priv->regs->stat); in pq2ads_pci_irq_demux() 91 pend = stat & ~mask; in pq2ads_pci_irq_demux()
|
/arch/powerpc/platforms/cell/spufs/ |
D | fault.c | 79 unsigned long stat = ctx->csa.class_0_pending & CLASS0_INTR_MASK; in spufs_handle_class0() local 81 if (likely(!stat)) in spufs_handle_class0() 84 if (stat & CLASS0_DMA_ALIGNMENT_INTR) in spufs_handle_class0() 88 if (stat & CLASS0_INVALID_DMA_COMMAND_INTR) in spufs_handle_class0() 92 if (stat & CLASS0_SPU_ERROR_INTR) in spufs_handle_class0()
|
/arch/arm/mach-netx/ |
D | generic.c | 76 unsigned int stat; in netx_hif_demux_handler() local 78 stat = ((readl(NETX_DPMAS_INT_EN) & in netx_hif_demux_handler() 81 while (stat) { in netx_hif_demux_handler() 82 if (stat & 1) { in netx_hif_demux_handler() 87 stat >>= 1; in netx_hif_demux_handler()
|
/arch/powerpc/platforms/powermac/ |
D | nvram.c | 281 int stat; in sm_erase_bank() local 297 stat = in_8(base); in sm_erase_bank() 298 } while (!(stat & SM_FLASH_STATUS_DONE)); in sm_erase_bank() 312 int i, stat = 0; in sm_write_bank() local 330 stat = in_8(base); in sm_write_bank() 331 } while (!(stat & SM_FLASH_STATUS_DONE)); in sm_write_bank() 332 if (!(stat & SM_FLASH_STATUS_DONE)) in sm_write_bank() 346 int stat = 0; in amd_erase_bank() local 376 stat = in_8(base) ^ in_8(base); in amd_erase_bank() 377 } while (stat != 0); in amd_erase_bank() [all …]
|