Home | History | Annotate | Download | only in podulebus

Lines Matching defs:pendp

114 void esc_donextcmd(struct esc_softc *dev, struct esc_pending *pendp);
120 int escselect(struct esc_softc *dev, struct esc_pending *pendp,
123 void escicmd(struct esc_softc *dev, struct esc_pending *pendp);
124 int escgo(struct esc_softc *dev, struct esc_pending *pendp);
272 struct esc_pending *pendp;
290 pendp = dev->sc_xs_free.tqh_first;
291 if (pendp == NULL) {
297 TAILQ_REMOVE(&dev->sc_xs_free, pendp, link);
298 pendp->xs = xs;
306 TAILQ_INSERT_TAIL(&dev->sc_xs_pending, pendp, link);
309 esc_donextcmd(dev, pendp);
324 esc_donextcmd(struct esc_softc *dev, struct esc_pending *pendp)
335 if (pendp->xs->xs_control & XS_CTL_RESET) {
339 while(!escselect(dev, pendp, 0, 0, 0, 0, ESC_SELECT_K)) {
365 if (pendp->xs->xs_control & XS_CTL_POLL) {
367 escicmd(dev, pendp);
368 TAILQ_INSERT_TAIL(&dev->sc_xs_free, pendp, link);
371 escgo(dev, pendp);
379 struct esc_pending *pendp;
404 pendp = dev->sc_xs_pending.tqh_first;
405 while(pendp) {
406 if (!(dev->sc_nexus[pendp->xs->xs_periph->periph_target].flags &
409 pendp = pendp->link.tqe_next;
412 if (pendp != NULL) {
413 TAILQ_REMOVE(&dev->sc_xs_pending, pendp, link);
419 if (pendp)
420 esc_donextcmd(dev, pendp);
797 esc_setup_nexus(struct esc_softc *dev, struct nexus *nexus, struct esc_pending *pendp, unsigned char *cbuf, int clen, unsigned char *buf, int len, int mode)
801 target = pendp->xs->xs_periph->periph_target;
802 lun = pendp->xs->xs_periph->periph_lun;
817 nexus->xs = pendp->xs;
898 escselect(struct esc_softc *dev, struct esc_pending *pendp, unsigned char *cbuf, int clen, unsigned char *buf, int len, int mode)
903 nexus = esc_arbitate_target(dev, pendp->xs->xs_periph->periph_target);
908 esc_setup_nexus(dev, nexus, pendp, cbuf, clen, buf, len, mode);
911 esc_select_unit(dev, pendp->xs->xs_periph->periph_target);
917 escgo(struct esc_softc *dev, struct esc_pending *pendp)
922 buf = pendp->xs->data;
924 if (escselect(dev, pendp, (char *)pendp->xs->cmd, pendp->xs->cmdlen,
925 buf, pendp->xs->datalen, ESC_SELECT_RS)) {
932 TAILQ_INSERT_TAIL(&dev->sc_xs_free, pendp, link);
942 TAILQ_INSERT_HEAD(&dev->sc_xs_pending, pendp, link);
1620 escicmd(struct esc_softc *dev, struct esc_pending *pendp)
1624 nexus = &dev->sc_nexus[pendp->xs->xs_periph->periph_target];
1626 if (!escselect(dev, pendp, (char *)pendp->xs->cmd, pendp->xs->cmdlen,
1627 (char *)pendp->xs->data, pendp->xs->datalen,