Lines Matching refs:cardno

1655 	int cardno;  member
1766 if(dltmp.cardno < 0 || dltmp.cardno >= MAX_BOARDS || dltmp.len < 0) in MoxaDriverIoctl()
1772 i = moxaloadbios(dltmp.cardno, dltmp.buf, dltmp.len); in MoxaDriverIoctl()
1775 return moxafindcard(dltmp.cardno); in MoxaDriverIoctl()
1777 moxaload320b(dltmp.cardno, dltmp.buf, dltmp.len); in MoxaDriverIoctl()
1781 i = moxaloadcode(dltmp.cardno, dltmp.buf, dltmp.len); in MoxaDriverIoctl()
1847 int MoxaPortsOfCard(int cardno) in MoxaPortsOfCard() argument
1850 if (moxa_boards[cardno].boardType == 0) in MoxaPortsOfCard()
1852 return (moxa_boards[cardno].numPorts); in MoxaPortsOfCard()
2872 static int moxaloadbios(int cardno, unsigned char *tmp, int len) in moxaloadbios() argument
2881 baseAddr = moxaBaseAddr[cardno]; in moxaloadbios()
2892 static int moxafindcard(int cardno) in moxafindcard() argument
2897 baseAddr = moxaBaseAddr[cardno]; in moxafindcard()
2898 switch (moxa_boards[cardno].boardType) { in moxafindcard()
2921 static int moxaload320b(int cardno, unsigned char * tmp, int len) in moxaload320b() argument
2930 baseAddr = moxaBaseAddr[cardno]; in moxaload320b()
2941 static int moxaloadcode(int cardno, unsigned char * tmp, int len) in moxaloadcode() argument
2950 baseAddr = moxaBaseAddr[cardno]; in moxaloadcode()
2951 switch (moxa_boards[cardno].boardType) { in moxaloadcode()
2955 retval = moxaloadc218(cardno, baseAddr, len); in moxaloadcode()
2958 port = cardno * MAX_PORTS_PER_BOARD; in moxaloadcode()
2959 for (i = 0; i < moxa_boards[cardno].numPorts; i++, port++) { in moxaloadcode()
2976 retval = moxaloadc320(cardno, baseAddr, len, in moxaloadcode()
2977 &moxa_boards[cardno].numPorts); in moxaloadcode()
2980 port = cardno * MAX_PORTS_PER_BOARD; in moxaloadcode()
2981 for (i = 0; i < moxa_boards[cardno].numPorts; i++, port++) { in moxaloadcode()
2987 if (moxa_boards[cardno].numPorts == 8) { in moxaloadcode()
2995 } else if (moxa_boards[cardno].numPorts == 16) { in moxaloadcode()
3003 } else if (moxa_boards[cardno].numPorts == 24) { in moxaloadcode()
3010 } else if (moxa_boards[cardno].numPorts == 32) { in moxaloadcode()
3025 static int moxaloadc218(int cardno, unsigned long baseAddr, int len) in moxaloadc218() argument
3031 if (moxa_boards[cardno].boardType == MOXA_BOARD_CP204J) in moxaloadc218()
3095 moxaIntNdx[cardno] = baseAddr + IRQindex; in moxaloadc218()
3096 moxaIntPend[cardno] = baseAddr + IRQpending; in moxaloadc218()
3097 moxaIntTable[cardno] = baseAddr + IRQtable; in moxaloadc218()
3101 static int moxaloadc320(int cardno, unsigned long baseAddr, int len, int *numPorts) in moxaloadc320() argument
3157 if (moxa_boards[cardno].busType == MOXA_BUS_TYPE_PCI) { /* ASIC board */ in moxaloadc320()
3190 moxaIntNdx[cardno] = baseAddr + IRQindex; in moxaloadc320()
3191 moxaIntPend[cardno] = baseAddr + IRQpending; in moxaloadc320()
3192 moxaIntTable[cardno] = baseAddr + IRQtable; in moxaloadc320()