Lines Matching refs:id
311 static u8 *WBTi_GetPacketBuffer(WBTContext * work, u32 id, s32 index) in WBTi_GetPacketBuffer() argument
318 if (id < WBT_NUM_MAX_BLOCK_INFO_ID) in WBTi_GetPacketBuffer()
320 if (id == count) in WBTi_GetPacketBuffer()
329 tmp.id = MI_HToLE32(tmp.id); in WBTi_GetPacketBuffer()
338 if (id == list->data_info.id) in WBTi_GetPacketBuffer()
524 u32 id = token->token_block_id; in WBTi_TryCreateResponse() local
528 MI_StoreLE32(&format->res_getblock_done.id, id); in WBTi_TryCreateResponse()
531 WBT_DEBUG_OUTPUT1("send BlockDone to %d id = %d\n", aid, id); in WBTi_TryCreateResponse()
546 u32 id = token->token_block_id; in WBTi_TryCreateResponse() local
551 if (list->data_info.id == id) in WBTi_TryCreateResponse()
566 if (id >= WBT_NUM_MAX_BLOCK_INFO_ID) in WBTi_TryCreateResponse()
575 if (id == work->last_block_id) in WBTi_TryCreateResponse()
597 work->last_block_id = id; in WBTi_TryCreateResponse()
609 data_ptr = WBTi_GetPacketBuffer(work, id, block_seq_no); in WBTi_TryCreateResponse()
611 id, index, packet); in WBTi_TryCreateResponse()
618 system_cmd->prepare_send_data.block_id = id; in WBTi_TryCreateResponse()
628 id = system_cmd->prepare_send_data.block_id; in WBTi_TryCreateResponse()
643 MI_StoreLE32(&format->res_getblock.id, id); in WBTi_TryCreateResponse()
655 u32 id = token->token_block_id; in WBTi_TryCreateResponse() local
658 u8 *data_ptr = WBTi_GetPacketBuffer(work, id, index); in WBTi_TryCreateResponse()
659 WBT_DEBUG_OUTPUT1("send BlockData to %d id = %d seq no = %d pktsize %d\n", aid, id, index, in WBTi_TryCreateResponse()
673 MI_StoreLE32(&format->res_getblock.id, id); in WBTi_TryCreateResponse()
740 MI_StoreLE32(&format->req_getblock_done.id, current->get.block_id); in WBTi_CheckRequest()
752 MI_StoreLE32(&format->req_getblock.id, current->get.block_id); in WBTi_CheckRequest()
1140 token->token_block_id = MI_LoadLE32(&format->req_getblock.id); 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()
1217 u32 id = MI_LoadLE32(&format->res_getblock.id); in WBT_CallPacketRecvHook() local
1221 if (id == current->get.block_id) in WBT_CallPacketRecvHook()
1259 u32 id = MI_LoadLE32(&format->res_getblock_done.id); in WBT_CallPacketRecvHook() local
1260 if (current->get.block_id == id) in WBT_CallPacketRecvHook()
1506 void WBT_GetDownloadProgress(const WBTContext *work, u32 id, int aid, int *count, int *total) in WBT_GetDownloadProgress() argument
1510 (current->command == WBT_CMD_REQ_GET_BLOCK) && (current->get.block_id == id)) in WBT_GetDownloadProgress()
1577 WBT_RegisterBlockInfo(WBTContext * work, WBTBlockInfoList *list, u32 id, in WBT_RegisterBlockInfo() argument
1588 list->data_info.id = id; in WBT_RegisterBlockInfo()
1610 WBTBlockInfoList *WBT_UnregisterBlockInfo(WBTContext * work, u32 id) in WBT_UnregisterBlockInfo() argument
1618 if ((*pp)->data_info.id == id) in WBT_UnregisterBlockInfo()