Lines Matching refs:format
482 WBTPacketFormat *format = (WBTPacketFormat *) dst; in WBTi_MakeCommandHeader() local
483 MI_StoreLE8(&format->header.command, cmd); in WBTi_MakeCommandHeader()
484 MI_StoreLE16(&format->header.bitmap, (u16)target); in WBTi_MakeCommandHeader()
485 MI_StoreLE8(&format->header.counter, counter); in WBTi_MakeCommandHeader()
486 return format; in WBTi_MakeCommandHeader()
513 WBTPacketFormat *format = WBTi_MakeCommandHeader(buf, WBT_CMD_RES_SYNC, (1 << aid), in WBTi_TryCreateResponse() local
516 MI_StoreLE16(&format->res_sync.block_total, (u16)WBT_GetRegisteredCount(work)); in WBTi_TryCreateResponse()
517 MI_StoreLE16(&format->res_sync.peer_packet, (u16)work->my_data_packet_size); in WBTi_TryCreateResponse()
518 MI_StoreLE16(&format->res_sync.own_packet, (u16)work->peer_data_packet_size); in WBTi_TryCreateResponse()
519 ret_size = (int /*temporary */ )sizeof(format->header) + sizeof(format->res_sync); in WBTi_TryCreateResponse()
525 WBTPacketFormat *format = in WBTi_TryCreateResponse() local
528 MI_StoreLE32(&format->res_getblock_done.id, id); in WBTi_TryCreateResponse()
529 ret_size = (int /*temporary */ )sizeof(format->header) + sizeof(format->res_getblock_done); in WBTi_TryCreateResponse()
535 WBTPacketFormat *format = WBTi_MakeCommandHeader(buf, WBT_CMD_RES_USER_DATA, (1 << aid), in WBTi_TryCreateResponse() local
537 ret_size = (int /*temporary */ )sizeof(format->header); in WBTi_TryCreateResponse()
640 WBTPacketFormat *format = in WBTi_TryCreateResponse() local
643 MI_StoreLE32(&format->res_getblock.id, id); in WBTi_TryCreateResponse()
644 MI_StoreLE32(&format->res_getblock.index, (u32)block_seq_no); in WBTi_TryCreateResponse()
645 WBTi_CopySafeMemory(data_ptr, &format->res_getblock + 1, (u32)packet); in WBTi_TryCreateResponse()
646 ret_size = (int /*temporary */ )(sizeof(format->header) + in WBTi_TryCreateResponse()
647 sizeof(format->res_getblock) + packet); in WBTi_TryCreateResponse()
671 WBTPacketFormat *format = WBTi_MakeCommandHeader(buf, WBT_CMD_RES_GET_BLOCKINFO, target, in WBTi_TryCreateResponse() local
673 MI_StoreLE32(&format->res_getblock.id, id); in WBTi_TryCreateResponse()
674 MI_StoreLE32(&format->res_getblock.index, (u32)index); in WBTi_TryCreateResponse()
675 WBTi_CopySafeMemory(data_ptr, &format->res_getblock + 1, (u32)packet); in WBTi_TryCreateResponse()
676 ret_size = (int /*temporary */ )(sizeof(format->header) + sizeof(format->res_getblock) + in WBTi_TryCreateResponse()
712 WBTPacketFormat *format = in WBTi_CheckRequest() local
716 MI_StoreLE16(&format->req_sync.peer_packet, (u16)work->my_data_packet_size); in WBTi_CheckRequest()
717 MI_StoreLE16(&format->req_sync.own_packet, (u16)work->peer_data_packet_size); in WBTi_CheckRequest()
718 send_size = (int /*temporary */ )sizeof(format->header) + sizeof(format->req_sync); in WBTi_CheckRequest()
737 WBTPacketFormat *format = in WBTi_CheckRequest() local
740 MI_StoreLE32(&format->req_getblock_done.id, current->get.block_id); in WBTi_CheckRequest()
741 send_size = (int /*temporary */ )sizeof(format->header) + in WBTi_CheckRequest()
742 sizeof(format->req_getblock_done); in WBTi_CheckRequest()
748 WBTPacketFormat *format = in WBTi_CheckRequest() local
752 MI_StoreLE32(&format->req_getblock.id, current->get.block_id); in WBTi_CheckRequest()
753 MI_StoreLE32(&format->req_getblock.index, (u32)next_seq_no); in WBTi_CheckRequest()
754 send_size = (int /*temporary */ )sizeof(format->header) + in WBTi_CheckRequest()
755 sizeof(format->req_getblock); in WBTi_CheckRequest()
770 WBTPacketFormat *format = in WBTi_CheckRequest() local
773 MI_StoreLE8(&format->req_userdata.length, current->user_data.size); in WBTi_CheckRequest()
774 MI_CpuCopy8(current->user_data.data, &format->req_userdata.buffer, in WBTi_CheckRequest()
777 (int /*temporary */ )sizeof(format->header) + sizeof(format->req_userdata); in WBTi_CheckRequest()
992 WBTPacketFormat *format = in WBT_CallPacketSendHook() local
994 retval = (int /*temporary */ )sizeof(format->header); in WBT_CallPacketSendHook()
1078 const WBTPacketFormat *format = (const WBTPacketFormat *)buffer; in WBT_CallPacketRecvHook() local
1083 command = MI_LoadLE8(&format->header.command); in WBT_CallPacketRecvHook()
1084 bitmap = MI_LoadLE16(&format->header.bitmap); in WBT_CallPacketRecvHook()
1085 token->token_peer_cmd_counter = MI_LoadLE8(&format->header.counter); in WBT_CallPacketRecvHook()
1113 cb->peer_packet_size = (s16)MI_LoadLE16(&format->req_sync.peer_packet); in WBT_CallPacketRecvHook()
1114 cb->my_packet_size = (s16)MI_LoadLE16(&format->req_sync.own_packet); in WBT_CallPacketRecvHook()
1128 cb->size = MI_LoadLE8(&format->req_userdata.length); in WBT_CallPacketRecvHook()
1133 MI_CpuCopy8(format->req_userdata.buffer, cb->data, cb->size); in WBT_CallPacketRecvHook()
1140 token->token_block_id = MI_LoadLE32(&format->req_getblock.id); in WBT_CallPacketRecvHook()
1141 token->token_block_seq_no = (s32)MI_LoadLE32(&format->req_getblock.index); in WBT_CallPacketRecvHook()
1150 cb->block_id = MI_LoadLE32(&format->req_getblock_done.id); in WBT_CallPacketRecvHook()
1153 token->token_block_id = MI_LoadLE32(&format->req_getblock_done.id); in WBT_CallPacketRecvHook()
1184 (s16)MI_LoadLE16(&format->res_sync.block_total); in WBT_CallPacketRecvHook()
1186 (s16)MI_LoadLE16(&format->res_sync.peer_packet); in WBT_CallPacketRecvHook()
1188 (s16)MI_LoadLE16(&format->res_sync.own_packet); in WBT_CallPacketRecvHook()
1217 u32 id = MI_LoadLE32(&format->res_getblock.id); in WBT_CallPacketRecvHook()
1218 s32 index = (s32)MI_LoadLE32(&format->res_getblock.index); in WBT_CallPacketRecvHook()
1240 const void *src = (const u8 *)format + in WBT_CallPacketRecvHook()
1241 sizeof(format->header) + sizeof(format->res_getblock); in WBT_CallPacketRecvHook()
1259 u32 id = MI_LoadLE32(&format->res_getblock_done.id); in WBT_CallPacketRecvHook()