Lines Matching refs:fifo_bytes
708 u8 fifo_bytes; in trf7970a_fill_fifo() local
711 ret = trf7970a_read(trf, TRF7970A_FIFO_STATUS, &fifo_bytes); in trf7970a_fill_fifo()
717 dev_dbg(trf->dev, "Filling FIFO - fifo_bytes: 0x%x\n", fifo_bytes); in trf7970a_fill_fifo()
719 fifo_bytes &= ~TRF7970A_FIFO_STATUS_OVERFLOW; in trf7970a_fill_fifo()
722 len = TRF7970A_FIFO_SIZE - fifo_bytes; in trf7970a_fill_fifo()
742 u8 fifo_bytes; in trf7970a_drain_fifo() local
749 ret = trf7970a_read(trf, TRF7970A_FIFO_STATUS, &fifo_bytes); in trf7970a_drain_fifo()
755 dev_dbg(trf->dev, "Draining FIFO - fifo_bytes: 0x%x\n", fifo_bytes); in trf7970a_drain_fifo()
757 fifo_bytes &= ~TRF7970A_FIFO_STATUS_OVERFLOW; in trf7970a_drain_fifo()
759 if (!fifo_bytes) in trf7970a_drain_fifo()
762 if (fifo_bytes > skb_tailroom(skb)) { in trf7970a_drain_fifo()
764 max_t(int, fifo_bytes, in trf7970a_drain_fifo()
777 skb_put(skb, fifo_bytes), fifo_bytes); in trf7970a_drain_fifo()
791 ret = trf7970a_read(trf, TRF7970A_FIFO_STATUS, &fifo_bytes); in trf7970a_drain_fifo()
797 fifo_bytes &= ~TRF7970A_FIFO_STATUS_OVERFLOW; in trf7970a_drain_fifo()
803 if (fifo_bytes) in trf7970a_drain_fifo()
824 u8 status, fifo_bytes, iso_ctrl; in trf7970a_irq() local
879 &fifo_bytes); in trf7970a_irq()
881 fifo_bytes &= ~TRF7970A_FIFO_STATUS_OVERFLOW; in trf7970a_irq()
885 else if (!fifo_bytes) in trf7970a_irq()