Lines Matching refs:hd
109 MBCommChildBlockHeader hd; in MBi_CommRequestFile() local
119 hd.type = MB_COMM_TYPE_CHILD_FILEREQ; in MBi_CommRequestFile()
121 hd.req_data.piece = MBi_SendRequestDataPiece(hd.req_data.data, &req_data); in MBi_CommRequestFile()
123 databuf = MBi_MakeChildSendBuffer(&hd, (u8 *)pCwork->common.sendbuf); in MBi_CommRequestFile()
469 MBCommParentBlockHeader hd; in MBi_CommChildRecvData() local
476 databuf = MBi_SetRecvBufferFromParent(&hd, (u8 *)bufp->data); in MBi_CommChildRecvData()
479 MB_COMM_TYPE_OUTPUT(hd.type); in MBi_CommChildRecvData()
481 switch (hd.type) // State transition depending on receive block type in MBi_CommChildRecvData()
567 if (hd.seqno < 0 || in MBi_CommChildRecvData()
568 hd.seqno >= block_num || in MBi_CommChildRecvData()
569 MBi_get_blockinfo(&bi, &p_child->blockinfo_table, hd.seqno, in MBi_CommChildRecvData()
575 hd.seqno, block_num); in MBi_CommChildRecvData()
579 if (hd.fid != p_child->fileid) in MBi_CommChildRecvData()
583 OS_TWarning("Received File ID [%d] differs from what was requested!\n", hd.fid); in MBi_CommChildRecvData()
592 hd.seqno, bi.child_address, bi.child_address + bi.size); in MBi_CommChildRecvData()
597 if (checkRecvFlag(hd.seqno) == FALSE) in MBi_CommChildRecvData()
600 hd.seqno, countRemainingblocks(), bi.child_address, bi.size); in MBi_CommChildRecvData()
603 setRecvFlag(hd.seqno); in MBi_CommChildRecvData()
645 MBCommChildBlockHeader hd; in MBi_CommChildSendData() local
653 hd.type = MB_COMM_TYPE_DUMMY; in MBi_CommChildSendData()
654 (void)MBi_MakeChildSendBuffer(&hd, (u8 *)pCwork->common.sendbuf); in MBi_CommChildSendData()
671 hd.type = MB_COMM_TYPE_CHILD_ACCEPT_FILEINFO; in MBi_CommChildSendData()
672 (void)MBi_MakeChildSendBuffer(&hd, (u8 *)pCwork->common.sendbuf); in MBi_CommChildSendData()
678 MI_CpuClear8(&hd, sizeof(MBCommChildBlockHeader)); in MBi_CommChildSendData()
679 hd.type = MB_COMM_TYPE_CHILD_CONTINUE; in MBi_CommChildSendData()
680 hd.data.req = get_next_blockno(); in MBi_CommChildSendData()
681 hd.data.reserved[0] = (u8)(0x00ff & pCwork->got_block); // Lo in MBi_CommChildSendData()
682 hd.data.reserved[1] = (u8)((0xff00 & pCwork->got_block) >> 8); // Hi in MBi_CommChildSendData()
683 (void)MBi_MakeChildSendBuffer(&hd, (u8 *)pCwork->common.sendbuf); in MBi_CommChildSendData()
689 hd.type = MB_COMM_TYPE_CHILD_STOPREQ; in MBi_CommChildSendData()
690 (void)MBi_MakeChildSendBuffer(&hd, (u8 *)pCwork->common.sendbuf); in MBi_CommChildSendData()
695 hd.type = MB_COMM_TYPE_CHILD_BOOTREQ_ACCEPTED; in MBi_CommChildSendData()
696 (void)MBi_MakeChildSendBuffer(&hd, (u8 *)pCwork->common.sendbuf); in MBi_CommChildSendData()