Searched refs:hb (Results 1 – 3 of 3) sorted by relevance
158 static inline int hdlcdrv_hbuf_full(struct hdlcdrv_hdlcbuffer *hb) in hdlcdrv_hbuf_full() argument163 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() argument176 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() argument190 spin_lock_irqsave(&hb->lock, flags); in hdlcdrv_hbuf_get()[all …]
83 U32 name##hb[maxSymbolValue + 1]; \84 void *name##hv = &(name##hb); \
139 unsigned long t1, t2, t3, hb, idle; member