Lines Matching refs:msg_buf
397 aic->msg_buf[0] = MSG_BUS_DEV_RESET;
467 aic->msg_buf[0] = msg;
554 aic->msg_buf[aic->msg_len++] = aic_inb(aic, SCSIBUS);
555 if (aic->msg_buf[0] == MSG_EXTENDED) {
560 switch (aic->msg_buf[2]) {
571 if (aic->msg_buf[1] != msglen) {
576 } else if (aic->msg_buf[0] >= 0x20 && aic->msg_buf[0] <= 0x2f)
609 if (!MSG_ISIDENTIFY(aic->msg_buf[0])) {
613 aic->lun = aic->msg_buf[0] & MSG_IDENTIFY_LUNMASK;
622 if (aic->msg_buf[0] != MSG_SIMPLE_Q_TAG) {
626 aic_reconnect(aic, aic->msg_buf[1]);
630 switch (aic->msg_buf[0]) {
670 switch (aic->msg_buf[2]) {
675 ti->current.period = aic->msg_buf[3];
676 ti->current.offset = aic->msg_buf[4];
678 ti->current.period = aic->msg_buf[3] =
679 max(ti->goal.period, aic->msg_buf[3]);
680 ti->current.offset = aic->msg_buf[4] =
681 min(ti->goal.offset, aic->msg_buf[4]);
807 aic->msg_buf[0] = MSG_IDENTIFY(scb->lun,
815 aic->msg_buf[0] = ccb->csio.tag_action;
816 aic->msg_buf[1] = scb->tag;
822 aic->msg_buf[0] = MSG_EXTENDED;
823 aic->msg_buf[1] = MSG_EXT_SDTR_LEN;
824 aic->msg_buf[2] = MSG_EXT_SDTR;
825 aic->msg_buf[3] = ti->goal.period;
826 aic->msg_buf[4] = ti->goal.offset;
832 if (aic->msg_buf[0] == MSG_BUS_DEV_RESET ||
833 aic->msg_buf[0] == MSG_ABORT ||
834 aic->msg_buf[0] == MSG_ABORT_TAG)
846 aic_outb(aic, SCSIDAT, aic->msg_buf[msgidx++]);