Lines Matching refs:status
151 u16 status; local
157 status = readw(&i2c_base->stat);
160 status = readw(&i2c_base->irqstatus_raw);
162 } while (!(status &
169 status);
176 status = 0;
179 return status;
368 u16 status; local
384 status = wait_for_event(i2c_base, waitdelay);
386 if ((status & ~I2C_STAT_XRDY) == 0 || (status & I2C_STAT_AL)) {
393 if (status == I2C_STAT_XRDY)
395 status);
401 if (!(status & I2C_STAT_NACK)) {
433 u16 status; local
497 status = wait_for_event(i2c_base, waitdelay);
499 if (status == I2C_STAT_XRDY) {
502 status);
505 if (status == 0 || (status & I2C_STAT_NACK)) {
508 status);
512 if (status & I2C_STAT_XRDY) {
520 if (status & I2C_STAT_ARDY) {
537 status = wait_for_event(i2c_base, waitdelay);
543 if (status == I2C_STAT_XRDY) {
546 status);
549 if (status == 0 || (status & I2C_STAT_NACK)) {
553 if (status & I2C_STAT_RRDY) {
557 if (status & I2C_STAT_ARDY) {
574 u16 status; local
635 status = wait_for_event(i2c_base, waitdelay);
637 if (status == I2C_STAT_XRDY) {
640 status);
643 if (status == 0 || (status & I2C_STAT_NACK)) {
646 status);
649 if (status & I2C_STAT_XRDY) {
656 status);
662 status = wait_for_event(i2c_base, waitdelay);
663 if (status == 0 || (status & I2C_STAT_NACK)) {
666 status);
669 if (status & I2C_STAT_XRDY) {
684 status = wait_for_event(i2c_base, waitdelay);
685 } while (!(status & I2C_STAT_ARDY) && timeout--);