to_offset
static void move_bits_down(const u8 *from, u64 from_offset, u8 *to, u64 to_offset, u32 size)
count = (MAX_BIG_FIELD_BITS - ((to_offset + MAX_BIG_FIELD_BITS) % BITS_PER_TYPE(u32)));
set_big_field(field, to, to_offset, count);
to_offset += count;
destination = to + to_offset / BITS_PER_BYTE;
to_offset += BITS_PER_TYPE(u32);
set_big_field(field, to, to_offset, size);
static void move_bits_up(const u8 *from, u64 from_offset, u8 *to, u64 to_offset, u32 size)
count = (to_offset + size) % BITS_PER_TYPE(u32);
set_big_field(field, to, to_offset + size, count);
destination = to + (to_offset + size) / BITS_PER_BYTE;
set_big_field(field, to, to_offset, size);
static void move_bits(const u8 *from, u64 from_offset, u8 *to, u64 to_offset, u32 size)
set_big_field(field, to, to_offset, size);
if (from_offset > to_offset)
move_bits_down(from, from_offset, to, to_offset, size);
move_bits_up(from, from_offset, to, to_offset, size);
size_t to_offset,
if (unlikely(to_offset + len > to_size)) {
to_offset + len,
memcpy(to + to_offset, from, len);
size_t to_offset,
if (unlikely(to_offset + len > to_size)) {
to_offset + len,
memset(to + to_offset, c, len);
size_t to_offset,
size_t to_offset,
static u32 vidtv_pes_write_pcr_bits(u8 *to, u32 to_offset, u64 pcr)
u8 *buf = to + to_offset;
static u32 vidtv_ts_write_pcr_bits(u8 *to, u32 to_offset, u64 pcr)
u8 *buf = to + to_offset;
u32 to_offset; /* bar offset to use */
vktty->to_offset = TO_TTYK_BASE(index);
phys_addr_t pmem_off = to_offset(pmem, sector);
phys_addr_t pmem_off = to_offset(pmem, sector);
__u16 to_offset;
__u16 to_offset;
unsigned int to_offset, bool is_last)
mt[i].to -= to_offset;
conf->to_offset, conf->config)
if (conf->from_offset > conf->to_offset)
conf.to_offset = tm->to_offset;
u16 to_offset;
to += tm->to_offset;
conf->from_offset > conf->to_offset)
tm->to_offset = conf->to_offset;