Lines Matching full:dat

95 		case 0x80   : sprintf(eng->dat.NCSI_CommandStr, "IID:%3d [%02x:Respond]", iid, command); break;  in NCSI_PrintCommandStr()
96 default : sprintf(eng->dat.NCSI_CommandStr, "IID:%3d [%02x:Request]", iid, command); break; in NCSI_PrintCommandStr()
99 …case 0x00 : sprintf(eng->dat.NCSI_CommandStr, "%s[CLEAR_INITIAL_STATE ]", eng->da… in NCSI_PrintCommandStr()
100 …case 0x01 : sprintf(eng->dat.NCSI_CommandStr, "%s[SELECT_PACKAGE ]", eng->da… in NCSI_PrintCommandStr()
101 …case 0x02 : sprintf(eng->dat.NCSI_CommandStr, "%s[DESELECT_PACKAGE ]", eng->da… in NCSI_PrintCommandStr()
102 …case 0x03 : sprintf(eng->dat.NCSI_CommandStr, "%s[ENABLE_CHANNEL ]", eng->da… in NCSI_PrintCommandStr()
103 …case 0x04 : sprintf(eng->dat.NCSI_CommandStr, "%s[DISABLE_CHANNEL ]", eng->da… in NCSI_PrintCommandStr()
104 …case 0x05 : sprintf(eng->dat.NCSI_CommandStr, "%s[RESET_CHANNEL ]", eng->da… in NCSI_PrintCommandStr()
105 …case 0x06 : sprintf(eng->dat.NCSI_CommandStr, "%s[ENABLE_CHANNEL_NETWORK_TX ]", eng->da… in NCSI_PrintCommandStr()
106 …case 0x07 : sprintf(eng->dat.NCSI_CommandStr, "%s[DISABLE_CHANNEL_NETWORK_TX ]", eng->da… in NCSI_PrintCommandStr()
107 …case 0x08 : sprintf(eng->dat.NCSI_CommandStr, "%s[AEN_ENABLE ]", eng->da… in NCSI_PrintCommandStr()
108 …case 0x09 : sprintf(eng->dat.NCSI_CommandStr, "%s[SET_LINK ]", eng->da… in NCSI_PrintCommandStr()
109 …case 0x0A : sprintf(eng->dat.NCSI_CommandStr, "%s[GET_LINK_STATUS ]", eng->da… in NCSI_PrintCommandStr()
110 …case 0x0B : sprintf(eng->dat.NCSI_CommandStr, "%s[SET_VLAN_FILTER ]", eng->da… in NCSI_PrintCommandStr()
111 …case 0x0C : sprintf(eng->dat.NCSI_CommandStr, "%s[ENABLE_VLAN ]", eng->da… in NCSI_PrintCommandStr()
112 …case 0x0D : sprintf(eng->dat.NCSI_CommandStr, "%s[DISABLE_VLAN ]", eng->da… in NCSI_PrintCommandStr()
113 …case 0x0E : sprintf(eng->dat.NCSI_CommandStr, "%s[SET_MAC_ADDRESS ]", eng->da… in NCSI_PrintCommandStr()
114 …case 0x10 : sprintf(eng->dat.NCSI_CommandStr, "%s[ENABLE_BROADCAST_FILTERING ]", eng->da… in NCSI_PrintCommandStr()
115 …case 0x11 : sprintf(eng->dat.NCSI_CommandStr, "%s[DISABLE_BROADCAST_FILTERING ]", eng->da… in NCSI_PrintCommandStr()
116 …case 0x12 : sprintf(eng->dat.NCSI_CommandStr, "%s[ENABLE_GLOBAL_MULTICAST_FILTERING ]", eng->da… in NCSI_PrintCommandStr()
117 …case 0x13 : sprintf(eng->dat.NCSI_CommandStr, "%s[DISABLE_GLOBAL_MULTICAST_FILTERING ]", eng->da… in NCSI_PrintCommandStr()
118 …case 0x14 : sprintf(eng->dat.NCSI_CommandStr, "%s[SET_NCSI_FLOW_CONTROL ]", eng->da… in NCSI_PrintCommandStr()
119 …case 0x15 : sprintf(eng->dat.NCSI_CommandStr, "%s[GET_VERSION_ID ]", eng->da… in NCSI_PrintCommandStr()
120 …case 0x16 : sprintf(eng->dat.NCSI_CommandStr, "%s[GET_CAPABILITIES ]", eng->da… in NCSI_PrintCommandStr()
121 …case 0x17 : sprintf(eng->dat.NCSI_CommandStr, "%s[GET_PARAMETERS ]", eng->da… in NCSI_PrintCommandStr()
122 …case 0x18 : sprintf(eng->dat.NCSI_CommandStr, "%s[GET_CONTROLLER_PACKET_STATISTICS ]", eng->da… in NCSI_PrintCommandStr()
123 …case 0x19 : sprintf(eng->dat.NCSI_CommandStr, "%s[GET_NCSI_STATISTICS ]", eng->da… in NCSI_PrintCommandStr()
124 …case 0x1A : sprintf(eng->dat.NCSI_CommandStr, "%s[GET_NCSI_PASS_THROUGH_STATISTICS ]", eng->da… in NCSI_PrintCommandStr()
125 …case 0x50 : sprintf(eng->dat.NCSI_CommandStr, "%s[OEM_COMMAND ]", eng->da… in NCSI_PrintCommandStr()
126 …default : sprintf(eng->dat.NCSI_CommandStr, "%s Not Support Command", eng->dat.NCSI_CommandStr… in NCSI_PrintCommandStr()
133 printf("[NCSI-commd]%s\n", eng->dat.NCSI_CommandStr); in NCSI_PrintCommandType()
139 PRINTF( FP_LOG, "[NCSI-commd]%s\n", eng->dat.NCSI_CommandStr ); in NCSI_PrintCommandType2File()
172 eng->dat.NCSI_TxByteBUF = (unsigned char *) &eng->dat.NCSI_TxDWBUF[0]; in NCSI_Struct_Initialize_SLT()
173 eng->dat.NCSI_RxByteBUF = (unsigned char *) &eng->dat.NCSI_RxDWBUF[0]; in NCSI_Struct_Initialize_SLT()
214 eng->dat.Payload_Checksum_NCSI = SWAP_4B_BEDN(~(CheckSum) + 1); //2's complement in Calculate_Checksum_NCSI()
230 p_eng->dat.NCSI_RxEr = 1; in check_rx_desc_err()
351 …eng->dat.NCSI_RxDWBUF[i] = SWAP_4B_LEDN_NCSI( Read_Mem_Dat_NCSI_DD( NCSI_RxDatBase + ( i << 2 ) ) … in NCSI_Rx_SLT()
353 memcpy ( &eng->ncsi_rsp, eng->dat.NCSI_RxByteBUF, bytesize ); in NCSI_Rx_SLT()
421 memcpy ( eng->dat.NCSI_TxByteBUF , &eng->ncsi_req , 30 ); in NCSI_Tx()
422 memcpy ( (eng->dat.NCSI_TxByteBUF + 30 ), &eng->dat.NCSI_Payload_Data , length ); in NCSI_Tx()
423 Calculate_Checksum_NCSI( eng, eng->dat.NCSI_TxByteBUF, 30 + length ); in NCSI_Tx()
424 memcpy ( (eng->dat.NCSI_TxByteBUF + 30 + length), &eng->dat.Payload_Checksum_NCSI, 4 ); in NCSI_Tx()
430 memset ( eng->dat.NCSI_TxByteBUF + bytesize, 0, 60 - bytesize ); in NCSI_Tx()
443 memset ( eng->dat.NCSI_TxByteBUF + bytesize, 0, (dwsize << 2) - bytesize ); in NCSI_Tx()
447 …PRINTF( FP_LOG, " [Tx]%02d:%08x %08x\n", i, eng->dat.NCSI_TxDWBUF[i], SWAP_4B( eng->dat.NCSI_… in NCSI_Tx()
451 …8x\n", i, eng->dat.NCSI_TxDWBUF[i] & SWAP_4B_LEDN_NCSI( 0xffffffff ), SWA… in NCSI_Tx()
452dat.NCSI_TxDWBUF[i] & SWAP_4B_LEDN_NCSI( 0x00ffffff ), SWAP_4B( eng->dat.NCSI_TxDWBUF[i] ) & SWAP_… in NCSI_Tx()
453dat.NCSI_TxDWBUF[i] & SWAP_4B_LEDN_NCSI( 0x0000ffff ), SWAP_4B( eng->dat.NCSI_TxDWBUF[i] ) & SWAP_… in NCSI_Tx()
454dat.NCSI_TxDWBUF[i] & SWAP_4B_LEDN_NCSI( 0x000000ff ), SWAP_4B( eng->dat.NCSI_TxDWBUF[i] ) & SWAP_… in NCSI_Tx()
463 Write_Mem_Dat_NCSI_DD( DMA_BASE + ( i << 2 ), SWAP_4B_LEDN_NCSI( eng->dat.NCSI_TxDWBUF[i] ) ); in NCSI_Tx()
516 …PRINTF( FP_LOG, " [Tx%02d] %08x %08x\n", i, eng->dat.ARP_data[i], SWAP_4B( eng->dat.ARP_data[… in NCSI_ARP()
518 Write_Mem_Dat_NCSI_DD(((uint32_t)&dma_buf) + ( i << 2 ), eng->dat.ARP_data[i] ); in NCSI_ARP()
599 memset ((void *)eng->dat.NCSI_Payload_Data, 0, 4); in Select_Package_SLT()
600 eng->dat.NCSI_Payload_Data[ 3 ] = 1; //Arbitration Disable in Select_Package_SLT()
614 memset ((void *)eng->dat.NCSI_Payload_Data, 0, 4); in Select_Active_Package_SLT()
615 eng->dat.NCSI_Payload_Data[ 3 ] = 1; //Arbitration Disable in Select_Active_Package_SLT()
644 memset ((void *)eng->dat.NCSI_Payload_Data, 0, 4); in Disable_Channel_SLT()
645 eng->dat.NCSI_Payload_Data[ 3 ] = 0x1; //ALD in Disable_Channel_SLT()
669 memset ((void *)eng->dat.NCSI_Payload_Data, 0, 8); in Set_Link_SLT()
670 eng->dat.NCSI_Payload_Data[ 2 ] = 0x02; //full duplex in Set_Link_SLT()
671 // eng->dat.NCSI_Payload_Data[ 3 ] = 0x04; //100M, auto-disable in Set_Link_SLT()
672 eng->dat.NCSI_Payload_Data[ 3 ] = 0x05; //100M, auto-enable in Set_Link_SLT()
710 eng->dat.NCSI_Payload_Data[ i ] = eng->ncsi_req.SA[ i ]; in Enable_Set_MAC_Address_SLT()
711 …eng->dat.NCSI_Payload_Data[ 6 ] = 1; //MAC Address Num = 1 --> address filter 1, fixed in sample c… in Enable_Set_MAC_Address_SLT()
714 eng->dat.NCSI_Payload_Data[ 7 ] = MULTICAST + ENABLE_MAC_ADDRESS_FILTER; //AT + E in Enable_Set_MAC_Address_SLT()
716 eng->dat.NCSI_Payload_Data[ 7 ] = UNICAST + ENABLE_MAC_ADDRESS_FILTER; //AT + E in Enable_Set_MAC_Address_SLT()
724 memset ((void *)eng->dat.NCSI_Payload_Data, 0, 4); in Enable_Broadcast_Filter_SLT()
725 eng->dat.NCSI_Payload_Data[ 3 ] = 0xF; //ARP, DHCP, NetBIOS in Enable_Broadcast_Filter_SLT()
809 eng->dat.NCSI_RxEr = 0; in phy_ncsi()
810 eng->dat.number_chl = 0; in phy_ncsi()
811 eng->dat.number_pak = 0; in phy_ncsi()
872 eng->dat.number_pak++; in phy_ncsi()
884 eng->dat.number_chl++; in phy_ncsi()
958 if ( eng->dat.number_pak == 0 ) FindErr( eng, Err_Flag_NCSI_No_PHY ); in phy_ncsi()
959 if ( eng->dat.number_pak != eng->arg.GPackageTolNum ) FindErr( eng, Err_Flag_NCSI_Package_Num ); in phy_ncsi()
960 if ( eng->dat.number_chl != eng->arg.GChannelTolNum ) FindErr( eng, Err_Flag_NCSI_Channel_Num ); in phy_ncsi()
961 // if ( eng->dat.number_chl == 0 ) FindErr( eng ); in phy_ncsi()
964 if ( eng->dat.NCSI_RxEr ) in phy_ncsi()
969 if ( eng->dat.NCSI_RxEr ) { in phy_ncsi()