Lines Matching refs:MsgLen
144 unsigned MsgLen;
161 MsgLen = t1_get_slice(card->port, card->msgbuf);
165 if (MsgLen < 30) { /* not CAPI 64Bit */
166 memset(card->msgbuf+MsgLen, 0, 30-MsgLen);
167 MsgLen = 30;
170 if (!(skb = alloc_skb(DataB3Len+MsgLen, GFP_ATOMIC))) {
174 memcpy(skb_put(skb, MsgLen), card->msgbuf, MsgLen);
183 MsgLen = t1_get_slice(card->port, card->msgbuf);
184 if (!(skb = alloc_skb(MsgLen, GFP_ATOMIC))) {
189 memcpy(skb_put(skb, MsgLen), card->msgbuf, MsgLen);
242 MsgLen = t1_get_slice(card->port, card->msgbuf);
244 card->msgbuf[MsgLen] = 0;
245 while ( MsgLen > 0
246 && ( card->msgbuf[MsgLen-1] == '\n'
247 || card->msgbuf[MsgLen-1] == '\r')) {
248 card->msgbuf[MsgLen-1] = 0;
249 MsgLen--;
256 MsgLen = t1_get_slice(card->port, card->msgbuf);
258 card->msgbuf[MsgLen] = 0;
259 while ( MsgLen > 0
260 && ( card->msgbuf[MsgLen-1] == '\n'
261 || card->msgbuf[MsgLen-1] == '\r')) {
262 card->msgbuf[MsgLen-1] = 0;
263 MsgLen--;