Lines Matching refs:MsgLen
518 __u32 ApplId, MsgLen, DataB3Len, NCCI, WindowSize; in c4_handle_rx() local
532 MsgLen = _get_slice(&p, card->msgbuf); in c4_handle_rx()
538 if (MsgLen < 30) { /* not CAPI 64Bit */ in c4_handle_rx()
539 memset(card->msgbuf+MsgLen, 0, 30-MsgLen); in c4_handle_rx()
540 MsgLen = 30; in c4_handle_rx()
543 if (!(skb = alloc_skb(DataB3Len+MsgLen, GFP_ATOMIC))) { in c4_handle_rx()
547 memcpy(skb_put(skb, MsgLen), card->msgbuf, MsgLen); in c4_handle_rx()
556 MsgLen = _get_slice(&p, card->msgbuf); in c4_handle_rx()
561 if (!(skb = alloc_skb(MsgLen, GFP_ATOMIC))) { in c4_handle_rx()
565 memcpy(skb_put(skb, MsgLen), card->msgbuf, MsgLen); in c4_handle_rx()
646 MsgLen = _get_slice(&p, card->msgbuf); in c4_handle_rx()
647 card->msgbuf[MsgLen] = 0; in c4_handle_rx()
648 while ( MsgLen > 0 in c4_handle_rx()
649 && ( card->msgbuf[MsgLen-1] == '\n' in c4_handle_rx()
650 || card->msgbuf[MsgLen-1] == '\r')) { in c4_handle_rx()
651 card->msgbuf[MsgLen-1] = 0; in c4_handle_rx()
652 MsgLen--; in c4_handle_rx()
659 MsgLen = _get_slice(&p, card->msgbuf); in c4_handle_rx()
660 card->msgbuf[MsgLen] = 0; in c4_handle_rx()
661 while ( MsgLen > 0 in c4_handle_rx()
662 && ( card->msgbuf[MsgLen-1] == '\n' in c4_handle_rx()
663 || card->msgbuf[MsgLen-1] == '\r')) { in c4_handle_rx()
664 card->msgbuf[MsgLen-1] = 0; in c4_handle_rx()
665 MsgLen--; in c4_handle_rx()