Lines Matching defs:offset

350 			siop_target->offset = siop_target->period = 0;
392 siop_target->offset = siop_target->period = 0;
407 int sync, offset, options, scf = 0;
420 offset = tables->msg_in[5];
428 siop_target->offset = 0;
433 if (offset > sc->maxoff || sync < sc->dt_minsync ||
436 "offset (%d) or sync (%d) out of range\n",
437 sc->sc_dev.dv_xname, target, offset, sync);
441 siop_target->offset = 0;
452 siop_target->offset = offset;
468 siop_target->offset = 0;
480 siop_target->offset = 0;
490 (siop_target->offset & SXFER_MO_MASK) << 8;
519 int sync, maxoffset, offset, i;
527 offset = tables->msg_in[4];
533 printf("sdtr: sync %d offset %d\n", sync, offset);
535 if (offset > maxoffset || sync < sc->st_minsync ||
544 siop_target->offset = offset;
560 (offset & SXFER_MO_MASK) << 8;
577 siop_target->offset = siop_target->period = 0;
580 printf("sdtr (target): sync %d offset %d\n", sync, offset);
582 if (offset == 0 || sync > sc->st_maxsync) { /* async */
585 if (offset > maxoffset)
586 offset = maxoffset;
596 siop_target->offset = offset;
612 (offset & SXFER_MO_MASK) << 8;
614 siop_sdtr_msg(siop_cmd, 0, sync, offset);
620 siop_target->offset = siop_target->period = 0;
647 siop_sdtr_msg(struct siop_common_cmd *siop_cmd, int offset, int ssync, int soff)
649 siop_cmd->siop_tables->msg_out[offset + 0] = MSG_EXTENDED;
650 siop_cmd->siop_tables->msg_out[offset + 1] = MSG_EXT_SDTR_LEN;
651 siop_cmd->siop_tables->msg_out[offset + 2] = MSG_EXT_SDTR;
652 siop_cmd->siop_tables->msg_out[offset + 3] = ssync;
653 siop_cmd->siop_tables->msg_out[offset + 4] = soff;
655 siop_htoc32(siop_cmd->siop_sc, offset + MSG_EXT_SDTR_LEN + 2);
659 siop_wdtr_msg(struct siop_common_cmd *siop_cmd, int offset, int wide)
661 siop_cmd->siop_tables->msg_out[offset + 0] = MSG_EXTENDED;
662 siop_cmd->siop_tables->msg_out[offset + 1] = MSG_EXT_WDTR_LEN;
663 siop_cmd->siop_tables->msg_out[offset + 2] = MSG_EXT_WDTR;
664 siop_cmd->siop_tables->msg_out[offset + 3] = wide;
666 siop_htoc32(siop_cmd->siop_sc, offset + MSG_EXT_WDTR_LEN + 2);
670 siop_ppr_msg(struct siop_common_cmd *siop_cmd, int offset, int ssync, int soff)
672 siop_cmd->siop_tables->msg_out[offset + 0] = MSG_EXTENDED;
673 siop_cmd->siop_tables->msg_out[offset + 1] = MSG_EXT_PPR_LEN;
674 siop_cmd->siop_tables->msg_out[offset + 2] = MSG_EXT_PPR;
675 siop_cmd->siop_tables->msg_out[offset + 3] = ssync;
676 siop_cmd->siop_tables->msg_out[offset + 4] = 0; /* reserved */
677 siop_cmd->siop_tables->msg_out[offset + 5] = soff;
678 siop_cmd->siop_tables->msg_out[offset + 6] = 1; /* wide */
679 siop_cmd->siop_tables->msg_out[offset + 7] = MSG_EXT_PPR_PROT_DT;
681 siop_htoc32(siop_cmd->siop_sc, offset + MSG_EXT_PPR_LEN + 2);
687 int offset, dbc, sstat;
699 offset = bus_space_read_1(sc->sc_rt, sc->sc_rh, SIOP_SCRATCHA + 1);
700 if (offset >= SIOP_NSG) {
701 printf("%s: bad offset in siop_sdp (%d)\n",
702 sc->sc_dev.dv_xname, offset);
705 table = &siop_cmd->siop_tables->data[offset];
707 printf("siop_ma: offset %d count=%d addr=0x%x ", offset,
751 siop_sdp(struct siop_common_cmd *siop_cmd, int offset)
760 * offset == SIOP_NSG may be a valid condition if we get a Save data
764 if (offset == SIOP_NSG)
767 if (offset > SIOP_NSG) {
769 printf("offset %d > %d\n", offset, SIOP_NSG);
770 panic("siop_sdp: offset");
776 * offset points to the first table with untransferred data.
783 siop_update_resid(siop_cmd, offset);
787 * we have to adjust the table at offset to remove transferred data.
791 table = &siop_cmd->siop_tables->data[offset];
804 bcopy(&siop_cmd->siop_tables->data[offset],
806 (SIOP_NSG - offset) * sizeof(scr_table_t));
810 siop_update_resid(struct siop_common_cmd *siop_cmd, int offset)
824 for (i = 0; i < offset; i++)
828 * if CMDFL_RESID is set, the last table (pointed by offset) is a
829 * partial transfers. If not, offset points to the entry following
833 table = &siop_cmd->siop_tables->data[offset];
842 int offset;
854 offset = bus_space_read_1(sc->sc_rt, sc->sc_rh, SIOP_SCRATCHA + 1);
860 offset--;
861 table = &siop_cmd->siop_tables->data[offset];
878 SIOP_SCRATCHA + 1, offset);
991 if (siop_target->offset == 0)
1023 printf(" MHz %d REQ/ACK offset ", siop_target->offset);