Home
last modified time | relevance | path

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

12345678910>>...26

/drivers/media/platform/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/gpu/drm/nouveau/nvkm/engine/disp/
Dgv100.c47 u32 stat = nvkm_rd32(device, 0x6107a8); in gv100_disp_super() local
50 nvkm_debug(subdev, "supervisor %d: %08x\n", ffs(disp->super), stat); in gv100_disp_super()
101 u32 stat = nvkm_rd32(device, 0x611020 + (chid * 12)); in gv100_disp_exception() local
102 u32 type = (stat & 0x00007000) >> 12; in gv100_disp_exception()
103 u32 mthd = (stat & 0x00000fff) << 2; in gv100_disp_exception()
117 chid, stat, type, reason ? reason->name : "", in gv100_disp_exception()
122 chid, stat, type, reason ? reason->name : "", mthd); in gv100_disp_exception()
143 u32 stat = nvkm_rd32(device, 0x611c30); in gv100_disp_intr_ctrl_disp() local
145 if (stat & 0x00000007) { in gv100_disp_intr_ctrl_disp()
146 disp->super = (stat & 0x00000007); in gv100_disp_intr_ctrl_disp()
[all …]
Dgf119.c94 u32 stat = nvkm_rd32(device, 0x6101f0 + (chid * 12)); in gf119_disp_intr_error() local
95 u32 type = (stat & 0x00007000) >> 12; in gf119_disp_intr_error()
96 u32 mthd = (stat & 0x00000ffc); in gf119_disp_intr_error()
104 chid, stat, type, reason ? reason->name : "", in gf119_disp_intr_error()
130 u32 stat = nvkm_rd32(device, 0x61008c); in gf119_disp_intr() local
131 while (stat) { in gf119_disp_intr()
132 int chid = __ffs(stat); stat &= ~(1 << chid); in gf119_disp_intr()
140 u32 stat = nvkm_rd32(device, 0x61009c); in gf119_disp_intr() local
141 int chid = ffs(stat) - 1; in gf119_disp_intr()
148 u32 stat = nvkm_rd32(device, 0x6100ac); in gf119_disp_intr() local
[all …]
/drivers/ide/
Dide-cd_ioctl.c47 int stat; in ide_cdrom_drive_status() local
52 stat = cdrom_check_status(drive, &sshdr); in ide_cdrom_drive_status()
53 if (!stat || sshdr.sense_key == UNIT_ATTENTION) in ide_cdrom_drive_status()
140 int stat; in ide_cd_lockdoor() local
144 stat = 0; in ide_cd_lockdoor()
153 stat = ide_cd_queue_pc(drive, cmd, 0, NULL, NULL, in ide_cd_lockdoor()
159 if (stat != 0 && in ide_cd_lockdoor()
165 stat = 0; in ide_cd_lockdoor()
169 if (stat != 0 && sshdr.sense_key == NOT_READY && sshdr.asc == 0x3a) in ide_cd_lockdoor()
170 stat = 0; in ide_cd_lockdoor()
[all …]
Dide-iops.c114 u8 stat; in __ide_wait_stat() local
117 stat = tp_ops->read_status(hwif); in __ide_wait_stat()
119 if (stat & ATA_BUSY) { in __ide_wait_stat()
125 while ((stat = tp_ops->read_status(hwif)) & ATA_BUSY) { in __ide_wait_stat()
132 stat = tp_ops->read_status(hwif); in __ide_wait_stat()
133 if ((stat & ATA_BUSY) == 0) in __ide_wait_stat()
138 *rstat = stat; in __ide_wait_stat()
154 stat = tp_ops->read_status(hwif); in __ide_wait_stat()
156 if (OK_STAT(stat, good, bad)) { in __ide_wait_stat()
157 *rstat = stat; in __ide_wait_stat()
[all …]
/drivers/staging/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.c105 int stat; in ddb_irq_msi() local
108 stat = pci_alloc_irq_vectors(dev->pdev, 1, nr, in ddb_irq_msi()
110 if (stat >= 1) { in ddb_irq_msi()
111 dev->msi = stat; in ddb_irq_msi()
123 int stat; in ddb_irq_init() local
141 stat = request_irq(pci_irq_vector(dev->pdev, 0), in ddb_irq_init()
144 if (stat < 0) in ddb_irq_init()
145 return stat; in ddb_irq_init()
146 stat = request_irq(pci_irq_vector(dev->pdev, 1), in ddb_irq_init()
149 if (stat < 0) { in ddb_irq_init()
[all …]
Dddbridge-sx8.c70 int stat; in get_info() local
77 stat = ddb_mci_cmd(&state->mci, &cmd, &state->signal_info); in get_info()
78 return stat; in get_info()
87 p->cnr.stat[0].scale = FE_SCALE_DECIBEL; in get_snr()
88 p->cnr.stat[0].svalue = in get_snr()
104 p->strength.stat[0].scale = FE_SCALE_DECIBEL; in get_strength()
105 p->strength.stat[0].svalue = str; in get_strength()
111 int stat; in read_status() local
118 stat = ddb_mci_cmd(&state->mci, &cmd, &res); in read_status()
119 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()
240 c->strength.stat[0].uvalue = p->in_band_power * 1000; in smsdvb_update_per_slices()
243 c->cnr.stat[0].svalue = p->snr * 1000; in smsdvb_update_per_slices()
250 client->last_per = c->block_error.stat[0].uvalue; in smsdvb_update_per_slices()
251 c->block_error.stat[0].scale = FE_SCALE_COUNTER; in smsdvb_update_per_slices()
[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.c152 if (skt->stat[i].irq) in __soc_pcmcia_hw_shutdown()
153 free_irq(skt->stat[i].irq, skt); in __soc_pcmcia_hw_shutdown()
163 __soc_pcmcia_hw_shutdown(skt, ARRAY_SIZE(skt->stat)); in soc_pcmcia_hw_shutdown()
172 for (i = 0; i < ARRAY_SIZE(skt->stat); i++) { in soc_pcmcia_request_gpiods()
173 if (!skt->stat[i].name) in soc_pcmcia_request_gpiods()
176 desc = devm_gpiod_get(dev, skt->stat[i].name, GPIOD_IN); in soc_pcmcia_request_gpiods()
179 skt->stat[i].name, PTR_ERR(desc)); in soc_pcmcia_request_gpiods()
183 skt->stat[i].desc = desc; in soc_pcmcia_request_gpiods()
206 for (i = 0; i < ARRAY_SIZE(skt->stat); i++) { in soc_pcmcia_hw_init()
207 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 …]
Dmantis_i2c.c28 u32 rxd, i, stat, trials; in mantis_i2c_read() local
47 stat = mmread(MANTIS_INT_STAT); in mantis_i2c_read()
48 if (stat & MANTIS_INT_I2CDONE) in mantis_i2c_read()
56 stat = mmread(MANTIS_INT_STAT); in mantis_i2c_read()
57 if (stat & MANTIS_INT_I2CRACK) in mantis_i2c_read()
75 u32 txd = 0, stat, trials; in mantis_i2c_write() local
95 stat = mmread(MANTIS_INT_STAT); in mantis_i2c_write()
96 if (stat & MANTIS_INT_I2CDONE) in mantis_i2c_write()
104 stat = mmread(MANTIS_INT_STAT); in mantis_i2c_write()
105 if (stat & MANTIS_INT_I2CRACK) in mantis_i2c_write()
[all …]
/drivers/gpu/drm/nouveau/nvkm/subdev/ibus/
Dgk104.c33 u32 stat = nvkm_rd32(device, 0x122128 + (i * 0x0800)); in gk104_ibus_intr_hub() local
34 nvkm_debug(ibus, "HUB%d: %06x %08x (%08x)\n", i, addr, data, stat); in gk104_ibus_intr_hub()
43 u32 stat = nvkm_rd32(device, 0x124128 + (i * 0x0800)); in gk104_ibus_intr_rop() local
44 nvkm_debug(ibus, "ROP%d: %06x %08x (%08x)\n", i, addr, data, stat); in gk104_ibus_intr_rop()
53 u32 stat = nvkm_rd32(device, 0x128128 + (i * 0x0800)); in gk104_ibus_intr_gpc() local
54 nvkm_debug(ibus, "GPC%d: %06x %08x (%08x)\n", i, addr, data, stat); in gk104_ibus_intr_gpc()
69 u32 stat = 0x00000100 << i; in gk104_ibus_intr() local
70 if (intr0 & stat) { in gk104_ibus_intr()
72 intr0 &= ~stat; in gk104_ibus_intr()
77 u32 stat = 0x00010000 << i; in gk104_ibus_intr() local
[all …]
Dgf100.c33 u32 stat = nvkm_rd32(device, 0x122128 + (i * 0x0400)); in gf100_ibus_intr_hub() local
34 nvkm_debug(ibus, "HUB%d: %06x %08x (%08x)\n", i, addr, data, stat); in gf100_ibus_intr_hub()
43 u32 stat = nvkm_rd32(device, 0x124128 + (i * 0x0400)); in gf100_ibus_intr_rop() local
44 nvkm_debug(ibus, "ROP%d: %06x %08x (%08x)\n", i, addr, data, stat); in gf100_ibus_intr_rop()
53 u32 stat = nvkm_rd32(device, 0x128128 + (i * 0x0400)); in gf100_ibus_intr_gpc() local
54 nvkm_debug(ibus, "GPC%d: %06x %08x (%08x)\n", i, addr, data, stat); in gf100_ibus_intr_gpc()
69 u32 stat = 0x00000100 << i; in gf100_ibus_intr() local
70 if (intr0 & stat) { in gf100_ibus_intr()
72 intr0 &= ~stat; in gf100_ibus_intr()
77 u32 stat = 0x00010000 << i; in gf100_ibus_intr() local
[all …]
/drivers/media/dvb-frontends/
Dmxl5xx.c159 int stat; in read_register_unlocked() local
166 stat = i2cwrite(state, data, in read_register_unlocked()
168 if (stat) in read_register_unlocked()
170 if (!stat) in read_register_unlocked()
171 stat = i2cread(state, (u8 *) val, in read_register_unlocked()
174 if (stat) in read_register_unlocked()
176 return stat; in read_register_unlocked()
184 int stat; in send_command() local
205 stat = i2cwrite(state, buf, size); in send_command()
207 return stat; in send_command()
[all …]
/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_ethtool.c30 #define OTX2_DEV_STAT(stat) { \ argument
31 .name = #stat, \
32 .index = offsetof(struct otx2_dev_stats, stat) / sizeof(u64), \
46 #define OTX2_DRV_STAT(stat) { \ argument
47 .name = #stat, \
48 .index = offsetof(struct otx2_drv_stats, stat) / sizeof(atomic_t), \
136 int stat, qidx; in otx2_get_qset_stats() local
142 for (stat = 0; stat < otx2_n_queue_stats; stat++) in otx2_get_qset_stats()
146 for (stat = 0; stat < otx2_n_queue_stats; stat++) in otx2_get_qset_stats()
148 [otx2_queue_stats[stat].index]; in otx2_get_qset_stats()
[all …]
/drivers/mmc/host/
Dmxcmmc.c357 static void mxcmci_cmd_done(struct mxcmci_host *host, unsigned int stat);
358 static void mxcmci_data_done(struct mxcmci_host *host, unsigned int stat);
363 u32 stat; in mxcmci_dma_callback() local
367 stat = mxcmci_readl(host, MMC_REG_STATUS); in mxcmci_dma_callback()
369 dev_dbg(mmc_dev(host->mmc), "%s: 0x%08x\n", __func__, stat); in mxcmci_dma_callback()
371 mxcmci_data_done(host, stat); in mxcmci_dma_callback()
446 static int mxcmci_finish_data(struct mxcmci_host *host, unsigned int stat) in mxcmci_finish_data() argument
457 if (stat & STATUS_ERR_MASK) { in mxcmci_finish_data()
459 stat); in mxcmci_finish_data()
460 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) ? "IBUS " : "", 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.c107 u32 stat, dummy; in i2c_dw_read_clear_intrbits_slave() local
121 regmap_read(dev->map, DW_IC_INTR_STAT, &stat); in i2c_dw_read_clear_intrbits_slave()
130 if (stat & DW_IC_INTR_TX_ABRT) in i2c_dw_read_clear_intrbits_slave()
132 if (stat & DW_IC_INTR_RX_UNDER) in i2c_dw_read_clear_intrbits_slave()
134 if (stat & DW_IC_INTR_RX_OVER) in i2c_dw_read_clear_intrbits_slave()
136 if (stat & DW_IC_INTR_TX_OVER) in i2c_dw_read_clear_intrbits_slave()
138 if (stat & DW_IC_INTR_RX_DONE) in i2c_dw_read_clear_intrbits_slave()
140 if (stat & DW_IC_INTR_ACTIVITY) in i2c_dw_read_clear_intrbits_slave()
142 if (stat & DW_IC_INTR_STOP_DET) in i2c_dw_read_clear_intrbits_slave()
144 if (stat & DW_IC_INTR_START_DET) in i2c_dw_read_clear_intrbits_slave()
[all …]

12345678910>>...26