Lines Matching refs:read_reg
95 priv->read_reg(priv, SJA1000_SR); in sja1000_write_cmdreg()
101 return (priv->read_reg(priv, SJA1000_MOD) == 0xFF); in sja1000_is_absent()
118 unsigned char status = priv->read_reg(priv, SJA1000_MOD); in set_reset_mode()
134 status = priv->read_reg(priv, SJA1000_MOD); in set_reset_mode()
143 unsigned char status = priv->read_reg(priv, SJA1000_MOD); in set_normal_mode()
169 status = priv->read_reg(priv, SJA1000_MOD); in set_normal_mode()
213 if (!(priv->read_reg(priv, SJA1000_CDR) & CDR_PELICAN)) in sja1000_start()
219 priv->read_reg(priv, SJA1000_ECC); in sja1000_start()
222 priv->read_reg(priv, SJA1000_IR); in sja1000_start()
269 bec->txerr = priv->read_reg(priv, SJA1000_TXERR); in sja1000_get_berr_counter()
270 bec->rxerr = priv->read_reg(priv, SJA1000_RXERR); in sja1000_get_berr_counter()
353 fi = priv->read_reg(priv, SJA1000_FI); in sja1000_rx()
358 id = (priv->read_reg(priv, SJA1000_ID1) << 21) in sja1000_rx()
359 | (priv->read_reg(priv, SJA1000_ID2) << 13) in sja1000_rx()
360 | (priv->read_reg(priv, SJA1000_ID3) << 5) in sja1000_rx()
361 | (priv->read_reg(priv, SJA1000_ID4) >> 3); in sja1000_rx()
366 id = (priv->read_reg(priv, SJA1000_ID1) << 3) in sja1000_rx()
367 | (priv->read_reg(priv, SJA1000_ID2) >> 5); in sja1000_rx()
375 cf->data[i] = priv->read_reg(priv, dreg++); in sja1000_rx()
405 txerr = priv->read_reg(priv, SJA1000_TXERR); in sja1000_err()
406 rxerr = priv->read_reg(priv, SJA1000_RXERR); in sja1000_err()
438 ecc = priv->read_reg(priv, SJA1000_ECC); in sja1000_err()
476 alc = priv->read_reg(priv, SJA1000_ALC); in sja1000_err()
511 if (priv->read_reg(priv, SJA1000_IER) == IRQ_OFF) in sja1000_interrupt()
514 while ((isrc = priv->read_reg(priv, SJA1000_IR)) && in sja1000_interrupt()
517 status = priv->read_reg(priv, SJA1000_SR); in sja1000_interrupt()
534 priv->read_reg(priv, SJA1000_FI) & 0xf; in sja1000_interrupt()
545 status = priv->read_reg(priv, SJA1000_SR); in sja1000_interrupt()