Lines Matching refs:tx_circ_buf
78 struct circ_buf tx_circ_buf; member
231 int head = smp_load_acquire(&bg->tx_circ_buf.head); in hdlc_write()
232 int tail = bg->tx_circ_buf.tail; in hdlc_write()
234 const unsigned char *buf = &bg->tx_circ_buf.buf[tail]; in hdlc_write()
240 smp_store_release(&bg->tx_circ_buf.tail, (tail + written) & (TX_CIRC_BUF_SIZE - 1)); in hdlc_write()
253 int tail, head = bg->tx_circ_buf.head; in hdlc_append()
256 tail = READ_ONCE(bg->tx_circ_buf.tail); in hdlc_append()
259 bg->tx_circ_buf.buf[head] = value; in hdlc_append()
262 smp_store_release(&bg->tx_circ_buf.head, in hdlc_append()
417 bg->tx_circ_buf.head = 0; in hdlc_init()
418 bg->tx_circ_buf.tail = 0; in hdlc_init()
420 bg->tx_circ_buf.buf = devm_kmalloc(&bg->sd->dev, TX_CIRC_BUF_SIZE, GFP_KERNEL); in hdlc_init()
421 if (!bg->tx_circ_buf.buf) in hdlc_init()