Home
last modified time | relevance | path

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

123456789

/drivers/cpufreq/
Dcpufreq_stats.c56 struct cpufreq_stats *stat; in cpufreq_stats_update() local
61 stat = per_cpu(cpufreq_stats_table, cpu); in cpufreq_stats_update()
62 if (stat->time_in_state) in cpufreq_stats_update()
63 stat->time_in_state[stat->last_index] = in cpufreq_stats_update()
64 cputime64_add(stat->time_in_state[stat->last_index], in cpufreq_stats_update()
65 cputime_sub(cur_time, stat->last_time)); in cpufreq_stats_update()
66 stat->last_time = cur_time; in cpufreq_stats_update()
74 struct cpufreq_stats *stat = per_cpu(cpufreq_stats_table, policy->cpu); in show_total_trans() local
75 if (!stat) in show_total_trans()
78 per_cpu(cpufreq_stats_table, stat->cpu)->total_trans); in show_total_trans()
[all …]
/drivers/ide/
Dide-cd_ioctl.c45 int stat; in ide_cdrom_drive_status() local
50 stat = cdrom_check_status(drive, &sense); in ide_cdrom_drive_status()
51 if (!stat || sense.sense_key == UNIT_ATTENTION) in ide_cdrom_drive_status()
133 int stat; in ide_cd_lockdoor() local
140 stat = 0; in ide_cd_lockdoor()
149 stat = ide_cd_queue_pc(drive, cmd, 0, NULL, NULL, in ide_cd_lockdoor()
155 if (stat != 0 && in ide_cd_lockdoor()
161 stat = 0; in ide_cd_lockdoor()
165 if (stat != 0 && sense->sense_key == NOT_READY && sense->asc == 0x3a) in ide_cd_lockdoor()
166 stat = 0; in ide_cd_lockdoor()
[all …]
Dide-taskfile.c125 u8 stat; in task_no_data_intr() local
130 stat = hwif->tp_ops->read_status(hwif); in task_no_data_intr()
131 if ((stat & ATA_BUSY) == 0 || retries-- == 0) in task_no_data_intr()
136 if (!OK_STAT(stat, ATA_DRDY, BAD_STAT)) { in task_no_data_intr()
140 (void)ide_dump_status(drive, __func__, stat); in task_no_data_intr()
143 if ((stat & (ATA_ERR | ATA_DRQ)) == 0) { in task_no_data_intr()
149 return ide_error(drive, "task_no_data_intr", stat); in task_no_data_intr()
154 ide_end_drive_cmd(drive, stat, ide_read_error(drive)); in task_no_data_intr()
163 ide_end_drive_cmd(drive, stat, ide_read_error(drive)); in task_no_data_intr()
174 u8 stat; in wait_drive_not_busy() local
[all …]
Dide-cd.c318 int stat, err, sense_key; in cdrom_decode_status() local
321 stat = hwif->tp_ops->read_status(hwif); in cdrom_decode_status()
324 *stat_ret = stat; in cdrom_decode_status()
326 if (OK_STAT(stat, good_stat, BAD_R_STAT)) in cdrom_decode_status()
341 __func__, stat, good_stat, rq->cmd[0], rq->cmd_type, err); in cdrom_decode_status()
351 ide_error(drive, "request sense failure", stat); in cdrom_decode_status()
382 ide_dump_status(drive, "packet command error", stat); in cdrom_decode_status()
456 ide_dump_status_no_sense(drive, "command error", stat); in cdrom_decode_status()
465 stat); in cdrom_decode_status()
470 stat); in cdrom_decode_status()
[all …]
Dide-iops.c447 u8 stat = 0; in drive_is_ready() local
460 stat = hwif->tp_ops->read_altstatus(hwif); in drive_is_ready()
463 stat = hwif->tp_ops->read_status(hwif); in drive_is_ready()
465 if (stat & ATA_BUSY) in drive_is_ready()
492 u8 stat; in __ide_wait_stat() local
495 stat = tp_ops->read_status(hwif); in __ide_wait_stat()
497 if (stat & ATA_BUSY) { in __ide_wait_stat()
501 while ((stat = tp_ops->read_status(hwif)) & ATA_BUSY) { in __ide_wait_stat()
508 stat = tp_ops->read_status(hwif); in __ide_wait_stat()
509 if ((stat & ATA_BUSY) == 0) in __ide_wait_stat()
[all …]
/drivers/media/dvb/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 …]
Dfiredtv-fe.c89 struct firedtv_tuner_status stat; in fdtv_read_status() local
91 if (avc_tuner_status(fdtv, &stat)) in fdtv_read_status()
94 if (stat.no_rf) in fdtv_read_status()
105 struct firedtv_tuner_status stat; in fdtv_read_ber() local
107 if (avc_tuner_status(fdtv, &stat)) in fdtv_read_ber()
110 *ber = stat.ber; in fdtv_read_ber()
117 struct firedtv_tuner_status stat; in fdtv_read_signal_strength() local
119 if (avc_tuner_status(fdtv, &stat)) in fdtv_read_signal_strength()
122 *strength = stat.signal_strength << 8; in fdtv_read_signal_strength()
129 struct firedtv_tuner_status stat; in fdtv_read_snr() local
[all …]
/drivers/mmc/host/
Dmxcmmc.c266 static int mxcmci_finish_data(struct mxcmci_host *host, unsigned int stat) in mxcmci_finish_data() argument
279 if (stat & STATUS_ERR_MASK) { in mxcmci_finish_data()
281 stat); in mxcmci_finish_data()
282 if (stat & STATUS_CRC_READ_ERR) { in mxcmci_finish_data()
284 } else if (stat & STATUS_CRC_WRITE_ERR) { in mxcmci_finish_data()
285 u32 err_code = (stat >> 9) & 0x3; in mxcmci_finish_data()
290 } else if (stat & STATUS_TIME_OUT_READ) { in mxcmci_finish_data()
306 static void mxcmci_read_response(struct mxcmci_host *host, unsigned int stat) in mxcmci_read_response() argument
315 if (stat & STATUS_TIME_OUT_RESP) { in mxcmci_read_response()
318 } else if (stat & STATUS_RESP_CRC_ERR && cmd->flags & MMC_RSP_CRC) { in mxcmci_read_response()
[all …]
Dimxmmc.c414 static int imxmci_finish_data(struct imxmci_host *host, unsigned int stat) in imxmci_finish_data() argument
425 if (stat & STATUS_ERR_MASK) { in imxmci_finish_data()
426 dev_dbg(mmc_dev(host->mmc), "request failed. status: 0x%08x\n", stat); in imxmci_finish_data()
427 if (stat & (STATUS_CRC_READ_ERR | STATUS_CRC_WRITE_ERR)) in imxmci_finish_data()
429 else if (stat & STATUS_TIME_OUT_READ) in imxmci_finish_data()
444 static int imxmci_cmd_done(struct imxmci_host *host, unsigned int stat) in imxmci_cmd_done() argument
456 if (stat & STATUS_TIME_OUT_RESP) { in imxmci_cmd_done()
459 } else if (stat & STATUS_RESP_CRC_ERR && cmd->flags & MMC_RSP_CRC) { in imxmci_cmd_done()
482 if (data && !cmd->error && !(stat & STATUS_ERR_MASK)) { in imxmci_cmd_done()
487 stat = readw(host->base + MMC_REG_STATUS); in imxmci_cmd_done()
[all …]
/drivers/i2c/busses/
Di2c-au1550.c53 u32 stat; in wait_xfer_done() local
62 stat = sp->psc_smbstat; in wait_xfer_done()
64 if ((stat & PSC_SMBSTAT_TE) != 0) in wait_xfer_done()
76 u32 stat; in wait_ack() local
84 stat = sp->psc_smbevnt; in wait_ack()
87 if ((stat & (PSC_SMBEVNT_DN | PSC_SMBEVNT_AN | PSC_SMBEVNT_AL)) != 0) in wait_ack()
96 u32 stat; in wait_master_done() local
105 stat = sp->psc_smbevnt; in wait_master_done()
107 if ((stat & PSC_SMBEVNT_MD) != 0) in wait_master_done()
119 u32 stat; in do_address() local
[all …]
Di2c-omap.c572 omap_i2c_ack_stat(struct omap_i2c_dev *dev, u16 stat) in omap_i2c_ack_stat() argument
574 omap_i2c_write_reg(dev, OMAP_I2C_STAT_REG, stat); in omap_i2c_ack_stat()
643 u16 stat, w; in omap_i2c_isr() local
650 while ((stat = (omap_i2c_read_reg(dev, OMAP_I2C_STAT_REG))) & bits) { in omap_i2c_isr()
651 dev_dbg(dev->dev, "IRQ (ISR = 0x%04x)\n", stat); in omap_i2c_isr()
657 omap_i2c_write_reg(dev, OMAP_I2C_STAT_REG, stat); in omap_i2c_isr()
660 if (stat & OMAP_I2C_STAT_NACK) { in omap_i2c_isr()
665 if (stat & OMAP_I2C_STAT_AL) { in omap_i2c_isr()
669 if (stat & (OMAP_I2C_STAT_ARDY | OMAP_I2C_STAT_NACK | in omap_i2c_isr()
672 if (stat & (OMAP_I2C_STAT_RRDY | OMAP_I2C_STAT_RDR)) { in omap_i2c_isr()
[all …]
Di2c-pnx.c310 u32 stat, ctl; in i2c_pnx_interrupt() local
319 stat = ioread32(I2C_REG_STS(alg_data)); in i2c_pnx_interrupt()
322 if (stat & mstatus_afi) { in i2c_pnx_interrupt()
335 } else if (stat & mstatus_nai) { in i2c_pnx_interrupt()
364 if ((stat & mstatus_drmi) || !(stat & mstatus_rfe)) { in i2c_pnx_interrupt()
374 stat = ioread32(I2C_REG_STS(alg_data)); in i2c_pnx_interrupt()
375 iowrite32(stat | mstatus_tdi | mstatus_afi, I2C_REG_STS(alg_data)); in i2c_pnx_interrupt()
410 u32 stat; in bus_reset_if_active() local
412 if ((stat = ioread32(I2C_REG_STS(alg_data))) & mstatus_active) { in bus_reset_if_active()
419 } else if (!(stat & mstatus_rfe) || !(stat & mstatus_tfe)) { in bus_reset_if_active()
[all …]
/drivers/net/hamradio/
Dscc.c337 scc->stat.nospace++; in scc_notify()
349 scc->stat.rxerrs++; /* then count it as an error */ in flush_rx_FIFO()
370 scc->stat.txints++; in scc_txint()
397 scc->stat.tx_state = TXS_ACTIVE; in scc_txint()
418 scc->stat.tx_state = TXS_NEWFRAME; /* next frame... */ in scc_txint()
434 scc->stat.exints++; in scc_exint()
494 if (scc->stat.tx_state == TXS_ACTIVE && (status & TxEOM)) in scc_exint()
496 scc->stat.tx_under++; /* oops, an underrun! count 'em */ in scc_exint()
519 scc->stat.rxints++; in scc_rxint()
532 skb = dev_alloc_skb(scc->stat.bufsize); in scc_rxint()
[all …]
Dbaycom_epp.c177 unsigned char stat; member
431 static int transmit(struct baycom_state *bc, int cnt, unsigned char stat) in transmit() argument
437 if (bc->hdlctx.state == tx_tail && !(stat & EPP_PTTBIT)) in transmit()
445 if (!(stat & EPP_DCDBIT)) { in transmit()
652 unsigned char stat; in epp_bh() local
664 if (pp->ops->epp_read_addr(pp, &stat, 1, 0) != 1) in epp_bh()
666 bc->stat = stat; in epp_bh()
667 bc->debug_vals.last_pllcorr = stat; in epp_bh()
690 if (transmit(bc, cnt2, stat)) in epp_bh()
695 if (pp->ops->epp_read_addr(pp, &stat, 1, 0) != 1) in epp_bh()
[all …]
/drivers/media/video/pvrusb2/
Dpvrusb2-ioread.c162 int stat; in pvr2_ioread_start() local
169 stat = pvr2_buffer_queue(bp); in pvr2_ioread_start()
170 if (stat < 0) { in pvr2_ioread_start()
175 cp,stat); in pvr2_ioread_start()
177 return stat; in pvr2_ioread_start()
257 int stat; in pvr2_ioread_get_buffer() local
262 stat = pvr2_buffer_queue(cp->c_buf); in pvr2_ioread_get_buffer()
263 if (stat < 0) { in pvr2_ioread_get_buffer()
269 cp,stat); in pvr2_ioread_get_buffer()
284 stat = pvr2_buffer_get_status(cp->c_buf); in pvr2_ioread_get_buffer()
[all …]
/drivers/net/wan/
Dhd64570.c179 writeb(0, &desc->stat); in sca_init_port()
229 u8 stat = sca_in(msci + ST1, card); /* read MSCI ST1 status */ in sca_msci_intr() local
232 sca_out(stat & (ST1_UDRN | ST1_CDCD), msci + ST1, card); in sca_msci_intr()
234 if (stat & ST1_UDRN) { in sca_msci_intr()
240 if (stat & ST1_CDCD) in sca_msci_intr()
298 u8 stat = sca_in(DSR_RX(phy_node(port)), card); /* read DMA Status */ in sca_rx_intr() local
301 sca_out((stat & (DSR_EOT | DSR_EOM | DSR_BOF | DSR_COF)) | DSR_DWE, in sca_rx_intr()
304 if (stat & DSR_BOF) in sca_rx_intr()
317 stat = readb(&desc->stat); in sca_rx_intr()
318 if (!(stat & ST_RX_EOM)) in sca_rx_intr()
[all …]
Dwanxl.c168 switch (desc->stat) { in wanxl_tx_intr()
183 desc->stat = PACKET_EMPTY; /* Free descriptor */ in wanxl_tx_intr()
198 desc->stat != PACKET_EMPTY) { in wanxl_rx_intr()
199 if ((desc->stat & PACKET_PORT_MASK) > card->n_ports) in wanxl_rx_intr()
204 port_t *port = &card->ports[desc->stat & in wanxl_rx_intr()
237 desc->stat = PACKET_EMPTY; /* Free descriptor */ in wanxl_rx_intr()
248 u32 stat; in wanxl_intr() local
252 while((stat = readl(card->plx + PLX_DOORBELL_FROM_CARD)) != 0) { in wanxl_intr()
254 writel(stat, card->plx + PLX_DOORBELL_FROM_CARD); in wanxl_intr()
257 if (stat & (1 << (DOORBELL_FROM_CARD_TX_0 + i))) in wanxl_intr()
[all …]
Dhd64572.c153 writeb(0, &desc->stat); in sca_init_port()
241 u8 stat = sca_in(DSR_RX(port->chan), card); /* read DMA Status */ in sca_rx_done() local
245 sca_out((stat & (DSR_EOT | DSR_EOM | DSR_BOF | DSR_COF)) | DSR_DWE, in sca_rx_done()
248 if (stat & DSR_BOF) in sca_rx_done()
261 stat = readb(&desc->stat); in sca_rx_done()
262 if (!(stat & ST_RX_EOM)) in sca_rx_done()
264 else if ((stat & ST_ERROR_MASK) || port->rxpart) { in sca_rx_done()
266 if (stat & ST_RX_OVERRUN) in sca_rx_done()
268 else if ((stat & (ST_RX_SHORT | ST_RX_ABORT | in sca_rx_done()
271 else if (stat & ST_RX_CRC) in sca_rx_done()
[all …]
/drivers/serial/
Duartlite.c76 static int ulite_receive(struct uart_port *port, int stat) in ulite_receive() argument
82 if ((stat & (ULITE_STATUS_RXVALID | ULITE_STATUS_OVERRUN in ulite_receive()
87 if (stat & ULITE_STATUS_RXVALID) { in ulite_receive()
91 if (stat & ULITE_STATUS_PARITY) in ulite_receive()
95 if (stat & ULITE_STATUS_OVERRUN) in ulite_receive()
98 if (stat & ULITE_STATUS_FRAME) in ulite_receive()
103 if (stat & port->ignore_status_mask & ULITE_STATUS_PARITY) in ulite_receive()
104 stat &= ~ULITE_STATUS_RXVALID; in ulite_receive()
106 stat &= port->read_status_mask; in ulite_receive()
108 if (stat & ULITE_STATUS_PARITY) in ulite_receive()
[all …]
Dsunsab.c111 union sab82532_irq_status *stat) in receive_chars() argument
124 if (stat->sreg.isr0 & SAB82532_ISR0_RPF) { in receive_chars()
129 if (stat->sreg.isr0 & SAB82532_ISR0_TCD) { in receive_chars()
135 if (stat->sreg.isr0 & SAB82532_ISR0_TIME) { in receive_chars()
141 if (stat->sreg.isr0 & SAB82532_ISR0_RFO) in receive_chars()
155 if ((stat->sreg.isr1 & SAB82532_ISR1_BRK) && in receive_chars()
170 if (unlikely(stat->sreg.isr0 & (SAB82532_ISR0_PERR | in receive_chars()
173 unlikely(stat->sreg.isr1 & SAB82532_ISR1_BRK)) { in receive_chars()
177 if (stat->sreg.isr1 & SAB82532_ISR1_BRK) { in receive_chars()
178 stat->sreg.isr0 &= ~(SAB82532_ISR0_PERR | in receive_chars()
[all …]
Dbfin_sport_uart.c205 unsigned int stat = SPORT_GET_STAT(up); in sport_uart_err_irq() local
208 if (stat & ROVF) { in sport_uart_err_irq()
214 if (stat & (TOVF | TUVF | RUVF)) { in sport_uart_err_irq()
216 (stat & TOVF)?"TX overflow":"", in sport_uart_err_irq()
217 (stat & TUVF)?"TX underflow":"", in sport_uart_err_irq()
218 (stat & RUVF)?"RX underflow":""); in sport_uart_err_irq()
320 unsigned int stat; in sport_tx_empty() local
322 stat = SPORT_GET_STAT(up); in sport_tx_empty()
323 pr_debug("%s stat:%04x\n", __func__, stat); in sport_tx_empty()
324 if (stat & TXHRE) { in sport_tx_empty()
[all …]
/drivers/block/
Dhd.c196 static void dump_status(const char *msg, unsigned int stat) in dump_status() argument
203 printk("%s: %s: status=0x%02x { ", name, msg, stat & 0xff); in dump_status()
204 if (stat & BUSY_STAT) printk("Busy "); in dump_status()
205 if (stat & READY_STAT) printk("DriveReady "); in dump_status()
206 if (stat & WRERR_STAT) printk("WriteFault "); in dump_status()
207 if (stat & SEEK_STAT) printk("SeekComplete "); in dump_status()
208 if (stat & DRQ_STAT) printk("DataRequest "); in dump_status()
209 if (stat & ECC_STAT) printk("CorrectedError "); in dump_status()
210 if (stat & INDEX_STAT) printk("Index "); in dump_status()
211 if (stat & ERR_STAT) printk("Error "); in dump_status()
[all …]
/drivers/rtc/
Drtc-ds1374.c112 int control, stat; in ds1374_check_rtc_status() local
114 stat = i2c_smbus_read_byte_data(client, DS1374_REG_SR); in ds1374_check_rtc_status()
115 if (stat < 0) in ds1374_check_rtc_status()
116 return stat; in ds1374_check_rtc_status()
118 if (stat & DS1374_REG_SR_OSF) in ds1374_check_rtc_status()
123 stat &= ~(DS1374_REG_SR_OSF | DS1374_REG_SR_AF); in ds1374_check_rtc_status()
125 ret = i2c_smbus_write_byte_data(client, DS1374_REG_SR, stat); in ds1374_check_rtc_status()
280 int stat, control; in ds1374_work() local
284 stat = i2c_smbus_read_byte_data(client, DS1374_REG_SR); in ds1374_work()
285 if (stat < 0) in ds1374_work()
[all …]
/drivers/scsi/libsas/
Dsas_ata.c48 switch (ts->stat) { in sas_to_ata_err()
77 __func__, ts->stat); in sas_to_ata_err()
96 struct task_status_struct *stat = &task->task_status; in sas_ata_task_done() local
97 struct ata_task_resp *resp = (struct ata_task_resp *)stat->buf; in sas_ata_task_done()
109 if (stat->stat == SAS_PROTO_RESPONSE || stat->stat == SAM_GOOD) { in sas_ata_task_done()
115 } else if (stat->stat != SAM_STAT_GOOD) { in sas_ata_task_done()
116 ac = sas_to_ata_err(stat); in sas_ata_task_done()
119 stat->stat); in sas_ata_task_done()
508 if (task->task_status.stat == SAM_BUSY || in sas_execute_task()
509 task->task_status.stat == SAM_TASK_SET_FULL || in sas_execute_task()
[all …]
/drivers/spi/
Dau1550_spi.c178 u32 cfg, stat; in au1550_spi_chipsel() local
223 stat = hw->regs->psc_spistat; in au1550_spi_chipsel()
225 } while ((stat & PSC_SPISTAT_DR) == 0); in au1550_spi_chipsel()
238 u32 cfg, stat; in au1550_spi_setupxfer() local
277 stat = hw->regs->psc_spistat; in au1550_spi_setupxfer()
279 } while ((stat & PSC_SPISTAT_DR) == 0); in au1550_spi_setupxfer()
462 u32 stat, evnt; in au1550_spi_dma_irq_callback() local
464 stat = hw->regs->psc_spistat; in au1550_spi_dma_irq_callback()
467 if ((stat & PSC_SPISTAT_DI) == 0) { in au1550_spi_dma_irq_callback()
499 "(event=0x%x stat=0x%x)!\n", evnt, stat); in au1550_spi_dma_irq_callback()
[all …]

123456789