• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/char/ip2/

Lines Matching defs:pB

435 		void *pB;
443 if ((pB = i2BoardPtrTable[i]) != 0 ) {
444 kfree ( pB );
507 i2eBordStrPtr pB = NULL;
649 pB = kmalloc( sizeof(i2eBordStr), GFP_KERNEL);
650 if ( pB != NULL ) {
651 i2BoardPtrTable[i] = pB;
652 memset( pB, 0, sizeof(i2eBordStr) );
653 iiSetAddress( pB, ip2config.addr[i], ii2DelayTimer );
654 iiReset( pB );
661 if ( ( pB = i2BoardPtrTable[i] ) != NULL ) {
662 iiResetDelay( pB );
720 if ( NULL != ( pB = i2BoardPtrTable[i] ) ) {
732 if ( pB->i2eChannelMap[box] & (1 << j) )
805 i2eBordStrPtr pB = i2BoardPtrTable[boardnum];
807 if ( !iiInitialize ( pB ) ) {
809 pB->i2eBase, pB->i2eError );
820 if ( iiDownloadAll ( pB, (loadHdrStrPtr)Fip_firmware, 1, Fip_firmware_size )
826 pB->i2ePom.e.porVersion,
827 pB->i2ePom.e.porRevision,
828 pB->i2ePom.e.porSubRev, pB->i2eLVersion,
829 pB->i2eLRevision, pB->i2eLSub );
832 switch ( pB->i2ePom.e.porID & ~POR_ID_RESERVED ) {
836 pB->i2ePom.e.porID );
862 if ( pB->i2eChannelMap[box] != 0 ) {
866 if ( pB->i2eChannelMap[box] & 1<< i ) {
877 if ( !i2InitChannels( pB, nports, pCh ) ) {
878 printk(KERN_ERR "IP2: i2InitChannels failed: %d\n",pB->i2eError);
882 pB->i2eChannelPtr = &DevTable[portnum];
883 pB->i2eChannelCnt = ABS_MOST_PORTS;
887 if ( pB->i2eChannelMap[box] & (1 << i) ) {
895 nboxes, nports, pB->i2eDataWidth16 ? 16 : 8 );
905 pB->i2eChannelPtr = pCh;
906 pB->i2eChannelCnt = nports;
907 if ( !i2InitChannels( pB, nports, pCh ) ) {
908 printk(KERN_ERR "IP2: i2InitChannels failed: %d\n",pB->i2eError);
912 pB->i2eChannelPtr = &DevTable[IP2_PORTS_PER_BOARD * boardnum];
914 for( i = 0; i < pB->i2eChannelCnt; ++i ) {
920 INIT_WORK(&pB->tqueue_interrupt, ip2_interrupt_bh);
926 kfree ( pB );
1034 i2eBordStrPtr pB = i2BoardPtrTable[boardnum];
1048 iiDisableMailIrq(pB);
1060 WRITE_LOCK_IRQSAVE(&pB->write_fifo_spinlock,flags);
1061 iiWriteBuf(pB, tempCommand, 4);
1062 WRITE_UNLOCK_IRQRESTORE(&pB->write_fifo_spinlock,flags);
1063 pB->i2eUsingIrq = boardIrq;
1064 pB->i2eOutMailWaiting |= MB_OUT_STUFFED;
1080 WRITE_LOCK_IRQSAVE(&pB->write_fifo_spinlock,flags);
1081 iiWriteBuf(pB, tempCommand, 8);
1082 WRITE_UNLOCK_IRQRESTORE(&pB->write_fifo_spinlock,flags);
1088 iiWriteBuf(pB, tempCommand, 3);
1097 WRITE_LOCK_IRQSAVE(&pB->write_fifo_spinlock,flags);
1098 iiWriteBuf(pB, tempCommand, 4);
1099 WRITE_UNLOCK_IRQRESTORE(&pB->write_fifo_spinlock,flags);
1102 iiEnableMailIrq(pB);
1103 iiSendPendingMail(pB);
1114 i2eBordStrPtr pB;
1118 pB = i2BoardPtrTable[i];
1119 if ( pB ) {
1120 i2ServiceBoard( pB );
1139 i2eBordStrPtr pB = container_of(work, i2eBordStr, tqueue_interrupt);
1140 // pB better well be set or we have a problem! We can only get
1142 // Checking pB doesn't cost much and it saves us from the sanity checkers.
1146 if ( pB ) {
1147 i2ServiceBoard( pB );
1148 if( pB->i2eUsingIrq ) {
1150 iiEnableMailIrq(pB);
1178 i2eBordStrPtr pB;
1185 pB = i2BoardPtrTable[i];
1190 if ( pB && (pB->i2eUsingIrq == irq) ) {
1194 if (NO_MAIL_HERE != ( pB->i2eStartMail = iiGetMail(pB))) {
1197 iiDisableMailIrq(pB);
1200 schedule_work(&pB->tqueue_interrupt);
1208 i2ServiceBoard( pB );
2066 i2eBordStrPtr pB;
2076 pB = pCh->pMyBord;
2185 WRITE_LOCK_IRQSAVE(&pB->read_fifo_spinlock, flags);
2187 WRITE_UNLOCK_IRQRESTORE(&pB->read_fifo_spinlock, flags);
2207 WRITE_LOCK_IRQSAVE(&pB->read_fifo_spinlock, flags);
2209 WRITE_UNLOCK_IRQRESTORE(&pB->read_fifo_spinlock, flags);
2247 WRITE_LOCK_IRQSAVE(&pB->read_fifo_spinlock, flags);
2249 WRITE_UNLOCK_IRQRESTORE(&pB->read_fifo_spinlock, flags);
2830 i2eBordStrPtr pB = i2BoardPtrTable[iplminor / 4];
2853 if ( pB ) {
2854 rc = copy_to_user(argp, pB, sizeof(i2eBordStr));
2855 rc = put_user(INB(pB->i2eStatus),
2856 (ULONG __user *)(arg + (ULONG)(&pB->i2eStatus) - (ULONG)pB ) );
2914 i2eBordStrPtr pB;
2941 pB = i2BoardPtrTable[iplminor / 4];
2942 pCh = (i2ChanStrPtr) pB->i2eChannelPtr;
2968 i2eBordStrPtr pB;
2982 pB = i2BoardPtrTable[i];
2983 if ( pB ) {
2986 pB->i2eFifoRemains,pB->i2eWaitingForEmptyFifo,pB->i2eOutMailWaiting);
3026 i2eBordStrPtr pB;
3036 pB = i2BoardPtrTable[i];
3037 if( pB ) {
3038 switch( pB->i2ePom.e.porID & ~POR_ID_RESERVED )
3046 if( pB->i2eChannelMap[box] != 0 ) ++boxes;
3049 if( pB->i2eChannelMap[box] & 1<< j ) {
3059 len += sprintf( page+len, " boxes=%d width=%d", boxes, pB->i2eDataWidth16 ? 16 : 8 );
3096 if ( pB->i2eChannelMap[box] & (1 << j) )