Home
last modified time | relevance | path

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

12345678910>>...17

/drivers/media/platform/omap3isp/
Dispstat.c35 #define IS_COHERENT_BUF(stat) ((stat)->dma_ch >= 0) argument
69 #define IS_H3A_AF(stat) ((stat) == &(stat)->isp->isp_af) argument
70 #define IS_H3A_AEWB(stat) ((stat) == &(stat)->isp->isp_aewb) argument
71 #define IS_H3A(stat) (IS_H3A_AF(stat) || IS_H3A_AEWB(stat)) argument
73 static void __isp_stat_buf_sync_magic(struct ispstat *stat, in __isp_stat_buf_sync_magic() argument
80 struct device *dev = stat->isp->dev; in __isp_stat_buf_sync_magic()
97 static void isp_stat_buf_sync_magic_for_device(struct ispstat *stat, in isp_stat_buf_sync_magic_for_device() argument
102 if (IS_COHERENT_BUF(stat)) in isp_stat_buf_sync_magic_for_device()
105 __isp_stat_buf_sync_magic(stat, buf, buf_size, dir, in isp_stat_buf_sync_magic_for_device()
109 static void isp_stat_buf_sync_magic_for_cpu(struct ispstat *stat, in isp_stat_buf_sync_magic_for_cpu() argument
[all …]
Dispstat.h66 int (*validate_params)(struct ispstat *stat, void *new_conf);
75 void (*set_params)(struct ispstat *stat, void *new_conf);
78 void (*setup_regs)(struct ispstat *stat, void *priv);
81 void (*enable)(struct ispstat *stat, int enable);
84 int (*busy)(struct ispstat *stat);
87 int (*buf_process)(struct ispstat *stat);
142 int omap3isp_stat_config(struct ispstat *stat, void *new_conf);
143 int omap3isp_stat_request_statistics(struct ispstat *stat,
145 int omap3isp_stat_init(struct ispstat *stat, const char *name,
147 void omap3isp_stat_cleanup(struct ispstat *stat);
[all …]
/drivers/cpufreq/
Dcpufreq_stats.c75 struct cpufreq_stats *stat; in cpufreq_stats_update() local
81 stat = per_cpu(cpufreq_stats_table, cpu); in cpufreq_stats_update()
83 if (!stat) { in cpufreq_stats_update()
87 if (stat->time_in_state) { in cpufreq_stats_update()
88 stat->time_in_state[stat->last_index] += in cpufreq_stats_update()
89 cur_time - stat->last_time; in cpufreq_stats_update()
91 all_stat->time_in_state[stat->last_index] += in cpufreq_stats_update()
92 cur_time - stat->last_time; in cpufreq_stats_update()
94 stat->last_time = cur_time; in cpufreq_stats_update()
101 struct cpufreq_stats *stat = per_cpu(cpufreq_stats_table, policy->cpu); in show_total_trans() local
[all …]
/drivers/ide/
Dide-cd_ioctl.c46 int stat; in ide_cdrom_drive_status() local
51 stat = cdrom_check_status(drive, &sense); in ide_cdrom_drive_status()
52 if (!stat || sense.sense_key == UNIT_ATTENTION) in ide_cdrom_drive_status()
140 int stat; in ide_cd_lockdoor() local
147 stat = 0; in ide_cd_lockdoor()
156 stat = ide_cd_queue_pc(drive, cmd, 0, NULL, NULL, in ide_cd_lockdoor()
162 if (stat != 0 && in ide_cd_lockdoor()
168 stat = 0; in ide_cd_lockdoor()
172 if (stat != 0 && sense->sense_key == NOT_READY && sense->asc == 0x3a) in ide_cd_lockdoor()
173 stat = 0; in ide_cd_lockdoor()
[all …]
Dide-iops.c112 u8 stat; in __ide_wait_stat() local
115 stat = tp_ops->read_status(hwif); in __ide_wait_stat()
117 if (stat & ATA_BUSY) { in __ide_wait_stat()
121 while ((stat = tp_ops->read_status(hwif)) & ATA_BUSY) { in __ide_wait_stat()
128 stat = tp_ops->read_status(hwif); in __ide_wait_stat()
129 if ((stat & ATA_BUSY) == 0) in __ide_wait_stat()
133 *rstat = stat; in __ide_wait_stat()
148 stat = tp_ops->read_status(hwif); in __ide_wait_stat()
150 if (OK_STAT(stat, good, bad)) { in __ide_wait_stat()
151 *rstat = stat; in __ide_wait_stat()
[all …]
/drivers/staging/comedi/drivers/
Ddt2801.c245 int stat = 0; in dt2801_readdata() local
249 stat = inb_p(dev->iobase + DT2801_STATUS); in dt2801_readdata()
250 if (stat & (DT_S_COMPOSITE_ERROR | DT_S_READY)) in dt2801_readdata()
251 return stat; in dt2801_readdata()
252 if (stat & DT_S_DATA_OUT_READY) { in dt2801_readdata()
279 int stat = 0; in dt2801_writedata() local
283 stat = inb_p(dev->iobase + DT2801_STATUS); in dt2801_writedata()
285 if (stat & DT_S_COMPOSITE_ERROR) in dt2801_writedata()
286 return stat; in dt2801_writedata()
287 if (!(stat & DT_S_DATA_IN_FULL)) { in dt2801_writedata()
[all …]
/drivers/media/firewire/
Dfiredtv-ci.c27 static int fdtv_ca_ready(struct firedtv_tuner_status *stat) in fdtv_ca_ready() argument
29 return stat->ca_initialization_status == 1 && in fdtv_ca_ready()
30 stat->ca_error_flag == 0 && in fdtv_ca_ready()
31 stat->ca_dvb_flag == 1 && in fdtv_ca_ready()
32 stat->ca_module_present_status == 1; in fdtv_ca_ready()
35 static int fdtv_get_ca_flags(struct firedtv_tuner_status *stat) in fdtv_get_ca_flags() argument
39 if (stat->ca_module_present_status == 1) in fdtv_get_ca_flags()
41 if (stat->ca_initialization_status == 1 && in fdtv_get_ca_flags()
42 stat->ca_error_flag == 0 && in fdtv_get_ca_flags()
43 stat->ca_dvb_flag == 1) in fdtv_get_ca_flags()
[all …]
/drivers/devfreq/
Dgovernor_simpleondemand.c24 struct devfreq_dev_status stat; in devfreq_simple_ondemand_func() local
25 int err = df->profile->get_dev_status(df->dev.parent, &stat); in devfreq_simple_ondemand_func()
46 if (stat.total_time == 0) { in devfreq_simple_ondemand_func()
52 if (stat.busy_time >= (1 << 24) || stat.total_time >= (1 << 24)) { in devfreq_simple_ondemand_func()
53 stat.busy_time >>= 7; in devfreq_simple_ondemand_func()
54 stat.total_time >>= 7; in devfreq_simple_ondemand_func()
58 if (stat.busy_time * 100 > in devfreq_simple_ondemand_func()
59 stat.total_time * dfso_upthreshold) { in devfreq_simple_ondemand_func()
65 if (stat.current_frequency == 0) { in devfreq_simple_ondemand_func()
71 if (stat.busy_time * 100 > in devfreq_simple_ondemand_func()
[all …]
/drivers/media/common/siano/
Dsmsdvb-main.c150 c->strength.stat[0].scale = FE_SCALE_DECIBEL; in smsdvb_stats_not_ready()
151 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in smsdvb_stats_not_ready()
164 c->post_bit_error.stat[i].scale = FE_SCALE_NOT_AVAILABLE; in smsdvb_stats_not_ready()
165 c->post_bit_count.stat[i].scale = FE_SCALE_NOT_AVAILABLE; in smsdvb_stats_not_ready()
166 c->block_error.stat[i].scale = FE_SCALE_NOT_AVAILABLE; in smsdvb_stats_not_ready()
167 c->block_count.stat[i].scale = FE_SCALE_NOT_AVAILABLE; in smsdvb_stats_not_ready()
254 c->strength.stat[0].uvalue = p->in_band_power * 1000; in smsdvb_update_per_slices()
257 c->cnr.stat[0].svalue = p->snr * 1000; in smsdvb_update_per_slices()
264 client->last_per = c->block_error.stat[0].uvalue; in smsdvb_update_per_slices()
265 c->block_error.stat[0].scale = FE_SCALE_COUNTER; in smsdvb_update_per_slices()
[all …]
/drivers/media/pci/mantis/
Dhopper_cards.c68 u32 stat = 0, mask = 0; in hopper_irq_handler() local
81 stat = mmread(MANTIS_INT_STAT); in hopper_irq_handler()
83 if (!(stat & mask)) in hopper_irq_handler()
95 mantis->mantis_int_stat = stat; in hopper_irq_handler()
97 dprintk(MANTIS_DEBUG, 0, "\n-- Stat=<%02x> Mask=<%02x> --", stat, mask); in hopper_irq_handler()
98 if (stat & MANTIS_INT_RISCEN) { in hopper_irq_handler()
101 if (stat & MANTIS_INT_IRQ0) { in hopper_irq_handler()
107 if (stat & MANTIS_INT_IRQ1) { in hopper_irq_handler()
111 if (stat & MANTIS_INT_OCERR) { in hopper_irq_handler()
114 if (stat & MANTIS_INT_PABORT) { in hopper_irq_handler()
[all …]
Dmantis_cards.c76 u32 stat = 0, mask = 0; in mantis_irq_handler() local
89 stat = mmread(MANTIS_INT_STAT); in mantis_irq_handler()
91 if (!(stat & mask)) in mantis_irq_handler()
103 mantis->mantis_int_stat = stat; in mantis_irq_handler()
105 dprintk(MANTIS_DEBUG, 0, "\n-- Stat=<%02x> Mask=<%02x> --", stat, mask); in mantis_irq_handler()
106 if (stat & MANTIS_INT_RISCEN) { in mantis_irq_handler()
109 if (stat & MANTIS_INT_IRQ0) { in mantis_irq_handler()
115 if (stat & MANTIS_INT_IRQ1) { in mantis_irq_handler()
119 if (stat & MANTIS_INT_OCERR) { in mantis_irq_handler()
122 if (stat & MANTIS_INT_PABORT) { in mantis_irq_handler()
[all …]
Dmantis_i2c.c40 u32 rxd, i, stat, trials; in mantis_i2c_read() local
59 stat = mmread(MANTIS_INT_STAT); in mantis_i2c_read()
60 if (stat & MANTIS_INT_I2CDONE) in mantis_i2c_read()
68 stat = mmread(MANTIS_INT_STAT); in mantis_i2c_read()
69 if (stat & MANTIS_INT_I2CRACK) in mantis_i2c_read()
87 u32 txd = 0, stat, trials; in mantis_i2c_write() local
107 stat = mmread(MANTIS_INT_STAT); in mantis_i2c_write()
108 if (stat & MANTIS_INT_I2CDONE) in mantis_i2c_write()
116 stat = mmread(MANTIS_INT_STAT); in mantis_i2c_write()
117 if (stat & MANTIS_INT_I2CRACK) in mantis_i2c_write()
[all …]
/drivers/gpu/drm/nouveau/core/subdev/ibus/
Dnvc0.c36 u32 stat = nv_rd32(priv, 0x122128 + (i * 0x0400)); in nvc0_ibus_intr_hub() local
37 nv_error(priv, "HUB%d: 0x%06x 0x%08x (0x%08x)\n", i, addr, data, stat); in nvc0_ibus_intr_hub()
46 u32 stat = nv_rd32(priv, 0x124128 + (i * 0x0400)); in nvc0_ibus_intr_rop() local
47 nv_error(priv, "ROP%d: 0x%06x 0x%08x (0x%08x)\n", i, addr, data, stat); in nvc0_ibus_intr_rop()
56 u32 stat = nv_rd32(priv, 0x128128 + (i * 0x0400)); in nvc0_ibus_intr_gpc() local
57 nv_error(priv, "GPC%d: 0x%06x 0x%08x (0x%08x)\n", i, addr, data, stat); in nvc0_ibus_intr_gpc()
73 u32 stat = 0x00000100 << i; in nvc0_ibus_intr() local
74 if (intr0 & stat) { in nvc0_ibus_intr()
76 intr0 &= ~stat; in nvc0_ibus_intr()
81 u32 stat = 0x00010000 << i; in nvc0_ibus_intr() local
[all …]
Dnve0.c36 u32 stat = nv_rd32(priv, 0x122128 + (i * 0x0800)); in nve0_ibus_intr_hub() local
37 nv_error(priv, "HUB%d: 0x%06x 0x%08x (0x%08x)\n", i, addr, data, stat); in nve0_ibus_intr_hub()
46 u32 stat = nv_rd32(priv, 0x124128 + (i * 0x0800)); in nve0_ibus_intr_rop() local
47 nv_error(priv, "ROP%d: 0x%06x 0x%08x (0x%08x)\n", i, addr, data, stat); in nve0_ibus_intr_rop()
56 u32 stat = nv_rd32(priv, 0x128128 + (i * 0x0800)); in nve0_ibus_intr_gpc() local
57 nv_error(priv, "GPC%d: 0x%06x 0x%08x (0x%08x)\n", i, addr, data, stat); in nve0_ibus_intr_gpc()
73 u32 stat = 0x00000100 << i; in nve0_ibus_intr() local
74 if (intr0 & stat) { in nve0_ibus_intr()
76 intr0 &= ~stat; in nve0_ibus_intr()
81 u32 stat = 0x00010000 << i; in nve0_ibus_intr() local
[all …]
/drivers/pcmcia/
Dsoc_common.c115 if (skt->stat[i].irq) in __soc_pcmcia_hw_shutdown()
116 free_irq(skt->stat[i].irq, skt); in __soc_pcmcia_hw_shutdown()
117 if (gpio_is_valid(skt->stat[i].gpio)) in __soc_pcmcia_hw_shutdown()
118 gpio_free(skt->stat[i].gpio); in __soc_pcmcia_hw_shutdown()
127 __soc_pcmcia_hw_shutdown(skt, ARRAY_SIZE(skt->stat)); in soc_pcmcia_hw_shutdown()
140 for (i = 0; i < ARRAY_SIZE(skt->stat); i++) { in soc_pcmcia_hw_init()
141 if (gpio_is_valid(skt->stat[i].gpio)) { in soc_pcmcia_hw_init()
144 ret = gpio_request_one(skt->stat[i].gpio, GPIOF_IN, in soc_pcmcia_hw_init()
145 skt->stat[i].name); in soc_pcmcia_hw_init()
151 irq = gpio_to_irq(skt->stat[i].gpio); in soc_pcmcia_hw_init()
[all …]
Dbcm63xx_pcmcia.c164 unsigned int stat; in __get_socket_status() local
167 stat = 0; in __get_socket_status()
173 stat |= SS_DETECT; in __get_socket_status()
176 if ((stat & SS_DETECT) && !skt->card_detected) { in __get_socket_status()
177 unsigned int stat = 0; in __get_socket_status() local
187 stat |= (val & PCMCIA_C1_VS1_MASK) ? IN_VS1 : 0; in __get_socket_status()
188 stat |= (val & PCMCIA_C1_VS2_MASK) ? IN_VS2 : 0; in __get_socket_status()
198 stat |= (val & PCMCIA_C1_CD1_MASK) ? IN_CD1_VS2H : 0; in __get_socket_status()
199 stat |= (val & PCMCIA_C1_CD2_MASK) ? IN_CD2_VS2H : 0; in __get_socket_status()
209 stat |= (val & PCMCIA_C1_CD1_MASK) ? IN_CD1_VS1H : 0; in __get_socket_status()
[all …]
/drivers/mmc/host/
Dmxcmmc.c391 static void mxcmci_cmd_done(struct mxcmci_host *host, unsigned int stat);
392 static void mxcmci_data_done(struct mxcmci_host *host, unsigned int stat);
397 u32 stat; in mxcmci_dma_callback() local
401 stat = mxcmci_readl(host, MMC_REG_STATUS); in mxcmci_dma_callback()
402 mxcmci_writel(host, stat & ~STATUS_DATA_TRANS_DONE, MMC_REG_STATUS); in mxcmci_dma_callback()
404 dev_dbg(mmc_dev(host->mmc), "%s: 0x%08x\n", __func__, stat); in mxcmci_dma_callback()
406 if (stat & STATUS_READ_OP_DONE) in mxcmci_dma_callback()
409 mxcmci_data_done(host, stat); in mxcmci_dma_callback()
484 static int mxcmci_finish_data(struct mxcmci_host *host, unsigned int stat) in mxcmci_finish_data() argument
495 if (stat & STATUS_ERR_MASK) { in mxcmci_finish_data()
[all …]
/drivers/gpu/drm/nouveau/core/engine/graph/
Dnve0.c154 u32 stat = nv_rd32(priv, TPC_UNIT(gpc, tp, 0x508)); in nve0_graph_tp_trap() local
156 if (stat & 0x1) { in nve0_graph_tp_trap()
162 stat &= ~0x1; in nve0_graph_tp_trap()
165 if (stat & 0x2) { in nve0_graph_tp_trap()
167 stat &= ~0x2; in nve0_graph_tp_trap()
170 if (stat & 0x4) { in nve0_graph_tp_trap()
176 stat &= ~0x4; in nve0_graph_tp_trap()
179 if (stat & 0x8) { in nve0_graph_tp_trap()
185 stat &= ~0x8; in nve0_graph_tp_trap()
188 if (stat) { in nve0_graph_tp_trap()
[all …]
Dnvc0.c243 u32 stat = nv_rd32(priv, TPC_UNIT(gpc, tpc, 0x0508)); in nvc0_graph_trap_tpc() local
245 if (stat & 0x00000001) { in nvc0_graph_trap_tpc()
250 stat &= ~0x00000001; in nvc0_graph_trap_tpc()
253 if (stat & 0x00000002) { in nvc0_graph_trap_tpc()
261 stat &= ~0x00000002; in nvc0_graph_trap_tpc()
264 if (stat & 0x00000004) { in nvc0_graph_trap_tpc()
269 stat &= ~0x00000004; in nvc0_graph_trap_tpc()
272 if (stat & 0x00000008) { in nvc0_graph_trap_tpc()
277 stat &= ~0x00000008; in nvc0_graph_trap_tpc()
280 if (stat) { in nvc0_graph_trap_tpc()
[all …]
/drivers/irqchip/
Dirq-bcm2835.c188 u32 stat, irq; in armctrl_handle_bank() local
190 while ((stat = readl_relaxed(intc.pending[bank]))) { in armctrl_handle_bank()
191 irq = MAKE_HWIRQ(bank, ffs(stat) - 1); in armctrl_handle_bank()
197 u32 stat) in armctrl_handle_shortcut() argument
199 u32 irq = MAKE_HWIRQ(bank, shortcuts[ffs(stat >> SHORTCUT_SHIFT) - 1]); in armctrl_handle_shortcut()
206 u32 stat, irq; in bcm2835_handle_irq() local
208 while ((stat = readl_relaxed(intc.pending[0]) & BANK0_VALID_MASK)) { in bcm2835_handle_irq()
209 if (stat & BANK0_HWIRQ_MASK) { in bcm2835_handle_irq()
210 irq = MAKE_HWIRQ(0, ffs(stat & BANK0_HWIRQ_MASK) - 1); in bcm2835_handle_irq()
212 } else if (stat & SHORTCUT1_MASK) { in bcm2835_handle_irq()
[all …]
/drivers/gpu/drm/nouveau/core/subdev/bus/
Dnvc0.c36 u32 stat = nv_rd32(pbus, 0x001100) & nv_rd32(pbus, 0x001140); in nvc0_bus_intr() local
38 if (stat & 0x0000000e) { in nvc0_bus_intr()
45 (stat & 0x00000002) ? "!ENGINE " : "", in nvc0_bus_intr()
46 (stat & 0x00000004) ? "IBUS " : "", in nvc0_bus_intr()
47 (stat & 0x00000008) ? "TIMEOUT " : ""); in nvc0_bus_intr()
50 nv_wr32(pbus, 0x001100, (stat & 0x0000000e)); in nvc0_bus_intr()
51 stat &= ~0x0000000e; in nvc0_bus_intr()
54 if (stat) { in nvc0_bus_intr()
55 nv_error(pbus, "unknown intr 0x%08x\n", stat); in nvc0_bus_intr()
56 nv_mask(pbus, 0x001140, stat, 0x00000000); in nvc0_bus_intr()
/drivers/gpu/drm/nouveau/core/engine/fifo/
Dnvc0.c416 u32 stat = nv_rd32(priv, 0x00280c + (unit * 0x10)); in nvc0_fifo_isr_vm_fault() local
417 u32 client = (stat & 0x00001f00) >> 8; in nvc0_fifo_isr_vm_fault()
436 nv_error(priv, "%s fault at 0x%010llx [", (stat & 0x00000080) ? in nvc0_fifo_isr_vm_fault()
438 nouveau_enum_print(nvc0_fifo_fault_reason, stat & 0x0000000f); in nvc0_fifo_isr_vm_fault()
441 if (stat & 0x00000040) { in nvc0_fifo_isr_vm_fault()
445 pr_cont("/GPC%d/", (stat & 0x1f000000) >> 24); in nvc0_fifo_isr_vm_fault()
490 u32 stat = nv_rd32(priv, 0x040108 + (unit * 0x2000)); in nvc0_fifo_isr_subfifo_intr() local
496 u32 show = stat; in nvc0_fifo_isr_subfifo_intr()
498 if (stat & 0x00200000) { in nvc0_fifo_isr_subfifo_intr()
505 if (stat & 0x00800000) { in nvc0_fifo_isr_subfifo_intr()
[all …]
/drivers/media/dvb-frontends/
Dmb86a20s.c343 return c->strength.stat[0].uvalue; in mb86a20s_read_signal_strength()
346 c->strength.stat[0].uvalue = 0; in mb86a20s_read_signal_strength()
384 c->strength.stat[0].uvalue = rf; in mb86a20s_read_signal_strength()
1440 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in mb86a20s_get_main_CNR()
1441 c->cnr.stat[0].svalue = cnr; in mb86a20s_get_main_CNR()
1484 c->cnr.stat[1 + layer].scale = FE_SCALE_NOT_AVAILABLE; in mb86a20s_get_blk_error_layer_CNR()
1528 c->cnr.stat[1 + layer].scale = FE_SCALE_DECIBEL; in mb86a20s_get_blk_error_layer_CNR()
1529 c->cnr.stat[1 + layer].svalue = cnr; in mb86a20s_get_blk_error_layer_CNR()
1580 c->strength.stat[0].scale = FE_SCALE_RELATIVE; in mb86a20s_stats_not_ready()
1581 c->strength.stat[0].uvalue = 0; in mb86a20s_stats_not_ready()
[all …]
/drivers/gpu/drm/nouveau/core/subdev/mc/
Dbase.c33 u32 stat, intr; in nouveau_mc_intr() local
35 intr = stat = nv_rd32(pmc, 0x000100); in nouveau_mc_intr()
36 while (stat && map->stat) { in nouveau_mc_intr()
37 if (stat & map->stat) { in nouveau_mc_intr()
41 intr &= ~map->stat; in nouveau_mc_intr()
47 nv_error(pmc, "unknown intr 0x%08x\n", stat); in nouveau_mc_intr()
50 return stat ? IRQ_HANDLED : IRQ_NONE; in nouveau_mc_intr()
/drivers/media/i2c/
Dtda9840.c92 int stat = tda9840_status(sd); in tda9840_s_tuner() local
98 stat = stat < 0 ? 0 : stat; in tda9840_s_tuner()
99 if (stat == 0 || stat == 0x60) /* mono input */ in tda9840_s_tuner()
101 else if (stat == 0x40) /* stereo input */ in tda9840_s_tuner()
124 int stat = tda9840_status(sd); in tda9840_g_tuner() local
126 if (stat < 0) in tda9840_g_tuner()
127 return stat; in tda9840_g_tuner()
131 switch (stat & 0x60) { in tda9840_g_tuner()

12345678910>>...17