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