Lines Matching refs:mailbox

626  * Setup the amr mailbox
640 AMRDB_PRINT((CE_NOTE, "Cannot alloc dma handle for mailbox"));
656 AMRDB_PRINT((CE_WARN, "Cannot alloc dma memory for mailbox"));
671 AMRDB_PRINT((CE_NOTE, "Cannot bind dma memory for mailbox"));
678 /* The phy address of mailbox must be aligned on a 16-byte boundary */
683 softs->mailbox =
686 AMRDB_PRINT((CE_NOTE, "phraddy=%x, mailbox=%p, softs->mbox=%p, move=%x",
687 softs->mbox_phyaddr, (void *)softs->mailbox,
941 ac.mailbox.mb_command = cmd;
942 ac.mailbox.mb_cmdsub = cmdsub;
943 ac.mailbox.mb_cmdqual = cmdqual;
978 ac.mailbox.mb_command = AMR_CMD_FLUSH;
1000 (void *)&ac->mailbox,
1001 (void *)softs->mailbox,
1013 if ((ac->mailbox.mb_command == AMR_CMD_LREAD) ||
1014 (ac->mailbox.mb_command == AMR_CMD_LWRITE)) {
1023 ac->mailbox.mb_physaddr =
1027 bcopy(&ac->mailbox, (void *)softs->mailbox, AMR_MBOX_CMDSIZE);
1032 /* clear the poll/ack fields in the mailbox */
1033 softs->mailbox->mb_ident = AMR_POLL_COMMAND_ID;
1034 softs->mailbox->mb_nstatus = AMR_POLL_DEFAULT_NSTATUS;
1035 softs->mailbox->mb_status = AMR_POLL_DEFAULT_STATUS;
1036 softs->mailbox->mb_poll = 0;
1037 softs->mailbox->mb_ack = 0;
1038 softs->mailbox->mb_busy = 1;
1045 AMR_DELAY((softs->mailbox->mb_nstatus != AMR_POLL_DEFAULT_NSTATUS),
1052 ac->ac_status = softs->mailbox->mb_status;
1054 AMR_DELAY((softs->mailbox->mb_poll == AMR_POLL_ACK), 1000, done_flag);
1060 softs->mailbox->mb_poll = 0;
1061 softs->mailbox->mb_ack = AMR_POLL_ACK;
1187 ac->mailbox.mb_nsgelem = (uint8_t)nsegments;
1269 ((struct amr_mailbox *)&(ac->mailbox))->mb_param = 0;
1270 ac->mailbox.mb_nsgelem = 0;
1271 ac->mailbox.mb_physaddr = ac->ac_dataphys;
1721 AMR_DELAY((softs->mailbox->mb_busy == 0),
1749 softs->amr_busyslots -= softs->mailbox->mb_nstatus;
1997 ac->mailbox.mb_command = cmd;
1998 ac->mailbox.mb_blkcount =
2000 ac->mailbox.mb_lba = (ac->cmdlen == 10) ?
2002 ac->mailbox.mb_drive = (uint8_t)target;
2121 ac->mailbox.mb_physaddr =
2128 ac->mailbox.mb_ident = ac->ac_slot + 1;
2129 ac->mailbox.mb_busy = 1;
2134 /* clear the poll/ack fields in the mailbox */
2135 softs->mailbox->mb_poll = 0;
2136 softs->mailbox->mb_ack = 0;
2138 AMR_DELAY((softs->mailbox->mb_busy == 0),
2150 bcopy(&ac->mailbox, (void *)softs->mailbox,
2196 if (softs->mailbox->mb_nstatus != 0) {
2200 /* save mailbox, which contains a list of completed commands */
2201 bcopy((void *)(uintptr_t)(volatile void *)softs->mailbox,
2249 "ac in mailbox is NULL!"));
2253 AMRDB_PRINT((CE_WARN, "mailbox is not ready for copy out!"));