Lines Matching refs:mbss
170 static MbBeaconSendStatus mbss; // Beacon send status. variable
347 MBGameInfo *gInfop = mbss.gameInfoListTop; in MB_AddGameInfo()
351 mbss.gameInfoListTop = newGameInfop; in MB_AddGameInfo()
368 MBGameInfo *gInfop = mbss.gameInfoListTop; in MB_DeleteGameInfo()
381 if ((u32)gInfop == (u32)mbss.gameInfoListTop) in MB_DeleteGameInfo()
383 mbss.gameInfoListTop = mbss.gameInfoListTop->nextp; in MB_DeleteGameInfo()
390 …if ((u32)gameInfop == (u32)mbss.nowGameInfop) // If the game information to delete is currently … in MB_DeleteGameInfo()
392 mbss.nowGameInfop = NULL; in MB_DeleteGameInfo()
395 …mbss.state = MB_BEACON_STATE_READY; // If the game information has been completely deleted, th… in MB_DeleteGameInfo()
409 mbss.gameInfoListTop = NULL; // Delete the entire game information list. in MB_InitSendGameInfoStatus()
410 mbss.nowGameInfop = NULL; // Also delete the current transmitted game. in MB_InitSendGameInfoStatus()
411 mbss.state = MB_BEACON_STATE_READY; in MB_InitSendGameInfoStatus()
420 mbss.seqNoFixed = 0; in MBi_ClearSendStatus()
421 mbss.seqNoVolat = 0; in MBi_ClearSendStatus()
422 mbss.flagmentNo = 0; in MBi_ClearSendStatus()
423 mbss.flagmentMaxNum = 0; in MBi_ClearSendStatus()
424 mbss.beaconNo = 0; in MBi_ClearSendStatus()
433 switch (mbss.state) in MB_SendGameInfoBeacon()
467 if (!mbss.gameInfoListTop) in MBi_ReadyBeaconSendStatus()
476 if (!mbss.nowGameInfop || !mbss.nowGameInfop->nextp) in MBi_ReadyBeaconSendStatus()
479 nextGameInfop = mbss.gameInfoListTop; in MBi_ReadyBeaconSendStatus()
484 nextGameInfop = mbss.nowGameInfop->nextp; in MBi_ReadyBeaconSendStatus()
487 mbss.nowGameInfop = nextGameInfop; in MBi_ReadyBeaconSendStatus()
490 mbss.seqNoVolat = mbss.nowGameInfop->seqNoVolat; in MBi_ReadyBeaconSendStatus()
492 mbss.state = MB_BEACON_STATE_FIXED_START; in MBi_ReadyBeaconSendStatus()
501 if (mbss.state != MB_BEACON_STATE_FIXED_START) in MBi_InitSendFixedBeacon()
506 if (mbss.nowGameInfop->dataAttr == MB_BEACON_DATA_ATTR_FIXED_NORMAL) in MBi_InitSendFixedBeacon()
508 mbss.flagmentMaxNum = FIXED_FLAGMENT_MAX(FIXED_NORMAL_SIZE); in MBi_InitSendFixedBeacon()
509 mbss.srcp = (u8 *)&mbss.nowGameInfop->fixed; in MBi_InitSendFixedBeacon()
513 mbss.flagmentMaxNum = FIXED_FLAGMENT_MAX(FIXED_NO_ICON_SIZE); in MBi_InitSendFixedBeacon()
514 mbss.srcp = (u8 *)&mbss.nowGameInfop->fixed.parent; in MBi_InitSendFixedBeacon()
516 mbss.state = MB_BEACON_STATE_FIXED; in MBi_InitSendFixedBeacon()
523 u32 lastAddr = (u32)mbss.nowGameInfop + sizeof(MBGameInfoFixed); in MBi_SendFixedBeacon()
525 if ((u32)mbss.srcp + MB_BEACON_FIXED_DATA_SIZE <= lastAddr) in MBi_SendFixedBeacon()
531 bsendBuff.data.fixed.size = (u8)(lastAddr - (u32)mbss.srcp); in MBi_SendFixedBeacon()
537 MB_DEBUG_OUTPUT("send flagment= %2d adr = 0x%x\n", mbss.flagmentNo, mbss.srcp); in MBi_SendFixedBeacon()
538 MI_CpuCopy16(mbss.srcp, bsendBuff.data.fixed.data, bsendBuff.data.fixed.size); in MBi_SendFixedBeacon()
539 bsendBuff.data.fixed.flagmentNo = mbss.flagmentNo; in MBi_SendFixedBeacon()
540 bsendBuff.data.fixed.flagmentMaxNum = mbss.flagmentMaxNum; in MBi_SendFixedBeacon()
541 bsendBuff.dataAttr = mbss.nowGameInfop->dataAttr; in MBi_SendFixedBeacon()
542 bsendBuff.seqNoFixed = mbss.nowGameInfop->seqNoFixed; in MBi_SendFixedBeacon()
543 bsendBuff.seqNoVolat = mbss.seqNoVolat; in MBi_SendFixedBeacon()
544 bsendBuff.ggid = mbss.nowGameInfop->ggid; in MBi_SendFixedBeacon()
545 bsendBuff.fileNo = mbss.nowGameInfop->fileNo; in MBi_SendFixedBeacon()
546 bsendBuff.beaconNo = mbss.beaconNo++; in MBi_SendFixedBeacon()
551 mbss.flagmentNo++; in MBi_SendFixedBeacon()
552 if (mbss.flagmentNo < mbss.flagmentMaxNum) in MBi_SendFixedBeacon()
554 mbss.srcp += MB_BEACON_FIXED_DATA_SIZE; in MBi_SendFixedBeacon()
558 mbss.state = MB_BEACON_STATE_VOLAT_START; in MBi_SendFixedBeacon()
571 mbss.nowGameInfop->broadcastedPlayerFlag = 0x0001; in MBi_InitSendVolatBeacon()
572 mbss.seqNoVolat = mbss.nowGameInfop->seqNoVolat; in MBi_InitSendVolatBeacon()
573 mbss.state = MB_BEACON_STATE_VOLAT; in MBi_InitSendVolatBeacon()
584 if (mbss.seqNoVolat != mbss.nowGameInfop->seqNoVolat) in MBi_SendVolatBeacon()
591 bsendBuff.seqNoFixed = mbss.nowGameInfop->seqNoFixed; in MBi_SendVolatBeacon()
592 bsendBuff.seqNoVolat = mbss.seqNoVolat; in MBi_SendVolatBeacon()
593 bsendBuff.ggid = mbss.nowGameInfop->ggid; in MBi_SendVolatBeacon()
594 bsendBuff.fileNo = mbss.nowGameInfop->fileNo; in MBi_SendVolatBeacon()
595 bsendBuff.beaconNo = mbss.beaconNo++; in MBi_SendVolatBeacon()
598 bsendBuff.data.volat.nowPlayerNum = mbss.nowGameInfop->volat.nowPlayerNum; in MBi_SendVolatBeacon()
599 bsendBuff.data.volat.nowPlayerFlag = mbss.nowGameInfop->volat.nowPlayerFlag; in MBi_SendVolatBeacon()
600 bsendBuff.data.volat.changePlayerFlag = mbss.nowGameInfop->volat.changePlayerFlag; in MBi_SendVolatBeacon()
606 sSendVolatCallback(mbss.nowGameInfop->ggid); in MBi_SendVolatBeacon()
611 bsendBuff.data.volat.userVolatData[i] = mbss.nowGameInfop->volat.userVolatData[i]; in MBi_SendVolatBeacon()
614 MB_DEBUG_OUTPUT("send PlayerFlag = %x\n", mbss.nowGameInfop->volat.nowPlayerFlag); in MBi_SendVolatBeacon()
620 (u16)(mbss.nowGameInfop->broadcastedPlayerFlag ^ mbss.nowGameInfop->volat.nowPlayerFlag); in MBi_SendVolatBeacon()
630 MI_CpuCopy16(&mbss.nowGameInfop->volat.member[i], in MBi_SendVolatBeacon()
632 mbss.nowGameInfop->broadcastedPlayerFlag |= 0x0002 << i; in MBi_SendVolatBeacon()
649 if (mbss.nowGameInfop->broadcastedPlayerFlag == mbss.nowGameInfop->volat.nowPlayerFlag) in MBi_SendVolatBeacon()
651 …mbss.state = MB_BEACON_STATE_READY; // When sending of all information is complete, moves to a… in MBi_SendVolatBeacon()
663 sSendVolatCallback(mbss.nowGameInfop->ggid); in MBi_SendVolatBeacon()
1300 gameInfo = mbss.gameInfoListTop; in MB_SetUserVolatData()