Lines Matching refs:MsgLen
454 u32 ApplId, MsgLen, DataB3Len, NCCI, WindowSize; in b1dma_handle_rx() local
465 MsgLen = _get_slice(&p, card->msgbuf); in b1dma_handle_rx()
468 if (MsgLen < 30) { /* not CAPI 64Bit */ in b1dma_handle_rx()
469 memset(card->msgbuf + MsgLen, 0, 30 - MsgLen); in b1dma_handle_rx()
470 MsgLen = 30; in b1dma_handle_rx()
473 if (!(skb = alloc_skb(DataB3Len + MsgLen, GFP_ATOMIC))) { in b1dma_handle_rx()
477 memcpy(skb_put(skb, MsgLen), card->msgbuf, MsgLen); in b1dma_handle_rx()
486 MsgLen = _get_slice(&p, card->msgbuf); in b1dma_handle_rx()
487 if (!(skb = alloc_skb(MsgLen, GFP_ATOMIC))) { in b1dma_handle_rx()
491 memcpy(skb_put(skb, MsgLen), card->msgbuf, MsgLen); in b1dma_handle_rx()
551 MsgLen = _get_slice(&p, card->msgbuf); in b1dma_handle_rx()
552 card->msgbuf[MsgLen] = 0; in b1dma_handle_rx()
553 while (MsgLen > 0 in b1dma_handle_rx()
554 && (card->msgbuf[MsgLen - 1] == '\n' in b1dma_handle_rx()
555 || card->msgbuf[MsgLen - 1] == '\r')) { in b1dma_handle_rx()
556 card->msgbuf[MsgLen - 1] = 0; in b1dma_handle_rx()
557 MsgLen--; in b1dma_handle_rx()
564 MsgLen = _get_slice(&p, card->msgbuf); in b1dma_handle_rx()
565 card->msgbuf[MsgLen] = 0; in b1dma_handle_rx()
566 while (MsgLen > 0 in b1dma_handle_rx()
567 && (card->msgbuf[MsgLen - 1] == '\n' in b1dma_handle_rx()
568 || card->msgbuf[MsgLen - 1] == '\r')) { in b1dma_handle_rx()
569 card->msgbuf[MsgLen - 1] = 0; in b1dma_handle_rx()
570 MsgLen--; in b1dma_handle_rx()