Lines Matching defs:ofs
290 static unsigned long rbtx4939_flash_fixup_ofs(unsigned long ofs)
299 return (ofs & ~0xc00000) | ((((ofs >> 22) + shift) & 3) << 22);
304 ofs ^= 0x400000; /* swap A[22] */
306 return ofs;
309 static map_word rbtx4939_flash_read16(struct map_info *map, unsigned long ofs)
313 ofs = rbtx4939_flash_fixup_ofs(ofs);
314 r.x[0] = __raw_readw(map->virt + ofs);
319 unsigned long ofs)
321 ofs = rbtx4939_flash_fixup_ofs(ofs);
322 __raw_writew(datum.x[0], map->virt + ofs);