Lines Matching refs:rbuf_offset
298 info->rbuf_offset = 0; in if_register_receive()
391 if (interface->rbuf_offset == interface->rbuf_len) { in receive_packet()
396 interface->rbuf_offset = 0; in receive_packet()
405 if (interface->rbuf_len - interface->rbuf_offset < in receive_packet()
407 interface->rbuf_offset = interface->rbuf_len; in receive_packet()
412 memcpy(&hdr, &interface->rbuf[interface->rbuf_offset], in receive_packet()
419 if (interface->rbuf_offset + hdr.bh_hdrlen + hdr.bh_caplen > in receive_packet()
421 interface->rbuf_offset = interface->rbuf_len; in receive_packet()
431 interface->rbuf_offset += hdr.bh_hdrlen = in receive_packet()
437 interface->rbuf_offset += hdr.bh_hdrlen; in receive_packet()
441 interface->rbuf_len, interface->rbuf_offset, pc, in receive_packet()
450 interface->rbuf_offset += hdr.bh_caplen; in receive_packet()
460 interface->rbuf_offset += hdr.bh_caplen; in receive_packet()
464 hdr.bh_caplen -= offset - interface->rbuf_offset; in receive_packet()
465 interface->rbuf_offset = offset; in receive_packet()
473 interface->rbuf_offset += hdr.bh_caplen; in receive_packet()
478 memcpy(buf, interface->rbuf + interface->rbuf_offset, in receive_packet()
480 interface->rbuf_offset += hdr.bh_caplen; in receive_packet()