Lines Matching refs:hdl
216 gpib_handle_t hdl; in gpibintr() local
220 hdl = TAILQ_FIRST(&sc->sc_queue); in gpibintr()
221 (hdl->hq_callback)(hdl->hq_softc, GPIBCBF_INTR); in gpibintr()
230 void *arg, gpib_handle_t *hdl) in _gpibregister() argument
233 *hdl = malloc(sizeof(struct gpibqueue), M_DEVBUF, M_WAITOK); in _gpibregister()
234 (*hdl)->hq_slave = slave; in _gpibregister()
235 (*hdl)->hq_callback = callback; in _gpibregister()
236 (*hdl)->hq_softc = arg; in _gpibregister()
245 _gpibrequest(struct gpib_softc *sc, gpib_handle_t hdl) in _gpibrequest() argument
248 DPRINTF(DBG_FOLLOW, ("_gpibrequest: sc=%p hdl=%p\n", sc, hdl)); in _gpibrequest()
250 TAILQ_INSERT_TAIL(&sc->sc_queue, hdl, hq_list); in _gpibrequest()
251 if (TAILQ_FIRST(&sc->sc_queue) == hdl) in _gpibrequest()
261 _gpibrelease(struct gpib_softc *sc, gpib_handle_t hdl) in _gpibrelease() argument
264 DPRINTF(DBG_FOLLOW, ("_gpibrelease: sc=%p hdl=%p\n", sc, hdl)); in _gpibrelease()
266 TAILQ_REMOVE(&sc->sc_queue, hdl, hq_list); in _gpibrelease()
267 if ((hdl = TAILQ_FIRST(&sc->sc_queue)) != NULL) in _gpibrelease()
268 (*hdl->hq_callback)(hdl->hq_softc, GPIBCBF_START); in _gpibrelease()