Lines Matching refs:pstroke
832 atp_stroke_t *pstroke; in atp_alloc_stroke() local
834 pstroke = TAILQ_FIRST(&sc->sc_stroke_free); in atp_alloc_stroke()
835 if (pstroke == NULL) in atp_alloc_stroke()
838 TAILQ_REMOVE(&sc->sc_stroke_free, pstroke, entry); in atp_alloc_stroke()
839 memset(pstroke, 0, sizeof(*pstroke)); in atp_alloc_stroke()
840 TAILQ_INSERT_TAIL(&sc->sc_stroke_used, pstroke, entry); in atp_alloc_stroke()
844 return (pstroke); in atp_alloc_stroke()
848 atp_free_stroke(struct atp_softc *sc, atp_stroke_t *pstroke) in atp_free_stroke() argument
850 if (pstroke == NULL) in atp_free_stroke()
855 TAILQ_REMOVE(&sc->sc_stroke_used, pstroke, entry); in atp_free_stroke()
856 TAILQ_INSERT_TAIL(&sc->sc_stroke_free, pstroke, entry); in atp_free_stroke()