Home
last modified time | relevance | path

Searched refs:TX_CIRC_BUF_SIZE (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/greybus/
H A Dgb-beagleplay.c26 #define TX_CIRC_BUF_SIZE 1024 macro
233 int count = CIRC_CNT_TO_END(head, tail, TX_CIRC_BUF_SIZE); in hdlc_write()
240 smp_store_release(&bg->tx_circ_buf.tail, (tail + written) & (TX_CIRC_BUF_SIZE - 1)); in hdlc_write()
258 if (WARN_ON_ONCE(CIRC_SPACE(head, tail, TX_CIRC_BUF_SIZE) < 1)) in hdlc_append()
264 (head + 1) & (TX_CIRC_BUF_SIZE - 1)); in hdlc_append()
371 if (CIRC_SPACE(head, tail, TX_CIRC_BUF_SIZE) >= needed) in hdlc_tx_frames()
394 if (unlikely(CIRC_SPACE(head, tail, TX_CIRC_BUF_SIZE) < needed)) { in hdlc_tx_frames()
502 bg->tx_circ_buf.buf = devm_kmalloc(&bg->sd->dev, TX_CIRC_BUF_SIZE, GFP_KERNEL); in hdlc_init()
939 bg->gb_hd = gb_hd_create(&gb_hdlc_driver, &bg->sd->dev, TX_CIRC_BUF_SIZE, GB_MAX_CPORTS); in gb_greybus_init()