Lines Matching refs:MsgLen
461 __u32 ApplId, MsgLen, DataB3Len, NCCI, WindowSize; in b1dma_handle_rx() local
472 MsgLen = _get_slice(&p, card->msgbuf); in b1dma_handle_rx()
475 if (MsgLen < 30) { /* not CAPI 64Bit */ in b1dma_handle_rx()
476 memset(card->msgbuf+MsgLen, 0, 30-MsgLen); in b1dma_handle_rx()
477 MsgLen = 30; in b1dma_handle_rx()
480 if (!(skb = alloc_skb(DataB3Len+MsgLen, GFP_ATOMIC))) { in b1dma_handle_rx()
484 memcpy(skb_put(skb, MsgLen), card->msgbuf, MsgLen); in b1dma_handle_rx()
493 MsgLen = _get_slice(&p, card->msgbuf); in b1dma_handle_rx()
494 if (!(skb = alloc_skb(MsgLen, GFP_ATOMIC))) { in b1dma_handle_rx()
498 memcpy(skb_put(skb, MsgLen), card->msgbuf, MsgLen); in b1dma_handle_rx()
549 MsgLen = _get_slice(&p, card->msgbuf); in b1dma_handle_rx()
550 card->msgbuf[MsgLen] = 0; in b1dma_handle_rx()
551 while ( MsgLen > 0 in b1dma_handle_rx()
552 && ( card->msgbuf[MsgLen-1] == '\n' in b1dma_handle_rx()
553 || card->msgbuf[MsgLen-1] == '\r')) { in b1dma_handle_rx()
554 card->msgbuf[MsgLen-1] = 0; in b1dma_handle_rx()
555 MsgLen--; in b1dma_handle_rx()
562 MsgLen = _get_slice(&p, card->msgbuf); in b1dma_handle_rx()
563 card->msgbuf[MsgLen] = 0; in b1dma_handle_rx()
564 while ( MsgLen > 0 in b1dma_handle_rx()
565 && ( card->msgbuf[MsgLen-1] == '\n' in b1dma_handle_rx()
566 || card->msgbuf[MsgLen-1] == '\r')) { in b1dma_handle_rx()
567 card->msgbuf[MsgLen-1] = 0; in b1dma_handle_rx()
568 MsgLen--; in b1dma_handle_rx()