Lines Matching defs:ofs
389 static inline map_word inline_map_read(struct map_info *map, unsigned long ofs)
394 r.x[0] = __raw_readb(map->virt + ofs);
396 r.x[0] = __raw_readw(map->virt + ofs);
398 r.x[0] = __raw_readl(map->virt + ofs);
401 r.x[0] = __raw_readq(map->virt + ofs);
404 memcpy_fromio(r.x, map->virt + ofs, map->bankwidth);
411 static inline void inline_map_write(struct map_info *map, const map_word datum, unsigned long ofs)
414 __raw_writeb(datum.x[0], map->virt + ofs);
416 __raw_writew(datum.x[0], map->virt + ofs);
418 __raw_writel(datum.x[0], map->virt + ofs);
421 __raw_writeq(datum.x[0], map->virt + ofs);
424 memcpy_toio(map->virt+ofs, datum.x, map->bankwidth);
444 #define map_read(map, ofs) (map)->read(map, ofs)
446 #define map_write(map, datum, ofs) (map)->write(map, datum, ofs)
453 #define map_read(map, ofs) inline_map_read(map, ofs)
455 #define map_write(map, datum, ofs) inline_map_write(map, datum, ofs)