Searched refs:sarb (Results 1 - 1 of 1) sorted by relevance

/linux-4.4.14/drivers/usb/atm/
H A Dusbatm.c153 struct sk_buff *sarb; member in struct:usbatm_vcc_data
309 struct sk_buff *sarb; usbatm_extract_one_cell() local
338 sarb = instance->cached_vcc->sarb; usbatm_extract_one_cell()
340 if (sarb->tail + ATM_CELL_PAYLOAD > sarb->end) { usbatm_extract_one_cell()
341 atm_rldbg(instance, "%s: buffer overrun (sarb->len %u, vcc: 0x%p)!\n", usbatm_extract_one_cell()
342 __func__, sarb->len, vcc); usbatm_extract_one_cell()
344 skb_trim(sarb, 0); usbatm_extract_one_cell()
347 memcpy(skb_tail_pointer(sarb), source + ATM_CELL_HEADER, ATM_CELL_PAYLOAD); usbatm_extract_one_cell()
348 __skb_put(sarb, ATM_CELL_PAYLOAD); usbatm_extract_one_cell()
367 if (sarb->len < pdu_length) { usbatm_extract_one_cell()
368 atm_rldbg(instance, "%s: bogus pdu_length %u (sarb->len: %u, vcc: 0x%p)!\n", usbatm_extract_one_cell()
369 __func__, pdu_length, sarb->len, vcc); usbatm_extract_one_cell()
374 if (crc32_be(~0, skb_tail_pointer(sarb) - pdu_length, pdu_length) != 0xc704dd7b) { usbatm_extract_one_cell()
406 skb_tail_pointer(sarb) - pdu_length, usbatm_extract_one_cell()
420 skb_trim(sarb, 0); usbatm_extract_one_cell()
831 new->sarb = alloc_skb(usbatm_pdu_length(vcc->qos.rxtp.max_sdu), GFP_KERNEL); usbatm_atm_open()
832 if (!new->sarb) { usbatm_atm_open()
884 kfree_skb(vcc_data->sarb); usbatm_atm_close()
885 vcc_data->sarb = NULL; usbatm_atm_close()

Completed in 85 milliseconds