Lines Matching refs:from_offset
602 static void move_bits_down(const u8 *from, u64 from_offset, u8 *to, u64 to_offset, u32 size) in move_bits_down() argument
612 field = get_big_field(from, from_offset, count); in move_bits_down()
614 from_offset += count; in move_bits_down()
619 offset = from_offset % BITS_PER_TYPE(u32); in move_bits_down()
620 source = from + (from_offset - offset) / BITS_PER_BYTE; in move_bits_down()
626 from_offset += BITS_PER_TYPE(u32); in move_bits_down()
633 field = get_big_field(from, from_offset, size); in move_bits_down()
642 static void move_bits_up(const u8 *from, u64 from_offset, u8 *to, u64 to_offset, u32 size) in move_bits_up() argument
654 field = get_big_field(from, from_offset + size, count); in move_bits_up()
659 offset = (from_offset + size) % BITS_PER_TYPE(u32); in move_bits_up()
660 source = from + (from_offset + size - offset) / BITS_PER_BYTE; in move_bits_up()
671 field = get_big_field(from, from_offset, size); in move_bits_up()
681 static void move_bits(const u8 *from, u64 from_offset, u8 *to, u64 to_offset, u32 size) in move_bits() argument
688 field = get_big_field(from, from_offset, size); in move_bits()
695 if (from_offset > to_offset) in move_bits()
696 move_bits_down(from, from_offset, to, to_offset, size); in move_bits()
698 move_bits_up(from, from_offset, to, to_offset, size); in move_bits()