Home
last modified time | relevance | path

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

/include/linux/
Dhdlcdrv.h158 static inline int hdlcdrv_hbuf_full(struct hdlcdrv_hdlcbuffer *hb) in hdlcdrv_hbuf_full() argument
163 spin_lock_irqsave(&hb->lock, flags); in hdlcdrv_hbuf_full()
164 ret = !((HDLCDRV_HDLCBUFFER - 1 + hb->rd - hb->wr) % HDLCDRV_HDLCBUFFER); in hdlcdrv_hbuf_full()
165 spin_unlock_irqrestore(&hb->lock, flags); in hdlcdrv_hbuf_full()
171 static inline int hdlcdrv_hbuf_empty(struct hdlcdrv_hdlcbuffer *hb) in hdlcdrv_hbuf_empty() argument
176 spin_lock_irqsave(&hb->lock, flags); in hdlcdrv_hbuf_empty()
177 ret = (hb->rd == hb->wr); in hdlcdrv_hbuf_empty()
178 spin_unlock_irqrestore(&hb->lock, flags); in hdlcdrv_hbuf_empty()
184 static inline unsigned short hdlcdrv_hbuf_get(struct hdlcdrv_hdlcbuffer *hb) in hdlcdrv_hbuf_get() argument
190 spin_lock_irqsave(&hb->lock, flags); in hdlcdrv_hbuf_get()
[all …]
/include/net/
Drose.h139 unsigned long t1, t2, t3, hb, idle; member