Lines Matching refs:shift
33 unsigned int shift; in bt1_rom_map_read() local
38 shift = (uintptr_t)src & 0x3; in bt1_rom_map_read()
39 data = readl_relaxed(src - shift); in bt1_rom_map_read()
40 if (!shift) { in bt1_rom_map_read()
44 ret.x[0] = data >> (shift * BITS_PER_BYTE); in bt1_rom_map_read()
47 shift = 4 - shift; in bt1_rom_map_read()
48 if (ofs + shift >= map->size) in bt1_rom_map_read()
51 data = readl_relaxed(src + shift); in bt1_rom_map_read()
52 ret.x[0] |= data << (shift * BITS_PER_BYTE); in bt1_rom_map_read()
62 unsigned int shift, chunk; in bt1_rom_map_copy_from() local
77 shift = (uintptr_t)src & 0x3; in bt1_rom_map_copy_from()
78 if (shift) { in bt1_rom_map_copy_from()
79 chunk = min_t(ssize_t, 4 - shift, len); in bt1_rom_map_copy_from()
80 data = readl_relaxed(src - shift); in bt1_rom_map_copy_from()
81 memcpy(to, (char *)&data + shift, chunk); in bt1_rom_map_copy_from()