Lines Matching defs:source
291 static void usbatm_extract_one_cell(struct usbatm_data *instance, unsigned char *source)
295 short vpi = ((source[0] & 0x0f) << 4) | (source[1] >> 4);
296 int vci = ((source[1] & 0x0f) << 12) | (source[2] << 4) | (source[3] >> 4);
297 u8 pti = ((source[3] & 0xe) >> 1);
332 memcpy(skb_tail_pointer(sarb), source + ATM_CELL_HEADER, ATM_CELL_PAYLOAD);
340 length = (source[ATM_CELL_SIZE - 6] << 8) + source[ATM_CELL_SIZE - 5];
410 unsigned char *source, unsigned int avail_data)
425 memcpy(cell_buf + buf_usage, source, space_left);
426 source += space_left;
432 memcpy(cell_buf + buf_usage, source, avail_data);
438 for (; avail_data >= stride; avail_data -= stride, source += stride)
439 usbatm_extract_one_cell(instance, source);
444 memcpy(instance->cell_buf, source, avail_data);