Lines Matching refs:sr
385 uint8_t sr; in can_sja1000_send() local
410 sr = can_sja1000_read_reg(dev, CAN_SJA1000_SR); in can_sja1000_send()
411 if ((sr & CAN_SJA1000_SR_TBS) == 0) { in can_sja1000_send()
412 LOG_ERR("transmit buffer locked, sr = 0x%02x", sr); in can_sja1000_send()
485 uint8_t sr; in can_sja1000_recover() local
496 sr = can_sja1000_read_reg(dev, CAN_SJA1000_SR); in can_sja1000_recover()
497 if ((sr & CAN_SJA1000_SR_BS) == 0) { in can_sja1000_recover()
518 while ((sr & CAN_SJA1000_SR_BS) != 0) { in can_sja1000_recover()
524 sr = can_sja1000_read_reg(dev, CAN_SJA1000_SR); in can_sja1000_recover()
574 uint8_t sr; in can_sja1000_handle_receive_irq() local
600 sr = can_sja1000_read_reg(dev, CAN_SJA1000_SR); in can_sja1000_handle_receive_irq()
601 } while ((sr & CAN_SJA1000_SR_RBS) != 0); in can_sja1000_handle_receive_irq()
607 uint8_t sr; in can_sja1000_handle_transmit_irq() local
609 sr = can_sja1000_read_reg(dev, CAN_SJA1000_SR); in can_sja1000_handle_transmit_irq()
610 if ((sr & CAN_SJA1000_SR_TCS) == 0) { in can_sja1000_handle_transmit_irq()
673 uint8_t sr; in can_sja1000_handle_error_warning_irq() local
675 sr = can_sja1000_read_reg(dev, CAN_SJA1000_SR); in can_sja1000_handle_error_warning_irq()
676 if ((sr & CAN_SJA1000_SR_BS) != 0) { in can_sja1000_handle_error_warning_irq()
684 } else if ((sr & CAN_SJA1000_SR_ES) != 0) { in can_sja1000_handle_error_warning_irq()