uart.c (4df864c1d9afb46e2461a9f808d9f11a42d31bad) uart.c (634fef61076d644b989b86abc2f560d81a089a31)
1/*
2 * Copyright (C) 2015, Marvell International Ltd.
3 *
4 * This software file (the "File") is distributed by Marvell International
5 * Ltd. under the terms of the GNU General Public License Version 2, June 1991
6 * (the "License"). You may use, redistribute and/or modify this File in
7 * accordance with the terms and conditions of the License, a copy of which
8 * is available on the worldwide web at

--- 341 unchanged lines hidden (view full) ---

350 NCI_MAX_PACKET_SIZE,
351 GFP_KERNEL);
352 if (!nu->rx_skb)
353 return -ENOMEM;
354 }
355
356 /* Eat byte after byte till full packet header is received */
357 if (nu->rx_skb->len < NCI_CTRL_HDR_SIZE) {
1/*
2 * Copyright (C) 2015, Marvell International Ltd.
3 *
4 * This software file (the "File") is distributed by Marvell International
5 * Ltd. under the terms of the GNU General Public License Version 2, June 1991
6 * (the "License"). You may use, redistribute and/or modify this File in
7 * accordance with the terms and conditions of the License, a copy of which
8 * is available on the worldwide web at

--- 341 unchanged lines hidden (view full) ---

350 NCI_MAX_PACKET_SIZE,
351 GFP_KERNEL);
352 if (!nu->rx_skb)
353 return -ENOMEM;
354 }
355
356 /* Eat byte after byte till full packet header is received */
357 if (nu->rx_skb->len < NCI_CTRL_HDR_SIZE) {
358 *(u8 *)skb_put(nu->rx_skb, 1) = *data++;
358 skb_put_u8(nu->rx_skb, *data++);
359 --count;
360 continue;
361 }
362
363 /* Header was received but packet len was not read */
364 if (nu->rx_packet_len < 0)
365 nu->rx_packet_len = NCI_CTRL_HDR_SIZE +
366 nci_plen(nu->rx_skb->data);

--- 121 unchanged lines hidden ---
359 --count;
360 continue;
361 }
362
363 /* Header was received but packet len was not read */
364 if (nu->rx_packet_len < 0)
365 nu->rx_packet_len = NCI_CTRL_HDR_SIZE +
366 nci_plen(nu->rx_skb->data);

--- 121 unchanged lines hidden ---