Lines Matching defs:pstroke
829 atp_stroke_t *pstroke;
831 pstroke = TAILQ_FIRST(&sc->sc_stroke_free);
832 if (pstroke == NULL)
835 TAILQ_REMOVE(&sc->sc_stroke_free, pstroke, entry);
836 memset(pstroke, 0, sizeof(*pstroke));
837 TAILQ_INSERT_TAIL(&sc->sc_stroke_used, pstroke, entry);
841 return (pstroke);
845 atp_free_stroke(struct atp_softc *sc, atp_stroke_t *pstroke)
847 if (pstroke == NULL)
852 TAILQ_REMOVE(&sc->sc_stroke_used, pstroke, entry);
853 TAILQ_INSERT_TAIL(&sc->sc_stroke_free, pstroke, entry);