Home
last modified time | relevance | path

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

12345678910>>...26

/drivers/media/platform/ti/omap3isp/
Dispstat.c22 #define ISP_STAT_USES_DMAENGINE(stat) ((stat)->dma_ch != NULL) argument
56 #define IS_H3A_AF(stat) ((stat) == &(stat)->isp->isp_af) argument
57 #define IS_H3A_AEWB(stat) ((stat) == &(stat)->isp->isp_aewb) argument
58 #define IS_H3A(stat) (IS_H3A_AF(stat) || IS_H3A_AEWB(stat)) argument
60 static void __isp_stat_buf_sync_magic(struct ispstat *stat, in __isp_stat_buf_sync_magic() argument
68 dma_sync(stat->isp->dev, buf->dma_addr, 0, MAGIC_SIZE, dir); in __isp_stat_buf_sync_magic()
69 dma_sync(stat->isp->dev, buf->dma_addr + (buf_size & PAGE_MASK), in __isp_stat_buf_sync_magic()
73 static void isp_stat_buf_sync_magic_for_device(struct ispstat *stat, in isp_stat_buf_sync_magic_for_device() argument
78 if (ISP_STAT_USES_DMAENGINE(stat)) in isp_stat_buf_sync_magic_for_device()
81 __isp_stat_buf_sync_magic(stat, buf, buf_size, dir, in isp_stat_buf_sync_magic_for_device()
[all …]
Dispstat.h52 int (*validate_params)(struct ispstat *stat, void *new_conf);
61 void (*set_params)(struct ispstat *stat, void *new_conf);
64 void (*setup_regs)(struct ispstat *stat, void *priv);
67 void (*enable)(struct ispstat *stat, int enable);
70 int (*busy)(struct ispstat *stat);
73 int (*buf_process)(struct ispstat *stat);
127 int omap3isp_stat_config(struct ispstat *stat, void *new_conf);
128 int omap3isp_stat_request_statistics(struct ispstat *stat,
130 int omap3isp_stat_request_statistics_time32(struct ispstat *stat,
132 int omap3isp_stat_init(struct ispstat *stat, const char *name,
[all …]
/drivers/comedi/drivers/
Ddt2801.c229 int stat = 0; in dt2801_readdata() local
233 stat = inb_p(dev->iobase + DT2801_STATUS); in dt2801_readdata()
234 if (stat & (DT_S_COMPOSITE_ERROR | DT_S_READY)) in dt2801_readdata()
235 return stat; in dt2801_readdata()
236 if (stat & DT_S_DATA_OUT_READY) { in dt2801_readdata()
264 int stat = 0; in dt2801_writedata() local
268 stat = inb_p(dev->iobase + DT2801_STATUS); in dt2801_writedata()
270 if (stat & DT_S_COMPOSITE_ERROR) in dt2801_writedata()
271 return stat; in dt2801_writedata()
272 if (!(stat & DT_S_DATA_IN_FULL)) { in dt2801_writedata()
[all …]
/drivers/media/pci/ddbridge/
Dddbridge-main.c96 int stat; in ddb_irq_msi() local
99 stat = pci_alloc_irq_vectors(dev->pdev, 1, nr, in ddb_irq_msi()
101 if (stat >= 1) { in ddb_irq_msi()
102 dev->msi = stat; in ddb_irq_msi()
114 int stat; in ddb_irq_init() local
132 stat = request_irq(pci_irq_vector(dev->pdev, 0), in ddb_irq_init()
135 if (stat < 0) in ddb_irq_init()
136 return stat; in ddb_irq_init()
137 stat = request_irq(pci_irq_vector(dev->pdev, 1), in ddb_irq_init()
140 if (stat < 0) { in ddb_irq_init()
[all …]
Dddbridge-sx8.c61 int stat; in get_info() local
68 stat = ddb_mci_cmd(&state->mci, &cmd, &state->signal_info); in get_info()
69 return stat; in get_info()
78 p->cnr.stat[0].scale = FE_SCALE_DECIBEL; in get_snr()
79 p->cnr.stat[0].svalue = in get_snr()
95 p->strength.stat[0].scale = FE_SCALE_DECIBEL; in get_strength()
96 p->strength.stat[0].svalue = str; in get_strength()
102 int stat; in read_status() local
109 stat = ddb_mci_cmd(&state->mci, &cmd, &res); in read_status()
110 if (stat) in read_status()
[all …]
/drivers/devfreq/
Dgovernor_simpleondemand.c22 struct devfreq_dev_status *stat; in devfreq_simple_ondemand_func() local
32 stat = &df->last_status; in devfreq_simple_ondemand_func()
45 if (stat->total_time == 0) { in devfreq_simple_ondemand_func()
51 if (stat->busy_time >= (1 << 24) || stat->total_time >= (1 << 24)) { in devfreq_simple_ondemand_func()
52 stat->busy_time >>= 7; in devfreq_simple_ondemand_func()
53 stat->total_time >>= 7; in devfreq_simple_ondemand_func()
57 if (stat->busy_time * 100 > in devfreq_simple_ondemand_func()
58 stat->total_time * dfso_upthreshold) { in devfreq_simple_ondemand_func()
64 if (stat->current_frequency == 0) { in devfreq_simple_ondemand_func()
70 if (stat->busy_time * 100 > in devfreq_simple_ondemand_func()
[all …]
/drivers/media/firewire/
Dfiredtv-ci.c23 static int fdtv_ca_ready(struct firedtv_tuner_status *stat) in fdtv_ca_ready() argument
25 return stat->ca_initialization_status == 1 && in fdtv_ca_ready()
26 stat->ca_error_flag == 0 && in fdtv_ca_ready()
27 stat->ca_dvb_flag == 1 && in fdtv_ca_ready()
28 stat->ca_module_present_status == 1; in fdtv_ca_ready()
31 static int fdtv_get_ca_flags(struct firedtv_tuner_status *stat) in fdtv_get_ca_flags() argument
35 if (stat->ca_module_present_status == 1) in fdtv_get_ca_flags()
37 if (stat->ca_initialization_status == 1 && in fdtv_get_ca_flags()
38 stat->ca_error_flag == 0 && in fdtv_get_ca_flags()
39 stat->ca_dvb_flag == 1) in fdtv_get_ca_flags()
[all …]
/drivers/media/common/siano/
Dsmsdvb-main.c136 c->strength.stat[0].scale = FE_SCALE_DECIBEL; in smsdvb_stats_not_ready()
137 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in smsdvb_stats_not_ready()
150 c->post_bit_error.stat[i].scale = FE_SCALE_NOT_AVAILABLE; in smsdvb_stats_not_ready()
151 c->post_bit_count.stat[i].scale = FE_SCALE_NOT_AVAILABLE; in smsdvb_stats_not_ready()
152 c->block_error.stat[i].scale = FE_SCALE_NOT_AVAILABLE; in smsdvb_stats_not_ready()
153 c->block_count.stat[i].scale = FE_SCALE_NOT_AVAILABLE; in smsdvb_stats_not_ready()
268 c->strength.stat[0].uvalue = p->in_band_power * 1000; in smsdvb_update_per_slices()
271 c->cnr.stat[0].svalue = p->snr * 1000; in smsdvb_update_per_slices()
278 client->last_per = c->block_error.stat[0].uvalue; in smsdvb_update_per_slices()
279 c->block_error.stat[0].scale = FE_SCALE_COUNTER; in smsdvb_update_per_slices()
[all …]
/drivers/gpu/drm/nouveau/nvkm/engine/fifo/
Dgk104.c206 u32 stat = nvkm_rd32(engn->runl->fifo->engine.subdev.device, 0x002640 + (engn->id * 0x08)); in gk104_engn_status() local
208 status->busy = !!(stat & 0x80000000); in gk104_engn_status()
209 status->faulted = !!(stat & 0x40000000); in gk104_engn_status()
210 status->next.tsg = !!(stat & 0x10000000); in gk104_engn_status()
211 status->next.id = (stat & 0x0fff0000) >> 16; in gk104_engn_status()
212 status->chsw = !!(stat & 0x00008000); in gk104_engn_status()
213 status->save = !!(stat & 0x00004000); in gk104_engn_status()
214 status->load = !!(stat & 0x00002000); in gk104_engn_status()
215 status->prev.tsg = !!(stat & 0x00001000); in gk104_engn_status()
216 status->prev.id = (stat & 0x00000fff); in gk104_engn_status()
[all …]
Dtu102.c203 u32 stat = nvkm_rd32(device, 0x002100) & mask; in tu102_fifo_intr() local
205 if (stat & 0x00000001) { in tu102_fifo_intr()
208 stat &= ~0x00000001; in tu102_fifo_intr()
211 if (stat & 0x00000002) { in tu102_fifo_intr()
213 stat &= ~0x00000002; in tu102_fifo_intr()
216 if (stat & 0x00000100) { in tu102_fifo_intr()
219 stat &= ~0x00000100; in tu102_fifo_intr()
222 if (stat & 0x00010000) { in tu102_fifo_intr()
225 stat &= ~0x00010000; in tu102_fifo_intr()
228 if (stat & 0x20000000) { in tu102_fifo_intr()
[all …]
Dga100.c126 u32 stat = nvkm_rd32(device, runl->addr + 0x200 + engn->id * 0x40); in ga100_engn_cxid() local
128 ENGN_DEBUG(engn, "status %08x", stat); in ga100_engn_cxid()
131 switch ((stat & 0x0000e000) >> 13) { in ga100_engn_cxid()
134 case 5 /* SAVE */: return (stat & 0x00000fff); in ga100_engn_cxid()
135 case 6 /* LOAD */: return (stat & 0x0fff0000) >> 16; in ga100_engn_cxid()
138 return (stat & 0x0fff0000) >> 16; in ga100_engn_cxid()
139 return (stat & 0x00000fff); in ga100_engn_cxid()
189 u32 stat = intr & inte; in ga100_runq_intr_1() local
191 if (!stat) { in ga100_runq_intr_1()
196 if (stat & 0x80000000) { in ga100_runq_intr_1()
[all …]
/drivers/media/test-drivers/vidtv/
Dvidtv_demod.c133 c->strength.stat[0].scale = FE_SCALE_DECIBEL; in vidtv_clean_stats()
134 c->strength.stat[0].svalue = 0; in vidtv_clean_stats()
137 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in vidtv_clean_stats()
138 c->cnr.stat[0].svalue = 0; in vidtv_clean_stats()
142 c->pre_bit_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in vidtv_clean_stats()
143 c->pre_bit_error.stat[0].uvalue = 0; in vidtv_clean_stats()
145 c->pre_bit_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in vidtv_clean_stats()
146 c->pre_bit_count.stat[0].uvalue = 0; in vidtv_clean_stats()
148 c->post_bit_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in vidtv_clean_stats()
149 c->post_bit_error.stat[0].uvalue = 0; in vidtv_clean_stats()
[all …]
/drivers/pcmcia/
Dsoc_common.c151 if (skt->stat[i].irq) in __soc_pcmcia_hw_shutdown()
152 free_irq(skt->stat[i].irq, skt); in __soc_pcmcia_hw_shutdown()
162 __soc_pcmcia_hw_shutdown(skt, ARRAY_SIZE(skt->stat)); in soc_pcmcia_hw_shutdown()
171 for (i = 0; i < ARRAY_SIZE(skt->stat); i++) { in soc_pcmcia_request_gpiods()
172 if (!skt->stat[i].name) in soc_pcmcia_request_gpiods()
175 desc = devm_gpiod_get(dev, skt->stat[i].name, GPIOD_IN); in soc_pcmcia_request_gpiods()
178 skt->stat[i].name, PTR_ERR(desc)); in soc_pcmcia_request_gpiods()
182 skt->stat[i].desc = desc; in soc_pcmcia_request_gpiods()
205 for (i = 0; i < ARRAY_SIZE(skt->stat); i++) { in soc_pcmcia_hw_init()
206 if (gpio_is_valid(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/media/pci/mantis/
Dhopper_cards.c56 u32 stat = 0, mask = 0; in hopper_irq_handler() local
67 stat = mmread(MANTIS_INT_STAT); in hopper_irq_handler()
69 if (!(stat & mask)) in hopper_irq_handler()
81 mantis->mantis_int_stat = stat; in hopper_irq_handler()
83 dprintk(MANTIS_DEBUG, 0, "\n-- Stat=<%02x> Mask=<%02x> --", stat, mask); in hopper_irq_handler()
84 if (stat & MANTIS_INT_RISCEN) { in hopper_irq_handler()
87 if (stat & MANTIS_INT_IRQ0) { in hopper_irq_handler()
93 if (stat & MANTIS_INT_IRQ1) { in hopper_irq_handler()
101 if (stat & MANTIS_INT_OCERR) { in hopper_irq_handler()
104 if (stat & MANTIS_INT_PABORT) { in hopper_irq_handler()
[all …]
Dmantis_cards.c65 u32 stat = 0, mask = 0; in mantis_irq_handler() local
76 stat = mmread(MANTIS_INT_STAT); in mantis_irq_handler()
78 if (!(stat & mask)) in mantis_irq_handler()
90 mantis->mantis_int_stat = stat; in mantis_irq_handler()
92 dprintk(MANTIS_DEBUG, 0, "\n-- Stat=<%02x> Mask=<%02x> --", stat, mask); in mantis_irq_handler()
93 if (stat & MANTIS_INT_RISCEN) { in mantis_irq_handler()
96 if (stat & MANTIS_INT_IRQ0) { in mantis_irq_handler()
102 if (stat & MANTIS_INT_IRQ1) { in mantis_irq_handler()
110 if (stat & MANTIS_INT_OCERR) { in mantis_irq_handler()
113 if (stat & MANTIS_INT_PABORT) { in mantis_irq_handler()
[all …]
/drivers/media/dvb-frontends/
Dmxl5xx.c150 int stat; in read_register_unlocked() local
157 stat = i2cwrite(state, data, in read_register_unlocked()
159 if (stat) in read_register_unlocked()
161 if (!stat) in read_register_unlocked()
162 stat = i2cread(state, (u8 *) val, in read_register_unlocked()
165 if (stat) in read_register_unlocked()
167 return stat; in read_register_unlocked()
175 int stat; in send_command() local
196 stat = i2cwrite(state, buf, size); in send_command()
198 return stat; in send_command()
[all …]
/drivers/gpu/drm/nouveau/nvkm/subdev/privring/
Dgf100.c33 u32 stat = nvkm_rd32(device, 0x122128 + (i * 0x0400)); in gf100_privring_intr_hub() local
34 nvkm_debug(privring, "HUB%d: %06x %08x (%08x)\n", i, addr, data, stat); in gf100_privring_intr_hub()
43 u32 stat = nvkm_rd32(device, 0x124128 + (i * 0x0400)); in gf100_privring_intr_rop() local
44 nvkm_debug(privring, "ROP%d: %06x %08x (%08x)\n", i, addr, data, stat); in gf100_privring_intr_rop()
53 u32 stat = nvkm_rd32(device, 0x128128 + (i * 0x0400)); in gf100_privring_intr_gpc() local
54 nvkm_debug(privring, "GPC%d: %06x %08x (%08x)\n", i, addr, data, stat); in gf100_privring_intr_gpc()
69 u32 stat = 0x00000100 << i; in gf100_privring_intr() local
70 if (intr0 & stat) { in gf100_privring_intr()
72 intr0 &= ~stat; in gf100_privring_intr()
77 u32 stat = 0x00010000 << i; in gf100_privring_intr() local
[all …]
Dgk104.c33 u32 stat = nvkm_rd32(device, 0x122128 + (i * 0x0800)); in gk104_privring_intr_hub() local
34 nvkm_debug(privring, "HUB%d: %06x %08x (%08x)\n", i, addr, data, stat); in gk104_privring_intr_hub()
43 u32 stat = nvkm_rd32(device, 0x124128 + (i * 0x0800)); in gk104_privring_intr_rop() local
44 nvkm_debug(privring, "ROP%d: %06x %08x (%08x)\n", i, addr, data, stat); in gk104_privring_intr_rop()
53 u32 stat = nvkm_rd32(device, 0x128128 + (i * 0x0800)); in gk104_privring_intr_gpc() local
54 nvkm_debug(privring, "GPC%d: %06x %08x (%08x)\n", i, addr, data, stat); in gk104_privring_intr_gpc()
69 u32 stat = 0x00000100 << i; in gk104_privring_intr() local
70 if (intr0 & stat) { in gk104_privring_intr()
72 intr0 &= ~stat; in gk104_privring_intr()
77 u32 stat = 0x00010000 << i; in gk104_privring_intr() local
[all …]
/drivers/gpu/drm/nouveau/nvkm/engine/disp/
Dgv100.c344 u32 stat = nvkm_rd32(device, 0x610664 + soff); in gv100_disp_dmac_idle()
345 if ((stat & 0x000f0000) == 0x00040000) in gv100_disp_dmac_idle()
559 u32 stat = nvkm_rd32(device, 0x610664 + soff); in gv100_disp_curs_idle()
560 if ((stat & 0x00070000) == 0x00040000) in gv100_disp_curs_idle()
725 u32 stat = nvkm_rd32(device, 0x610630); in gv100_disp_core_idle()
726 if ((stat & 0x001f0000) == 0x000b0000) in gv100_disp_core_idle()
840 u32 stat, mask[4]; in gv100_disp_super() local
843 stat = nvkm_rd32(device, 0x6107a8); in gv100_disp_super()
845 nvkm_debug(subdev, "supervisor %d: %08x\n", ffs(disp->super.pending), stat); in gv100_disp_super()
898 u32 stat = nvkm_rd32(device, 0x611020 + (chid * 12)); in gv100_disp_exception() local
[all …]
/drivers/soc/qcom/
Drpm_master_stats.c44 struct rpm_master_stats stat; in master_stats_show() local
46 memcpy_fromio(&stat, data->base, sizeof(stat)); in master_stats_show()
50 seq_printf(s, "\tLast shutdown @ %llu\n", stat.shutdown_req); in master_stats_show()
51 seq_printf(s, "\tLast bringup req @ %llu\n", stat.bringup_req); in master_stats_show()
52 seq_printf(s, "\tLast bringup ack @ %llu\n", stat.bringup_ack); in master_stats_show()
53 seq_printf(s, "\tLast wakeup idx: %llu\n", stat.wakeup_idx); in master_stats_show()
54 seq_printf(s, "\tLast XO shutdown enter @ %llu\n", stat.xo_last_enter); in master_stats_show()
55 seq_printf(s, "\tLast XO shutdown exit @ %llu\n", stat.last_exit); in master_stats_show()
56 seq_printf(s, "\tXO total duration: %llu\n", stat.xo_total_dur); in master_stats_show()
57 seq_printf(s, "\tLast sleep transition duration: %u\n", stat.last_sleep_trans_dur); in master_stats_show()
[all …]
Dqcom_stats.c71 static void qcom_print_stats(struct seq_file *s, const struct sleep_stats *stat) in qcom_print_stats() argument
73 u64 accumulated = stat->accumulated; in qcom_print_stats()
78 if (stat->last_entered_at > stat->last_exited_at) in qcom_print_stats()
79 accumulated += arch_timer_read_counter() - stat->last_entered_at; in qcom_print_stats()
81 seq_printf(s, "Count: %u\n", stat->count); in qcom_print_stats()
82 seq_printf(s, "Last Entered At: %llu\n", stat->last_entered_at); in qcom_print_stats()
83 seq_printf(s, "Last Exited At: %llu\n", stat->last_exited_at); in qcom_print_stats()
90 struct sleep_stats *stat; in qcom_subsystem_sleep_stats_show() local
93 stat = qcom_smem_get(subsystem->pid, subsystem->smem_item, NULL); in qcom_subsystem_sleep_stats_show()
94 if (IS_ERR(stat)) in qcom_subsystem_sleep_stats_show()
[all …]
/drivers/mmc/host/
Dmxcmmc.c340 static void mxcmci_cmd_done(struct mxcmci_host *host, unsigned int stat);
341 static void mxcmci_data_done(struct mxcmci_host *host, unsigned int stat);
346 u32 stat; in mxcmci_dma_callback() local
350 stat = mxcmci_readl(host, MMC_REG_STATUS); in mxcmci_dma_callback()
352 dev_dbg(mmc_dev(host->mmc), "%s: 0x%08x\n", __func__, stat); in mxcmci_dma_callback()
354 mxcmci_data_done(host, stat); in mxcmci_dma_callback()
429 static int mxcmci_finish_data(struct mxcmci_host *host, unsigned int stat) in mxcmci_finish_data() argument
440 if (stat & STATUS_ERR_MASK) { in mxcmci_finish_data()
442 stat); in mxcmci_finish_data()
443 if (stat & STATUS_CRC_READ_ERR) { in mxcmci_finish_data()
[all …]
/drivers/gpu/drm/nouveau/nvkm/subdev/bus/
Dgf100.c32 u32 stat = nvkm_rd32(device, 0x001100) & nvkm_rd32(device, 0x001140); in gf100_bus_intr() local
34 if (stat & 0x0000000e) { in gf100_bus_intr()
42 (stat & 0x00000002) ? "!ENGINE " : "", in gf100_bus_intr()
43 (stat & 0x00000004) ? "PRIVRING " : "", in gf100_bus_intr()
44 (stat & 0x00000008) ? "TIMEOUT " : ""); in gf100_bus_intr()
47 nvkm_wr32(device, 0x001100, (stat & 0x0000000e)); in gf100_bus_intr()
48 stat &= ~0x0000000e; in gf100_bus_intr()
51 if (stat) { in gf100_bus_intr()
52 nvkm_error(subdev, "intr %08x\n", stat); in gf100_bus_intr()
53 nvkm_mask(device, 0x001140, stat, 0x00000000); in gf100_bus_intr()
/drivers/i2c/busses/
Di2c-designware-slave.c101 unsigned int stat, dummy; in i2c_dw_read_clear_intrbits_slave() local
115 regmap_read(dev->map, DW_IC_INTR_STAT, &stat); in i2c_dw_read_clear_intrbits_slave()
124 if (stat & DW_IC_INTR_TX_ABRT) in i2c_dw_read_clear_intrbits_slave()
126 if (stat & DW_IC_INTR_RX_UNDER) in i2c_dw_read_clear_intrbits_slave()
128 if (stat & DW_IC_INTR_RX_OVER) in i2c_dw_read_clear_intrbits_slave()
130 if (stat & DW_IC_INTR_TX_OVER) in i2c_dw_read_clear_intrbits_slave()
132 if (stat & DW_IC_INTR_RX_DONE) in i2c_dw_read_clear_intrbits_slave()
134 if (stat & DW_IC_INTR_ACTIVITY) in i2c_dw_read_clear_intrbits_slave()
136 if (stat & DW_IC_INTR_STOP_DET) in i2c_dw_read_clear_intrbits_slave()
138 if (stat & DW_IC_INTR_START_DET) in i2c_dw_read_clear_intrbits_slave()
[all …]

12345678910>>...26