Lines Matching defs:ofs
56 * @ofs: desired offset to access
63 static void gf_set_gpios(struct async_state *state, unsigned long ofs)
67 ofs /= state->win_size;
69 value = ofs & (1 << i);
80 * @ofs: desired offset to read
82 static map_word gf_read(struct map_info *map, unsigned long ofs)
88 gf_set_gpios(state, ofs);
90 word = readw(map->virt + (ofs % state->win_size));
123 * @ofs: desired offset to write
125 static void gf_write(struct map_info *map, map_word d1, unsigned long ofs)
130 gf_set_gpios(state, ofs);
133 writew(d, map->virt + (ofs % state->win_size));