Lines Matching refs:arlan
216 volatile struct arlan_shmem *arlan = ((struct arlan_private *) dev->priv)->card; in arlan_command() local
230 jiffies, priv->command_lock, READSHMB(arlan->commandByte), in arlan_command()
264 if (READSHMB(arlan->resetFlag) || in arlan_command()
265 READSHMB(arlan->commandByte)) /* || in arlan_command()
296 while ((READSHMB(arlan->resetFlag) || in arlan_command()
297 READSHMB(arlan->commandByte)) && in arlan_command()
302 if ((READSHMB(arlan->resetFlag) || in arlan_command()
303 READSHMB(arlan->commandByte)) && in arlan_command()
327 WRITESHMB(arlan->commandByte, ARLAN_COM_ACTIVATE); in arlan_command()
336 WRITESHMB(arlan->commandByte, ARLAN_COM_RX_ABORT); in arlan_command()
347 WRITESHMB(arlan->commandByte, ARLAN_COM_TX_ABORT); in arlan_command()
368 WRITESHM(arlan->commandByte, 0, u_char); in arlan_command()
372 WRITESHM(arlan->resetFlag, 0xff, u_char); in arlan_command()
416 if (READSHMB(arlan->configuredStatusFlag) != 0 && in arlan_command()
417 READSHMB(arlan->diagnosticInfo) == 0xff) in arlan_command()
438 memset_io((void *) arlan->commandParameter, 0, 0xf); in arlan_command()
439 WRITESHMB(arlan->commandByte, ARLAN_COM_INT | ARLAN_COM_RX_ENABLE); in arlan_command()
440 WRITESHMB(arlan->commandParameter[0], conf->rxParameter); in arlan_command()
467 memset_io((void *) arlan->commandParameter, 0, 0xf); in arlan_command()
468 WRITESHMB(arlan->commandByte, ARLAN_COM_TX_ENABLE | ARLAN_COM_INT); in arlan_command()
469 memcpy_toio((void *) arlan->commandParameter, &TXLAST(dev), 14); in arlan_command()
491 WRITESHMB(arlan->commandByte, ARLAN_COM_NOP | ARLAN_COM_INT); in arlan_command()
499 WRITESHMB(arlan->commandByte, ARLAN_COM_NOP); in arlan_command()
506 WRITESHMB(arlan->commandByte, ARLAN_COM_GOTO_SLOW_POLL); in arlan_command()
520 for (i = 0; READSHMB(arlan->commandByte) && i < 20; i++) in arlan_command()
522 if (READSHMB(arlan->commandByte)) in arlan_command()
722 volatile struct arlan_shmem *arlan = ((struct arlan_private *) dev->priv)->card; in arlan_print_registers() local
729 READSHM(interruptInProgress, arlan->interruptInProgress, u_char); in arlan_print_registers()
730 READSHM(hostcpuLock, arlan->hostcpuLock, u_char); in arlan_print_registers()
731 READSHM(lancpuLock, arlan->lancpuLock, u_char); in arlan_print_registers()
732 READSHM(controlRegister, arlan->controlRegister, u_char); in arlan_print_registers()
733 READSHM(cntrlRegImage, arlan->cntrlRegImage, u_char); in arlan_print_registers()
734 READSHM(txStatus, arlan->txStatus, u_char); in arlan_print_registers()
735 READSHM(rxStatus, arlan->rxStatus, u_char); in arlan_print_registers()
736 READSHM(commandByte, arlan->commandByte, u_char); in arlan_print_registers()
752 volatile struct arlan_shmem *arlan = priv->card; in arlan_hw_tx() local
761 …headEnds = (((TXHEAD(dev).offset + TXHEAD(dev).length - (((int) arlan->txBuffer) - ((int) arlan)))… in arlan_hw_tx()
763 …tailStarts = 0x800 - (((TXTAIL(dev).offset - (((int) arlan->txBuffer) - ((int) arlan))) / 64) + 2)… in arlan_hw_tx()
772 (((int) arlan->txBuffer) - ((int) arlan)); in arlan_hw_tx()
780 memcpy_toio(((char *) arlan + TXHEAD(dev).offset), buf + ARLAN_FAKE_HDR_LEN, TXHEAD(dev).length); in arlan_hw_tx()
788 (((int) arlan->txBuffer) - ((int) arlan)) + 0x800 - (length / 64 + 2) * 64; in arlan_hw_tx()
796 memcpy_toio(((char *) arlan + TXTAIL(dev).offset), buf + ARLAN_FAKE_HDR_LEN, TXTAIL(dev).length); in arlan_hw_tx()
854 volatile struct arlan_shmem *arlan = ((struct arlan_private *) dev->priv)->card; in arlan_hw_config() local
865 WRITESHM(arlan->spreadingCode, conf->spreadingCode, u_char); in arlan_hw_config()
866 WRITESHM(arlan->channelSet, conf->channelSet, u_char); in arlan_hw_config()
869 WRITESHM(arlan->defaultChannelSet, conf->channelSet, u_char); in arlan_hw_config()
871 WRITESHM(arlan->channelNumber, conf->channelNumber, u_char); in arlan_hw_config()
873 WRITESHM(arlan->scramblingDisable, conf->scramblingDisable, u_char); in arlan_hw_config()
874 WRITESHM(arlan->txAttenuation, conf->txAttenuation, u_char); in arlan_hw_config()
876 WRITESHM(arlan->systemId, conf->systemId, u_int); in arlan_hw_config()
878 WRITESHM(arlan->maxRetries, conf->maxRetries, u_char); in arlan_hw_config()
879 WRITESHM(arlan->receiveMode, conf->receiveMode, u_char); in arlan_hw_config()
880 WRITESHM(arlan->priority, conf->priority, u_char); in arlan_hw_config()
881 WRITESHM(arlan->rootOrRepeater, conf->rootOrRepeater, u_char); in arlan_hw_config()
882 WRITESHM(arlan->SID, conf->SID, u_int); in arlan_hw_config()
884 WRITESHM(arlan->registrationMode, conf->registrationMode, u_char); in arlan_hw_config()
886 WRITESHM(arlan->registrationFill, conf->registrationFill, u_char); in arlan_hw_config()
887 WRITESHM(arlan->localTalkAddress, conf->localTalkAddress, u_char); in arlan_hw_config()
888 WRITESHM(arlan->codeFormat, conf->codeFormat, u_char); in arlan_hw_config()
889 WRITESHM(arlan->numChannels, conf->numChannels, u_char); in arlan_hw_config()
890 WRITESHM(arlan->channel1, conf->channel1, u_char); in arlan_hw_config()
891 WRITESHM(arlan->channel2, conf->channel2, u_char); in arlan_hw_config()
892 WRITESHM(arlan->channel3, conf->channel3, u_char); in arlan_hw_config()
893 WRITESHM(arlan->channel4, conf->channel4, u_char); in arlan_hw_config()
894 WRITESHM(arlan->radioNodeId, conf->radioNodeId, u_short); in arlan_hw_config()
895 WRITESHM(arlan->SID, conf->SID, u_int); in arlan_hw_config()
896 WRITESHM(arlan->waitTime, conf->waitTime, u_short); in arlan_hw_config()
897 WRITESHM(arlan->lParameter, conf->lParameter, u_short); in arlan_hw_config()
898 memcpy_toio(&(arlan->_15), &(conf->_15), 3); in arlan_hw_config()
899 WRITESHM(arlan->_15, conf->_15, u_short); in arlan_hw_config()
900 WRITESHM(arlan->headerSize, conf->headerSize, u_short); in arlan_hw_config()
902 WRITESHM(arlan->hardwareType, conf->hardwareType, u_char); in arlan_hw_config()
903 WRITESHM(arlan->radioType, conf->radioType, u_char); in arlan_hw_config()
905 WRITESHM(arlan->radioModule, conf->radioType, u_char); in arlan_hw_config()
907 memcpy_toio(arlan->encryptionKey + keyStart, encryptionKey, 8); in arlan_hw_config()
908 memcpy_toio(arlan->name, conf->siteName, 16); in arlan_hw_config()
910 WRITESHMB(arlan->commandByte, ARLAN_COM_INT | ARLAN_COM_CONF); /* do configure */ in arlan_hw_config()
911 memset_io(arlan->commandParameter, 0, 0xf); /* 0xf */ in arlan_hw_config()
912 memset_io(arlan->commandParameter + 1, 0, 2); in arlan_hw_config()
915 memset_io(arlan->commandParameter, conf->writeEEPROM, 1); in arlan_hw_config()
919 memset_io(arlan->commandParameter + 3, 1, 1); in arlan_hw_config()
921 memset_io(arlan->commandParameter + 3, 0, 1); in arlan_hw_config()
937 volatile struct arlan_shmem *arlan = ((struct arlan_private *) dev->priv)->card; in arlan_read_card_configuration() local
944 READSHM(conf->radioNodeId, arlan->radioNodeId, u_short); in arlan_read_card_configuration()
951 READSHM(conf->SID, arlan->SID, u_int); in arlan_read_card_configuration()
957 READSHM(conf->spreadingCode, arlan->spreadingCode, u_char); in arlan_read_card_configuration()
964 READSHM(conf->channelSet, arlan->channelSet, u_char); in arlan_read_card_configuration()
970 READSHM(conf->channelNumber, arlan->channelNumber, u_char); in arlan_read_card_configuration()
974 READSHM(conf->scramblingDisable, arlan->scramblingDisable, u_char); in arlan_read_card_configuration()
975 READSHM(conf->txAttenuation, arlan->txAttenuation, u_char); in arlan_read_card_configuration()
979 READSHM(conf->systemId, arlan->systemId, u_int); in arlan_read_card_configuration()
983 READSHM(conf->maxDatagramSize, arlan->maxDatagramSize, u_short); in arlan_read_card_configuration()
984 READSHM(conf->maxFrameSize, arlan->maxFrameSize, u_short); in arlan_read_card_configuration()
985 READSHM(conf->maxRetries, arlan->maxRetries, u_char); in arlan_read_card_configuration()
986 READSHM(conf->receiveMode, arlan->receiveMode, u_char); in arlan_read_card_configuration()
987 READSHM(conf->priority, arlan->priority, u_char); in arlan_read_card_configuration()
988 READSHM(conf->rootOrRepeater, arlan->rootOrRepeater, u_char); in arlan_read_card_configuration()
992 READSHM(conf->SID, arlan->SID, u_int); in arlan_read_card_configuration()
998 READSHM(conf->registrationMode, arlan->registrationMode, u_char); in arlan_read_card_configuration()
1002 READSHM(conf->registrationFill, arlan->registrationFill, u_char); in arlan_read_card_configuration()
1003 READSHM(conf->localTalkAddress, arlan->localTalkAddress, u_char); in arlan_read_card_configuration()
1004 READSHM(conf->codeFormat, arlan->codeFormat, u_char); in arlan_read_card_configuration()
1005 READSHM(conf->numChannels, arlan->numChannels, u_char); in arlan_read_card_configuration()
1006 READSHM(conf->channel1, arlan->channel1, u_char); in arlan_read_card_configuration()
1007 READSHM(conf->channel2, arlan->channel2, u_char); in arlan_read_card_configuration()
1008 READSHM(conf->channel3, arlan->channel3, u_char); in arlan_read_card_configuration()
1009 READSHM(conf->channel4, arlan->channel4, u_char); in arlan_read_card_configuration()
1010 READSHM(conf->waitTime, arlan->waitTime, u_short); in arlan_read_card_configuration()
1011 READSHM(conf->lParameter, arlan->lParameter, u_short); in arlan_read_card_configuration()
1012 READSHM(conf->_15, arlan->_15, u_short); in arlan_read_card_configuration()
1013 READSHM(conf->headerSize, arlan->headerSize, u_short); in arlan_read_card_configuration()
1014 READSHM(conf->hardwareType, arlan->hardwareType, u_char); in arlan_read_card_configuration()
1015 READSHM(conf->radioType, arlan->radioModule, u_char); in arlan_read_card_configuration()
1020 WRITESHM(arlan->configStatus, 0xA5, u_char); in arlan_read_card_configuration()
1021 READSHM(tlx415, arlan->configStatus, u_char); in arlan_read_card_configuration()
1034 memcpy_fromio(conf->siteName, arlan->name, 16); in arlan_read_card_configuration()
1063 volatile struct arlan_shmem *arlan = (struct arlan_shmem *) memaddr; in arlan_check_fingerprint() local
1070 memcpy_fromio(tempBuf, arlan->textRegion, 29); in arlan_check_fingerprint()
1255 volatile struct arlan_shmem *arlan; in arlan_probe_here() local
1268 arlan = (void *) memaddr; in arlan_probe_here()
1275 READSHM(dev->irq, arlan->irqLevel, u_char); in arlan_probe_here()
1291 volatile struct arlan_shmem *arlan = priv->card; in arlan_open() local
1301 arlan = ((struct arlan_private *) dev->priv)->card; in arlan_open()
1315 memcpy_fromio(dev->dev_addr, arlan->lanCardNodeId, 6); in arlan_open()
1610 volatile struct arlan_shmem *arlan = priv->card; in arlan_rx_interrupt() local
1644 DEBUGSHM(1, "arlan rcv pkt rxStatus= %d ", arlan->rxStatus, u_char); in arlan_rx_interrupt()
1654 DEBUGSHM(50, "arlan recv pkt offs=%d\n", arlan->rxOffset, u_short); in arlan_rx_interrupt()
1655 DEBUGSHM(1, "arlan rxFrmType = %d \n", arlan->rxFrmType, u_char); in arlan_rx_interrupt()
1656 DEBUGSHM(1, KERN_INFO "arlan rx scrambled = %d \n", arlan->scrambled, u_char); in arlan_rx_interrupt()
1668 memcpy_fromio(hw_dst_addr, arlan->ultimateDestAddress, 6); in arlan_rx_interrupt()
1713 …memcpy_fromio(skbtmp + ARLAN_FAKE_HDR_LEN, ((char *) arlan) + rxOffset, pkt_len - ARLAN_FAKE_HDR_L… in arlan_rx_interrupt()
1714 memcpy_fromio(skbtmp, arlan->ultimateDestAddress, 6); in arlan_rx_interrupt()
1715 memcpy_fromio(skbtmp + 6, arlan->rxSrc, 6); in arlan_rx_interrupt()
1716 WRITESHMB(arlan->rxStatus, 0x00); in arlan_rx_interrupt()
1723 memcpy_fromio(immedDestAddress, arlan->immedDestAddress, 6); in arlan_rx_interrupt()
1724 memcpy_fromio(immedSrcAddress, arlan->immedSrcAddress, 6); in arlan_rx_interrupt()
1762 volatile struct arlan_shmem *arlan = priv->card; in arlan_process_interrupt() local
1763 u_char rxStatus = READSHMB(arlan->rxStatus); in arlan_process_interrupt()
1764 u_char txStatus = READSHMB(arlan->txStatus); in arlan_process_interrupt()
1765 u_short rxOffset = READSHMS(arlan->rxOffset); in arlan_process_interrupt()
1766 u_short pkt_len = READSHMS(arlan->rxLength); in arlan_process_interrupt()
1788 dev->name, rxStatus, txStatus, READSHMB(arlan->commandByte), in arlan_process_interrupt()
1809 WRITESHMB(arlan->txStatus, 0x00); in arlan_process_interrupt()
1821 WRITESHMB(arlan->rxStatus, 0x00); in arlan_process_interrupt()
1829 WRITESHMB(arlan->rxStatus, 0x00); in arlan_process_interrupt()
1845 rxStatus = READSHMB(arlan->rxStatus); in arlan_process_interrupt()
1846 txStatus = READSHMB(arlan->txStatus); in arlan_process_interrupt()
1847 rxOffset = READSHMS(arlan->rxOffset); in arlan_process_interrupt()
1848 pkt_len = READSHMS(arlan->rxLength); in arlan_process_interrupt()
1868 volatile struct arlan_shmem *arlan = priv->card; in arlan_interrupt() local
1869 u_char rxStatus = READSHMB(arlan->rxStatus); in arlan_interrupt()
1870 u_char txStatus = READSHMB(arlan->txStatus); in arlan_interrupt()
1937 volatile struct arlan_shmem *arlan = ((struct arlan_private *) dev->priv)->card; in arlan_statistics() local
1944 READSHM(priv->stats.collisions, arlan->numReTransmissions, u_int); in arlan_statistics()
1945 READSHM(priv->stats.rx_crc_errors, arlan->numCRCErrors, u_int); in arlan_statistics()
1946 READSHM(priv->stats.rx_dropped, arlan->numFramesDiscarded, u_int); in arlan_statistics()
1947 READSHM(priv->stats.rx_fifo_errors, arlan->numRXBufferOverflows, u_int); in arlan_statistics()
1948 READSHM(priv->stats.rx_frame_errors, arlan->numReceiveFramesLost, u_int); in arlan_statistics()
1949 READSHM(priv->stats.rx_over_errors, arlan->numRXOverruns, u_int); in arlan_statistics()
1950 READSHM(priv->stats.rx_packets, arlan->numDatagramsReceived, u_int); in arlan_statistics()
1951 READSHM(priv->stats.tx_aborted_errors, arlan->numAbortErrors, u_int); in arlan_statistics()
1952 READSHM(priv->stats.tx_carrier_errors, arlan->numStatusTimeouts, u_int); in arlan_statistics()
1953 READSHM(priv->stats.tx_dropped, arlan->numDatagramsDiscarded, u_int); in arlan_statistics()
1954 READSHM(priv->stats.tx_fifo_errors, arlan->numTXUnderruns, u_int); in arlan_statistics()
1955 READSHM(priv->stats.tx_packets, arlan->numDatagramsTransmitted, u_int); in arlan_statistics()
1956 READSHM(priv->stats.tx_window_errors, arlan->numHoldOffs, u_int); in arlan_statistics()
1966 volatile struct arlan_shmem *arlan = ((struct arlan_private *) dev->priv)->card; in arlan_set_multicast() local
1976 READSHM(recMode, arlan->receiveMode, u_char); in arlan_set_multicast()
1985 READSHM(recMode, arlan->receiveMode, u_char); in arlan_set_multicast()