Lines Matching full:stat

229 	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()
298 int stat; in dt2801_wait_for_ready() local
300 stat = inb_p(dev->iobase + DT2801_STATUS); in dt2801_wait_for_ready()
301 if (stat & DT_S_READY) in dt2801_wait_for_ready()
304 stat = inb_p(dev->iobase + DT2801_STATUS); in dt2801_wait_for_ready()
306 if (stat & DT_S_COMPOSITE_ERROR) in dt2801_wait_for_ready()
307 return stat; in dt2801_wait_for_ready()
308 if (stat & DT_S_READY) in dt2801_wait_for_ready()
317 int stat; in dt2801_writecmd() local
321 stat = inb_p(dev->iobase + DT2801_STATUS); in dt2801_writecmd()
322 if (stat & DT_S_COMPOSITE_ERROR) { in dt2801_writecmd()
326 if (!(stat & DT_S_READY)) in dt2801_writecmd()
334 unsigned int stat; in dt2801_reset() local
350 stat = inb_p(dev->iobase + DT2801_STATUS); in dt2801_reset()
351 if (stat & DT_S_READY) in dt2801_reset()
355 dev_dbg(dev->class_dev, "timeout 1 status=0x%02x\n", stat); in dt2801_reset()
365 stat = inb_p(dev->iobase + DT2801_STATUS); in dt2801_reset()
366 if (stat & DT_S_READY) in dt2801_reset()
370 dev_dbg(dev->class_dev, "timeout 2 status=0x%02x\n", stat); in dt2801_reset()
380 int stat; in probe_number_of_ai_chans() local
387 stat = dt2801_readdata2(dev, &data); in probe_number_of_ai_chans()
389 if (stat) in probe_number_of_ai_chans()
429 static int dt2801_error(struct comedi_device *dev, int stat) in dt2801_error() argument
431 if (stat < 0) { in dt2801_error()
432 if (stat == -ETIME) in dt2801_error()
435 dev_dbg(dev->class_dev, "error %d\n", stat); in dt2801_error()
436 return stat; in dt2801_error()
438 dev_dbg(dev->class_dev, "error status 0x%02x, resetting...\n", stat); in dt2801_error()
451 int stat; in dt2801_ai_insn_read() local
458 stat = dt2801_readdata2(dev, &d); in dt2801_ai_insn_read()
460 if (stat != 0) in dt2801_ai_insn_read()
461 return dt2801_error(dev, stat); in dt2801_ai_insn_read()